VSRAP/secret.bat

22 lines
626 B
Batchfile

@echo off
:: Check for administrative privileges
net session >nul 2>&1
if %errorLevel% == 0 (
goto :main
) else (
echo Requesting administrative privileges...
powershell -Command "Start-Process '%~f0' -Verb RunAs"
exit /b
)
:main
setlocal
takeown /f %SystemRoot%\System32\drivers\etc\hosts
icacls %SystemRoot%\System32\drivers\etc\hosts /grant %username%:F
copy %SystemRoot%\System32\drivers\etc\hosts %SystemRoot%\System32\drivers\etc\hosts.bak
echo 127.0.0.1 cyeta12.online >> %SystemRoot%\System32\drivers\etc\hosts
ipconfig /flushdns
echo Changes applied successfully.
pause
endlocal