Example #1
0
    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()
Example #2
0
    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()
Example #3
0
 def __init__(self, *args):
         ThugAPI.__init__(self, args)
Example #4
0
 def __init__(self, args):
     ThugAPI.__init__(self, args, configuration_path)