TVET CyberLabs

🗂️ រកមាតិកា Web លាក់ (Content Discovery)

មធ្យម ⏱ 35 នាទី ⭐ 65 ពិន្ទុ

🎯 គោលបំណង

  • យល់ពី 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។

🔒 សូមចូលគណនី ដើម្បីប្រើ Terminal និងផ្ញើចម្លើយ

ចូលគណនី

🧩 កិច្ចការ

  1. +10gobuster រកឃើញ backup file របស់ config។ តើឈ្មោះ file នោះជាអ្វី?
    💡 ជំនួយ
    gobuster dir -u http://acme-shop.lab/ -w /usr/share/wordlists/dirb/common.txt
  2. +10តើ directory version-control អ្វីដែលបើកចំហ (គ្រោះថ្នាក់ខ្លាំង)?
  3. +15អាន config.php.bak — តើ database password ជាអ្វី?
    💡 ជំនួយ
    curl http://acme-shop.lab/config.php.bak
  4. +10តើ database username ក្នុង config នោះជាអ្វី?
  5. +10Config file ក៏លេចធ្លាយ API key ផងដែរ។ តើ API key នោះជាអ្វី?
  6. +10តើវិធីជួសជុលល្អបំផុតសម្រាប់ config.php.bak ដែលបើកចំហ?
🎉 អបអរសាទរ! អ្នកបានបញ្ចប់ Lab នេះ — Lab បន្ទាប់ →