diff options
author | HarmJ0y <will@harmj0y.net> | 2016-06-12 16:17:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-12 16:17:17 -0400 |
commit | 0f2bd1d7f360bc99fd65d95b9ede94db4784e7da (patch) | |
tree | 6dbf68bbfe22037585bc01bf950480a056b8bb15 | |
parent | c53cd87d8f93637a2f26973036a749ab9d3e78fc (diff) | |
parent | 8270743fb1ec9dc00da0aab41ea98db594fc02ed (diff) | |
download | PowerSploit-0f2bd1d7f360bc99fd65d95b9ede94db4784e7da.tar.gz PowerSploit-0f2bd1d7f360bc99fd65d95b9ede94db4784e7da.zip |
Merge pull request #150 from breenmachine/dev
Fixed thread countdown timer in Invoke-ThreadedFunction, wasn't ever …
-rwxr-xr-x | Recon/PowerView.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Recon/PowerView.ps1 b/Recon/PowerView.ps1 index 1c2bd26..62ed867 100755 --- a/Recon/PowerView.ps1 +++ b/Recon/PowerView.ps1 @@ -9263,7 +9263,7 @@ function Invoke-ThreadedFunction { $WaitTimeout = Get-Date # set a 60 second timeout for the scanning threads - while ($($Jobs | Where-Object {$_.IsCompleted -eq $False}).count -gt 0 -or $($($(Get-Date) - $WaitTimeout).totalSeconds) -gt 60) { + while ($($Jobs | Where-Object {$_.IsCompleted -eq $False}).count -gt 0 -and $($($(Get-Date) - $WaitTimeout).totalSeconds) -lt 60) { Start-Sleep -MilliSeconds 500 } |