clong / DetectionLab

Automate the creation of a lab environment complete with security tooling and logging best practices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Packer : Issue with wrong URL to retrieve 7zip file

kripskroll opened this issue · comments

  • Operating System Version: All
  • Deploying via ESXi

Please verify that you are building from an updated Master branch before filing an issue.

Description of the issue:

The 7zip msi file 7z2102-x64.msi is not available anymore with URL https://www.7-zip.org/a/7z2102-x64.msi. Error 404 during Packer process for Windows images

Need to modify vm-guest-tools.bat in DetectionLab/Packer/scripts line 1, 2, 4, 5, 7 with new file name : 7z2201-x64.msi

Here are the lines corrected :

if not exist "C:\Windows\Temp\7z2201-x64.msi" (
powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://www.7-zip.org/a/7z2201-x64.msi', 'C:\Windows\Temp\7z2201-x64.msi')" <NUL
)
if not exist "C:\Windows\Temp\7z2102-x64.msi" (
powershell -Command "Start-Sleep 5; [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; (New-Object System.Net.WebClient).DownloadFile('https://www.7-zip.org/a/7z2201-x64.msi', 'C:\Windows\Temp\7z2201-x64.msi')" <NUL
)
msiexec /qb /i C:\Windows\Temp\7z2201-x64.msi


Hope that helps :)

Fixed in #861