Migrate Markdown-Notes: projects, meetings, reference, personal
This commit is contained in:
24
reference/security/HTB SQL Injection Fundamentals.md
Normal file
24
reference/security/HTB SQL Injection Fundamentals.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# 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;
|
||||
or
|
||||
mysql> SHOW DATABASES;
|
||||
|
||||
mysql> USE users;
|
||||
|
||||
mysql> CREATE TABLE logins (
|
||||
-> id INT,
|
||||
-> username VARCHAR(100),
|
||||
-> password VARCHAR(100),
|
||||
-> date_of_joining DATETIME
|
||||
-> );
|
||||
|
||||
SHOW DATABASES;
|
||||
mysql> SHOW TABLES;
|
||||
|
||||
mysql> DESCRIBE <table_name>;
|
||||
Reference in New Issue
Block a user