def __init__(self, vba_code): self.vba_code = olevba.vba_collapse_long_lines(vba_code) self.autoexec = False self.write = False self.execute = False self.flags = '' self.suspicious = False self.autoexec_match = None self.write_match = None self.execute_match = None self.matches = []
def __init__(self, vba_code): """ MacroRaptor constructor :param vba_code: string containing the VBA macro code """ # collapse long lines first self.vba_code = olevba.vba_collapse_long_lines(vba_code) self.autoexec = False self.write = False self.execute = False self.flags = '' self.suspicious = False self.autoexec_match = None self.write_match = None self.execute_match = None self.matches = []