blob: caf5c20e9e0a7b59574e62f777e0cd1129262509 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
@echo off
setlocal EnableExtensions
set "ARGS=--fake --fake-ttl 8"
set "EXE=%~dp0dpibreak.exe"
set "BAT=%0"
if not exist "%EXE%" (
echo [ERROR] "%EXE%" not found.
pause
exit /b 1
)
net session >nul 2>&1
if %errorlevel%==0 goto :run
echo Requesting administrator privileges...
powershell -NoProfile -ExecutionPolicy Bypass ^
-Command "Start-Process -FilePath '%~f0' -ArgumentList 'ELEVATED' -Verb RunAs"
exit /b
:run
rem ===Admin===
if /I "%~1"=="ELEVATED" shift
echo Running: "%EXE%" %ARGS%
echo Note: If you want to change args (like --fake-ttl) modify ARGS= line of %BAT%.
echo(
pushd "%~dp0"
"%EXE%" %ARGS%
set "RC=%ERRORLEVEL%"
popd
echo Exit code: %RC%
pause
exit /b %RC%
|