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
Tools/GitLabGitLab/acidvegas/badtests
Web Vulnerability ScannersWeb SecurityFuzzing
GitLabacidvegas/badtests

badtests

Hostile HTTP server with 81 broken and abusive responses for testing how curl, Python HTTP libraries and web browsers handle malformed replies.

View Repository
9 months agoNot yet reviewed

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.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    810
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    638
  • 4

    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.

    453
  • 5

    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.

    436
  • 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.

    386

Explore all tools

Browse our collection of tools

View all tools →
Share

badtests

A malicious HTTP response server for testing how different clients handle broken, malformed, and abusive HTTP responses. The goal is to compare how curl, Python HTTP libraries (urllib, http.client, requests, aiohttp), and web browsers react to protocol violations, edge cases, and deliberately hostile payloads.

What it does

badtests.py is a single-file HTTP server with 81 test endpoints. Each one returns a deliberately broken or abusive response targeting a specific aspect of HTTP handling. Categories include:

  • Content-Length violations (words, negatives, floats, NaN, mismatches)
  • Content-Type abuse (garbage, null bytes, emoji MIME types, CRLF injection)
  • Invalid status codes (negative, zero, five-digit, non-numeric)
  • Header abuse (64KB names, 1MB values, 1000 headers, duplicate Content-Length, null bytes)
  • Body abuse (infinite streams, missing bodies, binary as text/html)
  • Transfer-Encoding smuggling (CL+TE conflicts, invalid chunk sizes)
  • Protocol violations (raw garbage, empty responses, unknown HTTP versions)
  • Encoding mismatches (UTF-16 body with UTF-8 header, fake gzip)
  • Redirect abuse (self-loops, garbage URLs, infinite unique chains)
  • Timing attacks (slowloris headers, slow-drip bodies)
  • HTML edge cases (UTF-16LE pages, 1000-char titles, meta refresh loops)
  • Terminal abuse (ANSI escape code injection)
  • JavaScript browser attacks (alert loops, fork bombs, GPU killers, audio hell, tab bombs, clipboard hijack, cookie bombs, download spam, popup storms, ServiceWorker hijack)
  • Image/file abuse (bait-and-switch, SVG XSS, GIF/JS polyglots)
  • Network abuse (gzip bombs, SSE floods, MIME sniffing, cache poisoning, HSTS bombs)

The server also includes a /logs page that records every request with full headers, and a /fingerprint page for browser fingerprinting.

Running it

Start the server:

python3 badtests.py

It listens on port 60666. Open http://localhost:60666/ in a browser to see the full index of tests, or hit endpoints directly with curl.

Testing

test.sh runs every endpoint through curl and captures the output:

./test.sh localhost:60666

test.py runs every endpoint through urllib, http.client, requests, and aiohttp:

python3 test.py

Both scripts have timeouts and output caps to prevent hanging on infinite streams.

Results

  • RESULTS.md - Full writeup comparing how each client handled every test
  • results_curl.txt - Raw curl test output
  • results_python.txt - Raw Python library test output

Files

FileDescription
badtests.pyThe server. Single file, no dependencies beyond Python 3 stdlib.
test.shBash script to test all endpoints with curl.
test.pyPython script to test all endpoints with urllib, http.client, requests, aiohttp.
RESULTS.mdDetailed results and analysis of client behavior differences.
results_curl.txtRaw curl output from test.sh.
results_python.txtRaw output from test.py.
Download Tool