- @echo off
- goto check_Permissions
- :check_Permissions
- echo Administrative permissions required. Detecting permissions...
- net session >nul 2>&1
- if %errorLevel% == 0 (
- echo Success: Administrative permissions confirmed.
- ) else (
- echo Failure: Current permissions inadequate.
- )
- :start
- cls
- echo.
- echo Choose option //Cancer Blocker by Crossik//Version 0.3a - 21.04.2017
- echo.
- echo 1) Block selected server
- echo 2) unBlock selected server
- echo 3) Ping
- echo 4) Block/Unblock All
- echo 5) Exit
- echo.
- set /p option=Choose:
- if %option%==1 goto blocks
- if %option%==2 goto opcja2
- if %option%==3 goto opcja3
- if %option%==4 exit
- goto bad
- :blocks
- cls
- echo =======================================================
- echo choose server Blocked
- echo =======================================================
- echo
- set RULENAME="Russian Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 1] %RULENAME% [X]
- ) else (
- echo 1] %RULENAME% [ ]
- )
- set RULENAME="EU East Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 2] %RULENAME% [X]
- ) else (
- echo 2] %RULENAME% [ ]
- )
- set RULENAME="EU West Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 3] %RULENAME% [X]
- ) else (
- echo 3] %RULENAME% [ ]
- )
- set RULENAME="Polish Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 4] %RULENAME% [X]
- ) else (
- echo 4] %RULENAME% [ ]
- )
- set RULENAME="US East Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 5] %RULENAME% [X]
- ) else (
- echo 5] %RULENAME% [ ]
- )
- set RULENAME="US West Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 6] %RULENAME% [X]
- ) else (
- echo 6] %RULENAME% [ ]
- )
- set RULENAME="Brazilian Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 7] %RULENAME% [X]
- ) else (
- echo 7] %RULENAME% [ ]
- )
- set RULENAME="South African Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 8] %RULENAME% [X]
- ) else (
- echo 8] %RULENAME% [ ]
- )
- set RULENAME="Dubain Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 9] %RULENAME% [X]
- ) else (
- echo 9] %RULENAME% [ ]
- )
- set RULENAME="Australian Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 10] %RULENAME% [X]
- ) else (
- echo 10] %RULENAME% [ ]
- )
- set RULENAME="Indian Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 11] %RULENAME% [X]
- ) else (
- echo 11] %RULENAME% [ ]
- )
- set RULENAME="Singaporean Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 12] %RULENAME% [X]
- ) else (
- echo 12] %RULENAME% [ ]
- )
- set RULENAME="Japanese Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 13] %RULENAME% [X]
- ) else (
- echo 13] %RULENAME% [ ]
- )
- set RULENAME="Hong Kong Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 14] %RULENAME% [X]
- ) else (
- echo 14] %RULENAME% [ ]
- )
- set RULENAME="Spanish Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 15] %RULENAME% [X]
- ) else (
- echo 15] %RULENAME% [ ]
- )
- set RULENAME="Johannesburg Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- echo 16] %RULENAME% [X]
- ) else (
- echo 16] %RULENAME% [ ]
- )
- echo 17] Back
- echo
- set /p option=Choose:
- if %option%==x goto 1
- if %option%==2 goto 2
- if %option%==3 goto 3
- if %option%==4 goto 4
- if %option%==5 goto 5
- if %option%==6 goto 6
- if %option%==7 goto 7
- if %option%==8 goto 8
- if %option%==9 goto 9
- if %option%==10 goto 10
- if %option%==11 goto 11
- if %option%==12 goto 12
- if %option%==13 goto 13
- if %option%==14 goto 14
- if %option%==15 goto 15
- if %option%==16 goto 16
- if %option%==17 goto 17
- :1
- set RULENAME="Russian Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :2
- set RULENAME="EU East Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :3
- set RULENAME="EU West Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :4
- set RULENAME="Polish Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :5
- set RULENAME="US East Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :6
- set RULENAME="US West Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :7
- set RULENAME="Brazilian Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :8
- set RULENAME="South African Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :9
- set RULENAME="Dubain Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :10
- set RULENAME="Australian Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :11
- set RULENAME="Indian Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :12
- set RULENAME="Singaporean Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :13
- set RULENAME="Japanese Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :14
- set RULENAME="Hong Kong Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :15
- set RULENAME="Spanish Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :16
- set RULENAME="Johannesburg Valve Servers"
- netsh advfirewall firewall show rule name=%RULENAME% >nul
- if not ERRORLEVEL 1 (
- netsh advfirewall firewall delete rule name=%RULENAME% dir=out
- ) else (
- netsh advfirewall firewall add rule name=%RULENAME% dir=out action=block protocol=any remoteip=146.66.156.0-146.66.156.255,146.66.157.0-146.66.157.255,185.25.180.0-185.25.180.255,185.25.181.0-185.25.181.255
- )
- timeout /t 2
- goto blocks
- :17
- goto start
- :bad2
- echo OPCJA NIE ZNANA.. WYBIERZ PONOWNIE!
- timeout /t 3
- cls
- goto listblock
- :bad
- echo OPCJA NIE ZNANABLABLABLA
- timeout /t 3
- cls
- goto start
- pause >nul