diff options
author | Rob Austein <sra@hactrn.net> | 2020-09-02 02:20:54 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2020-09-02 02:20:54 -0400 |
commit | 6212a592c52372080c7c5035c6a2513dcb50cf61 (patch) | |
tree | 2f378c90d5802b717b1968cc8b963bf30673dc64 | |
parent | 9733c5e7faf9aee874c1176381abcda98deb48f9 (diff) |
Well of course there had to be one last dumb Python3 string bugpython3
-rwxr-xr-x | cryptech_muxd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptech_muxd b/cryptech_muxd index bc77a2e..d2fd54e 100755 --- a/cryptech_muxd +++ b/cryptech_muxd @@ -383,7 +383,7 @@ class ProbeIOStream(SerialIOStream): is_cty = any(prompt in response for prompt in (b"Username:", b"Password:", b"cryptech>")) try: - is_rpc = response[response.index(SLIP_END + RPC_reply) + len(SLIP_END + RPC_reply) + 4] == SLIP_END + is_rpc = response[response.index(SLIP_END + RPC_reply) + len(SLIP_END + RPC_reply) + 4] == SLIP_END[0] except ValueError: is_rpc = False except IndexError: |