aboutsummaryrefslogtreecommitdiff
path: root/PETools
diff options
context:
space:
mode:
authormattifestation <mattgraeber@gmail.com>2013-09-30 06:43:03 -0400
committerclymb3r <bialek.joseph@gmail.com>2013-11-03 22:48:48 -0800
commit70e5b8375bceee892577a66d9f95597e85566110 (patch)
tree485c9540bdd17ea46dd2f4d60e450ecef346a750 /PETools
parent9fbb4ec3c39e0e42ffdfa55bdbb36aedd39e4216 (diff)
downloadPowerSploit-70e5b8375bceee892577a66d9f95597e85566110.tar.gz
PowerSploit-70e5b8375bceee892577a66d9f95597e85566110.zip
Fixed minor logic bug in C type undecorated symbols
Diffstat (limited to 'PETools')
-rw-r--r--PETools/Get-LibSymbols.ps19
1 files changed, 8 insertions, 1 deletions
diff --git a/PETools/Get-LibSymbols.ps1 b/PETools/Get-LibSymbols.ps1
index 79dede5..414454f 100644
--- a/PETools/Get-LibSymbols.ps1
+++ b/PETools/Get-LibSymbols.ps1
@@ -249,7 +249,14 @@
}
else
{
- $UndecoratedSymbol = $DecoratedSymbol.Substring(1).Split('@')[0]
+ if ($DecoratedSymbol[0] -eq '_' -or $DecoratedSymbol[0] -eq '@')
+ {
+ $UndecoratedSymbol = $DecoratedSymbol.Substring(1).Split('@')[0]
+ }
+ else
+ {
+ $UndecoratedSymbol = $DecoratedSymbol.Split('@')[0]
+ }
}
$SymInfo = @{