Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
flyswatter — Drop-in nginx trap that poisons the well for scanners, skids & AI crawlers with fake secrets. | Kitploit
Tools/GitLabGitLab/acidvegas/flyswatter
Defensive ToolsContainer SecurityWeb Proxies & InterceptionWeb SecurityCrawlerAnti-Bot
GitLabacidvegas/flyswatter

flyswatter

Drop-in nginx trap that poisons the well for scanners, skids & AI crawlers with fake secrets.

View Repository
5 days agoNot yet reviewed
Share

flyswatter

flyswatter

Skids, scanners, and AI crawlers are internet gnats. flyswatter is a drop-in nginx trap that catches them on every domain you host.

Two traps, both reply 200 OK (never a block code, so they can't tell they've been caught):

  1. Bot / scraper / AI-crawler user-agents get a dynamic mocking page instead of your site.
  2. Scanner paths (.env, .git/config, AWS creds, SSH keys, SQL dumps, ...) get believable, bogus, insulting, ever-changing fake secrets.

Everything is generated fresh per request — no two responses are the same.

Fake endpoints

Any request to these paths gets a plausible-but-bogus dynamic file. Fake keys embed FUCKYOU / madeulook, IPs come from DoD /8 ranges, hostnames and passwords are random:

PathFake content
/.env, /.env.*full dotenv: DB, Redis, Mongo, AWS, DO, Cloudflare, Stripe, GitHub, Slack, SendGrid, Twilio, JWT — plus a huge LLM/AI stack (OpenAI, Anthropic, Ollama, Groq, Mistral, Cohere, HuggingFace, Replicate, Together, Perplexity, OpenRouter, DeepSeek, Gemini, Azure OpenAI, LangChain/LangSmith, Pinecone, Weaviate, Qdrant, Chroma)
/.git/config, /.git/HEADgit config with an embedded creds URL
/.git-credentialsgithub / gitlab / bitbucket creds
/.aws/credentialsAWS ini (default / prod profiles)
/.ssh/id_rsa, /id_rsa, /id_ed25519fake OpenSSH private key
/wp-config.phpWordPress DB creds + auth salts
/config.jsonapp config with nested creds
/secrets.json, /credentials.jsonJSON secret bundle
/.vscode/sftp.jsonSFTP host / user / password
/docker-compose.ymlcompose file with env secrets
/.npmrcnpm registry auth tokens
/.pypircPyPI upload tokens
/.netrcmachine / login / password
/.htpasswd, /.htaccesshtpasswd hashes
/backup.sql, /dump.sql, /database.sql, /db.sqlSQL dump with fake users + password hashes

Bot user-agents

A dynamic mocking HTML page (with a hidden garbage payload to poison scrapes) and a pile of obnoxious headers: X-Fuck-Scrapers, X-Do-Not-Train: 1, X-Robots-Tag: noai, noimageai, X-Training-Data: poisoned, and more.

Extra nastiness (random)

  • 1 in 5 .env hits are log-bombed — the whole file repeated 5000× (~19 MB), gzipped so it's tiny for you and huge in their logs/parser.
  • 1 in 5 hits get an invalid UTF-16-LE tail that crashes naive UTF-8 decoders (the classic "my bot ate a weird-encoded message and died").
  • Fake IPs come only from DoD /8 ranges, so the "infra" looks exotic.

Why it's safe

  • The non-.env/.git paths are root-anchored (^/...), so files served inside git repos (gitea, gitweb, ...) are never shadowed.
  • If a real .env or .git sits in a webroot, flyswatter shadows it — scanners get the fake, never the real file.
  • If the trap container is down, those paths return 502 — nginx never falls through to the real file.

Install

Requires docker + nginx.

git clone https://github.com/YOU/flyswatter && cd flyswatter
sudo ./setup.sh

setup.sh builds and starts the trap container (localhost only) and installs the nginx map + snippet. Then add two lines to every server { } block you want protected:

if ($block_ua) { return 461; }     # bot/AI user-agents -> troll page
include snippets/flyswatter.conf;     # trap routing + fake-secret endpoints

Reload:

sudo nginx -t && sudo systemctl reload nginx

See nginx/EXAMPLE-site.conf for a full example server block.

Config

  • FLYSWATTER_PORT — host port for the trap container (default 8899).
  • FLYSWATTER_NGINX — set to 0 to only rebuild and restart the container, leaving the nginx config alone (default 1).

Tuning

  • Edit the user-agent list in nginx/conf.d/block-bots.conf.
  • To stop logging trapped traffic, append if=$loggable to your access_log directive.

Files

app.py                     the trap server (Flask)
Dockerfile                 builds the container
setup.sh                   build + run + install nginx config
nginx/conf.d/block-bots.conf   $block_ua + $loggable maps
nginx/snippets/flyswatter.conf    trap routing (drop-in include)
nginx/EXAMPLE-site.conf        example protected server block

Mirrors: SuperNETs • GitHub • GitLab • Codeberg
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    899
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    831
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    661
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    444
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    443
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    395

Explore all tools

Browse our collection of tools

View all tools →