mandiant / VM-Packages

Chocolatey packages supporting the analysis environment projects FLARE-VM & Commando VM.
Apache License 2.0
121 stars 61 forks source link

Template + automation for Python packages installed with pip #1080

Open Ana06 opened 2 weeks ago

Ana06 commented 2 weeks ago

Details

Code used by packages with tools installed with pip:

    VM-Pip-Install $toolName

    $executablePath = "$(where.exe $toolName)"
    $arguments = "--help"

    VM-Install-Shortcut $toolName $category $executablePath -consoleApp $true -arguments $arguments

Example: magika.vm

Create a package template, issue template & automation for this package type.

Ana06 commented 2 weeks ago

With #1083, the installation code is now very simple:

VM-Install-With-Pip -toolName $toolName -category $category

The function supports arguments, that can be used if https://github.com/mandiant/VM-Packages/issues/1082 is implemented.