-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new pacakge capa-explorer-web.vm
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> | ||
<metadata> | ||
<id>capa-explorer-web.vm</id> | ||
<version>1.0.0</version> | ||
<authors>Mandiant FLARE</authors> | ||
<description>Web interface for exploring and understanding capa results</description> | ||
<dependencies> | ||
<dependency id="common.vm" /> | ||
<dependency id="googlechrome.vm" /> | ||
</dependencies> | ||
</metadata> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 $_ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$ErrorActionPreference = 'Continue' | ||
Import-Module vm.common -Force -DisableNameChecking | ||
|
||
$toolName = 'capa Explorer Web' | ||
$category = 'Utilities' | ||
|
||
VM-Uninstall $toolName $category |