ArchLinux-搭建-metasploitable3

Github 项目地址

安装依赖软件

1
$ sudo pacman -S packer vagrant virtualbox virtualbox-host-modules-arch

安装 vagrant 插件:

1
2
$ vagrant plugin install vagrant-vbguest
$ vagrant plugin install vagrant-reload

加载 virtualbox 所需的的内核模块:

1
2
3
$ modprobe vboxdrv
$ modprobe vboxnetflt
$ modprobe vboxnetadp

开机时自动加载, 在 /etc/modules-load.d 目录下添加文件, 如 virtualbox.conf, 写入:

1
2
3
vboxdrv
vboxnetflt
vboxnetadp

设置 virtualbox 网络

修改 /etc/vbox/networks.conf 文件, 如:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Network configuration file for VirtualBox
# Each section contains the configuration for a single
# virtual network interface
#
# The following values can be set for each interface:
#
# name - Name of the interface (e.g. "vboxnet0")
# address - IP address of the interface (e.g. "192.168.56.1")
# netmask - Netmask of the interface (e.g. "255.255.255.0")
# dhcp - Enable or disable DHCP for the interface (e.g. "on" or "off")
#
# Example configuration:
#
# [vboxnet0]
# name = vboxnet0
# address = 192.168.56.1
# netmask = 255.255.255.0
# dhcp = on

[vboxnet0]
name = vboxnet0
address = 172.28.128.3
netmask = 255.255.255.255
dhcp = on

[vboxnet1]
name = vboxnet1
address = 192.168.56.0
netmask = 255.255.248.0
dhcp = on

拉脚本运行

1
2
3
$ mkdir metasploitable3-workspace
$ cd metasploitable3-workspace
$ curl -O https://raw.githubusercontent.com/rapid7/metasploitable3/master/Vagrantfile && vagrant up

ArchLinux-搭建-metasploitable3
http://example.com/2023/03/10/ArchLinux-搭建-metasploitable3/
作者
Jie
发布于
2023年3月10日
许可协议