- 下載 metasploitable3
- 下載 Packer
- 解壓進入
metasploitable3-master
文件夾 - 執行命令:
packer build --only=vmware-iso ./packer/templates/windows_2008_r2.json
也可以構建ubuntu_1404.json
。虛擬化平台支持virtualbox-iso,qemu 和 vmware-iso
。
如果報錯:Deprecated configuration key: 'iso_checksum_type'
,則執行 :
packer build --only=vmware-iso ./packer/templates/windows_2008_r2.json > ./packer/templates/windows_2008_r2_fix.json
packer build --only=vmware-iso ./packer/templates/windows_2008_r2_fix.json
若報錯:Error parsing JSON: invalid character
,說明有編碼問題,只需復制一個 windows_2008_r2.json
的副本,然后把 windows_2008_r2_fix.json
文件內容復制過去即可,然后重新 build。
Vmware 會自動打開,自動安裝系統。虛擬機安裝在 metasploitable3-master\output-vmware-iso
目錄中。
參考:
metasploitable3 的 GitHub 文檔
相關鏈接:
下載 Packer