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.55k stars 915 forks source link

Check valid username in installer #452

Closed elevateman closed 1 year ago

elevateman commented 1 year ago

Upon following this script: Open a PowerShell prompt as administrator Download the installation script installer.ps1 to your desktop (New-Object net.webclient).DownloadFile('https://raw.githubusercontent.com/mandiant/flare-vm/main/install.ps1',"$([Environment]::GetFolderPath("Desktop"))\install.ps1") Unblock the installation script by running: Unblock-File .\install.ps1 Enable script execution by running: Set-ExecutionPolicy Unrestricted If you receive an error saying the execution policy is overridden by a policy defined at a more specific scope, you may need to pass a scope in via Set-ExecutionPolicy Unrestricted -Scope CurrentUser to view execution policies for all scopes, type Get-ExecutionPolicy -List Finally, execute the installer script as follow: .\install.ps1

I get the following error See Image

Untitled

elevateman commented 1 year ago

The solution is to build the windows 10 VM with a one word user name. I kept making the fresh windows install with user name "JOHN DOE" instead of a single word user name. This resolved the issue upon package install the paths where the package is installed is clear of blanks in the path and hence can find the source files. Install was successful.

Ana06 commented 1 year ago

The following recommendation is already in the README:

Avoiding usernames containing a space or other special characters

But we could add a check when installing flare-vm.

HuskyHacks commented 1 year ago

@Ana06 FYSA, adding this check in https://github.com/mandiant/flare-vm/pull/485

mr-tz commented 1 year ago

See #485, thanks @HuskyHacks!