官术网_书友最值得收藏!

Enabling monitor mode manually

With the latest update of aircrack-ng, airmon-ng stopped working for some wireless cards. It will actually say that it enabled monitor mode on wlan0mon; so, instead of just using mon0, it's going to start calling wireless cards wlan0mon. When we try to use this card, it might not work in monitor mode, even though the card supports monitor mode. For now, with Kali 2.1, it is recommend using a different method for enabling monitor mode. This method is actually the manual method for enabling monitor mode.

Our wireless card is wlan0, so let's just take a look at it. We use the iwconfig wlan0 command; the wireless card can be seen in the following screenshot, following command execution:

As we can see in the preceding screenshot, wlan0 is now in managed mode. So, what we are going to do is enable it by using the manual method. We're going to disable the card using the ifconfig wlan0 down command, the same way that we did in the previous method, and the card will be disabled.

Now, the next command will be to enable monitor mode on the card: it's iwconfig wlan0, the name of the card, and then mode monitor. It's very simple: iwconfig wlan0 mode monitor. Then, we press Enter, and it's done.

Now, if there are no error messages, it means that the commands are running successfully. We can then enable the card again, so we will execute ifconfig wlan0 up, which will bring up the card. If we use iwconfig wlan0, the card will be in monitor mode:

So, in this part, we have actually used the old method of enabling monitor mode, if we have used airmon-ng, and then we will be using wlan0mon as the card in monitor mode, but if we use the old method, then wlan0 is the one that's going to be in monitor mode. We are going to use wlan0 instead of wlan0mon, because monitor mode is now enabled on wlan0.

This card now works perfectly, and monitor mode is enabled on it. We can choose any method we want, but this method will work on all cards, whereas the aircrack and airmon-ng methods will only work on some cards.

主站蜘蛛池模板: 沽源县| 武清区| 山东| 普陀区| 紫金县| 阜阳市| 丽水市| 平陆县| 刚察县| 和政县| 喀什市| 天峨县| 东阳市| 泽库县| 五台县| 江津市| 山阳县| 和林格尔县| 金昌市| 张掖市| 嵊州市| 宜昌市| 康马县| 安图县| 嘉黎县| 离岛区| 朝阳市| 武平县| 扶沟县| 临澧县| 保靖县| 河池市| 临颍县| 惠东县| 满洲里市| 闻喜县| 灵璧县| 滨海县| 上虞市| 岳普湖县| 阿图什市|