mandiant / flare-vm

A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a reverse engineering environment on a VM.
Apache License 2.0
6.35k stars 896 forks source link

Fail to install FLARE VM #472

Closed Baskettto2 closed 1 year ago

Baskettto2 commented 1 year ago

Description

When attempting to install FLARE VM an error occurred.

Steps to Reproduce

  1. Open a PowerShell prompt as administrator
  2. Download the installation script installer.ps1 to my desktop

    (New-Object net.webclient).DownloadFile('https://raw.githubusercontent.com/mandiant/flare-vm/main/install.ps1',"$([Environment]::GetFolderPath("Desktop"))\install.ps1")

  3. Unblock the installation script by running:

    Unblock-File .\install.ps1

  4. Enable script execution by running:

    Set-ExecutionPolicy Unrestricted

  5. Execute the installer script as follow:

    .\install.ps1

Expected behavior: Application installs successfully

Actual behavior:

issue
HuskyHacks commented 1 year ago

This is -possibly- due to myget.org being down right now:

image

devilbat4202 commented 1 year ago

i have same issue

wvdgoot commented 1 year ago

I have a very similar issue:

screenshot_powershell_flarevm_installps1

This is -possibly- due to myget.org being down right now:

At the time the homepage of myget.org seems to be up again. However, de url in the API to the common.vm package is redirecting to a dead page:

https://www.myget.org/F/vm-packages/api/v2/package/common.vm

redirects to

https://az774065.vo.msecnd.net/privatefeedvm0packages/common.vm-0.0.0.20230714?sv=2015-12-11&sr=b&sig=89xD%2F0kcELWsOUBiM7Oj3pk3Ny6eZ2f66sZq4i4HjDQ%3D&st=2023-07-27T09%3A55%3A00Z&se=2023-07-27T11%3A05%3A00Z&sp=r&rscc=max-age%3D3600&rsct=binary%2Foctet-stream&rscd=filename%3Dcommon.vm.0.0.0.20230714.nupkg

See Chocolatey log below:

2023-07-27 12:26:48,843 7056 [INFO ] - [NuGet]   GET https://www.myget.org/F/vm-packages/api/v2/package/common.vm/0.0.0.20230714
2023-07-27 12:26:48,884 7056 [INFO ] - [NuGet]   NotFound https://www.myget.org/F/vm-packages/api/v2/package/common.vm/0.0.0.20230714 56ms
2023-07-27 12:26:48,926 7056 [INFO ] - [NuGet] Adding package 'common.vm.0.0.0.20230714' to folder 'C:\ProgramData\chocolatey\lib'
2023-07-27 12:26:48,940 7056 [ERROR] - common.vm not installed. An error occurred during installation:
 Value cannot be null.
Parameter name: packageStream
2023-07-27 12:26:48,940 7056 [INFO ] - common.vm package files install failed with exit code 1. Performing other installation steps.
2023-07-27 12:26:48,940 7056 [DEBUG] - No package information as package is null.
2023-07-27 12:26:49,288 7056 [DEBUG] - No package information to save as package is null.
2023-07-27 12:26:49,309 7056 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2023-07-27 12:26:49,309 7056 [ERROR] - The install of common.vm was NOT successful.
2023-07-27 12:26:49,314 7056 [ERROR] - common.vm not installed. An error occurred during installation:
 Value cannot be null.
Parameter name: packageStream
2023-07-27 12:26:49,314 7056 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bad".
2023-07-27 12:26:49,328 7056 [WARN ] - 
Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2023-07-27 12:26:49,328 7056 [INFO ] - 
2023-07-27 12:26:49,328 7056 [ERROR] - Failures
2023-07-27 12:26:49,328 7056 [ERROR] -  - common.vm (exited 1) - common.vm not installed. An error occurred during installation:
 Value cannot be null.
Parameter name: packageStream
2023-07-27 12:26:49,328 7056 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2023-07-27 12:26:49,343 7056 [DEBUG] - Exiting with 1
devilbat4202 commented 1 year ago

Still can not install

ckennington42 commented 1 year ago

I'm having the same issue as everyone else, I've been keeping an eye here: https://status.myget.org/ some services have been restored, just not the ones we need.

wade764 commented 1 year ago

I am having this issue as well. It looks like myget.org is back online but I am still recieving the error "common.cm not installed. An error occurred during installation." VirtualBox_PMAT-FlareVM_27_07_2023_11_09_27

NatchanonBR commented 1 year ago

same.. Still can not install

W1z4rd-0n3 commented 1 year ago

I have the same issue as above.

image

Does anybody know when myget.org will be functional. And do I need to start the installation from scratch or just resume from here?

GustavPinho commented 1 year ago

I've been getting exactly the same error. no myget.org for me : (

Ily455 commented 1 year ago

Hello everyone, Try this: https://www.myget.org/feed/vm-packages/package/nuget/common.vm/0.0.0.20230714

wvdgoot commented 1 year ago

The API for the packages seems to be up again. I got my install.ps1 working for me!

GustavPinho commented 1 year ago

Habemus lucem!!!!

NatchanonBR commented 1 year ago

I get error Failures

does anyone have this issue ?

GustavPinho commented 1 year ago

Da. But it keeps on pounding. At least for now. I'm still in the Cygwin phase.

wade764 commented 1 year ago

I am having this issue as well. It looks like myget.org is back online but I am still recieving the error "common.cm not installed. An error occurred during installation." VirtualBox_PMAT-FlareVM_27_07_2023_11_09_27

The installation script seems to be working for me at the moment. Some additional packages have failed however (sysinternals, sysinternals.vm, and the stringsifter library related to python) Google chrome also failed but I had already installed that manually prior to Flare-VM installation.

W1z4rd-0n3 commented 1 year ago

I am still getting the common.vm error. Anyone completed the whole installation without errors?

frtoor commented 1 year ago

MyGet package downloading appears to be operational, common.vm successfully installed, I have completed the script and installed Flare. Packages that failed: sysinternals GoogleChrome sysinternals.vm libraries.python3.vm

Have yet to troubleshoot those.

akram-alkhateeb commented 1 year ago

I get error Failures

  • common.vm - Unable to resolve dependency 'googlechrome': Unable to resolve dependencies. 'googlechrome 115.0.5790.110' is not compatible with 'cyberchef.vm 10.4.0.20230628 constraint: googlechrome (= 114.0.5735.199)'.

does anyone have this issue ?

I had to manually change the version dependency in CyberChef.vm.nupkg to the latest installed version. 1- locate chocolatey\lib\cyberchef.vm 2- open cyberchef.vm.nupkg with 7z (just open, dont extract) 3- edit cyberchef.vm.nuspec by changing the version dependency from 114.x.x.x to the latest version of google chrome (install it manually and get the version from the help button) 4- save the edited version and exit (keep in mind you are editing a packaged file so if it asked for update allow it)

this has worked for me fine after few hours of troubleshooting. I already placed an issue in Package-VM issue tracker to either update or remove the version constraint from CyberChef.vm

frtoor commented 1 year ago

I get error Failures

  • common.vm - Unable to resolve dependency 'googlechrome': Unable to resolve dependencies. 'googlechrome 115.0.5790.110' is not compatible with 'cyberchef.vm 10.4.0.20230628 constraint: googlechrome (= 114.0.5735.199)'.

does anyone have this issue ?

I had to manually change the version dependency in CyberChef.vm.nupkg to the latest installed version. 1- locate chocolatey\lib\cyberchef.vm 2- open cyberchef.vm.nupkg with 7z (just open, dont extract) 3- edit cyberchef.vm.nuspec by changing the version dependency from 114.x.x.x to the latest version of google chrome (install it manually and get the version from the help button) 4- save the edited version and exit (keep in mind you are editing a packaged file so if it asked for update allow it)

this has worked for me fine after few hours of troubleshooting. I already placed an issue in Package-VM issue tracker to either update or remove the version constraint from CyberChef.vm

Have you tried installing the latest version of Chrome prior to running the script?

akram-alkhateeb commented 1 year ago

Have you tried installing the latest version of Chrome prior to running the script?

actually yes, i had google chrome installed prior in my installation base image. however, for the trouble shooting i had remove it and let the script install it. no surprise it installed the latest version of Chrome. I also had to find the binary of 114.x.x.x that it required and installed it to no avail. it wouldn't matter what you do, unless the dependency constraint fixed/removed from cyberchef.vm the issue will persist and even prevent choco from installing anything even if not remotely related to chrome or cyberchef.

NatchanonBR commented 1 year ago

I have no idea what to do or which files to modify, so I deleted cyberchef.vm and Google.vm from C:\ProgramData\chocolatey\lib. PS Script to continue working

akram-alkhateeb commented 1 year ago

Here: 1- Navigate to C:\ProgramData\Chocolatey\lib\cyberchef.vm

1

2- Open cyberchef.vm.nupkg with 7z (or any archiver. open it, don't extract it). you might need to copy it to Desktop or any directory first!.

2

3- Edit cyberchef.vm.nuspec file (without extracting) and modify the version in <dependency id="googlechrome" version ="[115.0.5790.110]" to whatever current version of google chrome.

3

4

4- return the cyberchef.vm.nupkg back to the directory C:\ProgramData\chocolatey\lib\ (if you edited it outside) and run flare-vm install.ps1 again.

this is only a workaround (that worked for me), until the VM-Packages repository get updated

W1z4rd-0n3 commented 1 year ago

Does anyone have any idea how to solve this -

image

mcsqr50 commented 1 year ago

I'm having the same issue. Any suggestions would be appreciated.

Does anyone have any idea how to solve this -

image

devilbat4202 commented 1 year ago

hi team, Could anyone install without issue?

Baskettto2 commented 1 year ago

Installation works fine. That inconvenience was occurred due to not availability of myget.org.