-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the SigMaker IDA Pro plugin #913
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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> |
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" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please use consistent indentation here |
||
$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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Create |
||
Move-Item $pluginPath -Destination $pluginsDir -Force | ||
} catch { | ||
VM-Write-Log-Exception $_ | ||
} |
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 | ||||||||||||||||
Comment on lines
+4
to
+8
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I purpose to simplify the code:
Suggested change
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] I think this comment is not needed, as this package only download a single file and the code is IMO clear.