Automated web penetration testing CLI framework - Orchestrates 30+ open-source pentesting tools across 7 automated phases with parallel execution and streaming pipeline support.
_________ _____ ___________________
\ _____/ / _ \ / _____/\_ _____/
\_____ \ / /_\ \/ \ ___ | __)_
/ \/ | \ \_\ \| \
/_______ /\____|__ /\______ /_______ /
\/ \/ \/ \/
.____ ._________________________
| | | \__ ___/\_ _____/
| | | | | | | __)_
| |___| | | | | \
|_______ \___| |____| /_______ /
\/ \/
- Pure CLI - No web UI, designed for automation and scripting
- 7-Phase Methodology - Complete pentesting workflow from recon to retest
- 30+ Tools - Integrates best open-source security tools
- Streaming Pipeline - Concurrent phase execution (50-70% faster)
- 4 Scan Modes - STEALTH / NORMAL / AGGRESSIVE / MAXIMUM
- Parallel Execution - Tools run concurrently, not sequentially
- Smart Targeting - Priority-based vulnerability scanning
- Tech-Based Scanning - Templates match detected technologies
- Pretty Output - Rich terminal output with colors and tables
- JSON Reports - Machine-readable output for automation
# Clone and install
git clone https://github.com/kuro-toji/sage-lite.git
cd sage-lite
pip install -e .
# Run full 7-phase pentest
sagelite automate example.com
# Or use streaming pipeline (50-70% faster)
sagelite stream example.comChoose the right speed for your engagement:
| Mode | Speed | Use Case |
|---|---|---|
stealth |
Slow | Bug bounty, quiet testing |
normal |
Medium | Balanced pentest |
aggressive |
Fast | Time-critical assessments |
maximum |
Fastest | Full coverage, all tools |
# Standard sequential 7-phase automation
sagelite automate TARGET
# β‘ STREAMING PIPELINE - 50-70% faster (concurrent phases)
sagelite stream TARGET
# π AGGRESSIVE - parallel execution + optimized settings
sagelite fast TARGET
# β‘ MAXIMUM - everything enabled, full coverage
sagelite lightning TARGET
# π STEALTH - slow, minimal footprint
sagelite stealth TARGET# Scan with specific mode and phase
sagelite scan TARGET --mode aggressive --phase 3
# Show mode comparison
sagelite tools --modes# Phase 1: Reconnaissance (parallel version - 60-70% faster)
sagelite recon TARGET -O
# Phase 2: Scanning (smart URL discovery)
sagelite scan-phase TARGET -O
# Phase 3: Vulnerability Analysis (tech-based targeting)
sagelite vuln TARGET -O
# Phase 4: Exploitation
sagelite exploit TARGET -f findings.json
# Phase 5: Post-Exploitation
sagelite post TARGET# List all supported tools
sagelite tools --list-tools
# Check which tools are installed
sagelite tools --check-installed
# Show phase descriptions
sagelite phases --list
# Generate report from scan results
sagelite report results/scan.json --format jsonPhase 1 βββββββΊ Phase 2 βββββββΊ Phase 3 βββββββΊ Phase 4
β β β β
βΌ βΌ βΌ βΌ
[Wait...] [Wait...] [Wait...] [Wait...]
ββββββββββββββββ΄ββββββββββββββββ΄ββββββββββββββββ
Total Time = T1 + T2 + T3 + T4
Phase 1 βββββββββββ¬βββββββββββββββββββββββββββββββ
β β β
βΌ βΌ βΌ
[Recon] [Scan]βββββββββββββββββββββββββΊ [Exploit]
β β β²
β βΌ β
β [Vuln] ββββββββββββββββββββββββββββββ
β β
ββββββββββββββββ
TargetStream (queues)
50-70% faster - phases overlap instead of waiting.
| Optimization | Before | After | Improvement |
|---|---|---|---|
| Parallel Execution | Sequential tools | 15 concurrent | ~70% faster |
| Port Scan | 1000 ports | 5000 ports | 5x coverage |
| SQLMap Level | 1 | 3 | +40% detection |
| Nuclei Threads | 50 | 100-200 | 2-4x faster |
| Template Coverage | 6 categories | 11 categories | +83% |
| URL Discovery | Manual only | Auto sitemap/JS/robots | +200% URLs |
Passive and active information gathering.
Tools: subfinder, amass, theHarvester, nmap, dnsrecon, assetfinder, findomain, shodan
Directory brute-forcing, fingerprinting, parameter discovery.
Tools: gobuster, ffuf, nikto, whatweb, dirsearch, arjun, wapalyzer
CVE scanning, injection detection, misconfiguration checks.
Tools: nuclei, sqlmap, dalfox, commix, corsy, crlfmap, ssrfmap, retire, jwt_tool
Confirming and exploiting vulnerabilities.
Tools: sqlmap (os-shell, dump), dalfox (poc), commix, gitdump, gitleaks, hydra
Pivoting, persistence, lateral movement.
Tools: chisel, proxychains, nmap, enum4linux, netdiscover
Generate comprehensive pentest reports.
Verify vulnerability fixes.
| Phase | Tool | Purpose |
|---|---|---|
| 1 | subfinder | Passive subdomain discovery |
| 1 | amass | Deep subdomain enumeration |
| 1 | theHarvester | OSINT email/host harvesting |
| 1 | nmap | Port scanning (5000 ports in aggressive mode) |
| 1 | dnsrecon | DNS enumeration |
| 1 | assetfinder | Fast subdomain finder |
| 1 | findomain | Subdomain enumeration |
| 1 | shodan | Internet exposure search |
| 2 | gobuster | Directory brute-forcing |
| 2 | ffuf | Web fuzzing |
| 2 | nikto | Web server scanning |
| 2 | whatweb | Technology fingerprinting |
| 2 | wapalyzer | Tech stack detection |
| 2 | dirsearch | Path scanning |
| 2 | arjun | Parameter discovery |
| 3 | nuclei | CVE vulnerability scanning (11 template categories) |
| 3 | sqlmap | SQL injection detection |
| 3 | dalfox | XSS scanning |
| 3 | commix | Command injection |
| 3 | corsy | CORS misconfiguration |
| 3 | crlfmap | CRLF injection |
| 3 | ssrfmap | SSRF scanning |
| 3 | retire | Vulnerable JS detection |
| 3 | jwt_tool | JWT tampering |
| 4 | gitdump | Git repository dumper |
| 4 | gitleaks | Secrets scanning |
| 4 | hydra | Password brute-forcing |
| 5 | chisel | Tunneling/pivoting |
| 5 | proxychains | Proxy routing |
| 5 | enum4linux | SMB enumeration |
| 5 | netdiscover | Network discovery |
# STEALTH - Slow, minimal footprint
sagelite stealth example.com
# NORMAL - Balanced (default)
sagelite scan example.com --mode normal
# AGGRESSIVE - Fast, parallel
sagelite fast example.com
# or
sagelite scan example.com --mode aggressive
# MAXIMUM - Everything enabled
sagelite lightning example.com| Setting | STEALTH | NORMAL | AGGRESSIVE | MAXIMUM |
|---|---|---|---|---|
| Parallel Workers | 3 | 15 | 20 | 25 |
| SQLMap Level | 1 | 3 | 4 | 5 |
| Nuclei Threads | 20 | 100 | 150 | 200 |
| Rate Limit | Low | Medium | 300 | 500 |
| Ports Scanned | 100 | 1000 | 5000 | 5000+ |
Priority scoring system for optimal vulnerability discovery:
Base Score = 1.0
Γ Tech Type (admin=1.5x, api=1.5x, auth=1.5x)
Γ Vulnerable Pattern (cmd==3x, id=2.5x, file=2x, q=1.5x)
Γ In-scope (1.2x) / Out-of-scope (0.5x)
Γ Multi-param bonus (1.3x if β₯3 params)
| Type | Patterns | Priority |
|---|---|---|
| Admin Panel | /admin, /dashboard, /manage | Critical |
| API Endpoint | /api/v*, /rest, /graphql | Critical |
| Auth | /login, /oauth, /token | High |
| Upload | /upload, /file, /avatar | High |
| Search | /search, /query, /filter | Medium |
[Phase 1: Reconnaissance] - Streaming Mode
Target: example.com
[β] Subfinder - Found 45 subdomains (parallel)
[β] Amass - Found 23 subdomains (parallel)
[β] Nmap - Found 12 open ports (5000 ports)
[β] Phase 2 starting early with discovered data...
Results:
Total subdomains: 68
Open ports: 80, 443, 8080, 22
Time saved: ~40% via parallel execution
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest tests/ -v
# Format code
black src/
# Type check
mypy src/MIT License - See LICENSE file for details.
WARNING: This tool is for authorized security testing only. Always obtain proper authorization before testing any system. Unauthorized access to computer systems is illegal.