Skip to content

Commit

Permalink
Fix commands not being executed...
Browse files Browse the repository at this point in the history
... in a high latency environment. More details here: besimorhino#19.
  • Loading branch information
nnamon authored May 18, 2020
1 parent ff755ef commit cb66833
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powercat.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ Examples:
{
if($Host.UI.RawUI.KeyAvailable)
{
if(@(17,27) -contains ($Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown").VirtualKeyCode))
if(@(17,27) -contains ($Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown,IncludeKeyUp").VirtualKeyCode))
{
Write-Verbose "CTRL or ESC caught. Stopping TCP Setup..."
if($FuncVars["l"]){$Socket.Stop()}
Expand Down

0 comments on commit cb66833

Please sign in to comment.