diff --git a/packages/ida.plugin.comida.vm/ida.plugin.comida.vm.nuspec b/packages/ida.plugin.comida.vm/ida.plugin.comida.vm.nuspec new file mode 100644 index 000000000..626040518 --- /dev/null +++ b/packages/ida.plugin.comida.vm/ida.plugin.comida.vm.nuspec @@ -0,0 +1,12 @@ + + + + ida.plugin.comida.vm + 0.0.1 + An IDA Plugin that help during the analysis of modules using COM. + airbus-cert + + + + + diff --git a/packages/ida.plugin.comida.vm/tools/chocolateyinstall.ps1 b/packages/ida.plugin.comida.vm/tools/chocolateyinstall.ps1 new file mode 100644 index 000000000..bcb397068 --- /dev/null +++ b/packages/ida.plugin.comida.vm/tools/chocolateyinstall.ps1 @@ -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 $_ +} diff --git a/packages/ida.plugin.comida.vm/tools/chocolateyuninstall.ps1 b/packages/ida.plugin.comida.vm/tools/chocolateyuninstall.ps1 new file mode 100644 index 000000000..b401ae926 --- /dev/null +++ b/packages/ida.plugin.comida.vm/tools/chocolateyuninstall.ps1 @@ -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