Skip to content

Commit

Permalink
fix #9: fix for 32b binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
DennyDai committed Jan 20, 2024
1 parent cc0a7eb commit 72ce3e7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/headless_ida/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def __init__(self, idat_path, binary_path, override_import=True):
binary_path = tempidb.name
command = f'"{idat_path}" -A -S"{escape_path(server_path)} {port}" -P+ "{binary_path}"'
else:
tempidb = tempfile.NamedTemporaryFile(suffix=".idb")
tempidb = tempfile.NamedTemporaryFile()
command = f'"{idat_path}" -o"{tempidb.name}" -A -S"{escape_path(server_path)} {port}" -P+ "{binary_path}"'
p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
while True:
Expand Down
2 changes: 1 addition & 1 deletion src/headless_ida/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def exposed_init(self, binary):
binary_path = tempidb.name
command = f'"{idat_path}" -A -S"{escape_path(server_path)} {port}" -P+ "{binary_path}"'
else:
tempidb = tempfile.NamedTemporaryFile(suffix=".idb")
tempidb = tempfile.NamedTemporaryFile()
command = f'"{idat_path}" -o"{tempidb.name}" -A -S"{escape_path(server_path)} {port}" -P+ "{binary_path}"'
p = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
while True:
Expand Down

0 comments on commit 72ce3e7

Please sign in to comment.