This repository was archived by the owner on Jan 21, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ https://github.com/mattifestation/PowerSploit/blob/master/Exfiltration/Get-Timed
50
50
)
51
51
52
52
# Define helper function that generates and saves screenshot
53
- Function GenScreenshot {
53
+ Function Get-Screenshot {
54
54
$ScreenBounds = [Windows.Forms.SystemInformation ]::VirtualScreen
55
55
$ScreenshotObject = New-Object Drawing.Bitmap $ScreenBounds.Width , $ScreenBounds.Height
56
56
$DrawingGraphics = [Drawing.Graphics ]::FromImage($ScreenshotObject )
@@ -86,16 +86,16 @@ https://github.com/mattifestation/PowerSploit/blob/master/Exfiltration/Get-Timed
86
86
[String ] $FilePath = (Join-Path $Path $FileName )
87
87
88
88
# run screenshot function
89
- GenScreenshot
89
+ Get-Screenshot
90
90
91
91
Write-Verbose " Saved screenshot to $FilePath . Sleeping for $Interval seconds"
92
92
93
93
Start-Sleep - Seconds $Interval
94
94
}
95
95
96
96
# note that this will run once regardless if the specified time as passed
97
- While ((Get-Date - Format HH:% m ) -lt $EndTime )
97
+ While ((Get-Date - Format HH:mm ) -lt $EndTime )
98
98
}
99
99
100
- Catch {Write-Warning " $Error [0].ToString() + $Error [0].InvocationInfo.PositionMessage" }
101
- }
100
+ Catch {Write-Error $Error [0 ].ToString() + $Error [0 ].InvocationInfo.PositionMessage}
101
+ }
You can’t perform that action at this time.
0 commit comments