반응형
.bat file Code
@echo off
@REM Get Proxy Setting
for /f "tokens=3" %%d in ('reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Setting" /v ProxyEnable') do set onOff=%%d
if %OnOff% == 0x0 (
set ProxyServer=127.0.0.1
set ProxyPort=8080
goto proxyOnSetting
)
) else (
goto proxyOffSetting
)
@REM Proxy On Setting
:proxyOnSetting
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /t REG_SZ /d %ProxyServer%:%ProxyPortValue% /f
echo "Status: System Proxy On -> %ProxyServer%:%ProxyPortValue%"
goto refresh-system
@REM Proxy Off Setting
:proxyOffSetting
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f
echo "Status: System Proxy Off"
echo.
goto refresh-system
:refresh-system
START iexplore.exe
TIMEOUT 0 > NUL
TASKKILL /IM iexplore.exe /F > NUL
exit /b
'Hack > Web' 카테고리의 다른 글
Server Side Template Injection (SSTI) (0) | 2022.04.12 |
---|---|
Spring4Shell (Spring Core Java 0day RCE) (0) | 2022.04.01 |
SQL Injection Cheat Sheet (0) | 2021.10.02 |
DOM Clobbering XSS (0) | 2021.09.04 |
Padding Oracle Attack (2) | 2021.09.03 |
댓글