💻 Quick Start — CLI¶
This guide shows you how to run Engine-AntiGinx locally from your terminal.
✅ Requirements¶
- Go 1.25+ (for local CLI mode)
- Internet access (to scan targets)
- Optional: RabbitMQ (if integrating with
Engined)
⚡ Quick Start¶
Start a quick scan in just one command:
📖 Available Command Modes¶
| Mode | Description | Example |
|---|---|---|
test |
Manual parameter input via CLI | go run ./App/main.go test --target example.com --tests https hsts |
json |
Load config from JSON file | go run ./App/main.go json ./scan.json |
rawjson |
Load JSON from stdin |
cat scan.json \| go run ./App/main.go rawjson |
help |
General or contextual help | go run ./App/main.go help --tests |
📌 Binary Name Note:
- Code examples may show
antiginx, but it's safest to usego run ./App/main.go ...or your own compiled binary.
⚙️ Parameters for test Mode¶
| Parameter | Required | Arguments | Description |
|---|---|---|---|
--target |
✅ Yes | 1 | Target host or URL (e.g., example.com, https://example.com) |
--tests |
✅ Yes | multiple | List of test IDs to execute |
--userAgent |
❌ No | 1 (default: Scanner/1.0) |
Custom User-Agent header |
--antiBotDetection |
❌ No | 0 (flag) | Enable anti-bot detection mechanisms |
--taskId |
depends on workflow | 1 | Task identifier (useful for backend/queue integrations) |
🛡️ Valid Test IDs (--tests)¶
| Test ID | Description |
|---|---|
https |
HTTPS Protocol Verification |
hsts |
HSTS Header Analysis |
serv-h-a |
Server Header Analysis + security context |
csp |
Content Security Policy |
cookie-sec |
Cookie Security |
js-obf |
JavaScript Obfuscation Detection |
xframe |
Clickjacking Protection |
permissions-policy |
Browser Permission Control |
x-content-type-options |
MIME Sniffing Protection |
referrer-policy |
Referrer Policy |
ssl-cert |
SSL/TLS Certificate Security |
cross-origin-x |
Cross-Origin Security Headers |
⚠️ Important: - Use these IDs exactly. Typos or old aliases will result in parser errors.
📝 Usage Examples¶
Single Test¶
Multiple Tests + Anti-Bot¶
Custom User-Agent¶
go run ./App/main.go test --target example.com --tests serv-h-a ssl-cert --userAgent "MyScanner/2.0"
📄 JSON File Mode¶
Example scan.json¶
{
"Target": "https://example.com",
"Parameters": [
{
"Name": "--tests",
"Arguments": ["https", "hsts", "csp"]
},
{
"Name": "--antiBotDetection",
"Arguments": []
}
]
}
Run scan.json:¶
🔀 Raw JSON Mode (stdin)¶
Useful when input comes from another process, API, or message queue.📚 Help Command¶
General help:
Prints general usage or detailed info about available tests and parameters.
🔧 Troubleshooting¶
- Error: invalid worker param → Verify the command is
test,json,rawjson, orhelp. - Parser argument errors → Ensure
--targetand--testshave valid values. - No results / HTTP errors → Check host availability, DNS, certificate, and any WAF/anti-bot protection.