mandiant / commando-vm

Complete Mandiant Offensive VM (Commando VM), a fully customizable Windows-based pentesting virtual machine distribution. commandovm@mandiant.com
https://www.mandiant.com/resources/blog/commando-vm-windows-offensive-distribution
Apache License 2.0
6.89k stars 1.28k forks source link

metasploit.flare 404 #127

Closed joeminicucci closed 4 years ago

joeminicucci commented 4 years ago

Confirmed that .msi does not exist at qualified url

Build Win 10.0.18363 x64 Pro

Command choco upgrade metasploit.flare -y

Log

2020-04-09 07:42:45,854 4772 [DEBUG] - ---------------------------Script Execution---------------------------
2020-04-09 07:42:45,854 4772 [DEBUG] - Running 'ChocolateyScriptRunner' for metasploit.flare v5.0.59.20191105 with packageScript 'C:\ProgramData\chocolatey\lib\metasploit.flare\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\metasploit.flare', installArguments: '', packageParameters: '',
2020-04-09 07:42:45,854 4772 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\metasploit.flare\tools\chocolateyInstall.ps1'
2020-04-09 07:42:45,917 4772 [DEBUG] - Running Get-ChocolateyWebFile -checksum '' -checksumType 'sha256' -checksum64 'd3a5902b96318a67491e5a99dacda4b29bba34a2186f88d890d05141e6414e3c' -fileFullPath 'C:\Users\root\AppData\Local\Temp\metasploit.installer.msi' -url64bit 'https://windows.metasploit.com/metasploit-framework-5.0.59%2B20191105162652-1rapid7-1-x64.msi' -url '' -packageName 'metasploit.flare' 
2020-04-09 07:42:45,933 4772 [DEBUG] - Running Get-ProcessorBits -compare '64' 
2020-04-09 07:42:45,948 4772 [DEBUG] - CPU is 64 bit
2020-04-09 07:42:45,948 4772 [DEBUG] - Setting url to 'https://windows.metasploit.com/metasploit-framework-5.0.59%2B20191105162652-1rapid7-1-x64.msi' and bitPackage to 64
2020-04-09 07:42:45,964 4772 [DEBUG] - Running Get-WebHeaders -url 'https://windows.metasploit.com/metasploit-framework-5.0.59%2B20191105162652-1rapid7-1-x64.msi' -ErrorAction 'Stop' 
2020-04-09 07:42:45,995 4772 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2020-04-09 07:42:45,995 4772 [DEBUG] - Request Headers:
2020-04-09 07:42:45,995 4772 [DEBUG] -   'Accept':'*/*'
2020-04-09 07:42:45,995 4772 [DEBUG] -   'User-Agent':'chocolatey command line'
2020-04-09 07:42:48,029 4772 [INFO ] - Attempt to get headers for https://windows.metasploit.com/metasploit-framework-5.0.59%2B20191105162652-1rapid7-1-x64.msi failed.
  The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://windows.metasploit.com/metasploit-framework-5.0.59%2B20191105162652-1rapid7-1-x64.msi'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
2020-04-09 07:42:48,029 4772 [INFO ] - Downloading metasploit.flare 64 bit
  from 'https://windows.metasploit.com/metasploit-framework-5.0.59%2B20191105162652-1rapid7-1-x64.msi'
2020-04-09 07:42:48,060 4772 [DEBUG] - Running Get-WebFile -url 'https://windows.metasploit.com/metasploit-framework-5.0.59%2B20191105162652-1rapid7-1-x64.msi' -fileName 'C:\Users\root\AppData\Local\Temp\metasploit.installer.msi' -options 'System.Collections.Hashtable' 
2020-04-09 07:42:48,060 4772 [DEBUG] - Setting request timeout to  30000
2020-04-09 07:42:48,060 4772 [DEBUG] - Setting read/write timeout to  2700000
2020-04-09 07:42:48,060 4772 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2020-04-09 07:42:50,324 4772 [ERROR] - ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://windows.metasploit.com/metasploit-framework-5.0.59%2B20191105162652-1rapid7-1-x64.msi'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
2020-04-09 07:42:50,450 4772 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\metasploit.flare\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '404'.
2020-04-09 07:42:50,450 4772 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2020-04-09 07:42:50,498 4772 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2020-04-09 07:42:50,588 4772 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\metasploit.flare'
2020-04-09 07:42:50,604 4772 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\metasploit.flare\metasploit.flare.nupkg'
  with checksum '885F9588E6B47A08E6632C0A3B22E7EC'
2020-04-09 07:42:50,604 4772 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\metasploit.flare\metasploit.flare.nuspec'
  with checksum 'FE6C70B39B22C0F92BA13BC175E9B4D3'
2020-04-09 07:42:50,604 4772 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\metasploit.flare\tools\chocolateyInstall.ps1'
  with checksum '81B3555727720BAC0E7031DC29AD3A88'
2020-04-09 07:42:50,604 4772 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\metasploit.flare\tools\chocolateyuninstall.ps1'
  with checksum '423D376B97771943A62B5BAA85FC47A4'
2020-04-09 07:42:50,604 4772 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\metasploit.flare\tools\metasploit.ico'
  with checksum '08FF173EFEC0750DD29AC7F44D972427'
2020-04-09 07:42:50,620 4772 [DEBUG] - Attempting to replace "C:\ProgramData\chocolatey\.chocolatey\metasploit.flare.5.0.59.20191105\.files"
 with "C:\ProgramData\chocolatey\.chocolatey\metasploit.flare.5.0.59.20191105\.files.4772.update".
 Backup placed at "C:\ProgramData\chocolatey\.chocolatey\metasploit.flare.5.0.59.20191105\.files.backup".
2020-04-09 07:42:50,620 4772 [DEBUG] - Attempting to copy "C:\ProgramData\chocolatey\.chocolatey\metasploit.flare.5.0.59.20191105\.files.4772.update"
 to "C:\ProgramData\chocolatey\.chocolatey\metasploit.flare.5.0.59.20191105\.files".
2020-04-09 07:42:50,620 4772 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\metasploit.flare.5.0.59.20191105\.files.4772.update".
2020-04-09 07:42:50,620 4772 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\metasploit.flare.5.0.59.20191105\.arguments".
2020-04-09 07:42:50,620 4772 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\metasploit.flare.5.0.59.20191105\.extra".
2020-04-09 07:42:50,620 4772 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\metasploit.flare.5.0.59.20191105\.version".
2020-04-09 07:42:50,620 4772 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\metasploit.flare.5.0.59.20191105\.sxs".
2020-04-09 07:42:50,620 4772 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\metasploit.flare.5.0.59.20191105\.pin".
2020-04-09 07:42:50,620 4772 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\metasploit.flare".
2020-04-09 07:42:50,635 4772 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2020-04-09 07:42:50,635 4772 [ERROR] - The upgrade of metasploit.flare was NOT successful.
2020-04-09 07:42:50,635 4772 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\metasploit.flare\tools\chocolateyInstall.ps1'.
 See log for details.
2020-04-09 07:42:50,635 4772 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\metasploit.flare'
 to 'C:\ProgramData\chocolatey\lib-bad\metasploit.flare'
2020-04-09 07:42:52,659 4772 [DEBUG] - Attempting to delete file "C:\Users\root\AppData\Local\NuGet\Cache\metasploit.flare.5.0.59.20191105.nupkg".
2020-04-09 07:42:52,673 4772 [WARN ] - 
Chocolatey upgraded 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2020-04-09 07:42:52,689 4772 [INFO ] - 
2020-04-09 07:42:52,689 4772 [ERROR] - Failures
2020-04-09 07:42:52,689 4772 [ERROR] -  - metasploit.flare (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\metasploit.flare\tools\chocolateyInstall.ps1'.
 See log for details.
2020-04-09 07:42:52,689 4772 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2020-04-09 07:42:52,708 4772 [DEBUG] - Exiting with 404
windom3arle commented 4 years ago

Same....

day1player commented 4 years ago

Thank you for the issue, we will get this fixed.

martinzeifang commented 4 years ago

hi, any Update on this?

htnhan commented 4 years ago

Everyone,

Thank you for your patience. I have updated metasploit.flare package to the latest version. You do not have to reinstall Commando VM. You can install or update metasploit by running cup metasploit.flare