Skip to content

Commit

Permalink
Merge pull request #993 from Ana06/pdbs-pdbresym
Browse files Browse the repository at this point in the history
Split pdbresym.vm
  • Loading branch information
Ana06 authored Apr 16, 2024
2 parents d30b404 + c576698 commit 38142cb
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 17 deletions.
2 changes: 1 addition & 1 deletion packages/pdbresym.vm/pdbresym.vm.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>pdbresym.vm</id>
<version>1.3.3</version>
<version>1.3.3.20240415</version>
<authors>Stephen Eckels</authors>
<description>Download PDBs</description>
<dependencies>
Expand Down
20 changes: 5 additions & 15 deletions packages/pdbresym.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
$ErrorActionPreference = 'Stop'
Import-Module vm.common -Force -DisableNameChecking

try {
$toolName = 'PDBReSym'
$category = 'Utilities'
$toolName = 'PDBReSym'
$category = 'Utilities'

$zipUrl = 'https://github.com/mandiant/STrace/releases/download/v1.3.3/PDBReSym.zip'
$zipSha256 = '803dfc0321581bc39001f050cdafe672e9e3247e96ffd42606fda3d641f0fd57'
$zipUrl = 'https://github.com/mandiant/STrace/releases/download/v1.3.3/PDBReSym.zip'
$zipSha256 = '803dfc0321581bc39001f050cdafe672e9e3247e96ffd42606fda3d641f0fd57'

$executablePath = (VM-Install-From-Zip $toolName $category $zipUrl -zipSha256 $zipSha256 -consoleApp $true -innerFolder $false -arguments "--help")[-1]

# Iterate through C:\Windows\System32 downloading all PDBs concurrently
VM-Write-Log "INFO" "Iterating through C:\Windows\System32 downloading PDBs to C:\symbols"
& $executablePath cachesyms
# The downloaded symbols are store into C:\symbols
VM-Assert-Path "C:\symbols"
} catch {
VM-Write-Log-Exception $_
}
VM-Install-From-Zip $toolName $category $zipUrl -zipSha256 $zipSha256 -consoleApp $true -innerFolder $false -arguments "--help"
13 changes: 13 additions & 0 deletions packages/pdbs.pdbresym.vm/pdbs.pdbresym.vm.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>pdbs.pdbresym.vm</id>
<version>0.0.0.20240415</version>
<authors>Stephen Eckels</authors>
<description>Download PDBs</description>
<dependencies>
<dependency id="common.vm" version="0.0.0.20240411" />
<dependency id="pdbresym.vm" version="1.3.3.20240415" />
</dependencies>
</metadata>
</package>
13 changes: 13 additions & 0 deletions packages/pdbs.pdbresym.vm/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
$ErrorActionPreference = 'Stop'
Import-Module vm.common -Force -DisableNameChecking

try {
# Iterate through C:\Windows\System32 downloading all PDBs concurrently
$executablePath = Join-Path ${Env:RAW_TOOLS_DIR} PDBReSym\PDBReSym.exe -Resolve
VM-Write-Log "INFO" "Iterating through C:\Windows\System32 downloading PDBs to C:\symbols"
& $executablePath cachesyms
# The downloaded symbols are store into C:\symbols
VM-Assert-Path "C:\symbols"
} catch {
VM-Write-Log-Exception $_
}
3 changes: 2 additions & 1 deletion scripts/test/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,9 @@ def check(self, path):
class UsesInvalidCategory(Lint):
# Some packages don't have a category (we don't create a link in the tools directory)
EXCLUSIONS = [
".dbgchild.vm",
".ollydumpex.vm",
".scyllahide.vm",
".dbgchild.vm",
"common.vm",
"debloat.vm",
"dokan.vm",
Expand All @@ -316,6 +316,7 @@ class UsesInvalidCategory(Lint):
"notepadpp.plugin.",
"npcap.vm",
"openjdk.vm",
"pdbs.pdbresym.vm",
"python3.vm",
"x64dbgpy.vm",
]
Expand Down

0 comments on commit 38142cb

Please sign in to comment.