Thuta Learning
ရှာဖွေရန်
IntermediateSecurityintermediate

Web Application Reconnaissance

စိတ်လျှော့ပါ။ ဒီခန်းကို စာအုပ်လိုမဟုတ်ဘဲ စကားပြောသလိုပဲ၊ နားလည်လွယ်အောင် ရှင်းပါမယ်။

ဒီခန်းပြီးရင် ဘာတတ်သွားမလဲ

  • Web Application Reconnaissance ကို ကြောက်စရာမလိုအောင် နားလည်မယ်
  • ကိုယ်တိုင် authorized lab environment ထဲမှာ tool ကို run ကြည့်တတ်မယ်
  • Real assessment/report ထဲမှာ ဒီ concept ကို ချက်ချင်း အသုံးချတတ်မယ်

ခဏလေး ဒီလိုပဲ စဉ်းစားကြည့်

Directory Enumeration ဆိုတာ web server ပေါ်က hidden/undocumented path (`/admin`, `/backup`, `/.git`) ကို wordlist သုံးပြီး systematic ရှာဖွေခြင်းပါ — developer တွေက production မှာ ဖျက်ဖို့ မေ့ခဲ့တဲ့ admin panel/backup file ကို ဒီနည်းနဲ့ ရှာတွေ့နိုင်ပါတယ်။ Technology Fingerprinting ကတော့ website ရဲ့ underlying technology (framework, CMS, server software) ကို HTTP header, HTML source, error message ကနေ ခန့်မှန်းခြင်းပါ — WordPress, ဒါမှမဟုတ် specific framework version သိမှသာ known vulnerability ကို target လုပ်နိုင်ပါတယ်.

လက်တွေ့ scenario နဲ့ ချိတ်ကြည့်မယ်

Lab web app ကို `gobuster dir -u http://192.168.56.101 -w wordlist.txt` လို့ run ရင် — `/admin`, `/uploads`, `/.git` စတဲ့ hidden path တွေကို auto-discover ပေးနိုင်ပါတယ်, `/.git` ကို တွေ့ရင် source code repository တစ်ခုလုံးကို download ရနိုင်တဲ့ risk ရှိပါတယ် (developer တွေက production deploy တဲ့အခါ `.git` folder ကို ဖျက်ဖို့ မေ့ခဲ့ရင်)။ `whatweb` tool ကို သုံးရင် target ရဲ့ CMS/framework/server software ကို auto-detect ပေးနိုင်ပါတယ်.

အတူတူ ကြည့်မယ်

bash
# Directory enumeration (against your own lab web app)
gobuster dir -u http://192.168.56.101 -w /usr/share/wordlists/common.txt

# Technology fingerprinting
whatweb http://192.168.56.101

# Check for an exposed .git directory
curl -s http://192.168.56.101/.git/config
You should see
===============================================================
/admin                (Status: 200)
/uploads              (Status: 301)
/backup.zip           (Status: 200)

၅ မိနစ် စမ်းကြည့်

Lab web app (DVWA ဒါမှမဟုတ် Metasploitable web) ကို `gobuster` ဒါမှမဟုတ် `dirb` နဲ့ directory enumeration လုပ်ကြည့်ပါ — တွေ့ရတဲ့ path list ကို review ပြီး attacker တစ်ယောက်က ဘယ် path ကို စိတ်ဝင်စားမလဲ ခန့်မှန်းကြည့်ပါ။

သတိလေးတစ်ချက်

Directory enumeration (aggressive request rate) ကို production server ပေါ်မှာ authorization ရှိတောင် rate-limit မထားဘဲ run ရင်, DoS-like effect ဖြစ်စေနိုင်ပါတယ် — request rate ကို adjust လုပ်ပြီး server load ကို ထိန်းချုပ်သင့်ပါတယ်.

ဒီနေရာမှာ လူအများမှားတတ်တယ်

  • Wordlist size ကို target ရဲ့ authorization scope/testing window ထည့်မတွက်ဘဲ ကြီးလွန်းအောင် ရွေးချယ်ခြင်း — scan time ကြာလွန်းပြီး testing window ကျော်သွားနိုင်ပါတယ်
  • Directory enumeration result ကို 'ဒါလောက်ပဲ ရှိတယ်' လို့ ယူဆခြင်း — wordlist ထဲမှာ မပါတဲ့ path တွေ ကျန်နေနိုင်ပါတယ် (comprehensive မဟုတ်)

အခု ကိုယ်တိုင် စမ်းကြည့်

Lab web app (DVWA ဒါမှမဟုတ် Metasploitable web) ကို `gobuster` ဒါမှမဟုတ် `dirb` နဲ့ directory enumeration လုပ်ကြည့်ပါ — တွေ့ရတဲ့ path list ကို review ပြီး attacker တစ်ယောက်က ဘယ် path ကို စိတ်ဝင်စားမလဲ ခန့်မှန်းကြည့်ပါ။

You'll know it worked when: =============================================================== /admin (Status: 200) /uploads (Status: 301) /backup.zip (Status: 200)

Web Application Reconnaissance | Thuta Learning