Advertisement
Skreffnet

Untitled

May 14th, 2020
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. #autom on
  2. on 1:sockopen:%sock: {
  3. sockclose %sock
  4. echo -0 conexion establecida %proxyIp %proxyPort
  5. if (%indProxy5 != 0) {
  6. nick eu $+ [ %indProxy5 ]
  7. ;firewall off
  8. firewall -cm5 on %proxyIp %proxyPort
  9. server -m irc.zolty.net
  10. }
  11. else {
  12. echo -0 fin de la lista
  13. }
  14. }
  15. on 1:sockclose:Proxy5: {
  16. echo -0 conexion rechazada %proxyIp %proxyPort
  17. leerProxy5
  18. }
  19. on 1:CONNECT: {
  20. echo -0 7
  21. var %ok.connect = 1
  22. join #eu
  23. msg #eu $ip %proxyIp %proxyPort
  24. ;disconnect
  25. }
  26. on *:ERROR:*: {
  27. echo -0 7 Error $1-
  28. leerProxy5
  29. }
  30.  
  31. on *:*:SIGNAL: { echo -0 7 $signal $1- }
  32.  
  33. on CONNECTFAIL: {
  34. echo -0 7 CONNECTFAIL
  35. leerProxy5
  36. }
  37.  
  38. on disconnect: {
  39. echo -0 7 disconnect
  40. go5
  41. }
  42. raw 465:*: {
  43. echo -0 7 raw 465
  44. ;leerProxy5
  45. halt
  46. }
  47.  
  48. #autom end
  49.  
  50. alias leerProxy5 {
  51. sockclose proxy5
  52. set %totProxy $lines(socks5.txt)
  53. var %indProxy5 = 1
  54. while (%indProxy5 <= %totProxy) {
  55. var %proxy = $read(socks5.txt,%indProxy5)
  56. var %proxyIp = $gettok( %proxy ,1, 58)
  57. var %proxyPort = $gettok( %proxy ,2, 58)
  58. if (%proxy) {
  59. if (!%sock) {
  60. set %sock 1
  61. }
  62. sockopen %sock %proxyIp %proxyPort
  63. inc %sock
  64. }
  65. inc %indProxy5
  66. }
  67. else {
  68. var %indProxy5 = 0
  69. }
  70. }
  71.  
  72. alias go5 {
  73. leerProxy5
  74. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement