Guest User

Untitled

a guest
May 20th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.70 KB | None | 0 0
  1. @echo off
  2. netsh advfirewall firewall add rule name="Block SSL" dir=in action=block enable=yes localport=0-20,23-
  3.  
  4. 52,54-79,81-562,564-65535 profile=any remoteport=0-20,23-52,54-79,81-562,564-65535 protocol=TCP
  5. netsh advfirewall firewall add rule name="Block SSL" dir=in action=block enable=yes localport=0-20,23-
  6.  
  7. 52,54-79,81-562,564-65535 profile=any remoteport=0-20,23-52,54-79,81-562,564-65535 protocol=UDP
  8. netsh advfirewall firewall add rule name="Block SSL" dir=out action=block enable=yes localport=0-20,23-
  9.  
  10. 52,54-79,81-562,564-65535 profile=any remoteport=0-20,23-52,54-79,81-562,564-65535 protocol=TCP
  11. netsh advfirewall firewall add rule name="Block SSL" dir=out action=block enable=yes localport=0-20,23-
  12.  
  13. 52,54-79,81-562,564-65535 profile=any remoteport=0-20,23-52,54-79,81-562,564-65535 protocol=UDP
  14. pause
  15. cls
  16. echo 1. Adobe Dreamweaver
  17. echo 2. Adobe Photoshop (64-Bit)
  18. echo 3. Adobe Premier Pro (64-Bit)
  19. echo 4. Adobe After Effects (64-Bit)
  20. echo 5. Adobe Illustrator
  21. echo 6. Unset Firewall Rules
  22. choice /c:123456 /m "Pick a number:"
  23. GOTO :%errorlevel%
  24.  
  25. :1
  26. cls
  27. @echo off
  28. echo Loading Dreamweaver...
  29. cd "C:\Program Files (x86)\Adobe\Adobe Dreamweaver CS5.5"
  30. Dreamweaver.exe
  31. GOTO :NXT
  32.  
  33. :2
  34. cls
  35. @echo off
  36. echo Loading Photoshop...
  37. cd "C:\Program Files\Adobe\Adobe Photoshop CS5.1 (64 Bit)"
  38. Photoshop.exe
  39. GOTO :NXT
  40.  
  41. :3
  42. cls
  43. @echo off
  44. echo Loading Premier Pro...
  45. cd "C:\Program Files\Adobe\Adobe Premiere Pro CS5.5"
  46. "Adobe Premier Pro.exe"
  47. GOTO :NXT
  48.  
  49. :4
  50. cls
  51. @echo off
  52. echo Loading After Effects
  53. cd "C:\Program Files\Adobe\Adobe After Effects CS5.5\Support Files"
  54. AfterFX.exe
  55. GOTO :NXT
  56.  
  57. :5
  58. cls
  59. @echo off
  60. echo Loading Illustrator
  61. cd "C:\Program Files (x86)\Adobe\Adobe Illustrator CS5.1\Support Files\Contents\Windows"
  62. Illustrator.exe
  63. GOTO :NXT
  64.  
  65. :6
  66. netsh advfirewall firewall delete rule name="Block SSL" dir=in localport=0-20,23-52,54-79,81-562,564-65535
  67.  
  68. profile=any remoteport=0-20,23-52,54-79,81-562,564-65535 protocol=TCP
  69. netsh advfirewall firewall delete rule name="Block SSL" dir=in localport=0-20,23-52,54-79,81-562,564-65535
  70.  
  71. profile=any remoteport=0-20,23-52,54-79,81-562,564-65535 protocol=UDP
  72. netsh advfirewall firewall delete rule name="Block SSL" dir=out localport=0-20,23-52,54-79,81-562,564-
  73.  
  74. 65535 profile=any remoteport=0-20,23-52,54-79,81-562,564-65535 protocol=TCP
  75. netsh advfirewall firewall delete rule name="Block SSL" dir=out localport=0-20,23-52,54-79,81-562,564-
  76.  
  77. 65535 profile=any remoteport=0-20,23-52,54-79,81-562,564-65535 protocol=UDP
  78. GOTO :EXIT
  79.  
  80. :NXT
  81. cls
  82. echo Do you wish to reset Firewall settings?
  83. choice /c:yn /m "Pick an option:"
  84. IF ERRORLEVEL == y GOTO :6
  85. IF ERRORLEVEL == n GOTO :n
  86.  
  87. :n
  88. GOTO :EXIT
  89.  
  90. :EXIT
  91. exitOTO :EXIT
  92.  
  93. :EXIT
  94. exit
Add Comment
Please, Sign In to add comment