Share
## https://sploitus.com/exploit?id=C3D0F122-BC3F-5AAC-9F18-FA8CB3F96BF4
ζ›Έ β€” The PentesterΚΌs Spellbook
  Answer the questions. Unleash the test cases.


---

## What is Grimoire?

A grimoire is a spellbook β€” a compendium of knowledge passed down by those who came before. **This Grimoire** is no different. ItΚΌs a wizard-style expert system that asks pentesters the right questions about their target, then reveals every relevant test case, methodology, exploit technique, payload, and tool from its vast library.

Born from the idea that **no test case should ever be missed**, Grimoire adapts to your target β€” web, mobile, thick client, API, or IoT β€” and dynamically routes you through the questions that matter, building a precise profile that matches against **192 test cases** across **13 categories**.

## How It Casts

```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Answer the  β”‚ ──▢ β”‚  Dynamic     β”‚ ──▢ β”‚  Tag-based       β”‚
β”‚  Questions   β”‚     β”‚  Routing     β”‚     β”‚  Matching Engine β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                                   β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Export     β”‚ ◀── β”‚  Severity    β”‚ ◀── β”‚  192 Test Cases  β”‚
β”‚  JSON/CSV   β”‚     β”‚  Weighted    β”‚     β”‚  Scored & Ranked β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

1. **Ask** β€” 71 questions across 7 phases: App Profile, Tech Stack, Auth, Features, Data Patterns, Infrastructure, Third-party
2. **Route** β€” Questions adapt dynamically. Choose PHP? Get PHP-specific follow-ups. Choose Mobile? Get biometric, 2FA, debuggable questions.
3. **Match** β€” Every answer adds tags. The engine scores all 192 test cases against your tag profile.
4. **Reveal** β€” Results ranked by relevance Γ— severity. Filter by category, severity, or search keywords.
5. **Export** β€” Download as JSON, CSV, or print-ready report.

## Quick Start

```bash
git clone https://github.com/ShubhamDubeyy/grimoire.git
cd grimoire
python3 -m http.server 8000
# Open http://localhost:8000
```

> **Important:** Must be served from a web server (not `file://`). The knowledge base loads via `fetch()`.

## Project Structure

```
grimoire/
β”œβ”€β”€ index.html                     # Entry point
β”œβ”€β”€ logo.svg                       # Grimoire brandmark
β”œβ”€β”€ version.json                   # Version check (GitHub Pages ready)
β”œβ”€β”€ css/
β”‚   └── style.css                  # Dark professional theme
β”œβ”€β”€ js/
β”‚   β”œβ”€β”€ engine.js                  # Tag scoring, routing, matching engine
β”‚   └── app.js                     # Wizard UI, results grid, filter, export
β”œβ”€β”€ data/
β”‚   β”œβ”€β”€ knowledge-base.json        # 7 phases, 71 questions, category index
β”‚   └── test-cases/
β”‚       β”œβ”€β”€ generic-baseline.json  # 10: Universal tests every pentester starts with
β”‚       β”œβ”€β”€ authentication.json    # 19: JWT, OAuth, SAML, MFA, session attacks
β”‚       β”œβ”€β”€ authorization.json     #  8: IDOR, privilege escalation, CORS, HPP
β”‚       β”œβ”€β”€ injection.json         # 29: SQLi, NoSQLi, XSS, SSTI, SSRF, XXE, Command
β”‚       β”œβ”€β”€ file-handling.json     # 16: Upload, path traversal, LFI/RFI, zip slip
β”‚       β”œβ”€β”€ business-logic.json    # 18: Race conditions, price, coupons, workflow
β”‚       β”œβ”€β”€ infrastructure.json    # 16: Smuggling, cache poison, CSP, TLS
β”‚       β”œβ”€β”€ llm-ai.json            # 12: Prompt injection, jailbreak, RAG poison
β”‚       β”œβ”€β”€ mobile.json            # 16: Storage, cert pinning, WebView, biometric, memory
β”‚       β”œβ”€β”€ thick-client.json      # 10: DLL hijack, named pipes, decompilation
β”‚       β”œβ”€β”€ php-specific.json      # 16: Type juggling, deserialization, filter chains
β”‚       β”œβ”€β”€ api-specific.json      # 12: BOLA, JWT, rate limit, GraphQL, webhooks
β”‚       └── cms-specific.json      # 10: WordPress, Drupal, Magento, Laravel, Django
└── README.md
```

## The Spells (Test Case Categories)

| Category | Count | What It Covers |
|----------|:-----:|---------------|
| **Generic / Baseline** | 10 | TLS, security headers, cookies, info disclosure, default creds, input validation, CORS, rate limiting β€” every assessment starts here |
| **Authentication** | 19 | JWT/OAuth/SAML/MFA/session fixation/password reset/remember-me/credential brute-force |
| **Authorization** | 8 | IDOR (horizontal/vertical), privilege escalation, forced browsing, CORS, HPP, mass assignment |
| **Injection** | 29 | SQLi (5 types), NoSQLi (2), XSS (5 types), SSTI, SSRF (2), XXE (2), CRLF, Command, LDAP, GraphQL, Email, XPATH, SMTP |
| **File Handling** | 16 | Upload (8 vectors), .htaccess/.user.ini attacks, SVG XXE/XSS, LFI/RFI, path traversal, zip slip, ImageMagick |
| **Business Logic** | 18 | Race conditions, TOCTOU, price/quantity manipulation, payment callback, coupons, workflow bypass, subscription abuse |
| **Infrastructure** | 16 | Request smuggling (CL.TE/TE.CL/TE.TE), cache poison/deception, WebSocket, DNS rebinding, prototype pollution, hop-by-hop |
| **LLM/AI** | 12 | Direct/indirect prompt injection, jailbreak, system extraction, excessive agency, RAG poison, multimodal, DoS |
| **Mobile** | 16 | Storage, cert pinning bypass, deep link hijacking, WebView, biometric bypass, backup extraction, network analysis, reverse engineering, broadcast intent, memory analysis, debuggable exploitation |
| **Thick Client** | 10 | DLL hijacking, named pipes, decompilation, memory dumping, traffic interception, registry secrets, update hijacking, Electron attacks |
| **PHP-Specific** | 16 | Type juggling, unserialize RCE, LFI/RFI wrappers, mail() RCE, PHP-FPM, filter chains, disable_functions, Phar, OPcache |
| **API** | 12 | BOLA, JWT suite, rate limiting, mass assignment, versioning, SOAP, GraphQL, webhooks, WebSocket |
| **CMS** | 10 | WordPress, Drupal, Joomla, Magento, Laravel, Symfony, Django, Node.js, .NET, Strapi |

## Features

- **Dynamic routing** β€” Follow-up questions appear based on your answers. No two assessments are the same.
- **Tech-aware payloads** β€” PHP backend? PHP-specific payloads prioritized. Node.js? Node-specific vectors shown.
- **Severity-weighted** β€” Critical/High/Medium/Low/Info badges with color coding
- **Collapsible sections** β€” Methodology steps, payloads, references, and tools β€” expand what you need
- **Search & filter** β€” Narrow by category, severity, or keyword in real-time
- **Export** β€” JSON (full structured data), CSV (spreadsheet-friendly), or print to PDF
- **Keyboard navigation** β€” Enter to advance, click to select
- **192 test cases** β€” And growing. Each with methodology, payloads, references, and tool recommendations

## Adding New Spells

Each test case file in `data/test-cases/` is a JSON array. To contribute a new test case:

```json
{
  "id": "unique_id_here",
  "name": "Test Case Name",
  "category": "Category",
  "severity": "critical|high|medium|low|info",
  "owasp": "A01:2021",
  "cwe": "CWE-XXX",
  "description": "What this test case checks for",
  "methodology": ["Step 1", "Step 2", "Step 3"],
  "payloads": {
    "generic": ["generic payload"],
    "php": ["PHP-specific payload"]
  },
  "trigger": {
    "require_any_tags": ["tag1", "tag2"],
    "require_all_tags": [],
    "exclude_tags": []
  },
  "references": ["OWASP Ref", "CVE-XXXX-XXXXX"],
  "tools": ["Tool1", "Tool2"]
}
```

## Deploy to GitHub Pages

1. Push to GitHub: `git push origin main`
2. Go to **Settings β†’ Pages β†’ Source β†’ Deploy from branch**
3. Select `main` branch, root (`/`) directory
4. Your Grimoire is live at `https://shubhamdubeyy.github.io/grimoire/`

## License

MIT β€” use, modify, and distribute freely. Attribution appreciated.

---


  γ€ŒηŸ₯θ­˜γ―εŠ›γͺγ‚Šγ€β€” Knowledge is power. Every vulnerability has a test case. Every test case is in the Grimoire.