🔎 Web Application Penetration Testing Methodology

📖 Table of Contents


1. 🧐 Subdomain Enumeration


2. ⚡ Port Scanning with Nmap


3. 🇴 Subdomain Takeover


4. 🌐 Check for Live Hosts


5. 🪵 Request Smuggling Check


6. 📂 Directory & File Discovery (Dirsearch)


7. 🚨 Vulnerability Scanning (Nuclei)


8. 🔗 URL Gathering


9. 🔍 Analyze JS & PHP Files


10. 🧬 Analyze JavaScript Files


11. 🔑 Parameter Discovery with Arjun


12. 🫸 SQL Injection Testing with sqlmap

Example 1: GET Request

Found from Arjun:
https://mars.com/file.php?id=*

Test with sqlmap:

sqlmap -u "https://mars.com/file.php?id=*" --risk 3 --level 5 --random-agent --banner --batch --dbs --ignore-code 403

Example 2: POST Request

Arjun output:

POST / HTTP/1.1
Host: google.com
Origin: google.com
Content-Length: 120

id=1&name=ahmed&x=test

Test with sqlmap:

sqlmap -u "https://google.com" --data="id=*&name=*&x=*" --dbs --banner --batch

🧠 Bonus: Get Resolved IPs


🧰 WordPress-Specific Enumeration


🔧 Bonus Tools