Results 1 to 9 of 9

Thread: Difference Between: "iwconfig wlan0 mode monitor" and "airmon-ng start wlan0"?

  1. #1
    Join Date
    2015-Dec
    Posts
    5

    Difference Between: "iwconfig wlan0 mode monitor" and "airmon-ng start wlan0"?

    Hello

    I tried searching but I couldn't find anyone explain the difference between:

    ifconfig wlan0 down
    iwconfig wlan0 mode monitor
    ifconfig wlan0 up

    AND

    airmon-ng start wlan0


    Both these methods place the wireless adapter into monitor mode except iwconfig keeps the monitor mode on wlan0 and airmon-ng starts monitor mode on mon0. Is one of them better/worse or has some kind of advantage/disadvantage over the other? Please explain.

    Thanks

  2. #2
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    805
    I'm no wireless expert, but there's no difference that I know. I prefer using airmon-ng to put my wireless card in monitor mode, just because it's less typing.

  3. #3
    Join Date
    2014-Jan
    Posts
    1
    From what I know, airmon-ng is part of the aircrack suite. Whereas the 'iwconfig' method should run natively on any Linux box using commands already present. Also airmon-ng creates a virtual interface, hence the mon0, but the 'iwconfig' method does not. It seems from my experience airmon-ng won't work on some hardware either. I was having trouble with a broadcom card and airmon-ng. It was creating a strange interface (wlan0mon) and wouldn't go into monitor mode. But using the 'iwconfig' method, no problem. It works on all my cards perfectly. I just throw the commands into a bash script for ease.

  4. #4
    Join Date
    2015-Dec
    Posts
    9
    Hi Kalikali et All,

    I seem to be having trouble with
    airmon-ng as well (getting a wlan0mon interface), running Edimax USB.

    What's the command then to turn off monitor mode in iwconfig, since you said it keeps mon mode on? Or will a reboot be needed to reset?

    Thanks,

    Chemikul30
    Last edited by chemikul30; 2015-12-15 at 00:48.

  5. #5
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    805
    To turn off monitor mode, you'll need to bring your device down, then back up. In your case, using ifconfig wlan0 down, then ifconfig wlan0 up should do it.

  6. #6
    Join Date
    2015-Dec
    Posts
    9
    Quote Originally Posted by grid View Post
    To turn off monitor mode, you'll need to bring your device down, then back up. In your case, using ifconfig wlan0 down, then ifconfig wlan0 up should do it.
    Thanks Grid. I could've thought that one through some and tested. Thx for the functional fix!!

    checmikul30

  7. #7
    To bring the interface back, you should have to bring it down first then type

    iwconfig wlan0 mode managed

  8. #8
    Join Date
    2015-Dec
    Posts
    9
    Quote Originally Posted by aanarchyy View Post
    To bring the interface back, you should have to bring it down first then type

    iwconfig wlan0 mode managed
    I noticed that down/up didn't change the mode back. Thanks for the integral step aanarchy!!

    chem'30.

  9. #9
    Join Date
    2013-Apr
    Location
    Kali forums
    Posts
    805
    No problem, chemikul30

Similar Threads

  1. Replies: 1
    Last Post: 2022-08-11, 21:23
  2. Replies: 1
    Last Post: 2020-07-02, 12:15
  3. Running "airmon-ng start wlan0" command
    By Cryptic-F in forum TroubleShooting Archive
    Replies: 3
    Last Post: 2016-04-15, 08:47
  4. Replies: 1
    Last Post: 2014-07-29, 18:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •