aboutsummaryrefslogtreecommitdiff
path: root/Tests/Exfiltration.tests.ps1
diff options
context:
space:
mode:
authorJesse Davis <jdalton.davis@gmail.com>2016-01-13 22:19:06 -0600
committerJesse Davis <jdalton.davis@gmail.com>2016-01-13 22:19:06 -0600
commit414daa60b825acc7d75fa0f932a0912c84d9267c (patch)
tree33ebb7b04feb66b1e91944d45d8537cb1b3582e8 /Tests/Exfiltration.tests.ps1
parent759bd481ae57e450fd6fb371690014e67411ac98 (diff)
parentd133db696ad364a8387163569325129b0c0b08a3 (diff)
downloadPowerSploit-414daa60b825acc7d75fa0f932a0912c84d9267c.tar.gz
PowerSploit-414daa60b825acc7d75fa0f932a0912c84d9267c.zip
Fixed Pester/PassThru
Diffstat (limited to 'Tests/Exfiltration.tests.ps1')
-rw-r--r--Tests/Exfiltration.tests.ps19
1 files changed, 4 insertions, 5 deletions
diff --git a/Tests/Exfiltration.tests.ps1 b/Tests/Exfiltration.tests.ps1
index 064ebfe..e4f60d5 100644
--- a/Tests/Exfiltration.tests.ps1
+++ b/Tests/Exfiltration.tests.ps1
@@ -25,10 +25,9 @@ Describe 'Get-Keystrokes' {
$KeyObjects = Get-Content -Path "$($env:TEMP)\key.log" | ConvertFrom-Csv
- It 'Should log all keystrokes' {
- $Keys = $KeyObjects | % { $_.TypedKey }
- $String = -join $Keys
- $String | Should Match 'Pester'
+ It 'Should log keystrokes' {
+ $FileLength = (Get-Item "$($env:TEMP)\key.log").Length
+ $FileLength | Should BeGreaterThan 14
}
It 'Should get foreground window title' {
@@ -52,4 +51,4 @@ Describe 'Get-Keystrokes' {
}
Remove-Item -Force "$($env:TEMP)\key.log"
-} \ No newline at end of file
+}