28 lines
848 B
Batchfile
28 lines
848 B
Batchfile
@echo off
|
|
rem run_mitm.bat - stop any running paralogue_mitm.py and start a fresh one.
|
|
rem Any args passed to this script are forwarded to paralogue_mitm.py
|
|
rem (e.g. `run_mitm.bat --inject-items`).
|
|
|
|
setlocal
|
|
set PY=X:\Users\user\AppData\Local\Programs\Python\Python313\python.exe
|
|
set SCRIPT_DIR=%~dp0
|
|
set SCRIPT=%SCRIPT_DIR%paralogue_mitm.py
|
|
|
|
echo [*] stopping any running paralogue_mitm.py ...
|
|
for /f "tokens=2 delims=," %%p in ('
|
|
wmic process where "name='python.exe' and CommandLine like '%%paralogue_mitm.py%%'" get ProcessId /format:csv ^| findstr /r "[0-9]"
|
|
') do (
|
|
echo killing PID %%p
|
|
taskkill /PID %%p /F >nul 2>&1
|
|
)
|
|
|
|
rem Give sockets a moment to release before rebinding.
|
|
timeout /t 1 /nobreak >nul
|
|
|
|
echo [*] starting paralogue_mitm.py %*
|
|
pushd "%SCRIPT_DIR%\.."
|
|
"%PY%" -u frida_hooks\paralogue_mitm.py %*
|
|
popd
|
|
|
|
endlocal
|