Skip to content

Commit

Permalink
Add ida.plugin.comida.vm
Browse files Browse the repository at this point in the history
  • Loading branch information
d35ha committed Feb 21, 2024
1 parent 2b5d0b1 commit cca0d8a
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/ida.plugin.comida.vm/ida.plugin.comida.vm.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>ida.plugin.comida.vm</id>
<version>0.0.1</version>
<description>An IDA Plugin that help during the analysis of modules using COM.</description>
<authors>airbus-cert</authors>
<dependencies>
<dependency id="common.vm" />
</dependencies>
</metadata>
</package>
24 changes: 24 additions & 0 deletions packages/ida.plugin.comida.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
$ErrorActionPreference = 'Stop'
Import-Module vm.common -Force -DisableNameChecking

try {
# Download the plugin
$pluginUrl = "https://raw.githubusercontent.com/airbus-cert/comida/177ea45f98b153552dc13545dda64a6a26fab0a0/comida.py"
$pluginPath = Join-Path ${Env:TEMP} "comida.py"
$pluginSha256 = "95E33B6B8AFD44A4C924AE2BD8779C645751926F9312A99D3332066388D55BE6"
$packageArgs = @{
packageName = ${Env:ChocolateyPackageName}
url = $pluginUrl
checksum = $pluginSha256
checksumType = "sha256"
fileFullPath = $pluginPath
}
Get-ChocolateyWebFile @packageArgs
VM-Assert-Path $pluginPath

# Install the plugin
$pluginsDir = New-Item "$Env:APPDATA\Hex-Rays\IDA Pro\plugins" -ItemType "directory" -Force
Move-Item $pluginPath -Destination $pluginsDir -Force
} catch {
VM-Write-Log-Exception $_
}
8 changes: 8 additions & 0 deletions packages/ida.plugin.comida.vm/tools/chocolateyuninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$ErrorActionPreference = 'Continue'
Import-Module vm.common -Force -DisableNameChecking

$pluginsDir = "$Env:APPDATA\Hex-Rays\IDA Pro\plugins"

# Uninstall plugin
$pluginPath = Join-Path $pluginsDir "comida.py"
Remove-Item $pluginPath -Force

0 comments on commit cca0d8a

Please sign in to comment.