Skip to content

API Reference

Randythegreat edited this page Mar 12, 2026 · 3 revisions

Developer API Reference 🛠️

Extend the Resistance Test engine or integrate it into your own DevOps tools.

⚙️ Core Engine: tester.py

The engine is a modular Python class that supports multi-threading.

ResistanceTester(target_url, aggressive=False)

  • target_url: The fully qualified host to audit.
  • aggressive: Boolean. If true, increases probe count and decreases wait times.

run_all()

Launches all modules using ThreadPoolExecutor.

🌐 Web API: server.py

Standard JSON endpoints for integration.

POST /test

Payload:

{
  "url": "https://target.host",
  "aggressive": true
}

Response:

{
  "logs": [...],
  "score": "85%"
}

POST /generate-trap

Payload:

{
  "type": "env|db|txt"
}

Response:

{
  "content": "PAYLOAD_HERE",
  "filename": ".env.decoy"
}

🛡️ Core Navigation

🧠 Intelligence

🛠️ For Developers


Status: v1.0.0-Stable Engine: Resistance-Core

Clone this wiki locally