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.88k stars 1.28k forks source link

dnSpy download URL returns 404 (dnSpy v6.1.8) #186

Closed debifrank closed 3 years ago

debifrank commented 3 years ago

To Reproduce Steps to reproduce the behavior:

  1. Run the install script

Version

Additional context It seems dnSpy has released another update as of Dec 7th which breaks the install script (like with previous bug reports). This causes a 404 not found because the release package it is attempting to download no longer exists.

debifrank commented 3 years ago

Also, windgb.fireeye and windbg.flare return (404) Not Found. Confirmed by attempting manual traversal to :

https://codemachine.com/downloads/win10rs1/X86%20Debuggers%20And%20Tools-x86_en-us.msi

debifrank commented 3 years ago
PS C:\Users\debifrank\Downloads\commando-vm-master\commando-vm-master> cinst windbg.fireeye
Chocolatey v0.10.15
Installing the following packages:
windbg.fireeye
By installing you accept licenses for the packages.
Progress: Downloading windbg.fireeye 10.0.10586.21... 100%

windbg.fireeye v10.0.10586.21
windbg.fireeye package files install completed. Performing other installation steps.
Attempt to get headers for https://codemachine.com/downloads/win10rs1/X86%20Debuggers%20And%20Tools-x86_en-us.msi failed.
  The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://codemachine.com/downloads/win10rs1/X86%20Debuggers%20And%20Tools-x86_en-us.msi'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
Downloading windbg.fireeye
  from 'https://codemachine.com/downloads/win10rs1/X86%20Debuggers%20And%20Tools-x86_en-us.msi'
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://codemachine.com/downloads/win10rs1/X86%20Debuggers%20And%20Tools-x86_en-us.msi'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
The install of windbg.fireeye was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\windbg.fireeye\tools\chocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - windbg.fireeye (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\windbg.fireeye\tools\chocolateyInstall.ps1'.
 See log for details.
PS C:\Users\debifrank\Downloads\commando-vm-master\commando-vm-master> cinst windbg.flare
Chocolatey v0.10.15
Installing the following packages:
windbg.flare
By installing you accept licenses for the packages.

windbg.flare v10.0.10586.22
windbg.flare package files install completed. Performing other installation steps.
Attempt to get headers for https://codemachine.com/downloads/win10rs1/X86%20Debuggers%20And%20Tools-x86_en-us.msi failed.
  The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://codemachine.com/downloads/win10rs1/X86%20Debuggers%20And%20Tools-x86_en-us.msi'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
Downloading windbg.flare
  from 'https://codemachine.com/downloads/win10rs1/X86%20Debuggers%20And%20Tools-x86_en-us.msi'
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://codemachine.com/downloads/win10rs1/X86%20Debuggers%20And%20Tools-x86_en-us.msi'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
The install of windbg.flare was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\windbg.flare\tools\chocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - windbg.flare (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\windbg.flare\tools\chocolateyInstall.ps1'.
 See log for details.
PS C:\Users\debifrank\Downloads\commando-vm-master\commando-vm-master> cinst dnspy.flare
Chocolatey v0.10.15
Installing the following packages:
dnspy.flare
By installing you accept licenses for the packages.
Progress: Downloading dnspy.flare 6.1.7.0... 100%

dnspy.flare v6.1.7.0
dnspy.flare package files install completed. Performing other installation steps.
Attempt to get headers for https://github.com/0xd4d/dnSpy/releases/download/v6.1.7/dnSpy-net472.zip failed.
  The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://github.com/0xd4d/dnSpy/releases/download/v6.1.7/dnSpy-net472.zip'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
Downloading dnspy
  from 'https://github.com/0xd4d/dnSpy/releases/download/v6.1.7/dnSpy-net472.zip'
ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://github.com/0xd4d/dnSpy/releases/download/v6.1.7/dnSpy-net472.zip'. Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (404) Not Found."
The install of dnspy.flare was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\dnspy.flare\tools\chocolateyInstall.ps1'.
 See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures
 - dnspy.flare (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\dnspy.flare\tools\chocolateyInstall.ps1'.
 See log for details.
jsarkisian commented 3 years ago

Same issue here

limbernie commented 3 years ago

For dnSpy, modify the download link in chocolateyInstall.ps1 similar to my windbg.flare workaround in Flare VM.