diff options
author | Matt Graeber <mattgraeber@gmail.com> | 2013-08-17 17:39:04 -0400 |
---|---|---|
committer | Matt Graeber <mattgraeber@gmail.com> | 2013-08-17 17:39:04 -0400 |
commit | 7f0be861f23e85e35284125620a4a0c1a52e83e5 (patch) | |
tree | cc715d39d73d997a085a74201bd5d631a5ee0b5d /ReverseEngineering/Get-ILDisassembly.ps1 | |
parent | 9bb31fc9b9b3524d4a4b45b8e92bc5fba6da6645 (diff) | |
download | PowerSploit-7f0be861f23e85e35284125620a4a0c1a52e83e5.tar.gz PowerSploit-7f0be861f23e85e35284125620a4a0c1a52e83e5.zip |
Added ps1xml file for Get-ILDisassembly
Output from Get-ILDisassembly is slightly cleaner.
Diffstat (limited to 'ReverseEngineering/Get-ILDisassembly.ps1')
-rw-r--r-- | ReverseEngineering/Get-ILDisassembly.ps1 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ReverseEngineering/Get-ILDisassembly.ps1 b/ReverseEngineering/Get-ILDisassembly.ps1 index b3b615e..645dc39 100644 --- a/ReverseEngineering/Get-ILDisassembly.ps1 +++ b/ReverseEngineering/Get-ILDisassembly.ps1 @@ -201,8 +201,11 @@ http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-335.pdf }
# Return a custom object containing a position, instruction, and fully-qualified operand
- New-Object PSObject -Property $Instruction
+ $InstructionObject = New-Object PSObject -Property $Instruction
+ $InstructionObject.PSObject.TypeNames.Insert(0, 'IL_INSTRUCTION')
+ $InstructionObject
+
# Adjust the position in the opcode array accordingly
$Position += $OperandLength
}
|