🎯 គោលបំណង
- យល់ពី directory/file brute-forcing
- អាន gobuster status codes
- រក backup/config files ដែលលេចធ្លាយ credentials
gobustercurlBackup filesSensitive data exposure
Content discovery = រក path ដែលម្ចាស់មិនភ្ជាប់ link ប៉ុន្តែនៅតែមាន (admin, backup, .bak, .git)។
ឧបករណ៍
gobuster dir -u http://acme-shop.lab/ -w /usr/share/wordlists/dirb/common.txt curl http://acme-shop.lab/config.php.bak # អាន backup file curl -I http://acme-shop.lab/admin # 401 = មានតែត្រូវ login
Status code
| Code | ន័យ |
|---|---|
| 200 | មាន និងអានបាន ✅ |
| 301/302 | ជា directory (redirect) |
| 401/403 | មាន តែត្រូវ auth / ហាមឃាត់ |
| 404 | គ្មាន |
ឯកសារគ្រោះថ្នាក់
config.php.bak,.env,db.sql— ជារឿយៗមាន password/.git/បើកចំហ = អាចទាញ source code ទាំងមូល
💡 នៅពេល .php.bak ត្រូវបានស្នើ server មិន execute PHP ទេ — វាបង្ហាញ source code ទាំងស្រុង (រួមទាំង password)។ នេះជា Sensitive Data Exposure។