aboutsummaryrefslogtreecommitdiff
path: root/PETools/Get-DllLoadPath.ps1
diff options
context:
space:
mode:
authorbitform <matt@exploit-monday.com>2013-01-21 08:33:51 -0500
committerbitform <matt@exploit-monday.com>2013-01-21 08:33:51 -0500
commit40eb187bca6a985ce7d24b19ac54c47ade285858 (patch)
tree1c3254a0eb82a9595690fed0900075044356252b /PETools/Get-DllLoadPath.ps1
parent46aead39c6f8d04b00b3c3f2aad10b7948aa003f (diff)
downloadPowerSploit-40eb187bca6a985ce7d24b19ac54c47ade285858.tar.gz
PowerSploit-40eb187bca6a985ce7d24b19ac54c47ade285858.zip
Consistency improvements in comment-based help
Diffstat (limited to 'PETools/Get-DllLoadPath.ps1')
-rw-r--r--PETools/Get-DllLoadPath.ps120
1 files changed, 14 insertions, 6 deletions
diff --git a/PETools/Get-DllLoadPath.ps1 b/PETools/Get-DllLoadPath.ps1
index 360c913..97b0210 100644
--- a/PETools/Get-DllLoadPath.ps1
+++ b/PETools/Get-DllLoadPath.ps1
@@ -1,8 +1,11 @@
-function Get-DllLoadPath {
+function Get-DllLoadPath
+{
<#
.SYNOPSIS
-PowerSploit Module - Get-DllLoadPath
+Outputs the order of paths in which a dll would be loaded.
+
+PowerSploit Function: Get-DllLoadPath
Author: Matthew Graeber (@mattifestation)
License: BSD 3-Clause
Required Dependencies: None
@@ -14,7 +17,7 @@ Get-DllLoadPath returns the path from which Windows will load a Dll for the give
.PARAMETER ExecutablePath
- Path to the executable from which the Dll would be loaded.
+Path to the executable from which the Dll would be loaded.
.PARAMETER DllName
@@ -38,7 +41,7 @@ C:\Windows\SysWOW64\Comctl32.dll
.OUTPUTS
-$null, System.Management.Automation.PathInfo
+System.Management.Automation.PathInfo
.NOTES
@@ -51,8 +54,13 @@ http://msdn.microsoft.com/en-us/library/windows/desktop/ms682586%28v=vs.85%29.as
#>
Param (
- [Parameter(Position = 0, Mandatory = $True)] [String] $ExecutablePath,
- [Parameter(Position = 1, Mandatory = $True)] [String] $DllName
+ [Parameter(Position = 0, Mandatory = $True)]
+ [String]
+ $ExecutablePath,
+
+ [Parameter(Position = 1, Mandatory = $True)]
+ [String]
+ $DllName
)
if (!(Test-Path $ExecutablePath)) {