diff --git a/secret.bat b/secret.bat new file mode 100644 index 0000000..717e27c --- /dev/null +++ b/secret.bat @@ -0,0 +1,21 @@ +@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