..
/ Offsec-CC
Star
What you have:
Username
Password
No Creds
SSH Key
Hash
TGS
TGT
PFX
Shell
Services:
FTP
SSH
TELNET
SMTP
DNS
FINGER
KERBEROS
POP
PORTMAPPER
IDENT
NTP
MSRPC
NETBIOS
SMB
IMAP
SNMP
IRC
LDAP
IKE
MODBUS
REXEC
RSYNC
RTSP
IPMI
JAVA-RMI
MYSQL
MSSQL
NFS
POSTGRESQL
RDP
REDIS
Attack Type:
Enumeration
Exploitation
Persistence
Privilege Escalation
General
Cracking
Injection
Bypassing
Configuration Review
OS:
Linux
Windows
Mac
Android
iOS
Command
for char in '%20' '%0a' '%00' '%0d0a' '/' '.\\' '.' '…' ':'; do for ext in '.php' '.phps'; do echo "shell$char$ext.jpg" >> wordlist.txt echo "shell$ext$char.jpg" >> wordlist.txt echo "shell.jpg$char$ext" >> wordlist.txt echo "shell.jpg$ext$char" >> wordlist.txt done
Enumeration
Linux
Mac
ffuf -w ~/Documents/tools/SecLists/Discovery/DNS/subdomains-top1million-5000.txt -u https://inlanefreight.com -H "Host: FUZZ.inlanefreight.com"
Enumeration
Linux
Mac
ffuf -w ~/Documents/tools/SecLists/Discovery/DNS/subdomains-top1million-5000.txt -u https://FUZZ.inlanefreight.com/
Enumeration
Linux
Mac
ffuf -u http://83.136.253.201:52487/FUZZ -recursion -recursion-depth 1 -e .php -w ~/Documents/tools/SecLists/Discovery/Web-Content/directory-list-2.3-small.txt:FUZZ -v
Enumeration
Linux
Mac
ffuf -u http://83.136.253.201:52487/blog/FUZZ.php -w ~/Documents/tools/SecLists/Discovery/Web-Content/directory-list-2.3-small.txt:FUZZ
Enumeration
Linux
Mac
ffuf -u http://83.136.253.201:52487/blog/indexFUZZ -w ~/Documents/tools/SecLists/Discovery/Web-Content/web-extensions.txt:FUZZ
Enumeration
Linux
Mac
ffuf -u http://83.136.253.201:52487/FUZZ -w ~/Documents/tools/SecLists/Discovery/Web-Content/directory-list-2.3-small.txt:FUZZ
Enumeration
Linux
Mac
nmap -sV -sC 10.129.201.248 -p3389 --script 'rdp*'
RDP
Enumeration
No Creds
Linux
Mac
rdp-sec-check.pl 10.129.201.248
RDP
Enumeration
No Creds
Linux
Mac
nmap -Pn -p 3389 -sV 10.10.10.1
RDP
Enumeration
No Creds
Linux
Mac
nmap -Pn -p 1521 -sV 10.10.10.1 --script oracle-sid-brute
Enumeration
No Creds
Linux
Mac
./odat.py all -s 10.129.204.235
Enumeration
No Creds
Linux
Mac
nmap -Pn -p 1521 -sV 10.10.10.1
Enumeration
No Creds
Linux
Mac
sqlplus scott/tiger@10.129.205.19/XE as sysdba
Enumeration
Username
Password
Linux
Mac
msf6 > use auxiliary/scanner/ipmi/ipmi_dumphashes
IPMI
Enumeration
No Creds
Hash
Linux
Mac
sudo nmap -sU -p 623 --script ipmi-version -sV 10.10.10.1
IPMI
Enumeration
No Creds
Linux
Mac
ssh -v cry0l1t3@10.129.14.132
SSH
Enumeration
Username
Password
Linux
Windows
Mac
ssh-audit.py 10.129.14.132
SSH
Enumeration
No Creds
Linux
Windows
Mac
nmap -Pn -p 22 --script="ssh-auth-methods,ssh-brute,ssh-hostkey,ssh-publickey-acceptance,ssh-run,ssh2-enum-algos,sshv1" -sV 10.10.10.1
SSH
Enumeration
No Creds
Linux
Windows
Mac
nmap -Pn -p 22 -sV 10.10.10.1
SSH
Enumeration
No Creds
Linux
Windows
Mac
python3 smbmap.py --host-file smb-hosts.txt -u john -p 'password123' -d test.local -L
SMB
Enumeration
Username
Password
Linux
Windows
python3 smbmap.py --host-file smb-hosts.txt -d test.local -L
SMB
Enumeration
No Creds
Linux
Windows
python3 smbmap.py --host-file smb-hosts.txt -u john -p 'password123' -d test.local -F password
SMB
Enumeration
Username
Password
Linux
Windows
smbclient -L \\test.local -I 10.10.10.1 -U john password123
SMB
Enumeration
Username
Password
Linux
smbclient -L \\test.local -I 10.10.10.1 -N
SMB
Enumeration
No Creds
Linux
smbclient -L \\10.10.10.1 -U test.local/john --pw-nt-hash XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
SMB
Enumeration
Username
Hash
Linux
smbclient \\\\test.local\\C$ -I 10.10.10.1 -U john password123
SMB
Enumeration
Username
Password
Linux
smbclient \\\\test.local\\public -I 10.10.10.1 -N
SMB
Enumeration
No Creds
Linux
ftp 10.129.196.65
FTP
Enumeration
Username
Password
Linux
Windows
Mac
nmap -Pn -p 21 --script="ftp-anon,ftp-bounce,ftp-brute,ftp-libopie,ftp-proftpd-backdoor,ftp-syst,ftp-vsftpd-backdoor,ftp-vuln-cve2010-4221" -sV 10.10.10.1
FTP
Enumeration
No Creds
Linux
Windows
Mac
wget -m ftp://anonymous:anonymous@10.10.10.98
FTP
Enumeration
Username
Password
Linux
Windows
Mac
ftp://anonymous:anonymous@10.10.10.98
FTP
Enumeration
Username
Password
Linux
Windows
Mac
nmap -Pn -p 21 --script ftp-bounce -sV 10.10.10.1
FTP
Enumeration
Username
Password
Linux
Windows
Mac
nmap -Pn -p 21 -sV 10.10.10.1
FTP
Enumeration
No Creds
Linux
Windows
Mac
getenforce # Run on the container host to check container policies
Configuration Review
Linux
docker inspect --format '{{.HostConfig.Privileged}}' <container>
Configuration Review
Linux
lsns; lscgroup
Configuration Review
Linux
grep pam_faillock /etc/pam.d/system-auth
Configuration Review
Linux
grep -E "PASS_MAX_DAYS|PASS_MIN_DAYS|PASS_WARN_AGE" /etc/login.defs
Configuration Review
Linux
grep pam_pwquality.so /etc/pam.d/system-auth
Configuration Review
Linux
cat /etc/passwd && lastlog
Configuration Review
Linux
grep -E 'ClientAliveInterval' /etc/ssh/sshd_config
Configuration Review
Linux
grep AllowUsers /etc/ssh/sshd_config
Configuration Review
Linux
grep -i 'PasswordAuthentication' /etc/ssh/sshd_config
Configuration Review
Linux
Check container or chroot configs manually
Configuration Review
Linux
systemctl list-unit-files --type=service
Configuration Review
Linux
systemctl show
Configuration Review
Linux
systemctl list-sockets
Configuration Review
Linux
clamscan -V; systemctl status clamav-daemon
Configuration Review
Linux
oscap xccdf eval --profile <profile> --results scan.xml /usr/share/xml/scap/ssg/content/ssg-<os>.xml
Configuration Review
Linux
ls -l /etc/cron.allow /etc/cron.deny
Configuration Review
Linux
crontab -l; ls -l /etc/cron* /var/spool/cron
Configuration Review
Linux
auditctl -s
Configuration Review
Linux
dmesg
Configuration Review
Linux
sysctl fs.suid_dumpable
Configuration Review
Linux
lsattr <file> || getfattr -d <file>
Configuration Review
Linux
rpm -V <package>
Configuration Review
Linux
grep gpgcheck /etc/yum.conf /etc/yum.repos.d/*
Configuration Review
Linux
fips-mode-setup --check
Configuration Review
Linux
lsmod && lsmod | grep usb_storage && grep -r blacklist /etc/modprobe.d/
Configuration Review
Linux
systemctl list-units --type=service && systemctl list-units --type=service --state=running
Configuration Review
Linux
yum updateinfo list security all && dnf updateinfo list security all
Configuration Review
Linux
cat /etc/os-release && uname -r && hostnamectl
Configuration Review
Linux
grep -i rate /etc/ssh/sshd_config # or use fail2ban
Configuration Review
Linux
ip netns list
Configuration Review
Linux
sysctl net.ipv4.icmp_echo_ignore_all
Configuration Review
Linux
sysctl net.ipv6.conf.all.disable_ipv6
Configuration Review
Linux
sysctl net.ipv4.conf.all.rp_filter
Configuration Review
Linux
getenforce
Configuration Review
Linux
sysctl net.ipv4.ip_forward
Configuration Review
Linux
ss -tuln && netstat -tuln
Configuration Review
Linux
iptables -L -n || firewall-cmd --state
Configuration Review
Linux
chattr +i /var/log/*
Configuration Review
Linux
grep backlog /etc/audit/audit.rules
Configuration Review
Linux
grep '@' /etc/rsyslog.conf /etc/rsyslog.d/*
Configuration Review
Linux
Check if auditd, ossec, or similar is running
Configuration Review
Linux
cat /etc/logrotate.conf
Configuration Review
Linux
systemctl status rsyslog; auditctl -s
Configuration Review
Linux
dmesg
Configuration Review
Linux
systemctl is-enabled kexec-load.service
Configuration Review
Linux
cat /etc/modprobe.d/*
Configuration Review
Linux
cat /proc/sys/kernel/randomize_va_space
Configuration Review
Linux
lsattr /etc/passwd /etc/shadow
Configuration Review
Linux
lsblk
Configuration Review
Linux
aide --check
Configuration Review
Linux
findmnt -nro OPTIONS /tmp /var /home
Configuration Review
Linux
ls -l /etc/shadow # should be -rw------- or similar
Configuration Review
Linux
find /bin /sbin /usr/bin /usr/sbin -type f \( -perm -4000 -o -perm -2000 \)
Configuration Review
Linux
systemctl status avahi-daemon
Configuration Review
Linux
cat /etc/resolv.conf # or review DNS server config files
Configuration Review
Linux
Manual check via BIOS
Configuration Review
Linux
grep -i password /boot/grub2/user.cfg
Configuration Review
Linux
Check encryption in backup config or use gpg, openssl
Configuration Review
Linux
Manual or scripted restore test
Configuration Review
Linux
crontab -l
Configuration Review
Linux
grep pam_google_authenticator /etc/pam.d/sshd
Configuration Review
Linux
grep '^%sudo' /etc/sudoers; getent group sudo && sudo getent group wheel
Configuration Review
Linux
grep PermitRootLogin /etc/ssh/sshd_config
Configuration Review
Linux
ulimit -u # or review /etc/security/limits.conf for PAM limits
Configuration Review
Linux
awk -F: '$3 == 0 { print $1 }' /etc/passwd
Configuration Review
Linux
# Enumerate modifiable services SharpUp.exe audit
Enumeration
Privilege Escalation
Windows
# Enumerate installed applications to identify vulnerable software wmic product get name
Privilege Escalation
Windows
# Enumerate auto-start services with unquoted paths wmic service get name,displayname,pathname,startmode | findstr /i "Auto" | findstr /i /v "C:\Windows\\" | findstr /i /v "\""
Enumeration
Privilege Escalation
Windows
# Check current user and integrity level whoami /user
Enumeration
Privilege Escalation
Windows
whoami /priv | findstr /i "SeImpersonate SeAssignPrimaryToken"
Enumeration
Privilege Escalation
Windows
whoami /priv | findstr /i "SeTakeOwnershipPrivilege"
Enumeration
Privilege Escalation
Windows
whoami /priv | findstr /i "SeDebugPrivilege"
Enumeration
Privilege Escalation
Windows
whoami /priv | findstr /i "SeBackupPrivilege"
Enumeration
Privilege Escalation
Windows
# List running services and associated processes tasklist /svc
Enumeration
Privilege Escalation
Windows
# Enumerate installed updates systeminfo
Privilege Escalation
Windows
net localgroup "Event Log Readers"
Enumeration
Privilege Escalation
Windows
# Manual file content search for passwords in user Documents folder cd c:\Users\<username>\Documents & findstr /SI /M "password" *.xml *.ini *.txt
Enumeration
Windows
# Search for plaintext passwords in files findstr /SIM /C:"password" *.txt *.ini *.cfg *.config *.xml
Enumeration
Windows
sc qc AppReadiness
Enumeration
Privilege Escalation
Windows
net group DnsAdmins /domain | net user <username> /domain
Enumeration
Privilege Escalation
Windows
whoami /priv | findstr "SeLoadDriverPrivilege"
Enumeration
Privilege Escalation
Windows
Get-AppLockerPolicy -Local | Test-AppLockerPolicy -path C:\Windows\System32\cmd.exe -User Everyone
Enumeration
Privilege Escalation
Windows
Couldn't find the command you're looking for?
Contribute
your own!