diff --git a/fa/commands/find_str.py b/fa/commands/find_str.py index 9f2dbca..f4ffbd2 100644 --- a/fa/commands/find_str.py +++ b/fa/commands/find_str.py @@ -30,8 +30,8 @@ def get_parser(): return p -def find_str(string, null_terminated=False): - hex_str = binascii.hexlify(string) +def find_str(string: str, null_terminated: bool = False): + hex_str = str(binascii.hexlify(bytearray(string.encode())).decode()) if null_terminated: hex_str += '00' return find_bytes.find_bytes(hex_str)