From cb66833b7a33a6435c976cada5d56426c7675ace Mon Sep 17 00:00:00 2001 From: nnamon Date: Mon, 18 May 2020 16:27:05 +0800 Subject: [PATCH] Fix commands not being executed... ... in a high latency environment. More details here: https://github.com/besimorhino/powercat/issues/19. --- powercat.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powercat.ps1 b/powercat.ps1 index 03947dd..1324448 100644 --- a/powercat.ps1 +++ b/powercat.ps1 @@ -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()}