Terminal HTML vulnerability scanner. Find XSS risks, insecure forms, missing headers — get fixes and prevention guides.
Project description
BUGGER
Terminal HTML vulnerability scanner. Find XSS risks, insecure forms, missing headers — get fixes and prevention guides. No fluff, just results.
Quick start
pip install bugger
bugger
Or from source:
git clone https://github.com/vikingopsec/bugger.git
cd bugger
pip install -e .
bugger
CI mode (exit 1 if HIGH findings):
bugger --ci ./src
What it does
- Scans HTML, JS, CSS — file, paste, URL, or directory. XSS risks (inline scripts, event handlers, innerHTML), forms over GET, HTTP scripts, eval, document.write, and more.
- Fixes — each finding comes with a concrete fix you can copy.
- Prevention guides — so you don't repeat the same mistake.
- Headers, cookies, CSP, redirects — paste and get a security report with Nginx/Apache snippets.
- Reference — snippets, templates, checklists, OWASP-style reminders.
Features
| Feature | Description |
|---|---|
| Grade | One command → letter (A–F). Quick "how bad is it?" |
| Risk score + quick wins | 0–100 score and top 3 fixes to tackle first |
| Directory scan | Scans .html, .htm, .js, .css. Respects .buggerignore |
| Export | txt, json, html, markdown, SARIF (for GitHub Code Scanning) |
| Baseline | Save a baseline, compare later — see what's new vs fixed |
| Config checker | nginx.conf, Apache, .htaccess — missing headers, TLS tips |
| CI mode | bugger --ci path — exit 1 if HIGH findings |
Usage
At the bugger> prompt, type a number or command:
| Command | What it does |
|---|---|
grade |
Quick scan → letter grade + top 3 fixes |
scan |
Full scan (file, paste, URL, directory) |
diff |
Compare two scans |
headers |
Paste headers → what's missing |
csp |
Validate or generate CSP |
cookies |
Check Set-Cookie (HttpOnly, Secure, SameSite) |
redirects |
Flag open redirects |
config |
Check nginx/Apache/.htaccess |
auth |
Password/login checklist |
https |
HTTPS/TLS checklist |
why |
Why each finding matters |
guides |
Prevention guides |
cheatsheet |
OWASP top 5 |
snippets |
Safe code snippets |
templates |
Header one-liners + minimal safe HTML |
/search text filters tools. help and exit do what you'd expect.
.buggerignore
Skip files during directory scans. Same pattern style as .gitignore:
node_modules/
vendor/
*.min.js
dist/
GitHub Action
- uses: vikingopsec/bugger-action@v1
with:
path: ./src
Or run manually:
- run: pip install bugger && bugger --ci ./src
Pre-commit
Add to .pre-commit-config.yaml:
repos:
- repo: local
hooks:
- id: bugger
name: bugger
entry: bugger --ci .
language: system
pass_filenames: false
Adding your own tools
Drop a .py in bugger/tools/ with a TOOL dict and run() function. Type reload to pick it up.
License
MIT — use it, change it, ship it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bugger_scanner-1.0.0.tar.gz.
File metadata
- Download URL: bugger_scanner-1.0.0.tar.gz
- Upload date:
- Size: 28.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e583e6659076e0cc360ab0b4b2a4c36801d6cf66568ffbeb63d7251aee36c0ce
|
|
| MD5 |
842ff14ce452339a8203cd68de38f39f
|
|
| BLAKE2b-256 |
0dd1c0b6cc0688c1da1d08a80b68b002ecb73bdf1fd933b948a8e79c3336d1f6
|
File details
Details for the file bugger_scanner-1.0.0-py3-none-any.whl.
File metadata
- Download URL: bugger_scanner-1.0.0-py3-none-any.whl
- Upload date:
- Size: 36.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a864a94db6c73aeedc1de62fae9f746f9f07ae33ae960ef972765d8493beca32
|
|
| MD5 |
27e061e2cf897d93f1e0ff24cba809c6
|
|
| BLAKE2b-256 |
c6ef9a3b20c42a9968d2817f3c6d5693988361c703a2360d74707e9a3c05f450
|