diff options
Diffstat (limited to 'bfd')
-rwxr-xr-x | bfd/codegen.py | 3 | ||||
-rwxr-xr-x | bfd/load.py | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bfd/codegen.py b/bfd/codegen.py index 5019261..2f102e9 100755 --- a/bfd/codegen.py +++ b/bfd/codegen.py @@ -9,6 +9,7 @@ import capstone from load import ELF def SigHandler_SIGINT(signum, frame): + print() sys.exit(0) class Argparser(object): @@ -27,7 +28,7 @@ class Call_Rewriter(object): def run(): for i in md.disasm(self.obj_code, 0x0): - print("0x%x:\t%s\t%s", %(i.address, i.mnemonic, i.op_str)) + print("0x%x:\t%s\t%s" %(i.address, i.mnemonic, i.op_str)) class Global_Rewriter(object): def __init__(self): diff --git a/bfd/load.py b/bfd/load.py index 22c304e..865fe91 100755 --- a/bfd/load.py +++ b/bfd/load.py @@ -8,6 +8,7 @@ from capstone import * from capstone.x86 import * def SigHandler_SIGINT(signum, frame): + print() sys.exit(0) class ExceptionHandler(object): |