Skip to content

Latest commit

 

History

History
55 lines (49 loc) · 1.29 KB

Wi-Fi.md

File metadata and controls

55 lines (49 loc) · 1.29 KB

Set a Wi-Fi card into monitor mode

ip link set wlan0 down
airmon-ng check kill
iw dev wlan0 set monitor control
ip link set wlan0 up

Tip

Adding a new interface may resolve some errors (Capturing Wireless LAN Packets in Monitor Mode with iw).

iw dev wlan0 del
iw phy phy0 interface add mon0 type monitor
ip link set mon0 up

Monitor a specific ESSID

airodump-ng -a --essid "[name]" --wps --band abg --manufacture --berlin 3600 -c64,100 -f 2000 [wlan0]

Manually capturing wireless LAN packets

iw dev mon0 set freq 2437
tcpdump -i mon0 -n -w wireless.cap

Supported frequencies and their corresponding values can be found by

iw phy | grep "MHz \["

Change country

Get the current setup

iw reg get

Set new country

iw reg set JP

Hijack an IP address using a MAC address

ip link set wlan0 down
# macchanger -m [hijacked MAC] wlan0
ip link set dev wlan0 address [hijacked MAC]
ip link set wlan0 up
dhclient wlan0

One-liner

ip link set wlan0 down; ip link set dev wlan0 address [hijacked MAC]; ip link set wlan0 up; dhclient wlan0