<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Userbot</title>
    <description>The latest articles on DEV Community by Userbot (@tfmbot).</description>
    <link>https://dev.to/tfmbot</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3382806%2F940620bc-1d45-4a4b-8c0b-40ff7fbd7d6c.png</url>
      <title>DEV Community: Userbot</title>
      <link>https://dev.to/tfmbot</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tfmbot"/>
    <language>en</language>
    <item>
      <title>hcxdupcap: Real-Time WPA Handshake Capture &amp; Cracking Toolkit</title>
      <dc:creator>Userbot</dc:creator>
      <pubDate>Wed, 23 Jul 2025 19:56:12 +0000</pubDate>
      <link>https://dev.to/tfmbot/hcxdupcap-real-time-wpa-handshake-capture-cracking-toolkit-3ogg</link>
      <guid>https://dev.to/tfmbot/hcxdupcap-real-time-wpa-handshake-capture-cracking-toolkit-3ogg</guid>
      <description>&lt;p&gt;🔗 &lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/tfmbot/hcxdupcap" rel="noopener noreferrer"&gt;tfmbot/hcxdupcap&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🔍 What This Tool Does
&lt;/h2&gt;

&lt;p&gt;This Python-based script automates the full cycle of capturing WPA/WPA2 handshakes, extracting them, and optionally cracking them using hashcat. It's built for Wi-Fi security auditing and wraps around powerful existing tools.&lt;/p&gt;




&lt;h2&gt;
  
  
  ⚙️ Workflow Summary
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Capture WPA Handshakes&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Uses &lt;code&gt;hcxdumptool&lt;/code&gt; to capture raw Wi-Fi traffic (&lt;code&gt;.pcapng&lt;/code&gt;) from a selected wireless interface.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Monitor &lt;code&gt;.pcapng&lt;/code&gt; in Real Time&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A watchdog process monitors the output file for changes.&lt;/li&gt;
&lt;li&gt;When updated, it automatically runs &lt;code&gt;hcxpcapngtool&lt;/code&gt; to extract WPA hashes.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Parse and Log Handshakes&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Extracted hashes are:

&lt;ul&gt;
&lt;li&gt;Saved to &lt;code&gt;hash.hc22000&lt;/code&gt; (for use with hashcat)&lt;/li&gt;
&lt;li&gt;Logged with SSID info to &lt;code&gt;SsidHash.txt&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Duplicate hashes are skipped using a set of known hashes in memory.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Check and Install Dependencies&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Automatically checks for required tools: &lt;code&gt;hcxdumptool&lt;/code&gt;, &lt;code&gt;hcxpcapngtool&lt;/code&gt;, &lt;code&gt;hashcat&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Installs missing ones using &lt;code&gt;apt&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Start Monitor Mode Automatically&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Stops &lt;code&gt;NetworkManager&lt;/code&gt; and &lt;code&gt;wpa_supplicant&lt;/code&gt; before capture.&lt;/li&gt;
&lt;li&gt;Restarts them safely after capture ends.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Crack Captured WPA Hashes (Optional)&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Offers to crack captured handshakes using &lt;code&gt;hashcat&lt;/code&gt; and the &lt;code&gt;rockyou.txt&lt;/code&gt; wordlist.&lt;/li&gt;
&lt;li&gt;Attempts to find &lt;code&gt;rockyou.txt&lt;/code&gt; or prompts to download it if not found.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  🧠 Example Workflow
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;python3 hcxdupcap.py &lt;span class="nt"&gt;-i&lt;/span&gt; wlan0 &lt;span class="nt"&gt;-w&lt;/span&gt; mycapture.pcapng
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Replace &lt;code&gt;wlan0&lt;/code&gt; with your Wi-Fi interface in monitor mode.&lt;/li&gt;
&lt;li&gt;Default output is &lt;code&gt;capture.pcapng&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  📁 Output Files
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;File&lt;/th&gt;
&lt;th&gt;Description&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;capture.pcapng&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Raw capture from &lt;code&gt;hcxdumptool&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;hash.hc22000&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Extracted WPA hashes for hashcat&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;SsidHash.txt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Readable log of hashes + SSIDs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;passwordcracked.txt&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Output of cracked passwords&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;




&lt;p&gt;Use responsibly. 🔐&lt;/p&gt;

</description>
      <category>linux</category>
      <category>ubuntu</category>
      <category>programming</category>
      <category>wifi</category>
    </item>
  </channel>
</rss>
