Skip to content

Commit

Permalink
Updated __init__.py requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
micah-0w0 authored Jul 11, 2024
1 parent e6a2e78 commit 4759412
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,25 @@


class MBADeobfuscationInBackground(BackgroundTaskThread):
'''Assigns a thread to MBA deobfuscation'''
def __init__(self, bv : BinaryViewType, msg : str):
'''Initiates the MBADeobfuscationInBackground object and defines bv attribute'''
"""Assigns a thread to MBA deobfuscation"""

def __init__(self, bv: BinaryViewType, msg: str):
"""Initiates the MBADeobfuscationInBackground object and defines bv attribute"""
BackgroundTaskThread.__init__(self, msg, True)
self.bv = bv

def run(self):
'''Logs all program if statements to BinaryNinja log'''
"""Logs all program if statements to BinaryNinja log"""
for instr in self.bv.mlil_instructions:
if instr.operation == MediumLevelILOperation.MLIL_IF:
log_info(instr)


def mba_deobfuscation_in_background(bv : BinaryViewType):
'''Creates a background task and starts MBA deobfuscation'''
background_task : MBADeobfuscationInBackground = MBADeobfuscationInBackground(bv, "Starting MBA Deobfuscation")
def mba_deobfuscation_in_background(bv: BinaryViewType):
"""Creates a background task and starts MBA deobfuscation"""
background_task: MBADeobfuscationInBackground = MBADeobfuscationInBackground(
bv, "Starting MBA Deobfuscation"
)
background_task.start()


Expand Down

0 comments on commit 4759412

Please sign in to comment.