Giter Site home page Giter Site logo

Problem with VMX path about noriben HOT 5 CLOSED

rurik avatar rurik commented on September 6, 2024
Problem with VMX path

from noriben.

Comments (5)

Rurik avatar Rurik commented on September 6, 2024

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?

from noriben.

najashark avatar najashark commented on September 6, 2024
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_'

from noriben.

Rurik avatar Rurik commented on September 6, 2024

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.

from noriben.

najashark avatar najashark commented on September 6, 2024

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

from noriben.

Rurik avatar Rurik commented on September 6, 2024

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!

from noriben.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.