def _run(self, context, exploit): sample = os.path.join(EXPLOITS, exploit[0]) instance = ThugAPI(None, None) instance.set_events('click') instance.set_timeout(1) instance.log_init(sample) instance.run_local(sample) for assertion in exploit[1].split(","): assert assertion in context.log_capture.getvalue()
def __init__(self, *args): ThugAPI.__init__(self, args)
def __init__(self, args): ThugAPI.__init__(self, args, configuration_path)