Closed SUBHAMPAREEK closed 1 year ago
The exception appears to be thrown as a result of the DownloadFile
call below:
This call is trying to download the file https://raw.githubusercontent.com/mandiant/flare-vm/main/config.xml
. If you run the code below in an admin powershell prompt, does it also throw an exception?
(New-Object System.Net.WebClient).DownloadFile('https://raw.githubusercontent.com/mandiant/flare-vm/main/config.xml', "$(${Env:TEMP})\config.xml")
I'm curious, do you have an AV/EDR solution running that may be preventing the connection to the remote host?
Another thought, if you used a custom configuration provided on the command line, if the provided URL doesn't exist or has a typo, it may also result in a network error.
EDR/AV are not running. Still the same error
My next thought was that your VM might be in "host-only" mode, but I tried the same command I posted above with my VM in "host-only" mode and got the error: "The remote name could not be resolved: 'raw.githubusercontent.com'"
, so I don't think your VM is in "host-only" mode.
Overall, this seems to be a networking issue rather than an issue with the script itself. Unfortunately I'm not sure if I'll be able to properly diagnosis the root cause. You could try connecting to a proxy or VPN and trying again. Also check if there's any firewall or IDS that may be preventing the remote connection to be established.
Let me know if you find the root cause!
Closing for now, we can re-open when more information is available
@SUBHAMPAREEK were you able to identify the error? If so, please share the workaround/solution.
@Swapnil-Chatterjee @SUBHAMPAREEK I used a VPN with a random US location and it worked successfully. Thank a lot @MalwareMechanic.
Description
Every time i try to install the script it shows : Error
"Exception calling "DownloadFile" with "2" argument(s): "Unable to connect to the remote server" At line:1 char:115