Commit Graph

25 Commits

Author SHA1 Message Date
Matt Graeber 94751bc156 New-Object proxy function compatibility fix
I was calling the [Guid]::TryParse method that was only present in .NET
4 so this wasn't working in PowerShell v2.
2013-06-08 09:47:16 -04:00
Matt Graeber 12d1ebaac2 Forgot to add -Property param to CLSID option 2013-06-05 22:13:26 -04:00
Matt Graeber e210c89f39 Added New-Object proxy function
You can provide a CLSID (i.e. a Guid) to New-Object via the -ComObject
parameter in addition to a ProgId.
2013-06-05 22:03:27 -04:00
Matt Graeber 02c982dd18 Type names added to Get-NtSystemInformation
When displaying handle information, you can now filter by and display
object type names: Get-NtSystemInformation
2013-06-01 09:55:04 -04:00
Matt Graeber 6e5338c8a3 Fixed architecture detection bug in Get-PEB
I was checking processor architecture when I should have been checking
OS architecture.
2013-05-31 18:56:57 -04:00
Matt Graeber 9b4b3dcc73 Silly me. Just discovered the SetOffset method.
Thanks @JosephBialek!
2013-05-29 18:32:24 -04:00
Matt Graeber 7d5e884c3f ProcessParameters now displays properly 2013-05-25 08:58:24 -04:00
Matt Graeber 91bd44f0f0 Get-PEB now parses _RTL_USER_PROCESS_PARAMETERS 2013-05-24 21:16:43 -04:00
Matt Graeber 3d27e6b7de _SYSTEM_HANDLE_INFORMATION prints as a table now 2013-05-16 20:40:21 -04:00
Matt Graeber c98734a764 Added _SYSTEM_LOCK_INFORMATION struct
Yet another method of leaking kernel pointers.
2013-05-16 20:21:04 -04:00
Matt Graeber c17f16bf0e Cleaned up Get-NtSystemInformation
* Removed the unnecessary NTSTATUS entries
* Used splatting instead of backticks
* Fixed a n00b memory management error as well.
2013-05-13 21:18:48 -04:00
Matt Graeber f32a572fb9 Object access mask now displays properly 2013-05-12 15:28:44 -04:00
Matt Graeber a1a842a218 Removed duplicate type definition 2013-05-12 13:22:30 -04:00
Matt Graeber 781e48c570 Removed some extraneous comments 2013-05-12 12:41:32 -04:00
Matt Graeber ea0dc9a2b8 Added Get-NtSystemInformation
Get-NtSystemInformation is a wrapper function for
NtQuerySystemInformation. It is a swiss-army knife tool for obtaining
internal OS information. It can currently be used to query the
following: global flags, handles, objects, kernel pool allocations, and
loaded kernel modules
2013-05-12 10:27:15 -04:00
Matt Graeber 9c95f0bfda Removing Get-KernelModuleInfo
Making way for Get-NtSystemInformation. Loaded kernel module information
can be viewed with `Get-NtSystemInformation -ModuleInformation`
2013-05-12 10:18:49 -04:00
Matt Graeber 3d75f54835 Added ConvertTo-String
ConvertTo-String converts the bytes of a file to a string that has a
1-to-1 mapping back to the file's original bytes. ConvertTo-String is
useful for performing binary regular expressions.
2013-05-10 16:24:19 -04:00
Matt Graeber 1e79c0f793 Fixed x86 bug in Get-MethodAddress
Get-MethodAddress was not working correctly in 32-bit PowerShell because
it was returning a [UInt64] value when it should have been a [UInt32].
This fix will detect if PowerShell is running as 32 or 64-bit and define
its return type accordingly.
2013-04-05 11:04:48 -04:00
bitform feca7f2513 Get-MethodAddress now returns an IntPtr.
It previously returned a UInt64. Returning an IntPtr makes more sense.
2013-02-17 18:12:00 -05:00
bitform 40eb187bca Consistency improvements in comment-based help 2013-01-21 08:33:51 -05:00
bitform 321d1f4c51 Corrections made to usage documentation 2013-01-20 21:36:49 -05:00
bitform 065a3b63a4 Updated module manifest file listing 2013-01-20 19:48:51 -05:00
bitform ce08c38843 Renamed Usage.txt to Usage.md to apply markdown. 2013-01-20 18:41:22 -05:00
bitform e9b22e9ae2 Removed logic in scripts to load ps1xml files
* Now that PETools and ReverseEngineering are both full-fledged modules
with proper manifests, the manifests will take care of loading the
appropriate ps1xml files.
* Added Usage.txt to ReverseEngineering module.
2013-01-20 08:56:37 -05:00
bitform 3c87916e19 Renamed RE_Tools. Now ReverseEngineering module
* I renamed RE_Tools to ReverseEngineering and made it a module.
* Slight consistency modifications were made to documentation.
* This is one step in the process of modularizing all of PowerSploit.
2013-01-19 18:59:40 -05:00