-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBOT.BAT
55 lines (44 loc) · 1.19 KB
/
BOT.BAT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@echo off
setlocal enabledelayedexpansion
:loop
set "psiphonRunning="
for /f "tokens=*" %%i in ('tasklist /NH /FI "IMAGENAME eq psiphon3.exe"') do (
set "psiphonRunning=1"
taskkill /T /F /IM psiphon3.exe
)
for /f "tokens=*" %%i in ('tasklist /NH /FI "IMAGENAME eq psiphon-tunnel-core.exe"') do (
set "psiphonRunning=1"
taskkill /T /F /IM psiphon-tunnel-core.exe
)
set "firefoxRunning="
for /f "tokens=*" %%i in ('tasklist /NH /FI "IMAGENAME eq firefox.exe"') do (
set "firefoxRunning=1"
taskkill /T /F /IM firefox.exe
)
if defined psiphonRunning (
echo "Closing Psiphon..."
timeout /t 5 /nobreak
taskkill /F /IM psiphon3.exe
taskkill /F /IM psiphon-tunnel-core.exe
) else (
echo "Psiphon is not running."
)
if defined firefoxRunning (
echo "Closing Firefox..."
timeout /t 5 /nobreak
taskkill /F /IM firefox.exe
) else (
echo "Firefox is not running."
)
echo "STARTING..."
start psiphon3.exe
timeout /t 6 /nobreak
echo "[!] Starting the Voting process..."
python vote.py
timeout /t 3 /nobreak
echo "[+] Voting done."
timeout /t 3 /nobreak
echo " Killing the VPN..."
taskkill /T /F /IM psiphon3.exe
taskkill /T /F /IM psiphon-tunnel-core.exe
goto loop