- Add REAPER.bat single entry (pip, dirs, smoke test, launch); MASTER/MASTERSTER shim to it - bruteforce: rdpthread helpers, safe writer close, spray_all_hosts incremental writes, progress - gui: credential banner, spray messaging without spam; cmdkey TERMSRV host - scanner: adaptive progress; proxy: retry cap on open_connection - ip_utils: /32 CIDR, count_ips aligned with large dash ranges - README/install/run: deployment docs and REAPER.bat references Co-authored-by: Cursor <cursoragent@cursor.com>
74 lines
2.5 KiB
Batchfile
74 lines
2.5 KiB
Batchfile
@echo off
|
|
title REAPER v2.0 - Installer
|
|
color 0C
|
|
cd /d "%~dp0"
|
|
echo.
|
|
echo ╔═══════════════════════════════════════════════════╗
|
|
echo ║ ☠ REAPER v2.0 Installer ☠ ║
|
|
echo ║ Remote Exploitation ^& Password Enumeration ║
|
|
echo ╚═══════════════════════════════════════════════════╝
|
|
echo.
|
|
|
|
:: Check Python
|
|
python --version >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo [FAIL] Python is not installed or not in PATH!
|
|
echo.
|
|
echo Download Python 3.8+ from: https://python.org/downloads
|
|
echo Make sure to check "Add Python to PATH" during installation.
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
for /f "tokens=2" %%i in ('python --version 2^>^&1') do set pyver=%%i
|
|
echo [OK] Python %pyver% found
|
|
|
|
:: Create directories
|
|
if not exist "wordlists" mkdir wordlists
|
|
if not exist "results" mkdir results
|
|
echo [OK] Directories created
|
|
|
|
:: Verify core files exist
|
|
set FILES=main.py gui.py scanner.py bruteforce.py ip_utils.py proxy.py
|
|
for %%f in (%FILES%) do (
|
|
if exist "%%f" (
|
|
echo [OK] %%f
|
|
) else (
|
|
echo [WARN] %%f not found
|
|
)
|
|
)
|
|
|
|
:: Create initial good.txt
|
|
if not exist "results\good.txt" (
|
|
echo. > "results\good.txt"
|
|
echo [OK] Created results\good.txt
|
|
)
|
|
|
|
echo.
|
|
if exist "rdpthread.exe" (
|
|
echo [OK] rdpthread.exe - credential validation available for spray
|
|
) else (
|
|
echo [--] Optional rdpthread.exe not in folder - scanning works; place binary here for verified spray
|
|
)
|
|
|
|
:: Test import
|
|
echo.
|
|
echo Testing imports...
|
|
python -c "from scanner import scan_ips, RDP_PORTS; from ip_utils import parse_ranges_file; from bruteforce import spray_all_hosts, TOP50_PASSWORDS; from proxy import ProxyManager; print(' [OK] All modules loaded successfully')" 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo [FAIL] Import test failed. There may be a syntax error.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
echo ╔══════════════════════════════════════════╗
|
|
echo ║ Installation Complete! ║
|
|
echo ║ ║
|
|
echo ║ Run: REAPER.bat (recommended) ║
|
|
echo ║ or run.bat / python main.py ║
|
|
echo ╚══════════════════════════════════════════╝
|
|
echo.
|
|
pause
|