本地渗透测试靶机环境搭建指南(VMware + VirtualBox)

一、整体拓扑

复制代码
  宿主机(Win/Linux)  
  ├─ VMware Workstation → Kali Linux(主力攻击机)  
  └─ Oracle VirtualBox → 各类靶机(VulnHub、本地镜像)

原则是 ova 靶机一律装在 VirtualBox ,若导入后名称是"vm"且网卡无法识别,说明为 VMware 上制作的靶机,此时只能用 VMware 导入。

二、两种网络方案

方案 配置要点 优点 缺点 适用场景
① 隔离模式 Kali 新增一块桥接至 VirtualBox Host-Only 靶机网段干净,无外部干扰 靶机无法访问互联网 离线漏洞演练、CTF 复盘
② 直通模式 VMware & VirtualBox 均桥接到物理网卡 靶机可联网,更新方便 易受物理网络影响,可能出现 IP 冲突、广播风暴 需要在线拉取 payload、模拟真实攻防

方案一配置:

vmware:

kali设置静态ip:

bash 复制代码
└─# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.111.5
netmask 255.255.255.0
gateway 192.168.111.2

auto eth1
iface eth1 inet static
address 192.168.56.5
netmask 255.255.255.0
gateway 192.168.56.2  

其中eth0为nat网卡,eth1为vbox桥接网卡

virtualbox:

注:VirtualBox 默认 Host-Only 网段为 192.168.56.0/24

三、快速排错

  1. 无法获取 IP ➜ 确认 DHCP 服务已开启(VMware/VBox 网络编辑器)
相关推荐
小蜗牛狂飙记6 分钟前
Windows 双击 Jar 包无反应,不用写 bat 脚本!Jarfix 一键修复(以 Struts2 扫描工具为例)
windows·struts·jar
坐看风云变幻22 分钟前
Betaflight 开发环境搭建保姆级教程(Ubuntu / Windows+WSL / Docker 三方案 + 官方网址大全)
windows·ubuntu·docker·无人机·飞控·betaflight
IT技术分享社区1 小时前
在 Windows 上跑未改动的 Linux 程序:微软 LiteBox v0.1 把这件事变简单了
linux·运维·windows·microsoft·开源
kakakahahahaha1 小时前
Win10/Win11 Windows Hello指纹不可用处理:WbioSrvc、传感器驱动与登录策略
windows·电脑·笔记本电脑·内容运营·软件需求
小黄人软件2 小时前
粘贴助手C++版 支持 Windows 7 / 10 / 11 不会出现缺少api-ms-win-core-path-11-1-0.dll
开发语言·c++·windows
Vex2une11 小时前
Windows 性能监视器发展史:从 PerfMon 计数器到 XPerf 深度诊断
windows·wpa·etw·性能监视器·perfmon·性能计数器·xperf
在角落发呆11 小时前
工具配置备份步骤:从手动备份到自动化方案
运维·windows·自动化
Vd7H20A712 小时前
Windows 下用 llama.cpp 运行 Qwen3.8-27B 并开启 512K 上下文 完全指南
windows·llama
kakakahahahaha18 小时前
Win10/Win11扬声器有电平无声音:Audio服务、默认设备与驱动修复
windows·电脑·笔记本电脑·软件需求·windows电脑没有声音
百事牛科技21 小时前
RAR如何加密码:三种场景一次说清
windows·winrar