Traceback (most recent call last):
File "/home/mattg/projects/flag-slurper/flag_slurper/autolib/protocols.py", line 87, in pwn_ssh
local_flags = find_flags(ssh, base_dir=base_dir)
File "/home/mattg/projects/flag-slurper/flag_slurper/autolib/exploit.py", line 27, in find_flags
if 10 < len(contents) < 60:
TypeError: object of type 'bool' has no len()
get_file_contents returns False if the get_file call fails (because of an upstream return type from paramiko. We need to properly handle this type so we don't error.
get_file_contents
returnsFalse
if theget_file
call fails (because of an upstream return type fromparamiko
. We need to properly handle this type so we don't error.