🛠️ Tools Cheat Sheet

A collection of frequently used commands for reconnaissance and exploitation.


🔎 Nmap (Network Mapper)

CommandDescription
nmap -sC -sV <IP>Standard scan with common scripts and version detection.
nmap -p- <IP>Scan all 65,535 ports.
nmap -A <IP>Aggressive scan (OS detect, version, scripts, traceroute).
nmap -oN output.txt <IP>Save output in normal format.

📁 Gobuster / Dirsearch

CommandDescription
gobuster dir -u http://<IP>/ -w common.txtDirectory bursting with Gobuster.
dirsearch -u http://<IP>/Directory bursting with Dirsearch.
gobuster dir -u http://<IP>/ -w common.txt -x php,html,txtScan with specific extensions.
gobuster vhost -u http://<DOMAIN>/ -w subdomains.txt --append-domainVirtual Host (vhost) enumeration.

📦 FTP

CommandDescription
ftp <IP>Connect to FTP.
get filenameDownload a file.
ls -laList all files including hidden ones.

🗄️ MySQL / SMB

ToolCommand
MySQLmysql -h <IP> -u <user> -p
SMBClientsmbclient -L \\\\<IP>\\
SMBClientsmbclient \\\\<IP>\\<share>
AWS CLIaws --endpoint=http://<DOMAIN>/ s3 lsList S3 buckets.
AWS CLIaws --endpoint=http://<DOMAIN>/ s3 ls s3://<BUCKET>List files in a bucket.
AWS CLIaws --endpoint=http://<DOMAIN>/ s3 cp <FILE> s3://<BUCKET>Upload file to bucket.

TIP

Use these commands as a quick reference during labs.