本地渗透测试靶机环境搭建指南(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 网络编辑器)
相关推荐
qq_369224339 天前
Windows全系通用!ntdll.dll文件丢失、报错、闪退问题的完整排查与修复教程
windows·dll·dll修复·dll丢失·dll错误
阿米亚波9 天前
【Windows】QEMU 启动 openEuler aarch64/arm64 架构系统 + 离线软件源
linux·windows·经验分享·笔记·架构·arm
caimouse9 天前
Reactos 第 10 章 网络操作 — 10.3.1 NIC驱动
网络·windows
初圣魔门首席弟子9 天前
Node.js 详细介绍(知识库版)
windows·qt·node.js·知识库
CHENG-JustDoIt9 天前
AI工具 | 爆火开源项目Odysseus AI 工作台:从项目介绍、部署情况及其使用等多方位分析指南(含详细步骤)
大数据·人工智能·windows·python·ai·开源·github
kingbal9 天前
Windows:flutter环境搭建
windows·flutter
未若君雅裁9 天前
Python 数据容器详解,list、tuple、str、set、dict 到底怎么选
windows·python·list
CodeKwang9 天前
Windows 环境 OCCT 8.0 编译构建及与 Qt6 项目集成
windows·qt·opencascade
我是伪码农9 天前
小兔鲜1-25
linux·服务器·windows
vx-Biye_Design9 天前
springboot安阳地区研学旅游服务小程序-计算机毕业设计源码12785
java·vue.js·windows·spring boot·tomcat·maven·mybatis