def rlfi_scan(self, my_link): try: match = base_check_keyword(my_link.item, self.browser_args, [my_link.key, 'No such file']) except Exception as e: return self.error_catch('rlfi: checking keyword', my_link, e) if match: self.output.append(match)
def xss_scan(self, my_link): output = my_link + ' ||| {}' if my_link.endswith('.js'): matches = base_scan_dom(my_link, self.browser_args) if matches: self.output.append(output.format(matches)) else: match = base_check_keyword(my_link, self.browser_args, ['<SSX>']) if match: self.output.append(output.format(match))
def test_rlfi(link, browser_args, job_name, out_name, key): out = base_check_keyword(link, browser_args, [key, 'No such file']) if out: celery_output.delay(out, name, job_name, out_name)
def test_xss(url, browser_args, job_name, out_name): out = base_check_keyword(url, browser_args, ['<SSX>']) if out: output = url + ' ||| {}' celery_output.delay(output.format(out), name, job_name, out_name)