Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with VMX path #17

Closed
najashark opened this issue Jan 8, 2018 · 5 comments
Closed

Problem with VMX path #17

najashark opened this issue Jan 8, 2018 · 5 comments

Comments

@najashark
Copy link

there is an error when trying to use noriben frontend, but the path is right
path VMX = r'D:\Users\user\Documents\VM\win7x64\win7x64.vmx'

[*] Processing: .\suspicious_exe.exe
Error: Unrecognized command: D:\Users\user\Documents\VM\win7x64\win7x64.vmx
[!] Error trying to copy file to guest. Error 0xffffffff: Unexpected Error
@Rurik
Copy link
Owner

Rurik commented Jan 8, 2018

It sounds like some options are being dropped off the VMRUN command line when calling the VM. Can you run with the 'debug' (--debug) option set and paste the command lines shown for this error?

@najashark
Copy link
Author

najashark commented Jan 8, 2018

PS D:\Users\Pins\Desktop\Noriben-master> python .\NoribenSandbox.py --update --screenshot -t 45 -f .\suspicious_exe.exe --debug
[*] Processing: .\suspicious_exe.exe
"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" -T ws revertToSnapshot "D:\Users\user\Documents\VM\win7x64\win7x64.vmx" snap1
"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" -T ws start "D:\Users\user\Documents\VM\win7x64\win7x64.vmx"
"C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" -gu user -gp  copyFileFromHostToGuest "D:\Users\user\Documents\VM\win7x64\win7x64.vmx" ".\suspicious_exe.exe" "C:\\Malware\\malware_suspicious_exe.exe"
Error: Unrecognized command: D:\Users\user\Documents\VM\win7x64\win7x64.vmx
[!] Error trying to copy file to guest. Error 0xffffffff: Unexpected Error

And here is my config

VMX = r'D:\Users\Pins\Documents\VM\win7x64\win7x64.vmx'
# VMX = os.path.expanduser(r'~/VMs/Windows.vmwarevm/Windows.vmx')
VMRUN = vmrun_os['windows']
VM_SNAPSHOT = 'snap1'
VM_USER = 'user'
VM_PASS = ''
noribenPath = 'C:\\\\Users\\\\{}\\\\Desktop\\\\Noriben-master'.format(VM_USER)
guestNoribenPath = '{}\\\\Noriben.py'.format(noribenPath)
procmonConfigPath = '{}\\\\ProcmonConfiguration.pmc'.format(noribenPath)
reportPathStructure = '{}/{}_NoribenReport.zip'  # (hostMalwarePath, hostMalwareNameBase)
hostScreenshotPathStructure = '{}/{}.png'  # (hostMalwarePath, hostMalwareNameBase)
guestLogPath = 'C:\\\\Noriben_Logs'
guestZipPath = 'C:\\\\Program Files\\\\VMware\\\\VMware Tools\\\\zip.exe'
#guestPythonPath = 'C:\\\\Python27\\\\python.exe'
guestPythonPath = 'C:\\\\Python36-32\\\\python.exe'
hostNoribenPath = os.path.join(os.path.dirname(os.path.abspath(sys.argv[0])), 'Noriben.py')
guestMalwarePath = 'C:\\\\Malware\\\\malware_'

@Rurik
Copy link
Owner

Rurik commented Jan 8, 2018

Did you redact out the password, or is it really blank?

If it's really blank, unfortunately VMware requires a password on an account to do any external commands.

If it's redacted out, can you try to run that command directly to get the raw output instead of running it within NoribenSandbox? That is, take all the command lines that you see on the output and just copy/paste them to run them, and see if there are any additional errors displayed on the screen.

@najashark
Copy link
Author

Set the password, and now its working perfectly!
Thank you Brian

@Rurik
Copy link
Owner

Rurik commented Jan 8, 2018

Good to hear!
It's one of the little things about VMware that I learned the hard way. I'll add a check to the script to ensure it's checked so that this issue is caught in the future. Thanks for letting me know!

@Rurik Rurik closed this as completed Jan 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants