-
Notifications
You must be signed in to change notification settings - Fork 183
01. WiFi Interfaces Management
Koutto edited this page Nov 1, 2020
·
1 revision
ip link show
iwconfig
iwlist chan
iwlist <interface> chan
Get info such as:
- Supported channels/frequencies
- Supported bandwidths
- Supported interface modes (e.g. AP, monitor...)
iw dev # to get phy# value
iw phy phy<value> info # value is 0, 1, 2...
To get technical info about all WiFi interfaces:
iw list
Does not work on every WiFi card
iw reg set B0 # Set regulatory domain to Bolivia
iwconfig wlan0 txpower 30 # Put interface TX Power to 30 Dbm
If returns an error, try second method:
ifconfig wlan0 down
iw reg set BO
ifconfig wlan0 up
iwconfig wlan0 channel 13
iwconfig wlan0 txpower 30
Alternative method:
iw wlan0 set txpower fixed 3000
Manual method:
iw dev wlan0 interface add mon0 type monitor
ifconfig mon0 up
iw dev mon0 set channel <channel> # Set the interface on a specific channel
iw dev mon0 info # Check interface status
Automatic method:
airmon-ng start wlan0
Note: In some cases, some processes (e.g. NetworkManager, wpa_supplicant) might interfere with other tools from aircrack-ng suite. They can be all killed using:
airmon-ng check kill
Delete interface in monitor mode:
iw dev wlan0 del
iwconfig | grep -i monitor
airodump-ng wlan1 --band ag -M -U --wps --beacons -w captureallthewireless
# --band a for 5Ghz
# --band g for 2.4 GHz
#ifconfig wlan0
#aireplay-ng wlan0 -9
10:09:24 Trying broadcast probe requests..
--band <abg>
: 'b' and 'g' uses 2.4GHz and 'a' uses 5GHz
Test if WiFi device can perform injection:
aireplay-ng -9 mon0
aireplay-ng -9 -i mon0 mon1 # Attack (replay) tests (with 2 wifi cards in monitor mode)
Check interface channel & frequency info:
iw dev wlan0 info | grep channel
Set interface to specific channel & to bandwidth = 40MHz:
iw dev wlan0 set channel <channel_number> HT40+
iw dev wlan0 set channel <channel_number> HT40-
Change interface channel
iwconfig <interface> channel <channel_number>
- 01. WiFi Basics
- 02. 802.11 Specifications
- 03. WPS (WiFi Protected Setup)
- 04. WPA Protocol Overview
- 05. WPA/WPA2 Personal (PSK) Authentication
- 06. WPA/WPA2 PSK Traffic Decryption
- 07. WPA/WPA2 Enterprise (MGT)
- 08. Evil Twin Attacks
- 09. 802.11 Network Selection Algorithms
- 01. WiFi Interfaces Management
- 02. WiFi Connection
- 03. WiFi Monitoring (Passive Scanning)
- 04. Hotspot Captive Portal Bypass
- 05. WiFi Denial of Service
- 06. WEP Authentication Cracking
- 07. WPA/WPA2 Personal (PSK) Authentication Cracking
- 08. WPA/WPA2 Enterprise (MGT) Authentication Cracking
- 09. WPA/WPA2 Personal (PSK) Traffic Decryption
- 10. Basic AP (Manual Configuration)
- 11. Open Network (no passphrase) Rogue AP / Evil Twin
- 12. WPA/WPA2 Personal (PSK) Rogue AP / Evil Twin
- 13. WPA/WPA2 Enterprise (MGT) Rogue AP / Evil Twin