Skip to content

Commit

Permalink
Add ida.plugin.sigmaker.vm
Browse files Browse the repository at this point in the history
  • Loading branch information
d35ha committed Feb 21, 2024
1 parent 2b5d0b1 commit 588a3d6
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.sigmaker.vm/ida.plugin.sigmaker.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.sigmaker.vm</id>
<version>1.0.0</version>
<description>Signature Maker Plugin for IDA Pro 8.3.</description>
<authors>A200K</authors>
<dependencies>
<dependency id="common.vm" />
</dependencies>
</metadata>
</package>
24 changes: 24 additions & 0 deletions packages/ida.plugin.sigmaker.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://github.com/A200K/IDA-Pro-SigMaker/releases/download/v1.0.0/SigMaker64.dll"
$pluginPath = Join-Path ${Env:TEMP} "SigMaker.dll"
$pluginSha256 = "D8D14721515B1473408D21C40A1F223E18D402647B78F97B685E1A534C184402"
$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.sigmaker.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 "SigMaker.dll"
Remove-Item $pluginPath -Force

0 comments on commit 588a3d6

Please sign in to comment.