
अलग-अलग tools चलाना pentest नहीं है। असली pentest एक अनुशासित process है — तय scope, documented steps, सबूत और अंत में ऐसी report जिससे organization सुधार कर सके। इस लेसन में पूरा workflow देखेंगे।
1. Scoping
सबसे पहले लिखित में तय करें: कौन से domains, IP ranges और applications test होंगे; कौन सी तकनीक allowed हैं; कब testing होगी; और emergency contact कौन है। Scope से बाहर कुछ भी नहीं। अच्छा scope वह है जो साफ़ बताए कि क्या शामिल नहीं है।
2. Rules of Engagement
- Testing का समय — business hours या off-hours।
- कौन सी techniques banned हैं (जैसे DoS, social engineering बिना अनुमति)।
- Data handling — मिले data को कैसे रखें और कब मिटाएँ।
- Communication — critical finding मिलने पर तुरंत किसे बताएँ।
3. Recon से Report तक
| चरण | Output |
|---|---|
| Recon | domains, subdomains, IP, tech stack |
| Scanning | open ports, services, versions |
| Vulnerability analysis | findings की सूची, severity |
| Exploitation | proof of concept, सीमित असर |
| Post-exploitation | असर की सीमा — कितना data, कौन सा access |
| Cleanup | बनाई फ़ाइलें/accounts हटाना |
| Report | findings, proof, impact, remediation |
Proof of Concept कैसे रखें
PoC का मक़सद साबित करना है कि कमज़ोरी असली है — पूरा नुक़सान दिखाना नहीं। जैसे SQL injection के लिए सिर्फ़ version या table नाम तक सीमित proof, पूरा database dump नहीं। Screenshot में secrets blur करें।
Finding कैसे लिखें
Title: Login page par SQL Injection
Severity: High (CVSS 8.1)
Endpoint: /login (POST)
Impact: Bina password ke account access, user data exposure
Proof: response me admin dashboard
Fix: parameterized query, input validation, WAF rule
हर finding में यही पाँच चीज़ें हों — title, severity, location, impact, fix। Developer को यही format सबसे ज़्यादा काम आता है।
Cleanup और Sign-off
Test के बाद जो भी changes किए — test accounts, uploaded files, changed settings — सब हटाएँ। फिर client से लिखित confirmation लें कि testing पूरी हुई और systems सामान्य हैं।
- Scope और permission पहले, tools बाद में
- हर चरण का output documented हो
- PoC सीमित रखें — पूरा नुक़सान नहीं
- Cleanup और sign-off के बिना test अधूरा
अपने lab के लिए एक छोटा scope document लिखें: target IP, allowed techniques, time window और emergency contact। यही असली engagement का पहला पेज होता है।