From 26859306a2affd060fb4ebebed7525a5d88e967c Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Sun, 11 Feb 2018 23:59:49 +0330 Subject: 2 major bug fixed for bruiser, a lot of little improvements and bug fixed here and there --- bfd/codegen.py | 3 ++- bfd/load.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'bfd') 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): -- cgit v1.2.3