Facebook
From Perl Baboon, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 259
  1. @echo off
  2. goto check_Permissions
  3.  
  4. :check_Permissions
  5.     echo Administrative permissions required. Detecting permissions...
  6.  
  7.     net session >nul 2>&1
  8.     if %errorLevel% == 0 (
  9.          echo Success: Administrative permissions confirmed.
  10.  
  11. ) else (
  12.         echo Failure: Current permissions inadequate.
  13.     )
  14.  
  15.                
  16.                 :start
  17.                 cls
  18.                 echo.
  19.                 echo Choose option //Cancer Blocker by Crossik//Version 0.3a - 21.04.2017
  20.                 echo.
  21.                 echo 1) Block selected server
  22.                 echo 2) unBlock selected server
  23.                 echo 3) Ping
  24.                 echo 4) Block/Unblock All
  25.                 echo 5) Exit
  26.                 echo.
  27.                 set /p option=Choose:
  28.                 if %option%==1 goto blocks
  29.                 if %option%==2 goto opcja2
  30.                 if %option%==3 goto opcja3
  31.                 if %option%==4 exit
  32.                 goto bad
  33.                 :blocks
  34.                 cls
  35.                 echo =======================================================
  36.                 echo choose server                                    Blocked
  37.                 echo =======================================================
  38.                 echo
  39.        
  40.  
  41.  
  42.                 set RULENAME="Russian Valve Servers"
  43.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  44.                 if not ERRORLEVEL 1 (
  45.                 echo 1] %RULENAME%                      [X]
  46.                 ) else (
  47.                 echo 1] %RULENAME%                      [ ]
  48.                 )
  49.                        
  50.  
  51.  
  52.  
  53.                        
  54.                 set RULENAME="EU East Valve Servers"
  55.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  56.                 if not ERRORLEVEL 1 (
  57.                 echo 2] %RULENAME%                      [X]
  58.                 ) else (
  59.                 echo 2] %RULENAME%                      [ ]
  60.                 )              
  61.                                
  62.                 set RULENAME="EU West Valve Servers"
  63.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  64.                 if not ERRORLEVEL 1 (
  65.                 echo 3] %RULENAME%                      [X]
  66.                 ) else (
  67.                 echo 3] %RULENAME%                      [ ]
  68.                 )              
  69.                
  70.                 set RULENAME="Polish Valve Servers"
  71.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  72.                 if not ERRORLEVEL 1 (
  73.                 echo 4] %RULENAME%                      [X]
  74.                 ) else (
  75.                 echo 4] %RULENAME%                      [ ]
  76.                 )              
  77.                
  78.                 set RULENAME="US East Valve Servers"
  79.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  80.                 if not ERRORLEVEL 1 (
  81.                 echo 5] %RULENAME%                      [X]
  82.                 ) else (
  83.                 echo 5] %RULENAME%                      [ ]
  84.                 )              
  85.                
  86.                 set RULENAME="US West Valve Servers"
  87.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  88.                 if not ERRORLEVEL 1 (
  89.                 echo 6] %RULENAME%                      [X]
  90.                 ) else (
  91.                 echo 6] %RULENAME%                      [ ]
  92.                 )              
  93.                
  94.                 set RULENAME="Brazilian Valve Servers"
  95.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  96.                 if not ERRORLEVEL 1 (
  97.                 echo 7] %RULENAME%                      [X]
  98.                 ) else (
  99.                 echo 7] %RULENAME%                      [ ]
  100.                 )              
  101.  
  102.                 set RULENAME="South African Valve Servers"
  103.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  104.                 if not ERRORLEVEL 1 (
  105.                 echo 8] %RULENAME%                      [X]
  106.                 ) else (
  107.                 echo 8] %RULENAME%              [ ]
  108.                 )      
  109.                
  110.                 set RULENAME="Dubain Valve Servers"
  111.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  112.                 if not ERRORLEVEL 1 (
  113.                 echo 9] %RULENAME%                      [X]
  114.                 ) else (
  115.                 echo 9] %RULENAME%                      [ ]
  116.                 )
  117.  
  118.                 set RULENAME="Australian Valve Servers"
  119.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  120.                 if not ERRORLEVEL 1 (
  121.                 echo 10] %RULENAME%                     [X]
  122.                 ) else (
  123.                 echo 10] %RULENAME%                     [ ]
  124.                 )
  125.                
  126.                 set RULENAME="Indian Valve Servers"
  127.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  128.                 if not ERRORLEVEL 1 (
  129.                 echo 11] %RULENAME%                     [X]
  130.                 ) else (
  131.                 echo 11] %RULENAME%                     [ ]
  132.                 )
  133.                
  134.  
  135.                 set RULENAME="Singaporean Valve Servers"
  136.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  137.                 if not ERRORLEVEL 1 (
  138.                 echo 12] %RULENAME%                     [X]
  139.                 ) else (
  140.                 echo 12] %RULENAME%                     [ ]
  141.                 )
  142.                
  143.                
  144.                 set RULENAME="Japanese Valve Servers"
  145.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  146.                 if not ERRORLEVEL 1 (
  147.                 echo 13] %RULENAME%                     [X]
  148.                 ) else (
  149.                 echo 13] %RULENAME%                     [ ]
  150.                 )
  151.  
  152.                
  153.                 set RULENAME="Hong Kong Valve Servers"
  154.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  155.                 if not ERRORLEVEL 1 (
  156.                 echo 14] %RULENAME%                     [X]
  157.                 ) else (
  158.                 echo 14] %RULENAME%                     [ ]
  159.                 )
  160.                
  161.                 set RULENAME="Spanish Valve Servers"
  162.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  163.                 if not ERRORLEVEL 1 (
  164.                 echo 15] %RULENAME%                     [X]
  165.                 ) else (
  166.                 echo 15] %RULENAME%                     [ ]
  167.                 )      
  168.                
  169.                 set RULENAME="Johannesburg Valve Servers"
  170.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  171.                 if not ERRORLEVEL 1 (
  172.                 echo 16] %RULENAME%                     [X]
  173.                 ) else (
  174.                 echo 16] %RULENAME%             [ ]
  175.                 )
  176.                
  177.                 echo 17] Back
  178.                 echo
  179.                 set /p option=Choose:
  180.                
  181.                 if %option%==x goto 1
  182.                 if %option%==2 goto 2
  183.                 if %option%==3 goto 3
  184.                 if %option%==4 goto 4
  185.                 if %option%==5 goto 5
  186.                 if %option%==6 goto 6
  187.                 if %option%==7 goto 7
  188.                 if %option%==8 goto 8
  189.                 if %option%==9 goto 9
  190.                 if %option%==10 goto 10
  191.                 if %option%==11 goto 11
  192.                 if %option%==12 goto 12
  193.                 if %option%==13 goto 13
  194.                 if %option%==14 goto 14
  195.                 if %option%==15 goto 15
  196.                 if %option%==16 goto 16
  197.                 if %option%==17 goto 17
  198.                
  199.  
  200.                 :1
  201.                 set RULENAME="Russian Valve Servers"
  202.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  203.                 if not ERRORLEVEL 1 (
  204.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  205.                 ) else (
  206.                 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
  207.                 )
  208.                 timeout /t 2
  209.                 goto blocks
  210.                
  211.                 :2
  212.                 set RULENAME="EU East Valve Servers"
  213.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  214.                 if not ERRORLEVEL 1 (
  215.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  216.                 ) else (
  217.                 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
  218.                 )
  219.                 timeout /t 2
  220.                 goto blocks
  221.                
  222.                 :3
  223.                 set RULENAME="EU West Valve Servers"
  224.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  225.                 if not ERRORLEVEL 1 (
  226.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  227.                 ) else (
  228.                 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
  229.                 )
  230.                 timeout /t 2
  231.                 goto blocks
  232.                
  233.                 :4
  234.                 set RULENAME="Polish Valve Servers"
  235.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  236.                 if not ERRORLEVEL 1 (
  237.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  238.                 ) else (
  239.                 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
  240.                 )
  241.                 timeout /t 2
  242.                 goto blocks
  243.                
  244.                 :5
  245.                 set RULENAME="US East Valve Servers"
  246.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  247.                 if not ERRORLEVEL 1 (
  248.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  249.                 ) else (
  250.                 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
  251.                 )
  252.                 timeout /t 2
  253.                 goto blocks
  254.                
  255.                 :6
  256.                 set RULENAME="US West Valve Servers"
  257.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  258.                 if not ERRORLEVEL 1 (
  259.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  260.                 ) else (
  261.                 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
  262.                 )
  263.                 timeout /t 2
  264.                 goto blocks
  265.                
  266.                 :7
  267.                 set RULENAME="Brazilian Valve Servers"
  268.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  269.                 if not ERRORLEVEL 1 (
  270.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  271.                 ) else (
  272.                 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
  273.                 )
  274.                 timeout /t 2
  275.                 goto blocks
  276.                
  277.                 :8
  278.                 set RULENAME="South African Valve Servers"
  279.                                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  280.                 if not ERRORLEVEL 1 (
  281.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  282.                 ) else (
  283.                 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
  284.                 )
  285.                 timeout /t 2
  286.                 goto blocks
  287.                
  288.                 :9
  289.                 set RULENAME="Dubain Valve Servers"
  290.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  291.                 if not ERRORLEVEL 1 (
  292.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  293.                 ) else (
  294.                 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
  295.                 )
  296.                 timeout /t 2
  297.                 goto blocks
  298.        
  299.                 :10
  300.                 set RULENAME="Australian Valve Servers"
  301.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  302.                 if not ERRORLEVEL 1 (
  303.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  304.                 ) else (
  305.                 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
  306.                 )
  307.                 timeout /t 2
  308.                 goto blocks            
  309.  
  310.                 :11
  311.                 set RULENAME="Indian Valve Servers"
  312.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  313.                 if not ERRORLEVEL 1 (
  314.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  315.                 ) else (
  316.                 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
  317.                 )
  318.                 timeout /t 2
  319.                 goto blocks    
  320.  
  321.                 :12
  322.                 set RULENAME="Singaporean Valve Servers"
  323.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  324.                 if not ERRORLEVEL 1 (
  325.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  326.                 ) else (
  327.                 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
  328.                 )
  329.                 timeout /t 2
  330.                 goto blocks            
  331.  
  332.                 :13
  333.                 set RULENAME="Japanese Valve Servers"
  334.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  335.                 if not ERRORLEVEL 1 (
  336.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  337.                 ) else (
  338.                 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
  339.                 )
  340.                 timeout /t 2
  341.                 goto blocks            
  342.  
  343.                 :14
  344.                 set RULENAME="Hong Kong Valve Servers"
  345.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  346.                 if not ERRORLEVEL 1 (
  347.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  348.                 ) else (
  349.                 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
  350.                 )
  351.                 timeout /t 2
  352.                 goto blocks            
  353.                
  354.                 :15
  355.                 set RULENAME="Spanish Valve Servers"
  356.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  357.                 if not ERRORLEVEL 1 (
  358.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  359.                 ) else (
  360.                 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
  361.                 )
  362.                 timeout /t 2
  363.                 goto blocks            
  364.                
  365.                 :16
  366.                 set RULENAME="Johannesburg Valve Servers"
  367.                 netsh advfirewall firewall show rule name=%RULENAME% >nul
  368.                 if not ERRORLEVEL 1 (
  369.                 netsh advfirewall firewall delete rule name=%RULENAME% dir=out
  370.                 ) else (
  371.                 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
  372.                 )
  373.                 timeout /t 2
  374.                 goto blocks    
  375.                
  376.                
  377.                
  378.                
  379.                
  380.                
  381.                
  382.                
  383.                
  384.                 :17
  385.                 goto start
  386.                
  387.                 :bad2
  388.                 echo OPCJA NIE ZNANA.. WYBIERZ PONOWNIE!
  389.                 timeout /t 3
  390.                 cls
  391.                 goto listblock
  392.                
  393.                
  394.                
  395.                
  396.                
  397.                 :bad
  398.                 echo OPCJA NIE ZNANABLABLABLA
  399.                 timeout /t 3
  400.                 cls
  401.                 goto start
  402.                
  403.  
  404.  
  405.  
  406.     pause >nul