Skip to content

Commit 93ce8d3

Browse files
authored
Merge pull request #1259 from d35ha/ida-plugin-hrtng
Add ida.plugin.hrtng.vm
2 parents 0594334 + 83a4552 commit 93ce8d3

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
3+
<metadata>
4+
<id>ida.plugin.hrtng.vm</id>
5+
<version>1.1.19.20250124</version>
6+
<authors>KasperskyLab</authors>
7+
<description>IDA Pro plugin with features such as decryption, automation, deobfuscation, patching, lib code recognition and pseudocode transformations.</description>
8+
<dependencies>
9+
<dependency id="common.vm" />
10+
</dependencies>
11+
</metadata>
12+
</package>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
$ErrorActionPreference = 'Stop'
2+
Import-Module vm.common -Force -DisableNameChecking
3+
4+
$pluginUrl = "https://github.com/KasperskyLab/hrtng/releases/download/v1.1.19/hrtng-1.1.19.7z"
5+
$pluginSha256 = "2b7b133663f0d4d572a13239d6e541c6d5dbf05abfa64e56ba42e1c2296356f1"
6+
$tempDownloadDir = Join-Path ${Env:TEMP} "temp_$([guid]::NewGuid())"
7+
8+
$packageArgs = @{
9+
packageName = ${Env:ChocolateyPackageName}
10+
unzipLocation = $tempDownloadDir
11+
url = $pluginUrl
12+
checksum = $pluginSha256
13+
checksumType = 'sha256'
14+
}
15+
Install-ChocolateyZipPackage @packageArgs | Out-Null
16+
VM-Assert-Path $tempDownloadDir
17+
18+
$pluginsDir = VM-Get-IDA-Plugins-Dir
19+
$pluginFileNames = @("windows\9.0\hrtng.dll", "apilist.txt", "literal.txt")
20+
ForEach ($pluginFileName in $pluginFileNames) {
21+
$pluginFile = Join-Path $tempDownloadDir "plugins\$pluginFileName" -Resolve
22+
Copy-Item $pluginFile $pluginsDir
23+
}
24+
25+
Remove-Item $tempDownloadDir -Recurse -Force -ea 0 | Out-Null
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
$ErrorActionPreference = 'Continue'
2+
Import-Module vm.common -Force -DisableNameChecking
3+
4+
$pluginNames = @("hrtng.dll", "apilist.txt", "literal.txt")
5+
ForEach ($pluginName in $pluginNames) {
6+
VM-Uninstall-IDA-Plugin -pluginName $pluginName
7+
}

0 commit comments

Comments
 (0)