LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

airtun-ng

Create virtual tunnel interfaces for encrypted WiFi traffic

TLDR

Create a virtual tunnel interface
$ sudo airtun-ng -a [AP_BSSID] [wlan0mon]
copy
Create tunnel with WEP key
$ sudo airtun-ng -a [AP_BSSID] -w [hex_key] [wlan0mon]
copy
Create tunnel with WPA passphrase
$ sudo airtun-ng -a [AP_BSSID] -p [passphrase] -e [SSID] [wlan0mon]
copy
Bidirectional tunnel (inject and receive)
$ sudo airtun-ng -a [AP_BSSID] -w [hex_key] -b [wlan0mon]
copy

SYNOPSIS

airtun-ng [-a bssid] [-w wepkey] [-p wpapass -e essid] [options] interface

DESCRIPTION

airtun-ng creates virtual tunnel interfaces (at0, at1, etc.) that allow sending and receiving decrypted traffic to/from a wireless network. This enables using standard network tools with encrypted WiFi networks when you know the key.The tool can operate in WEP or WPA mode, creating a virtual ethernet interface that handles encryption/decryption transparently.

PARAMETERS

-a bssid

Access point MAC address
-w key
WEP key in hexadecimal (encrypt outgoing packets)
-y file
Read PRGA (keystream) from file instead of a WEP key
-p passphrase
WPA passphrase (decrypt packets; use with -a and -e)
-e essid
Network name (required for WPA)
-i iface
Capture packets from this additional interface
-t tods
Frame destination: 0 = to client, 1 = to AP, 2 = WDS/Bridge
-b
Bidirectional mode (send and receive)
-r file
Read frames to inject from a pcap file
-h mac
Source MAC address

INSTALL

sudo apt install aircrack-ng
copy
sudo dnf install aircrack-ng
copy
sudo pacman -S aircrack-ng
copy
sudo apk add aircrack-ng
copy
sudo zypper install aircrack-ng
copy
brew install aircrack-ng
copy
nix profile install nixpkgs#aircrack-ng
copy

CAVEATS

For authorized testing only. Interface must be in monitor mode. WPA mode requires the 4-way handshake to be completed. Virtual interface must be configured (IP, etc.) after creation.

HISTORY

airtun-ng was added to the aircrack-ng suite to enable post-exploitation scenarios where captured keys could be used to interact with the network using standard tools.

SEE ALSO

RESOURCES

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid