Skip to content

sbateeni/router

Repository files navigation

AUTO-PWN UNIFIED

Merged project: router orchestration + nuclei-dev device exploit engine.

One repo for Kali — full scan, camera pwn, router creds, CVE intelligence.

Quick start (Kali)

git clone https://github.com/YOUR_USER/router.git
cd router
python3 -m venv .venv
source .venv/bin/activate
pip install -U pip setuptools wheel
pip install -r requirements-kali.txt   # Kali: exact pins from upstream tools
chmod +x run.sh scripts/install_tools.sh scripts/fix_venv_kali.sh
bash scripts/install_tools.sh    # clones tools/ + merges tool-specific pins
./run.sh
# If permission denied: bash run.sh

Main entry points

Command Purpose
./run.sh Unified menu (options 1–9)
python3 bin/master_pwn.py -t IP --auto Full 4-phase scan (Nmap → Web → Engine → Hydra)
python3 bin/auto_pwn.py Device engine only (cameras + routers)
python3 tests/test_router_target.py -H IP Netis/router credential test
python3 tests/test_hikvision_target.py -H IP Hikvision backdoor + Digest test
python3 tests/test_device_cve.py -H IP CVE intelligence report

Project layout

router/
├── run.sh / run.bat       ← launch menu (stay at root)
├── bin/                   ← Python entry points
│   ├── master_pwn.py      ← main orchestrator
│   ├── auto_pwn.py        ← device engine menu
│   ├── lan_pwn.py
│   └── telegram_pwn.py
├── scripts/               ← install & maintenance
│   ├── install_tools.sh
│   └── update_tools.py
├── tests/                 ← target tests & unit tests
├── docs/                  ← guides & notes
├── config/                ← editor / deploy config (e.g. sftp.json)
├── logs/                  ← pwn.log (runtime)
├── core/                  ← scan phases, reports, AI, Telegram
├── engines/               ← Hikvision, Netis, CVE, OSINT, loot
├── tools/                 ← RouterSploit, Ingram, Nuclei (gitignored)
└── targets/               ← per-target workspaces (gitignored)

What the merge adds

  • Cameras: CVE-2017-7921, Digest auth, config decrypt, snapshots
  • Routers: Netis form login, HTTP Basic, Router Scan wordlists
  • CVE map: firmware build → skip/try CVE + targeted Nuclei
  • Plus router: Nmap, Hydra, Dirsearch, SQLMap, AI analyst, Telegram

Phase 3 flow (--auto)

  1. engines/integration.py — fingerprint, CVE report, cred hunt, Hikvision/Netis
  2. RouterSploit (if profile says router)
  3. Ingram (if profile says camera)
  4. Hydra (Phase 4)

Environment

Copy .env.example to .env for Telegram / AI / Shodan keys.

See docs/TOOLS.md for the full tools catalog.

Kali .venv (correct package versions)

Pins match official tool repos (theHarvester, dirsearch, RouterSploit):

Package Version Why
paramiko 2.12.0 RouterSploit (DSSKey)
beautifulsoup4 4.14.3 theHarvester
dnspython 2.8.0 theHarvester
lxml 6.1.1 theHarvester (avoid SpiderFoot lxml<5 build)
requests 2.32.2 RouterSploit

NetExec (nxc): never in .venv — Kali package: sudo apt install netexec (kali.org/tools/netexec)

SpiderFoot: never pip install -r tools/spiderfoot/requirements.txt — use requirements-kali.txt or sudo apt install spiderfoot

Repair a broken venv:

# If git pull fails on install_tools.sh:
git checkout -- scripts/install_tools.sh
git pull

bash scripts/fix_venv_kali.sh

If fix_venv_kali.sh is missing after pull, run manually:

source .venv/bin/activate
pip uninstall -y netexec certipy-ad
pip install -r requirements-kali.txt
pip install -c constraints-kali.txt paramiko beautifulsoup4 dnspython lxml requests
sudo apt install -y netexec

Clean reinstall:

rm -rf .venv && python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements-kali.txt
bash scripts/install_tools.sh

Legacy repos

nuclei-dev-main is merged into engines/. You only need this repo on Kali.

About

router

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors