Skip to content

Commit

Permalink
Update cutter_api.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hyuunnn committed Aug 23, 2022
1 parent 3c7c879 commit db11475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hyara_lib/integration/cutter_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ def get_comment_hex(self, start_address, end_address) -> list:

def get_string(self, start_address, end_address) -> list:
result = []
data = cutter.cmdj("Csj") # get single line strings : C*.@addr
data = cutter.cmdj("Cslj") # get single line strings : C*.@addr
for i in data:
if i["offset"] >= start_address and i["offset"] <= end_address:
result.append(base64.b64decode(i["name"]).decode())
return result

def get_filepath(self) -> str:
return cutter.cmd("o.").strip()
return cutter.cmdj("ij")['core']['file']

def get_md5(self) -> str:
return cutter.cmdj("itj").get("md5", None)
Expand Down

0 comments on commit db11475

Please sign in to comment.