There are many WLAN adapter on the market that has the option of running in monitor mode. The TP-Link TL-WN722N WLAN adapter is one of the more accessible and cheap adapters in Scandinavia. Unfortunately, it"s a bit of a pain to get up and running in Kali Linux. Especially the versions you can buy in stores today (v2/v3).

Bạn đang xem: Github

In this article, I will guide you through the process of installing the needed kernel module, & making it run in monitor mode in Kali Linux on a Virtual Machine in VirtualBox.


Before the adapter can be used by Kali Linux, the adapter has to be enabled or attached to lớn the VM. Xuất hiện the settings for the VM, navigate to lớn the USB menu, and showroom the Wi-Fi adapter khổng lồ the VM. This way only the VM will be able khổng lồ use the Wi-Fi adapter, và no other VM or your host OS.


*
địa chỉ the Wi-Fi NIC to the Kali Linux Virtual Machine


To make the adapter appear in the VM you might have to restart it. To kiểm tra if it"s available you run the iwconfig command. If it"s discovered by the Operating System it will appear in the output.


iwconfiglo no wireless extensions.eth0 no wireless extensions. Wlan0 IEEE 802.11g ESSID:"ongirlgames.com" Mode:Managed Frequency:2.427 GHz Access Point: 00:0D:9D:FF:FF:FF Bit Rate=48 Mb/s Tx-Power=20 dBm Sensitivity=8/0 Retry limit:7 RTS thr:off Fragment thr:off nguồn Management:off links Quality=91/100 Signal level=-39 dBm Noise level=-87 dBm Rx invalid nwid:0 Rx invalid crypt:860 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:39 Missed beacon:8
As you can see from the output đầu ra above the adapter was discovered. To enable monitor mode và start using it for ethical hacking you need lớn install a custom kernel module, and enable monitor mode.

Xem thêm: Đi Đường Quyền Là Gì? Tìm Hiểu Về Hot Trend Đi Đường Quyền Là Gì


Before anything can be done, you need khổng lồ have a fully updated version of Kali Linux. In my experience, the 2021 versions of Kali Linux vì not break during updates. But proceed with caution! You might not be as lucky. Your best bet might be to download the newest VirtualBox image & proceed from there. To update Kali run these commands.


Now you must install the Linux kernel header files and the bc programming language packet. Both are necessary dependencies that are needed lớn compile the driver for the Wi-Fi adapter.


Before we can use the new driver we must blacklist the mặc định realtech kernel module (driver). To vì this you first need to login as the root user. Please chú ý that this is not possible to vị with sudo privileges.


sudo airmon-ng PHYInterface DriverChipsetphy0wlan08188euTP-Link TL-WN722N v2/v3
As you can see from the output - the kernel module was successfully installed and running. To enable monitor mode on the adapter run this command:


From the verbose output for the command, you can see that it got activated in monitor mode. Another method of verifying that it is running in monitor mode is lớn run iwconfig:


iwconfig lo no wireless extensions.eth0 no wireless extensions.wlan0 unassociated Nickname:"" Mode:Monitor Frequency=2.457 GHz Access Point: Not-Associated Sensitivity:0/0 Retry:off RTS thr:off Fragment thr:off power nguồn Management:off liên kết Quality=0/100 Signal level=0 dBm Noise level=0 dBm Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0
As you can see from the đầu ra - the NIC is in monitor mode. You are now able khổng lồ use it with wireshark và a lot of other fun networking tools. As a starter you can start running scan for access points and endpoints using airodump-ng:


The Wi-Fi sniffer program airodump-ng will listen in on every channel looking for access points và devices. After a couple of minutes, you should have a menu of all devices in the area. If you were able khổng lồ successfully run airodump-ng using the Wi-Fi adapter you have verified that monitor mode is working correctly.

Congratulations. You now have a working Wi-Fi packet sniffing solution using the TP-Link TL-WN722N. Now, go ahead & use this for good!

Bài viết liên quan

Trả lời

Email của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *