def http_response_content(content): if settings.VERBOSITY_LEVEL >= 4: content = checks.remove_empty_lines(content) print(settings.print_http_response_content(content)) if menu.options.traffic_file: logs.log_traffic(content) logs.log_traffic("\n\n" + "#" * 77 + "\n\n")
def http_response_content(content): info_msg = "The target's HTTP response page content:" if settings.VERBOSITY_LEVEL >= 4: print settings.print_info_msg(info_msg) if menu.options.traffic_file: logs.log_traffic("-" * 42 + "\n" + info_msg + "\n" + "-" * 42) if settings.VERBOSITY_LEVEL >= 4: content = checks.remove_empty_lines(content) print settings.print_http_response_content(content) if menu.options.traffic_file: logs.log_traffic("\n" + content) if menu.options.traffic_file: logs.log_traffic("\n\n" + "#" * 77 + "\n\n")