Skip to content

Commit 5d08e0b

Browse files
committed
Land rapid7#7858, Make shell_command_token time out again
2 parents 12a4a62 + a7fac41 commit 5d08e0b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/msf/core/session/provider/single_command_shell.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def shell_close()
4343
# Read data until we find the token
4444
#
4545
def shell_read_until_token(token, wanted_idx=0, timeout=10)
46+
return if timeout.to_i == 0
47+
4648
if (wanted_idx == 0)
4749
parts_needed = 2
4850
else

0 commit comments

Comments
 (0)