Bắt đầu

Để bắt đầu thì mình cần máy tính chạy Linux có card WiFi hoặc USB WiFi có hỗ trợ chế độ giám sát (monitor mode)

Điều kiện tiên quyết

  • Qualcomm Atheros AR9462
  • Arch Linux (Linux là đc 🙄)
  • Gói ứng dụng cần thiết:
    • iw
    • iwconfig
    • aircrack-ng

Kiểm tra card WiFi có monitor mode không

Đầu tiên thì xem card WiFi ở đâu ha.

iw dev

Output:

┌[lynx@Arch] [/dev/pts/4] 
└[~]> iw dev        
phy#0
	Interface wlp2s0
		ifindex 3
		wdev 0x1
    [...]

Tiếp theo thì phy#0 có monitor mode không 🤔

iw list

Output:

┌[lynx@Arch] [/dev/pts/4] 
└[~]> iw list 
Wiphy phy0
    [...]
	Available Antennas: TX 0x3 RX 0x3
	Configured Antennas: TX 0x3 RX 0x3
    Supported interface modes:
		* IBSS
		* managed
		* AP
		* AP/VLAN
		* monitor
		* mesh point
		* P2P-client
		* P2P-GO
		* outside context of a BSS
    [...]

Chuyển sang monitor mode nào

Để tránh các chương trình khác chuyển monitor về managed

sudo airmon-ng check

Output:

┌[lynx@Arch] [/dev/pts/4] 
└[~]> sudo airmon-ng check               

Found 2 processes that could cause trouble.
Kill them using 'airmon-ng check kill' before putting
the card in monitor mode, they will interfere by changing channels
and sometimes putting the interface back in managed mode

    PID Name
   7826 NetworkManager
   7840 wpa_supplicant

Giờ thì tắt mấy tiến trình đó nào

sudo airmon-ng check kill

Output:

┌[lynx@Arch] [/dev/pts/4] 
└[~]> sudo airmon-ng check kill

Killing these processes:

    PID Name
   7480 wpa_supplicant

Sau khi chuyển wlp2s0 sang monitor mode thì nó có tên là wlp2s0mon, với câu lệnh như này

sudo airmon-ng start wlp2s0

Output:

┌[lynx@Arch] [/dev/pts/4] 
└[~]> sudo airmon-ng start wlp2s0  


PHY	Interface	Driver		Chipset

phy0	wlp2s0		ath9k		Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
		(mac80211 monitor mode vif enabled for [phy0]wlp2s0 on [phy0]wlp2s0mon)
		(mac80211 station mode vif disabled for [phy0]wlp2s0)

Oke hiện tại máy mình đã bật đc monitor mode, nhưng có vấn đề là máy chỉ có mỗi 1 cái card WiFi nên là nó cũng mất luôn kết nối Internet 🐧.

Dừng monitor mode, kết lại với WiFi

Như ban nãy mình đã đổi thành wlp2s0mon thì bây giờ ngược lại

sudo airmon-ng stop wlp2s0mon

Output:

┌[lynx@Arch] [/dev/pts/4] 
└[~]> sudo airmon-ng stop wlp2s0mon

PHY	Interface	Driver		Chipset

phy0	wlp2s0mon	ath9k		Qualcomm Atheros AR9462 Wireless Network Adapter (rev 01)
		(mac80211 station mode vif enabled on [phy0]wlp2s0)
		(mac80211 monitor mode vif disabled for [phy0]wlp2s0mon)

Oh 🙄, chưa có icon WiFi nào hiện lên cả. Mình cần bật lại tiến trình mà airmon-ng đã tắt ban nãy.

sudo systemctl restart NetworkManager

Output:

┌[lynx@Arch] [/dev/pts/4] 
└[~]> sudo systemctl restart NetworkManager

Kết thúc he 🙄

Kích hoạt Chế độ giám sát là một phương pháp tuyệt vời để đánh hơi và theo dõi xung quanh mạng và bộ định tuyến của bạn. Có một số cách để kích hoạt chế độ giám sát. Phương pháp này có thể không hoạt động cho mọi bộ định tuyến. Vì vậy, hãy thử bất kỳ phương thức một số phương thức khác… 🙄 (mình sẽ cập nhật sau)

Kali Tip Ubuntu Wireless

Leave a Reply

Your email address will not be published. Required fields are marked *