Kali Linux, Aircrack-ng, Wireshark, Kismet වගේ tools ගැන බලද්දි,
“Wi-Fi adapter එක monitor mode එකට දාන්න.”
කියන instruction එක නිතරම හම්බවෙනවා.
හැබැයි මෙතන වැදගත් ප්රශ්නයක් තියෙනවා.
Monitor Mode කියන්නේ මොකක්ද?
ඒකෙන් ඇත්තටම මොනවද කරන්න පුළුවන්?
සාමාන්ය Wi-Fi adapter එකකට මේක support නොකරන්නේ ඇයි?
හැම USB Wi-Fi adapter එකක්ම Kali Linux වල monitor mode + packet injection support කරනවද?
ඒ වගේම online එකේ “Hacking Wi-Fi Adapter” කියලා විකුණන devices අතර වෙනස මොකක්ද?
මේ article එකෙන් ඒ හැම එකක්ම technical level එකෙන් බලමු.
මුලින්ම වැදගත් දෙයක්
Wi-Fi security testing වල packet capture, packet injection, authentication testing, client-disconnection testing වගේ techniques legitimate security research වලට ඉතා ප්රයෝජනවත්.
නමුත් මේ techniques භාවිතා කළ යුත්තේ:
තමන්ගේ network එකේ
තමන්ගේ lab environment එකක
CTF / sandbox එකක
explicit permission තියෙන security assessment එකක
විතරයි.
වෙනත් කෙනෙකුගේ Wi-Fi network එකට permission නැතුව testing කිරීම නීතිමය සහ privacy ගැටලු ඇති කළ හැක.
1. Normal Wi-Fi Mode එකේ මොකද වෙන්නේ?
ඔයා laptop එකෙන් Wi-Fi network එකකට connect වුණා කියලා හිතමු.
සාමාන්යයෙන් Wi-Fi interface එක Managed / Station mode එකේ වැඩ කරනවා.
ඒක roughly මෙහෙමයි:
Laptop
│
│ Wi-Fi Adapter
│
▼
Access Point
│
▼
Network
Managed mode එකේ adapter එක සාමාන්ය client එකක් වගේ behave කරනවා.
උදාහරණයක්:
Laptop → HomeWiFi
Adapter එක network එකකට associate වෙලා ඒ network එකේ communication එකට සහභාගී වෙනවා.
2. Monitor Mode කියන්නේ මොකක්ද?
Monitor Mode කියන්නේ wireless interface එකට available වන capture-oriented operating mode එකක්.
Linux Wireless documentation අනුව monitor mode එකේ incoming 802.11 frames host computer එකට unfiltered ලෙස ලබාදීමට interface එක සකස් වෙනවා. ඒ නිසා wireless channel එකේ සිදුවන traffic ගැන low-level observation කරන්න පුළුවන්.
සරලව:
Managed Mode
මම network එකකට connect වෙලා
client එකක් විදිහට communicate වෙනවා.
Monitor Mode
මම wireless medium එක observe කරමින්
air එකේ එන 802.11 frames capture කරනවා.
මේකෙන් තේරෙන්න ඕන වැදගත්ම point එක:
Monitor Mode ≠ Wi-Fi Password Cracking
Monitor mode එකෙන් password එක magically reveal වෙන්නේ නැහැ.
එය primarily wireless frames capture / observe කිරීම සඳහා භාවිතා වන mode එකක්.
3. “Air එකේ packets” කියන්නේ මොනවද?
Wi-Fi communication එක radio signals හරහා සිද්ධ වෙන නිසා network එකේ packets cable එකක් වගේ physically isolated path එකක යන්නේ නැහැ.
802.11 protocol එකේ විවිධ frame types තියෙනවා:
Management Frames
Control Frames
Data Frames
උදාහරණ:
Beacon
Probe Request
Probe Response
Association
Authentication
RTS
CTS
ACK
Data
Monitor mode එකේ compatible adapter/driver එකකට මේ frames capture කරන්න පුළුවන්.
Wireshark වගේ tools භාවිතා කරලා ඒ frames inspect කරන්නත් පුළුවන්. Linux Wireless documentation එකත් monitor interface එකෙන් tcpdump, Wireshark, tshark වගේ utilities භාවිතා කළ හැකි බව දක්වයි.
4. Monitor Mode එකේදී Password එක පේනවද?
නැහැ.
මේක Wi-Fi security ගැන ඉගෙනගන්න අය කරන ලොකු misconception එකක්.
Monitor mode එකෙන්:
Wi-Fi Frames
↓
Capture
↓
Analyze
කියන workflow එක සිද්ධ වෙනවා.
නමුත් encryption තිබෙන network එකක captured traffic එකේ application data එක plain text වගේ පේන්නේ නැහැ.
උදාහරණයක්:
Encrypted Wi-Fi Traffic
↓
Capture
↓
802.11 frames
↓
Encrypted / protected contents
ඒ නිසා:
Monitor mode තිබුණා කියලා network එකේ password එක automatically ලැබෙන්නේ නැහැ.
5. එහෙනම් Ethical Hackers Monitor Mode භාවිතා කරන්නේ ඇයි?
Wireless security assessment එකකදී monitor mode එක භාවිතා කරන්න පුළුවන් ප්රධාන use cases කිහිපයක් තියෙනවා.
Wireless Reconnaissance
Environment එකේ තියෙන:
SSID
BSSID
Channel
Band
Signal information
802.11 capabilities
Visible clients / stations
වගේ wireless metadata observe කරන්න පුළුවන්.
Packet Capture
Wireless traffic capture කරලා:
Wireshark
tcpdump
tshark
airodump-ng
වගේ tools වලින් analyze කරන්න පුළුවන්.
Protocol Analysis
උදාහරණයක් ලෙස:
Beacon behavior
Authentication exchange
Association
Management traffic
Roaming behavior
Channel usage
වගේ දේවල් study කරන්න පුළුවන්.
Defensive Security
Monitor mode එක offensive security වලට විතරක් නෙවෙයි.
Security teams වලට:
Rogue AP detection
Unauthorized device discovery
Wireless anomaly detection
Management-frame analysis
Wireless troubleshooting
වගේ වැඩ වලටත් packet capture useful.
6. Monitor Mode සහ Packet Injection එක එකම දෙයක් නෙවෙයි
මෙතන තවත් වැදගත් distinction එකක් තියෙනවා.
Monitor Mode
ප්රධාන අදහස:
Receive / observe wireless frames
Packet Injection
ප්රධාන අදහස:
Transmit crafted 802.11 frames
Linux Wireless documentation එක අනුව mac80211 stack එක monitor interface හරහා packet injection support කළ හැක. ඒ නිසා monitor mode interface එකක් භාවිතා කරලා specially constructed frames transmit කරන applications තිබෙනවා.
හැබැයි:
Monitor mode support තිබුණා = packet injection support automatically තියෙනවා කියලා හිතන්න එපා.
Hardware, chipset, driver, kernel, regulatory limitations වගේ දේවල් බලපානවා.
Aircrack-ng documentation එකත් chipset support තිබුණත් සියලු functions නිවැරදිව වැඩ කරනු ඇතැයි guarantee නොකරන බව පැහැදිලි කරයි.
7. එහෙනම් “Hacker Wi-Fi Adapter” කියන්නේ මොකක්ද?
මෙතන තමයි online market එකේ marketing එක සහ technical reality එක අතර ලොකු gap එකක් තියෙන්නේ.
ඇත්තටම:
“Hacker Wi-Fi Adapter” කියලා වෙනම magical hardware category එකක් නැහැ.
සාමාන්ය USB Wi-Fi adapter එකක් වුවත් security testing වලට භාවිතා කළ හැක.
නමුත් security researchersලා hardware තෝරද්දී බලන්නේ:
Chipset
Driver support
Monitor mode
Packet injection
Frequency bands
Channel support
Antenna design
Receive sensitivity
Transmit characteristics
Linux compatibility
Kernel compatibility
වගේ technical factors.
Aircrack-ng documentation එකත් card එකේ brand එකට වඩා chipset එක හඳුනාගැනීම වැදගත් බව explicitly කියනවා.
8. Brand එකට වඩා Chipset එක වැදගත් ඇයි?
හිතන්න:
USB Wi-Fi Adapter
│
├── Brand
│
└── Chipset
│
└── Driver
│
└── Linux capabilities
Brand එක:
ALFA
TP-Link
Panda
D-Link
වෙන්න පුළුවන්.
නමුත් Linux වල actual wireless capabilities තීරණය කරන්න chipset + driver combination එක ඉතා වැදගත්.
උදාහරණයක්:
Same-looking adapter
↓
Different hardware revision
↓
Different chipset
↓
Different driver
↓
Different monitor/injection behavior
ඒ නිසා:
Model number එක විතරක් බලලා adapter එකක් ගන්න එක risky.
විශේෂයෙන් TP-Link වගේ brands වල එකම product name එකේ hardware revision වෙනස් වෙන්නත් පුළුවන්.
9. Security Testing වල ජනප්රිය වූ Chipsets
Historical සහ current Linux security tooling ecosystem එකේ නිතර හමුවන chipsets කිහිපයක් තියෙනවා.
Atheros AR9271
උදාහරණයක්:
ALFA AWUS036NHA
Official ALFA specifications අනුව:
Chipset: Atheros AR9271
Band: 2.4 GHz
Standard: 802.11b/g/n
USB 2.0
External antenna
ALFA compatibility documentation එකේ AWUS036NHA එක Kali 2022.2 වල out-of-the-box working device එකක් ලෙසද සඳහන් කර තිබෙනවා.
Kali NetHunter documentation එකත් AR9271 / ATH9K_HTC family එක සහ AWUS036NHA වැනි devices support කරයි.
10. MediaTek MT7612U
තවත් widely-used chipset එකක්:
MediaTek MT7612U
උදාහරණයක්:
ALFA AWUS036ACM
Official specs අනුව:
Chipset: MT7612U
2.4 GHz + 5 GHz
802.11a/b/g/n/ac
2 × external antennas
Linux support
ALFA’s compatibility table එකේ AWUS036ACM + MT7612U Kali වල out-of-the-box working device එකක් ලෙස listed වෙලා තියෙනවා.
11. Realtek RTL8812AU
Security testing circles වල historically ඉතා ප්රසිද්ධ chipset family එකක් තමයි:
RTL8812AU
උදාහරණයක්:
ALFA AWUS036ACH
Official ALFA specification:
Chipset: Realtek RTL8812AU
Wi-Fi 5 / 802.11ac
2.4 GHz + 5 GHz
2 × RP-SMA antenna connectors
2 × external 5 dBi antennas
Aircrack-ng project එකේ RTL8812AU driver repository එක monitor mode සහ frame injection support එක ගැන සඳහන් කරනවා. හැබැයි එම repository එකේ current README එකේ driver එක deprecated බවත් mac80211-based rtw88 drivers භාවිතා කිරීම recommend කරන බවත් සඳහන්.
මෙතනින් වැදගත් lesson එක:
“මේ chipset එක famous” කියන එක සහ “අද මේක හොඳම Linux choice එක” කියන එක එකම statement එකක් නෙවෙයි.
Driver ecosystem එක වෙනස් වෙනවා.
12. Newer Wi-Fi 6 / 6E Adapters
අද security testing adapter කියලා Wi-Fi 4/5 devices විතරක් බලන්න ඕන නැහැ.
උදාහරණයක්:
ALFA AWUS036AXM
Official specs:
Chipset: MediaTek MT7921AUN
Wi-Fi 6 / 6E
2.4 GHz
5 GHz
6 GHz
Bluetooth 5.2
2 × RP-SMA
USB 3.2 Gen 1
ALFA AWUS036AXML
මෙයත්:
MT7921AUN
Wi-Fi 6/6E
2.4 / 5 / 6 GHz
2 × external antennas
USB-C
වගේ capabilities තියෙන current-generation device එකක්.
Aircrack-ngගේ current FAQ එකේ AWUS036AXML සහ AWUS036AXM දෙකම Wi-Fi 6E class එකේ current “best in class” options ලෙස සඳහන් කරනවා. එම source එකේ AWUS036ACH ගැන driver instability ද සඳහන් කරනවා.
13. ඇයි Dual-Band adapter එකක් useful?
Wi-Fi environment එක 2.4 GHz වලට විතරක් සීමා වෙලා නැහැ.
අද network environments වල:
2.4 GHz
5 GHz
6 GHz
වගේ bands තියෙනවා.
2.4 GHz වල:
Longer range
More interference
Fewer non-overlapping channels
5 GHz වල:
Higher channel availability
Higher typical throughput
Shorter range
6 GHz වල:
Newer Wi-Fi generations
Additional spectrum
Wi-Fi 6E/7 ecosystem
වගේ differences තියෙනවා.
ඒ නිසා modern wireless assessment වල adapter එකේ frequency support වැදගත්.
14. External Antenna එකෙන් ලැබෙන වාසිය මොකක්ද?
External antenna එකක් තියෙන adapter එකක් compact laptop Wi-Fi card එකකට වඩා physically flexible.
උදාහරණයක්:
Internal laptop antenna
↓
small + integrated
External USB adapter
↓
replaceable antenna
↓
different antenna options
ALFA devices කිහිපයක RP-SMA connectors තියෙන නිසා antennas replace කරන්න පුළුවන්. උදාහරණයක් ලෙස AWUS036ACH සහ AXM/AXML families වල detachable antennas තියෙනවා.
හැබැයි මෙතනත් misconception එකක් තියෙනවා:
Bigger antenna = automatically better hacking
නැහැ.
Antenna gain, radiation pattern, frequency, environment, placement සහ regulatory power limits සියල්ල බලපානවා.
15. Adapter එකක් තෝරද්දි බලන්න ඕන ප්රධානම දේවල්
Security lab එකකට adapter එකක් තෝරනවා නම් මේ checklist එක useful.
[ ] Monitor mode
[ ] Packet injection
[ ] Linux driver support
[ ] Current kernel compatibility
[ ] 2.4 GHz support
[ ] 5 GHz support
[ ] 6 GHz support (අවශ්ය නම්)
[ ] External antenna support
[ ] USB compatibility
[ ] VM passthrough compatibility
[ ] Power requirements
[ ] Driver stability
ඒ අතරින් driver support එක underappreciated factor එකක්.
16. Kali Linux එකේ Adapter එක හඳුනාගන්නේ කොහොමද?
පළමුව:
ip link
හෝ:
iw dev
භාවිතා කරන්න.
ඊළඟට:
iw list
මෙයින් hardware/driver capabilities ගැන වැඩි information ගන්න පුළුවන්.
USB adapter එකක් නම්:
lsusb
PCIe/internal adapter එකක් නම්:
lspci
මේ commands වලින් hardware එක OS එකට detect වෙලාද කියලා identify කරන්න පුළුවන්.
17. Monitor Mode Enable කරන Basic Kali Workflow එක
Kali Linux වල commonly used tool එකක්:
airmon-ng
පළමුව interface එක identify කරන්න:
sudo airmon-ng
උදාහරණයක්:
PHY Interface Driver Chipset
phy0 wlan0 ath9k_htc Atheros AR9271
ඊළඟට interfering processes check කරන්න:
sudo airmon-ng check
Kali documentation අනුව NetworkManager, wpa_supplicant වගේ processes monitor-mode workflows වලට interfere වෙන්න පුළුවන්.
Lab environment එකක් නම් relevant processes terminate කිරීමට Aircrack-ng workflow එකේ:
sudo airmon-ng check kill
භාවිතා කරනවා.
ඊළඟට:
sudo airmon-ng start wlan0
සමහර configurations වල:
wlan0
↓
wlan0mon
වගේ monitor interface එකක් create වෙනවා. Kali documentation එකේ මේ behavior එක example එකක් ලෙස පෙන්වනවා.
18. Monitor Mode එක Verify කරන්නේ කොහොමද?
iw dev
output එකේ:
type monitor
වගේ entry එකක් තිබුණොත් interface එක monitor type එකේ ඇති බව confirm කරන්න පුළුවන්.
Aircrack-ng workflow එකේ wlan0mon වැනි interface එකක් monitor mode interface එක ලෙස භාවිතා කරනවා.
19. iw වලින් Directly Monitor Interface එකක් හදන්නත් පුළුවන්
Aircrack-ng use නොකර Linux wireless tools වලින් monitor interface එක create කළ හැක.
Linux Wireless documentation example:
sudo iw phy phy0 interface add mon0 type monitor
ඊළඟට channel එක set කරන්න:
sudo iw dev mon0 set channel 7
හෝ frequency එකෙන්:
sudo iw dev mon0 set freq 2442
ඊට පස්සේ:
tcpdump
Wireshark
tshark
වගේ tools භාවිතා කරලා capture කරන්න පුළුවන්.
20. airodump-ng මොකක්ද?
Aircrack-ng suite එකේ wireless packet capture tool එකක්:
sudo airodump-ng wlan0mon
මේකෙන් wireless environment එකේ visible networks සහ stations ගැන useful information එකක් ලබාගන්න පුළුවන්.
Aircrack-ng documentation එකේ airodump-ng wireless packet capture tool එකක් බව සහ monitor-mode interface එකක් භාවිතා කරන workflow එක documented කරලා තියෙනවා.
21. Packet Injection කියන්නේ මොකක්ද?
මෙය monitor mode එකෙන් වෙනස්.
Injection කියන්නේ:
Wireless interface එක හරහා crafted 802.11 frames transmit කිරීම.
Linux kernel documentation එකේ monitor-mode interface එකකට arbitrary packets inject කිරීමේ architecture එක documented කරලා තියෙනවා.
ඒ capability එක security research වල:
Protocol testing
Frame behavior testing
Wireless security assessments
Research
Lab simulations
වගේ භාවිතයන්ට යොදාගන්න පුළුවන්.
නමුත් මෙය unauthorized networks වල disruption හෝ attacks සඳහා භාවිතා කිරීම සුදුසු නැහැ.
22. Monitor Mode + Injection = Same Thing?
නැහැ.
මේක remember කරන්න:
Monitor Mode
=
Receive / Observe
Packet Injection
=
Transmit crafted frames
Adapter එක:
Monitor: YES
Injection: NO
වෙන්න පුළුවන්.
ඒ වගේම:
Monitor: YES
Injection: YES
වෙන්නත් පුළුවන්.
23. Driver එක මෙතන මෙච්චර වැදගත් ඇයි?
Linux wireless architecture එකේ:
Hardware
↓
Chipset
↓
Driver
↓
Kernel wireless stack
↓
Userspace tools
වගේ dependency chain එකක් තියෙනවා.
ඒ නිසා hardware capable වුණත් driver එක particular feature එක expose නොකරනවා නම්:
Hardware support
+
Driver support
+
Kernel support
සියල්ල match වෙන්න ඕන.
Aircrack-ng documentation එක vendor drivers, staging drivers සහ kernel/mac80211 drivers අතර support differences ගැන විස්තර කරනවා. Kernel/mac80211 driver එකක් තිබුණොත් monitor-mode support ලැබීමට chances වැඩි වුණත් injection එක automatic guarantee එකක් නෙවෙයි.
24. USB Adapter එකක් Kali VM එකක භාවිතා කරන එක
මෙයත් important.
ඔයා:
Windows Host
↓
VirtualBox / VMware
↓
Kali Linux VM
වගේ environment එකක ඉන්නවා නම් laptop එකේ internal Wi-Fi card එක Kali VM එකට direct wireless hardware එකක් වගේ expose වෙන එක සාමාන්යයෙන් සරල දෙයක් නෙවෙයි.
Kali documentation එක සඳහන් කරන විදිහට VM environment එකක external USB wireless card එකක් attach කිරීම practical solution එකක් වෙන්න පුළුවන්.
ඒ නිසා security lab එකකට:
External USB Wi-Fi Adapter
+
USB Passthrough
ගොඩක් practical setup එකක්.
25. Raspberry Pi වල situation එක
Raspberry Pi වල onboard Wi-Fi ගැනත් myth එකක් තියෙනවා.
Kali 2025.1 update එකේ Raspberry Pi wireless support Nexmon integration හරහා monitor mode සහ injection support පැත්තෙන් වැඩි දියුණු කරලා තිබෙන බව Kali blog එක කියනවා. Raspberry Pi onboard Wi-Fi එක කලින් default ලෙස මේ capabilities වලට සීමා තිබුණා.
ඒ නිසා:
“Raspberry Pi onboard Wi-Fi එකෙන් monitor mode බැහැ.”
කියලා හැම version එකකටම apply වෙන absolute statement එකක් අද වලංගු නැහැ.
Version + chipset + kernel + Nexmon support බලන්න ඕන.
26. “High Power” Adapter එකක් ගත්තොත් හොඳම එකද?
නැහැ.
Marketing එකේ:
High Power
Long Range
1000mW
2000mW
වගේ numbers දැක්කා කියලා security testing සඳහා ඒක automatically better adapter එකක් වෙන්නේ නැහැ.
Relevant metrics:
Driver stability
Receive sensitivity
Chipset support
Monitor support
Injection reliability
Band support
Antenna quality
Kernel compatibility
වඩා practical.
තවද transmit power එක වැඩි කිරීම regulatory restrictions සහ interference considerations සමඟ බැඳී තිබෙනවා.
27. Old Adapter එකක් හොඳයිද New Adapter එකක් හොඳයිද?
මේක use case එක මත වෙනස්.
උදාහරණයක්:
AR9271
Advantages:
Mature ecosystem
2.4 GHz
Widely documented
Strong Linux/security-tool history
Disadvantage:
No modern 5 GHz / 6 GHz
Older 802.11 generation
MT7612U
Advantages:
2.4 GHz + 5 GHz
802.11ac
Linux support
MT7921AUN
Advantages:
Wi-Fi 6/6E
2.4 + 5 + 6 GHz
Modern hardware
නමුත් newer hardware කියන්නේ සෑම security tool එකකටම older hardware එකට වඩා automatically better compatibility කියන එක නෙවෙයි.
Software ecosystem එකත් equally important.
28. අද Security Lab එකකට Adapter එකක් තෝරනකොට?
Current documentation එක අනුව practical examples විදිහට:
2.4 GHz focused lab
ALFA AWUS036NHA / AR9271
Stable dual-band oriented lab
ALFA AWUS036ACM / MT7612U
Modern Wi-Fi 6/6E lab
ALFA AWUS036AXM / MT7921AUN
හෝ
ALFA AWUS036AXML / MT7921AUN
Current Aircrack-ng FAQ එකේ AXM/AXML current high-end choices ලෙස සඳහන් වෙනවා.
නමුත් purchase decision එකේදී current Linux kernel compatibility එකත් check කරන්න.
29. Adapter එකක් ගන්න කලින් කරන්න ඕන වැදගත්ම research එක
Amazon / AliExpress / local shop එකේ:
“Supports Kali Linux”
කියන sentence එක දැක්කාම ඒකෙන් stop වෙන්න එපා.
මේවා check කරන්න:
Exact model
Exact hardware revision
Exact chipset
Linux driver
Monitor mode
Packet injection
Current kernel support
2.4 GHz
5 GHz
6 GHz
විශේෂයෙන්:
Version 1
Version 2
Version 3
වගේ hardware revisions තියෙන device එකක් නම් exact revision එක verify කරන්න.
Kali NetHunter documentation එක පවා TP-Link TL-WN722N සඳහා v1 සහ later revisions අතර support වෙනස් විය හැකි බව explicitly සඳහන් කරනවා.
30. Common Misconceptions
“Monitor mode දැම්මම Wi-Fi hack කරන්න පුළුවන්.”
Wrong.
Correct:
Monitor mode mainly provides low-level wireless frame observation/capture.
“Every Wi-Fi adapter supports monitor mode.”
Wrong.
Hardware + driver limitations තියෙනවා.
“Monitor mode automatically means injection.”
Wrong.
Injection is a separate capability.
“ALFA කියන්නේ hacking brand එකක්.”
Wrong.
ALFA සාමාන්ය network hardware manufacturer එකක්. Security researchersලා එහි සමහර models තෝරන්නේ Linux/security-tool compatibility, antennas, chipsets වගේ factors නිසා.
“More antennas = more hacking power.”
Wrong.
Antenna configuration affects radio performance, not whether the device possesses some magical hacking feature.
31. එකම adapter එකක් හැම security task එකකටම perfect නැහැ
Professional wireless assessment එකකදී sometimes:
Adapter 1
↓
2.4 GHz monitoring
Adapter 2
↓
5 GHz monitoring
Adapter 3
↓
Specialized research/testing
වගේ multi-adapter setup එකක් useful වෙන්න පුළුවන්.
ඒකට හේතුව channel/band limitations.
එක adapter එකක් එක් අවස්ථාවක එක channel එක monitor කරන විට:
Adapter
↓
Channel 6
වෙලා තියෙනවා නම් ඒ මොහොතේ වෙනත් channel එකක traffic capture නොවෙන්න පුළුවන්.
මේ නිසා multi-radio setups professional environments වල වැදගත්.
32. Monitor Mode වල “Channel” එක ඇයි important?
Wi-Fi spectrum එක channels වලට බෙදිලා තියෙනවා.
උදාහරණයක්:
2.4 GHz
Channel 1
Channel 6
Channel 11
වගේ.
Adapter එක:
Channel 6
listen කරමින් ඉන්නකොට channel 11 එකේ traffic automatically capture වෙන්නේ නැහැ.
එහෙම නිසා wireless capture tools channel hopping techniques භාවිතා කරනවා.
නමුත් specific AP/network එකක් analyze කරන lab environment එකකදී exact channel එකට lock කිරීම useful වෙන්න පුළුවන්.
33. Monitor Mode එකෙන් Network Troubleshooting කරන්න පුළුවන්ද?
ඔව්.
උදාහරණයක්:
Client disconnecting
Signal unstable
Roaming issue
Authentication problems
Channel congestion
Unexpected management frames
වගේ problems investigate කරන්න packet capture extremely useful.
එතකොට monitor mode එක “hacking mode” එකකට වඩා:
Wireless visibility mode
වගේ හිතන එක technically better.
34. Security Defendersලාට Monitor Mode වැදගත් ඇයි?
Attackersලා wireless network එක observe කරනවා නම් defendersලාත් ඒ behavior එක understand කරන්න ඕන.
උදාහරණ:
Rogue AP
↓
Unknown SSID
↓
Suspicious wireless activity
↓
Frame analysis
↓
Investigation
Wireless intrusion detection / monitoring systems වල packet-level visibility important.
ඒ නිසා monitor mode knowledge එක ethical hackersලාට විතරක් නෙවෙයි:
SOC Analysts
Network Engineers
Wireless Engineers
Incident Responders
Security Researchers
Penetration Testers
වගේ roles වලටත් useful.
35. Practical Lab Workflow
තමන්ගේ lab එකේ basic wireless research workflow එක roughly මෙහෙම හිතන්න:
USB Wi-Fi Adapter
↓
Identify chipset
↓
Verify driver
↓
Check capabilities
↓
Enable monitor mode
↓
Select channel
↓
Capture frames
↓
Analyze with Wireshark / Aircrack-ng
↓
Document findings
මේක තමයි core workflow එක.
“Tool එක install කරලා button එකක් click කරලා Wi-Fi hack කරනවා” කියන model එකට වඩා මේ architecture එක තේරුම් ගැනීම වැදගත්.
36. Useful Commands Cheat Sheet
Interfaces
ip link
iw dev
USB device
lsusb
Wireless capabilities
iw list
Aircrack-ng interface information
sudo airmon-ng
Check interfering processes
sudo airmon-ng check
Enable monitor mode
sudo airmon-ng start wlan0
Stop monitor mode
sudo airmon-ng stop wlan0mon
Kali’s current Aircrack-ng documentation these commands and the managed/monitor interface transition explicitly documents.
Create monitor interface with iw
sudo iw phy phy0 interface add mon0 type monitor
Set channel
sudo iw dev mon0 set channel 7
Capture with tcpdump
sudo tcpdump -i mon0
Linux Wireless documentation directly documents this monitor-interface + tcpdump workflow.
37. මේකෙන් මතක තියාගන්න ඕන Core Concept එක
Wi-Fi Adapter
↓
Chipset
↓
Driver
↓
Linux Kernel
↓
Wireless Interface
↓
Monitor Mode
↓
802.11 Frame Visibility
ඒකෙන් පස්සේ:
Capture
↓
Analyze
↓
Understand
↓
Assess Security
මේක තමයි professional mindset එක.
Final Takeaway
Monitor Mode කියන්නේ Wi-Fi hacking button එකක් නෙවෙයි.
එය wireless interface එකට 802.11 radio traffic observe/capture කිරීමට ඉඩ දෙන operating mode එකක්.
Security testing world එකේ ඒක important වෙන්නේ:
Reconnaissance
Packet Capture
Protocol Analysis
Wireless Troubleshooting
Security Research
Defensive Monitoring
Authorized Penetration Testing
වගේ වැඩ සඳහා.
ඒ වගේම adapter එකක් තෝරනකොට brand එක බලන එකට වඩා chipset + driver + monitor support + injection support + frequency bands + current Linux compatibility බලන එක වැදගත්.
Current examples අතර:
AR9271
MT7612U
RTL8812AU
MT7921AUN
වගේ chipsets හමුවෙනවා.
ඒත් “මේ chipset එක famous” ≠ “මේක අද සියලුම Kali kernels/tools වල perfect”.
Software ecosystem එක වෙනස් වෙන නිසා current documentation check කිරීම අනිවාර්යයි.
Monitor Mode එකෙන් Wi-Fi network එක “hack” කරන්නේ නැහැ — wireless medium එකේ සිදුවන 802.11 communication එක low-level ලෙස observe කරලා security analysis කරන්න අවශ්ය visibility එක ලබාගන්නවා.
මේ techniques තමන්ගේම lab එකක, CTF/sandbox එකක, හෝ explicit authorization තියෙන environment එකක විතරක් භාවිතා කරන්න.
Fsociety.LK
