
Zarcolio/flipperzero packages Ducky Script payloads and PowerShell generators for the Flipper Zero's Bad USB mode, aimed at security awareness demonstrations and authorized red team assessments.
| Tool | Zarcolio/flipperzero — a collection of Ducky Script payloads and PowerShell helper scripts for Flipper Zero Bad USB / Bad KB workflows |
| Category | Bad USB payload library and Ducky Script generation tooling |
| Primary Use | Running security awareness demonstrations and authorized red team exercises against Bad USB attack scenarios, plus generating dictionary and PIN Ducky Script attacks in a lab |
| Safe Use | Educational and documentary analysis only: use exclusively in authorized assessments, corporate awareness training on owned devices, and controlled lab environments with explicit permission |
| Telemetry Note | Payloads operate as HID keystrokes, so defenders observe rapid typed powershell commands, altered MRU entries, unexpected browser windows, and DNS or policy-page changes on monitored endpoints |
Zarcolio/flipperzero is a curated collection of Ducky Script payloads and PowerShell generation utilities built around the Flipper Zero's Bad USB functionality, which the repo also refers to as Bad KB on the Momentum firmware. What makes this repository interesting is not raw capability — Ducky Script itself is old and well understood — but the deliberate split between awareness-oriented and offensive-oriented material, with every payload sorted into Defensive, Offensive, and Useful directories. That taxonomy tells you a lot about the author's intent: this is as much a social-engineering training toolkit as it is an attack arsenal, and the repo is licensed under GPL-3.0 with 521 stars at the time of writing.
The Defensive folder is where the repository's awareness-training philosophy becomes concrete. EyeLock_Edge_Win.txt is the canonical example: you find an unlocked Windows workstation in an office, plug in the Flipper, and the script opens https://eyelockmyscreen[.]com (or https://lock[.]nu) in a full-screen window. The point is not the payload — it is the teachable moment when the user returns and realizes their unlocked screen was a free lunch. Policy_Lock-Screen_Edge_Win.txt takes the same approach but routes the user to the company policy page and searches for a specific control, tying the demonstration back to organizational rules rather than generic advice.
A more aggressive awareness payload is Phish_Office365_From_Usb.txt, which the README describes as creating a phishing page for Office 365, extracting the target's email address via Outlook in the process. If the user types a password and hits sign-in, the payload responds with a red message explaining that they typed their password into a phishing page because they did not lock their screen. This is a genuinely clever training construct because it demonstrates two failure modes in one event: the unlocked workstation and the susceptibility to credential phishing. Show_wifi_passwords_Win_PS.txt similarly surfaces the user's stored Wi-Fi passwords in a visible powershell window to make credential exposure tangible.
The Offensive folder is where authorized red teamers will find the material that requires tighter handling. Several exfiltration-flavored scripts are documented, including ExfilToUsb.txt, which recursively copies a folder to a USB drive, and Exfil-Default-Pwd-Windows.txt, which the README says targets the DefaultPassword registry value used for automatic logon, exfiltrates it via http://127.0.0.1 (which the author explicitly notes must be edited), and cleans up the powershell MRU entry afterward. The loopback placeholder is a deliberate defanging choice — the script is a skeleton, not a turnkey implant, and the author forces you to supply your own infrastructure. Exfil-Wifi-Pwd-Win10.txt follows the same pattern for Wi-Fi passwords, with a note that Windows 11 requires admin privileges for full extraction.
Browser-credential demonstrations round out the offensive set: Cookie-Facebook-WinChrome.txt, Cookie-Facebook-WinDefaultBrowser.txt, and Cookie-Facebook-WinEdge.txt each open facebook.com in a specific browser and display document.cookie in an alert box. The README's laconic "use your imagination for offensive purposes" is honest about the gap between demo and weapon — an alert box is a proof of concept, not an exfiltration channel, which makes these scripts more useful for illustrating session-cookie risk in a debrief than for actual collection. HookBeEF-WinDefaultBrowser.txt similarly just opens the BeEF demo page, and Demo_Password_Reset.txt demonstrates why online services should demand the old password before a reset.
The PowerShell utilities are arguably the most technically interesting part of the repo, and the primary language of the project is PowerShell accordingly. Create-PwdDictAttack.ps1 is the centerpiece: it converts a password or PIN list into a Ducky Script that types each candidate, with configurable delay, wait time, and interaction method. The README shows it invoked with flags like -PrintMode char, -Wait 1000, -CharDelay 2000, -PreventOverflow, -Enter, and -InputFile, and the Netflix and HBO parental-PIN bruteforcer scripts in the Offensive folder are explicitly documented as generated by it. This is dictionary-attack-as-keystrokes: slow, physically observable, and only viable against input-limited targets — which is precisely why it works against PIN prompts on Android apps but not against anything with rate limiting.
Supporting generators include Generate-4DigitPinCodes.ps1, which enumerates all four-digit PINs ordered with easy-to-remember ones first, and Generate-6DigitPinCodes.ps1, which does the same for six-digit codes. That ordering heuristic is a small but smart touch, encoding real knowledge about human PIN selection into the attack ordering. The Useful folder adds Convert-Ps2Ducky.ps1 for turning a .ps1 file into Ducky Script, and two dead-key escape utilities — Escape-DeadKeysAltcode.ps1, which replaces STRING statements with ALTCODE equivalents, and Escape-DeadKeysRepeat.ps1, which repeats dead keys like ~, ` `, ', and " — addressing a genuine annoyance for operators on non-US keyboard layouts where Ducky Script STRING` commands mistranslate.
Two more assets complete the collection. A mobile web page, linked as https://bit[.]ly/DuckyScriptCreator, lets you author Ducky Scripts on a phone when a laptop is not available — a small but practical quality-of-life feature for field work. The Infrared section contains JBL_SB1x0, an IR remote profile for JBL SB120, SB140, and SB170 soundbars, which is a reminder that the Flipper is a multi-protocol device and this repo's scope extends slightly beyond HID attacks.
From a defensive perspective, this repository doubles as a detection curriculum. Every payload here manifests as HID keystrokes, so endpoint telemetry that captures console host invocations, unusually fast or regularized typing patterns, MRU list changes, and unexpected browser launches will catch most of these scripts in an enterprise. The MRU cleanup in the exfil scripts is itself an indicator worth hunting: an artifact deliberately erased is evidence of an operator who expects that exact telemetry. The default-browser behavior and fullscreen awareness pages are trivially visible to the user, which is the point for training and the weakness for stealth.
The natural fit for this toolkit is a corporate awareness program or an authorized engagement with a strong social-engineering component. Plugging a Flipper into an unlocked, unattended machine is a classic physical-assessment finding, and having a repeatable, non-destructive way to make that finding visceral — a fullscreen lock screen reminder, a visible policy page, a red warning about a phishing submission — turns a report bullet into a behavioral correction. The offensive folder should be treated as reference material for understanding attacker tradecraft and building detections, not as a launch pad. It is a well-organized, honestly labeled collection, and its value lies as much in what it teaches about human risk as in what it types.
Zarcolio/flipperzero.Educational analysis for authorized security professionals. Use only in controlled, authorized environments.
Related coverage
0 comentários:
Post a Comment
Note: Only a member of this blog may post a comment.