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

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.

主站蜘蛛池模板: 桦川县| 寿光市| 泉州市| 洪江市| 邵东县| 海阳市| 泗洪县| 厦门市| 法库县| 仲巴县| 兴业县| 佛冈县| 平邑县| 汉中市| 招远市| 大洼县| 雅江县| 竹山县| 克山县| 泾源县| 黑龙江省| 龙川县| 北川| 嘉定区| 阳朔县| 铜川市| 廊坊市| 诏安县| 丹江口市| 花莲市| 上思县| 措美县| 武邑县| 沽源县| 襄汾县| 巨野县| 沂源县| 巴塘县| 凤山县| 泾川县| 防城港市|