AIREPLAY-NG(8)
π
AIREPLAY-NG β the aireplay-ng manual page, section 8 (System Manager's Manual) π
okay bestie, buckle UP, because this is the tool that makes stuff happen on a wireless network when nothing is happening on its own. it lives in the system manager's manual, it's called aireplay-ng, and it is literally the "inject packets into a wireless network to generate traffic" girlie. let's go β¨
πΈ NAME πΈ
aireplay-ng β inject packets into a wireless network to generate traffic
π¦ SYNOPSIS π¦
aireplay-ng [options] <replay interface>
like, that's it. options, then the interface you're replaying on. no cap. π
β¨ DESCRIPTION β¨
so aireplay-ng is the one that injects/replays frames. its whole main character job is generating traffic so that later, aircrack-ng can use it to crack WEP and WPA-PSK keys. periodt.
there are a bunch of different attacks, and they do things like:
- cause deauthentications so you can capture WPA handshake data
- fake authentications
- Interactive packet replay
- hand-crafted ARP request injection
- ARP-request reinjection
and with the packetforge-ng tool, it's possible to create arbitrary frames. iconic combo, fr fr. π«Ά
aireplay-ng supports single-NIC injection/monitor.
β οΈ this feature needs driver patching. not me warning you twice, it's just true, so don't come for me when it doesn't work on a stock driver. π
π OPTIONS π
π the "help me bestie" option
-H,--helpβ shows the help screen. that's the whole vibe.
π Filter options
these are the "which packets are we even talking about" girls. filtering, but make it fashion.
-b<bssid> β MAC address of access point.-d<dmac> β MAC address of destination.-s<smac> β MAC address of source.-m<len> β Minimum packet length.-n<len> β Maximum packet length.-u<type> β Frame control, type field.-v<subt> β Frame control, subtype field.-t<tods> β Frame control, "To" DS bit (0 or 1).-f<fromds> β Frame control, "From" DS bit (0 or 1).-w<iswep> β Frame control, WEP bit (0 or 1).-Dβ Disable AP Detection.
π₯ Replay options
the actual "do the thing" section. this is where the magic happens, bestie.
-x<nbpps> β Number of packets per second.-p<fctrl> β Set frame control word (hex).-a<bssid> β Set Access Point MAC address.-c<dmac> β Set destination MAC address.-h<smac> β Set source MAC address.-g<nb_packets> β Change ring buffer size (default: 8 packets). The minimum is 1.-Fβ Choose first matching packet.-e<essid> β Fake Authentication attack: Set target SSID (see below). For SSID containing special characters, seehttps://www.aircrack-ng.org/doku.php?id=faq#how_to_use_spaces_double_quote_and_single_quote_etc_in_ap_names-o<npackets> β Fake Authentication attack: Set the number of packets for every authentication and association attempt (Default: 1). 0 means auto-q<seconds> β Fake Authentication attack: Set the time between keep-alive packets in fake authentication mode.-Qβ Fake Authentication attack: Sends reassociation requests instead of performing a complete authentication and association after each delay period.-y<prga> β Fake Authentication attack: Specifies the keystream file for fake shared key authentication.-T nβ Fake Authentication attack: Exit if fake authentication fails 'n' time(s).-jβ ARP Replay attack : inject FromDS packets (see below).-k<IP> β Fragmentation attack: Set destination IP in fragments.-l<IP> β Fragmentation attack: Set source IP in fragments.-Bβ Test option: bitrate test.
π¦ Source options
where do the packets come from, bestie? pick one:
-i<iface> β Capture packets from this interface.-r<file> β Extract packets from this pcap file.
π Miscellaneous options
the little extras. the garnish. the bow on top. π
-Rβ disable/dev/rtcusage.--ignore-negative-oneβ if the interface's channel can't be determined ignore the mismatch, needed for unpatched cfg80211--deauth-rc<rc>,-Z<rc> β Provide a reason code when doing deauthication (between 0 and 255). By default, 7 is used: Class 3 frame received from unassociated STA. 0 is a reserved value. Reason codes explanations can be found in the IEEE802.11 standard or inhttps://mrncciew.com/2014/10/11/802-11-mgmt-deauth-disassociation-frames/
β Attack modes
okay this is the main event. the runway walk. each number is a whole different attack, and yes you just pass the number. iconic design honestly. π
-0<count>,--deauth=<count> β This attack sends deauthentication packets to one or more clients which are currently associated with a particular access point. Deauthenticating clients can be done for a number of reasons: Recovering a hidden ESSID. This is an ESSID which is not being broadcast. Another term for this is "cloaked" or Capturing WPA/WPA2 handshakes by forcing clients to reauthenticate or Generate ARP requests (Windows clients sometimes flush their ARP cache when disconnected). Of course, this attack is totally useless if there are no associated wireless client or on fake authentications.-1<delay>,--fakeauth=<delay> β The fake authentication attack allows you to perform the two types of WEP authentication (Open System and Shared Key) plus associate with the access point (AP). This is only useful when you need an associated MAC address in various aireplay-ng attacks and there is currently no associated client. It should be noted that the fake authentication attack does NOT generate any ARP packets. Fake authentication cannot be used to authenticate/associate with WPA/WPA2 Access Points.-2,--interactiveβ This attack allows you to choose a specific packet for replaying (injecting). The attack can obtain packets to replay from two sources. The first being a live flow of packets from your wireless card. The second being from a pcap file. Reading from a file is an often overlooked feature of aireplay-ng. This allows you read packets from other capture sessions or quite often, various attacks generate pcap files for easy reuse. A common use of reading a file containing a packet your created with packetforge-ng.-3,--arpreplayβ The classic ARP request replay attack is the most effective way to generate new initialization vectors (IVs), and works very reliably. The program listens for an ARP packet then retransmits it back to the access point. This, in turn, causes the access point to repeat the ARP packet with a new IV. The program retransmits the same ARP packet over and over. However, each ARP packet repeated by the access point has a new IVs. It is all these new IVs which allow you to determine the WEP key.-4,--chopchopβ This attack, when successful, can decrypt a WEP data packet without knowing the key. It can even work against dynamic WEP. This attack does not recover the WEP key itself, but merely reveals the plaintext. However, some access points are not vulnerable to this attack. Some may seem vulnerable at first but actually drop data packets shorter than 60 bytes. If the access point drops packets shorter than 42 bytes, aireplay-ng tries to guess the rest of the missing data, as far as the headers are predictable. If an IP packet is captured, it additionally checks if the checksum of the header is correct after guessing the missing parts of it. This attack requires at least one WEP data packet.-5,--fragmentβ This attack, when successful, can obtain 1500 bytes of PRGA (pseudo random generation algorithm). This attack does not recover the WEP key itself, but merely obtains the PRGA. The PRGA can then be used to generate packets with packetforge-ng which are in turn used for various injection attacks. It requires at least one data packet to be received from the access point in order to initiate the attack.-6,--caffe-latteβ In general, for an attack to work, the attacker has to be in the range of an AP and a connected client (fake or real). Caffe Latte attacks allows one to gather enough packets to crack a WEP key without the need of an AP, it just need a client to be in range.-7,--cfragβ This attack turns IP or ARP packets from a client into ARP request against the client. This attack works especially well against ad-hoc networks. As well it can be used against softAP clients and normal AP clients.-8,--migmodeβ This attack works against Cisco Aironet access points configured in WPA Migration Mode, which enables both WPA and WEP clients to associate to an access point using the same Service Set Identifier (SSID). The program listens for a WEP-encapsulated broadcast ARP packet, bitflips it to make it into an ARP coming from the attacker's MAC address and retransmits it to the access point. This, in turn, causes the access point to repeat the ARP packet with a new IV and also to forward the ARP reply to the attacker with a new IV. The program retransmits the same ARP packet over and over. However, each ARP packet repeated by the access point has a new IV as does the ARP reply forwarded to the attacker by the access point. It is all these new IVs which allow you to determine the WEP key.-9,--testβ Tests injection and quality.
π§ FRAGMENTATION VERSUS CHOPCHOP π§
the eternal debate. the feud. the ~drama~. let's break it down bestie, because they're both serving something different.
π¦ Fragmentation
Pros
- Can obtain the full packet length of 1500 bytes XOR. This means you can subsequently pretty well create any size of packet.
- May work where chopchop does not
- Is extremely fast. It yields the XOR stream extremely quickly when successful.
Cons
- Setup to execute the attack is more subject to the device drivers. For example, Atheros does not generate the correct packets unless the wireless card is set to the mac address you are spoofing.
- You need to be physically closer to the access point since if any packets are lost then the attack fails.
π Chopchop
Pro
- May work where frag does not work.
Cons
- Cannot be used against every access point.
- The maximum XOR bits is limited to the length of the packet you chopchop against.
- Much slower then the fragmentation attack.
π AUTHOR π
This manual page was written by Adam Cecile <gandalf@le-vert.net> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version published by the Free Software Foundation On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
okay that's not even the whole thing, there's more coming, don't go anywhere bestie π«Άβ¨
π¦ SEE ALSO π¦
okay bestie, you made it to the very end, and this is the part where the manpage hands you the whole friend group π. these are all the other pages in the family, listed exactly as they're listed, no edits, no cuts. go read them, they're all part of the same slay-adjacent ecosystem π«Ά.
the section-8 girlies (system/admin energy, main character stuff):
airbase-ng(8)airmon-ng(8)airodump-ng(8)airodump-ng-oui-update(8)airserv-ng(8)airtun-ng(8)besside-ng(8)easside-ng(8)tkiptun-ng(8)wesside-ng(8)airventriloquist(8)
and the section-1 besties (user-command energy, equally iconic):
aircrack-ng(1)airdecap-ng(1)airdecloak-ng(1)airolib-ng(1)besside-ng-crawler(1)buddy-ng(1)ivstools(1)kstats(1)makeivs-ng(1)packetforge-ng(1)wpaclean(1)
not me ending the page with a whole twenty-two-entry roster π that's the entire extended universe right there. take your time, no rush, they're not going anywhere π
and that's a wrap on AIREPLAY-NG(8) fr fr πΈ β this is Version 1.7.0, dated May 2022, and it ate, no cap. go forth and be iconic with it, bestie πβ¨π
π¦ where this page comes from
- alpine 3.24: aircrack-ng-doc 1.7-r5 Β· GPL-2.0-or-later
- arch rolling: aircrack-ng 1.7-7 Β· GPL-2.0-only AND BSD-3-Clause AND OpenSSL
- debian bookworm: aircrack-ng 1:1.7-5 Β· GPL-2.0-or-later
- debian trixie: aircrack-ng 1:1.7+git20230807.4bf83f1a-2 Β· GPL-2.0-or-later
- fedora 43: aircrack-ng 1.7-10.fc43 Β· GPL-2.0-or-later
- fedora 43: aircrack-ng 1.7-10.fc43 Β· GPL-2.0-or-later
- fedora 44: aircrack-ng 1.7-12.fc44 Β· GPL-2.0-or-later
- fedora 44: aircrack-ng 1.7-12.fc44 Β· GPL-2.0-or-later
- nixos 26.05: aircrack-ng 1.7
- nixpkgs unstable: aircrack-ng 1.7
- ubuntu noble: aircrack-ng 1:1.7+git20230807.4bf83f1a-1build2 Β· GPL-2.0-or-later
- ubuntu questing: aircrack-ng 1:1.7+git20230807.4bf83f1a-2ubuntu1
- ubuntu resolute: aircrack-ng 1:1.7+git20230807.4bf83f1a-2ubuntu2 Β· GPL-2.0-or-later
- ubuntu stonking: aircrack-ng 1:1.7+git20230807.4bf83f1a-3build1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms