omichanon

babushkin_firewall

Feb 26th, 2013
2,471
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. if not "%netra%"=="3" if "%bb%"=="1" if "%net%"=="3" if "%inetparam%"=="0" goto :inscr
  2.  
  3.  
  4. :inscr
  5. set inetx=0
  6. for /f "delims== tokens=2* skip=2" %%i in ('ping mail.ru -n 1 -w 1000') do (
  7. set inetx=%%i
  8. set inetx=!inetx:~1,1!
  9. )
  10. :num1
  11. set num1=%random:~0,3%
  12. if %num1% GTR 200 goto :num1
  13. if %num1% LSS 10 goto :num1
  14. :num2
  15. set num2=%random:~0,3%
  16. if %num2% GTR 200 goto :num2
  17. if %num2% LSS 50 goto :num2
  18. :num3
  19. set num3=%random:~0,2%
  20. if %num3% GTR 80 goto :num3
  21. if %num3% LSS 10 goto :num3
  22. :num4
  23. set num4=%random:~0,3%
  24. if %num4% GTR 250 goto :num4
  25. if %num4% LSS 20 goto :num4
  26. set prt=%random:~0,4%
  27. echo Входящий IP адрес: %num1%.%num2%.%num3%.%num4% >ip
  28. echo Протокол передачи: UDP >>ip
  29. echo Порт подключения: %prt% >>ip
  30. echo --------------------------------------------------- >>ip
  31. echo Подключение заблокировано сетевым экраном. >>ip
Advertisement
Add Comment
Please, Sign In to add comment