aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattifestation <mattgraeber@gmail.com>2013-11-07 08:04:16 -0500
committermattifestation <mattgraeber@gmail.com>2013-11-07 08:04:16 -0500
commit306a84fe81ef6a1d252eec4e0a9422480c6c52df (patch)
treeb4dbe7328a58c7d543a19865302acff63c3984e0
parent5b4b9924d5a016af996ffac91a975b9822651451 (diff)
downloadPowerSploit-306a84fe81ef6a1d252eec4e0a9422480c6c52df.tar.gz
PowerSploit-306a84fe81ef6a1d252eec4e0a9422480c6c52df.zip
Get-ILDisassembly now accepts ConstructorInfo objects
-rw-r--r--ReverseEngineering/Get-ILDisassembly.ps17
1 files changed, 4 insertions, 3 deletions
diff --git a/ReverseEngineering/Get-ILDisassembly.ps1 b/ReverseEngineering/Get-ILDisassembly.ps1
index b7293e0..af0c2a1 100644
--- a/ReverseEngineering/Get-ILDisassembly.ps1
+++ b/ReverseEngineering/Get-ILDisassembly.ps1
@@ -68,9 +68,9 @@ Disassembles the System.Array.BinarySearch(Array, Object) method
.INPUTS
-System.Reflection.MethodInfo
+System.Reflection.MethodInfo, System.Reflection.ConstructorInfo
-The method description containing the raw IL bytecodes.
+A method or constructor description containing the raw IL bytecodes.
.OUTPUTS
@@ -88,7 +88,8 @@ http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-335.pdf
Param (
[Parameter(Mandatory = $True, ValueFromPipeline = $True)]
- [System.Reflection.MethodInfo]
+ [ValidateScript({$_ -is [Reflection.MethodInfo] -or $_ -is [Reflection.ConstructorInfo]})]
+ [Object]
$MethodInfo
)