Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # POKEMON.PY 1.00 BETA -> not converted for twisted yet BYAAAAAAAAAAAAA
- #IMPORTS
- import random
- import socket
- import socks
- import string
- import time
- import threading
- #CONFIG
- server = 'irc.server.com'
- port = 6667
- channel = '#test'
- #SETUP
- pokemonList = []
- #LOAD POKEMON
- def loadPokemon():
- global pokemoneList
- pokemonFile = open('pokemon.txt','r')
- for line in pokemonFile.readlines():
- name = line.replace('\n', '');
- pokemonList.append(name)
- pokemonList.sort()
- pokemonFile.close()
- #GET POKEMON
- def getPokemon():
- global pokemonList
- listCount = len(pokemonList)
- randomLine = random.randint(1,listCount)
- return pokemonList([randomLine]);
- #SETUP
- loadPokemon()
- nick = getPokemon()
- #Message
- circlejerk = "A wild pokemon has appeared!"
- 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:
- #SPECIFY THE PROXY TYPE THERE
- ircsock.setproxy(socks.PROXY_TYPE_HTTP, 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")
- #time.sleep(60)
- # This will register the nickname.
- #ircsock.send("PRIVMSG thugaim :REGISTER "+ nick +"h "+ nick +"@gmail.com\n")
- # Joins the channel
- ircsock.send("JOIN "+ channel +"\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")
- #ircsock.send("PRIVMSG "+ channel +" : my ignore JihadRape to the moederneuker\n")
- while 1:
- ircmsg = ircsock.recv(1024)
- ircmsg = ircmsg.strip('\n\r')
- ircmsg = ircmsg.lower()
- ircsock.send("PRIVMSG "+ channel +" : "+ circlejerk +"\n")
- ircsock.send("PRIVMSG Laugh : "+ circlejerk +"\n")
- ircsock.send("PRIVMSG Cephei : "+ circlejerk +"\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 ( 5000 ):
- fil = open("database\\socks.txt", "r")
- lines = fil.readlines()
- MyThread().start()
- time.sleep(0.02)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement