diff --git a/packages/capa-explorer-web.vm/capa-explorer-web.vm.nuspec b/packages/capa-explorer-web.vm/capa-explorer-web.vm.nuspec new file mode 100644 index 00000000..9d270c56 --- /dev/null +++ b/packages/capa-explorer-web.vm/capa-explorer-web.vm.nuspec @@ -0,0 +1,13 @@ + + + + capa-explorer-web.vm + 1.0.0 + Mandiant FLARE + Web interface for exploring and understanding capa results + + + + + + diff --git a/packages/capa-explorer-web.vm/tools/chocolateyinstall.ps1 b/packages/capa-explorer-web.vm/tools/chocolateyinstall.ps1 new file mode 100644 index 00000000..1770aff0 --- /dev/null +++ b/packages/capa-explorer-web.vm/tools/chocolateyinstall.ps1 @@ -0,0 +1,26 @@ +$ErrorActionPreference = 'Stop' +Import-Module vm.common -Force -DisableNameChecking + +try { + VM-Remove-PreviousZipPackage ${Env:chocolateyPackageFolder} + + $category = 'Utilities' + $toolName = 'capa Explorer Web' + $toolDir = Join-Path ${Env:RAW_TOOLS_DIR} $toolName + + $packageArgs = @{ + packageName = ${Env:ChocolateyPackageName} + unzipLocation = $toolDir + url = 'https://github.com/mandiant/capa/raw/refs/heads/master/web/explorer/releases/capa-explorer-web-v1.0.0-6a2330c.zip' + checksum = '3a7cf6927b0e8595f08b685669b215ef779eade622efd5e8d33efefadd849025' + checksumType = 'sha256' + } + Install-ChocolateyZipPackage @packageArgs + VM-Assert-Path $toolDir + + $chromePath = "${env:ProgramFiles}\Google\Chrome\Application\chrome.exe" + $capaWebPath = Get-Item "$toolDir\*.html" + VM-Install-Shortcut -toolName $toolName -category $category -executablePath $chromePath -arguments "-home $capaWebPath" +} catch { + VM-Write-Log-Exception $_ +} diff --git a/packages/capa-explorer-web.vm/tools/chocolateyuninstall.ps1 b/packages/capa-explorer-web.vm/tools/chocolateyuninstall.ps1 new file mode 100644 index 00000000..d250d526 --- /dev/null +++ b/packages/capa-explorer-web.vm/tools/chocolateyuninstall.ps1 @@ -0,0 +1,7 @@ +$ErrorActionPreference = 'Continue' +Import-Module vm.common -Force -DisableNameChecking + +$toolName = 'capa Explorer Web' +$category = 'Utilities' + +VM-Uninstall $toolName $category