Пример #1
0
 def run(self, fuzzresult, control_queue, results_queue):
     try:
         self.results_queue = results_queue
         self.base_fuzz_res = fuzzresult
         self.process(fuzzresult)
     except Exception as e:
         results_queue.put(plugin_factory.create("plugin_from_error", self.name, e))
     finally:
         control_queue.get()
         control_queue.task_done()
         return
Пример #2
0
def test_find_plugin_output_from_factory():
    plugin = plugin_factory.create(
        "plugin_from_finding",
        "a plugin",
        "a source",
        "an issue",
        "some data",
        FuzzPlugin.INFO,
    )

    assert plugin.is_visible(True) is True
    assert plugin.is_visible(False) is False
Пример #3
0
 def queue_url(self, url):
     self.results_queue.put(
         plugin_factory.create(
             "plugin_from_recursion", self.name, self.base_fuzz_res, url
         )
     )
Пример #4
0
 def add_result(self, itype, issue, data, severity=FuzzPlugin.INFO):
     self.results_queue.put(
         plugin_factory.create(
             "plugin_from_finding", self.name, itype, issue, data, severity
         )
     )
Пример #5
0
 def add_result(self, issue):
     self.results_queue.put(
         plugin_factory.create("plugin_from_finding", self.name, issue)
     )
Пример #6
0
def test_sum_plugin_output(example_full_fuzzres):
    plugin = plugin_factory.create("plugin_from_summary", "a message")

    assert plugin.is_visible(True) is False
    assert plugin.is_visible(False) is True