-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1259 from d35ha/ida-plugin-hrtng
Add ida.plugin.hrtng.vm
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
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.hrtng.vm</id> | ||
<version>1.1.19.20250124</version> | ||
<authors>KasperskyLab</authors> | ||
<description>IDA Pro plugin with features such as decryption, automation, deobfuscation, patching, lib code recognition and pseudocode transformations.</description> | ||
<dependencies> | ||
<dependency id="common.vm" /> | ||
</dependencies> | ||
</metadata> | ||
</package> |
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,25 @@ | ||
$ErrorActionPreference = 'Stop' | ||
Import-Module vm.common -Force -DisableNameChecking | ||
|
||
$pluginUrl = "https://github.com/KasperskyLab/hrtng/releases/download/v1.1.19/hrtng-1.1.19.7z" | ||
$pluginSha256 = "2b7b133663f0d4d572a13239d6e541c6d5dbf05abfa64e56ba42e1c2296356f1" | ||
$tempDownloadDir = Join-Path ${Env:TEMP} "temp_$([guid]::NewGuid())" | ||
|
||
$packageArgs = @{ | ||
packageName = ${Env:ChocolateyPackageName} | ||
unzipLocation = $tempDownloadDir | ||
url = $pluginUrl | ||
checksum = $pluginSha256 | ||
checksumType = 'sha256' | ||
} | ||
Install-ChocolateyZipPackage @packageArgs | Out-Null | ||
VM-Assert-Path $tempDownloadDir | ||
|
||
$pluginsDir = VM-Get-IDA-Plugins-Dir | ||
$pluginFileNames = @("windows\9.0\hrtng.dll", "apilist.txt", "literal.txt") | ||
ForEach ($pluginFileName in $pluginFileNames) { | ||
$pluginFile = Join-Path $tempDownloadDir "plugins\$pluginFileName" -Resolve | ||
Copy-Item $pluginFile $pluginsDir | ||
} | ||
|
||
Remove-Item $tempDownloadDir -Recurse -Force -ea 0 | Out-Null |
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,7 @@ | ||
$ErrorActionPreference = 'Continue' | ||
Import-Module vm.common -Force -DisableNameChecking | ||
|
||
$pluginNames = @("hrtng.dll", "apilist.txt", "literal.txt") | ||
ForEach ($pluginName in $pluginNames) { | ||
VM-Uninstall-IDA-Plugin -pluginName $pluginName | ||
} |