diff --git a/Library/firehose.py b/Library/firehose.py index 075c821..26f0b37 100755 --- a/Library/firehose.py +++ b/Library/firehose.py @@ -3,6 +3,7 @@ import platform import time import json from struct import unpack +from binascii import hexlify from Library.utils import * from Library.gpt import gpt from Library.sparse import QCSparse diff --git a/Library/gpt.py b/Library/gpt.py index 5f071a0..97642ca 100755 --- a/Library/gpt.py +++ b/Library/gpt.py @@ -1,5 +1,5 @@ #!/usr/bin/env python3 -import binascii +from binascii import hexlify from Library.utils import * @@ -179,7 +179,7 @@ class gpt(metaclass=LogBase): guid2 = struct.unpack(" 0: if res[0] == 0x27: res, nvitem = self.read_nvitem(item) - if res == False: + if not res: print(f"Error while writing nvitem {hex(item)} data, %s" % data) else: if nvitem.data != data: diff --git a/requirements.txt b/requirements.txt index 68b84a9..c08275e 100755 --- a/requirements.txt +++ b/requirements.txt @@ -6,4 +6,7 @@ pylzma>=0.5.0 pycryptodome lxml>=4.6.1 colorama +usb +capstone +keystone-engine