If this is your first visit, be sure to
check out the Forum Rules by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

airmon-ng cant leave monitor mode

when I crack a wireless network, I have been using airmon-ng to get my card in monitor mode, but when I am done, I typically have to restart to connect to the wireless because I cant get my card out of monitor mode. Is there a better way to do this so I dont have to reboot my laptop?

Depending on your cards interface name, you bring the card down after using it in monitor mode, then back up manually in managed mode to connect to a network. I don't use the GUI apps, as they seem to not work correctly when configuring my cards.

Open a terminal and type the following:

Code:

ifconfig xxx down

where xxx is your cards handle, ex: rausb0 or eth1, etc.
If you don't know your adapters handle, just type "ifconfig" by itself and hit enter(without the quotes). This lists your ethernet adapters and their handles. Most likely, eth0 is your normal ethernet adapter and anything like eth1 or ath0, wifi0, etc, are your wireless adapters. (Lo is just the local loopback for 127.0.0.1)

Then type:

Code:

ifconfig xxx up
iwconfig xxx mode managed

This brings the card up so you can connect to a network. You can't connect to an access point while in monitor mode, although you can inject and send packets to one.

If you wanted to bring up the card in monitor mode

Code:

ifconfig xxx up promisc
iwconfig xxx mode monitor

At this point, you can assign yourself an IP address or just use dchp if you need to connect to the network.

For dhcp

Code:

dhcpcd xxx

then "ifconfig" by itself to show yourself the adapters and the IP address assigned to them.

You shouldn't have to reboot to get your adapters to work properly. You may have to play with the "function key+radio button" on a laptop if you have a built in wireless card, as this sometimes help shut down the card and turn it back on when the GUI apps make a card hang unresponsive. I have to do that on mine in BT2 just to bring the hardware up afer boot, but everything works fine for me in bt3 upon booting.

when I crack a wireless network, I have been using airmon-ng to get my card in monitor mode, but when I am done, I typically have to restart to connect to the wireless because I cant get my card out of monitor mode. Is there a better way to do this so I dont have to reboot my laptop?