-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathhoplimit_bypass (65).bat
32 lines (28 loc) · 1.09 KB
/
hoplimit_bypass (65).bat
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
@ECHO OFF
:: This program is for bypass mobile data hotspot and used other mobile data that you have
:: run as admin first
:: this tests if the file is running as admin
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' ( GOTO askAdmin )
GOTO gotAdmin
:askAdmin
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0'
(
echo Requesting administrative privileges...
goto UACPrompt
)
else ( goto gotAdmin )
:UACPrompt
echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs"
echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs"
"%temp%\getadmin.vbs"
exit /B
:gotAdmin
if exist "%temp%\getadmin.vbs" ( del "%temp%\getadmin.vbs" )
::from this point you can execute your command as admin
echo Using hotspot data from your mobile phone on your laptop/computer only
echo **********************************************************************
echo Change your Time to Live (Hop Limit) to 65
netsh int ipv4 set glob defaultcurhoplimit=65
pause