From 7823fb516b5a80a9ff51dcb01b5c22e4090084af Mon Sep 17 00:00:00 2001 From: kaiangel Date: Wed, 19 Jun 2024 19:07:35 +0000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=B8?= =?UTF-8?q?=D1=82=D1=8C=20=D1=84=D0=B0=D0=B9=D0=BB=D1=8B=20=D0=B2=20=C2=AB?= =?UTF-8?q?/=C2=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- secret.bat | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 secret.bat 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