inital commit
This commit is contained in:
21
hack_the_box/HTB SQL Injection Fundamentals.md
Normal file
21
hack_the_box/HTB SQL Injection Fundamentals.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# HTB SQL Injection Fundamentals
|
||||
|
||||
## intro to mysql
|
||||
|
||||
|
||||
djelly@htb[/htb]$ mysql -u root -h docker.hackthebox.eu -P 3306 --skip-ssl -p
|
||||
|
||||
mysql> CREATE DATABASE users;
|
||||
|
||||
mysql> USE users;
|
||||
|
||||
mysql> CREATE TABLE logins (
|
||||
-> id INT,
|
||||
-> username VARCHAR(100),
|
||||
-> password VARCHAR(100),
|
||||
-> date_of_joining DATETIME
|
||||
-> );
|
||||
|
||||
mysql> SHOW TABLES;
|
||||
|
||||
mysql> DESCRIBE <table_name>;
|
||||
Reference in New Issue
Block a user