-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
packages/ida.plugin.sigmaker.vm/ida.plugin.sigmaker.vm.nuspec
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,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
24
packages/ida.plugin.sigmaker.vm/tools/chocolateyinstall.ps1
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,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
8
packages/ida.plugin.sigmaker.vm/tools/chocolateyuninstall.ps1
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,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 |