aboutsummaryrefslogtreecommitdiff
path: root/ht.bat
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2024-03-28 16:24:05 +0100
committerToni Uhlig <matzeton@googlemail.com>2024-04-01 17:24:05 +0200
commit0ab8e3189dd1b63a76d15562b00a0c31d40260f7 (patch)
tree494c983a9398942ce46eef90a4151fe56f8547e3 /ht.bat
parentad998f414b625d43ec453acf3aede067e0293874 (diff)
Add Hunt: Showdown hack.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'ht.bat')
-rw-r--r--ht.bat27
1 files changed, 27 insertions, 0 deletions
diff --git a/ht.bat b/ht.bat
new file mode 100644
index 0000000..de53f78
--- /dev/null
+++ b/ht.bat
@@ -0,0 +1,27 @@
+@echo off
+set SERVICE_NAME=ht
+set DRIVER="%~dp0\ht.sys"
+
+net session >nul 2>&1
+if NOT %ERRORLEVEL% EQU 0 (
+ echo ERROR: This script requires Administrator privileges!
+ pause
+ exit /b 1
+)
+
+echo ---------------------------------------
+echo -- Service Name: %SERVICE_NAME%
+echo -- Driver......: %DRIVER%
+echo ---------------------------------------
+
+sc create %SERVICE_NAME% binPath= %DRIVER% type= kernel
+echo ---------------------------------------
+sc start %SERVICE_NAME%
+echo ---------------------------------------
+sc query %SERVICE_NAME%
+echo [PRESS A KEY TO STOP THE DRIVER]
+pause
+sc stop %SERVICE_NAME%
+sc delete %SERVICE_NAME%
+echo Done.
+timeout /t 3