def main(): """ Parse burp log file using GDS Burp API GDS Burp Suite API by Marcin Wielgoszewski <*****@*****.**> at Gotham Digital Science Burp and Burp Suite are trademarks of PortSwigger Ltd. Copyright 2008 PortSwigger Ltd. All rights reserved. See http://portswigger.net for license terms. """ log_file = options.logfile utils.__workspace_path__ = "workspaces/" + options.workspace + "/" utils.__url_filter__ = options.url utils.make_workspace() utils.print_info( "info", "Parsing log file: " + "\033[1;33m" + log_file + "\033[1;m") dispatcher.load_modules(log_file) utils.print_info( "info", "-- Output in: " + "\033[1;33m" + utils.__workspace_path__ + "reports/\033[1;m")
def load_modules(log_file): """ Put docstring here """ total_spent = 0.0 begin = time.time() requests = parser.headers_pool(log_file) http_objs = requests.get_http_objs() end = time.time() total_spent = end - begin utils.print_info("info", "Parser Done! | Seconds %.3f" % total_spent) import_modules() rpt = report.htmltags() modules_dict = utils.parser_xml("conf/config.xml", "modules", "config") while modules_dict: i = modules_dict.pop() begin = time.time() content = eval("modules." + i["name"] + ".analysis(http_objs)") end = time.time() spent = end - begin total_spent = total_spent + spent utils.print_info("info", "- \033[1;33m" + i["name"] + "\033[1;m Spent %.3f" % spent + "\033[1;m Seconds") rpt.html_report() utils.print_info("info", "Total Time spent: %.3f" % total_spent)
def main(): """ Parse burp log file using GDS Burp API GDS Burp Suite API by Marcin Wielgoszewski <*****@*****.**> at Gotham Digital Science Burp and Burp Suite are trademarks of PortSwigger Ltd. Copyright 2008 PortSwigger Ltd. All rights reserved. See http://portswigger.net for license terms. """ log_file = options.logfile utils.__workspace_path__ = "workspaces/" + options.workspace + "/" utils.__url_filter__ = options.url utils.make_workspace() utils.print_info("info", "Parsing log file: " + "\033[1;33m" + log_file + "\033[1;m") dispatcher.load_modules(log_file) utils.print_info("info", "-- Output in: " + "\033[1;33m" + utils.__workspace_path__ + "reports/\033[1;m")