一、实验目的
了解网络攻防实验环境的概念及搭建的意义,重点理解网络攻防实验环境的组成,并掌握网络攻防实验中攻击机和靶机的搭建过程。
二、实验工具
kali(攻击端) | 192.168.1.10 |
windows7(攻击端) | 192.168.1.3 |
Metasploitable2-Linux(靶机) | 192.168.1.100 |
三、实验步骤
安装Windows 7 和Kali Linux作为攻击机使用;安装Metasploitable2-Linux作为靶机使用
![](https://img-blog.csdnimg.cn/img_convert/d8e046a97a0dd24b98e06c597cb253bf.png)
![](https://img-blog.csdnimg.cn/img_convert/30f8d28fee119c0f80f0782dd3470d9e.png)
![](https://img-blog.csdnimg.cn/img_convert/e5551120ed8c38f211a8c0595a7fdeac.png)
修改kali权限为root权限
![](https://img-blog.csdnimg.cn/img_convert/980882a0d4aa52f04f52f4deaa1856d1.png)
查看IP地址,靶机的用户名和密码都是msfadmin,输入密码时不显示字符,正常输入后按回车即可进入系统命令行执行Linux命令
![](https://img-blog.csdnimg.cn/img_convert/7bea11faa03ac11b12d86823712984ae.png)
![](https://img-blog.csdnimg.cn/img_convert/5b81daca2e61789fbb2e4b1ca7ffeb90.png)
![](https://img-blog.csdnimg.cn/img_convert/01901ccceaa8af93ec6c76eb526b85ea.png)
利用ping命令来测试攻击机与靶机之间的网络连通性
![](https://img-blog.csdnimg.cn/img_convert/ead0dd6c99dd07c60a15396a0c8814a0.png)
![](https://img-blog.csdnimg.cn/img_convert/2653ef84fac4e4b581570a012deae21e.png)
![](https://img-blog.csdnimg.cn/img_convert/514cda4a73d0b56f0471bc0a4eead2b3.png)