<commit_before>{% extends "base.html" %}
{% load static from staticfiles %}
{% block add_css %}
    <link rel="stylesheet" href="{% static "chosen-bootstrap/chosen.bootstrap.min.css" %}">
{% endblock %}
{% block add_styles %}
.chosen-container {
    width: 70% !important;
}
{% endblock %}
{% block content %}
    <h3> Add Tests</h3>
    <form class="form-horizontal" action="" enctype="multipart/form-data" method="post">
	{% csrf_token %}
	{% include "dojo/form_fields.html" with form=form %}
	{% include "dojo/form_fields.html" with form=cred_form %}
	<div class="form-group">
	    <div class="col-sm-offset-2 col-sm-10">
		<input class="btn btn-primary" type="submit" value="Upload File"/>
	    </div>
	</div>
    </form>
    <div class="well">
	<p>Upload your third party tool scan results and all the findings
	    will be imported automatically.</p>

	<p>DefectDojo accepts:</p>
    <ul>
	<li><b>Netsparker Scanner</b> - Netspaker JSON format.</li>
	<li><b>AWS Scout2 Scanner</b> - JS file in scout2-report/inc-awsconfig/aws_config.js.</li>
	<li><b>AWS Prowler Scanner</b> - Prowler file can be imported as a CSV file (-M csv).</li>
	<li><b>Arachni Scanner</b> - Arachni JSON report format.</li>
	<li><b>AppSpider (Rapid7)</b> - Use the VulnerabilitiesSummary.xml file found in the zipped report download.</li>
	<li><b>Bandit</b> - JSON report format</li>
	<li><b>Burp XML</b> - When the Burp report is generated, the recommended option is Base64 encoding both the request and
	    response fields. These fields will be processed and made available in the 'Finding View' page.</li>
	<li><b>Brakeman Scan</b> - Import Brakeman Scanner findings in JSON format.</li>
	<li><b>Clair Scan</b> - Import JSON reports of Docker image vulnerabilities.</li>
	<li><b>Clair Klar Scan</b> -  Import JSON reports of Docker image vulnerabilities from clair klar client.</li>
	<li><b>Contrast Scanner</b> - CSV Report</b></li>
	<li><b>Checkmarx Detailed XML Report</b></li>
	<li><b>Crashtest Security JUnit XML Report</b></li>
	<li><b>Dependency Check</b> - OWASP Dependency Check output can be imported in Xml format.</li>
	<li><b>Generic Findings Import</b> - Import Generic findings in CSV format.</li>
	<li><b>Gosec Scanner </b> - Import Gosec Scanner findings in JSON format.</li>
	<li><b>MobSF Scanner </b> - Export a JSON file using the API, api/v1/report_json.</li>
	<li><b>Nessus (Tenable)</b> - Reports can be imported as CSV or .nessus (XML) report formats.</li>
	<li><b>Nexpose XML 2.0 (Rapid7)</b> - Use the full XML export template from Nexpose.</li>
	<li><b>Nikto</b> - XML output</li>
	<li><b>Nmap</b> - XML output (use -oX)</li>
	<li><b>Node Security Platform</b> - Node Security Platform (NSP) output file can be imported in JSON format.</li>
	<li><b>NPM Audit</b> - NPM Audit Scan output file can be imported in JSON format.</li>
	<li><b>OpenVAS CSV</b> - Import OpenVAS Scan in CSV format. Export as CSV Results on OpenVAS.</li>
	<li><b>PHP Security Audit v2</b> - Import PHP Security Audit v2 Scan in JSON format.</li>
	<li><b>Qualys</b> - Qualys output files can be imported in XML format.</li>
	<li><b>Qualys WebScan</b> - Qualys WebScan output files can be imported in XML format.</li>
	<li><b>Retire.js</b> - Retire.js JavaScript scan (--js) output file can be imported in JSON format.</li>
	<li><b>Safety Scan</b> - Safety scan (--json) output file can be imported in JSON format.</li>
	<li><b>SKF Scan</b> - Output of SKF Sprint summary export.</li>
	<li><b>Snyk</b> - Snyk output file (snyk test --json > snyk.json) can be imported in JSON format.</li>
	<li><b>SonarQube</b> - SonarQube output file can be imported in HTML format.</li>
	<li><b>SpotBugs</b> - XML report of textui cli.</li>
	<li><b>SSL Labs</b> - JSON Output of ssllabs-scan cli.</li>
	<li><b>Trufflehog</b> - JSON Output of Trufflehog.</li>
	<li><b>Trustwave</b> - CSV output of Trustwave vulnerability scan.</li>
	<li><b>Visual Code Grepper (VCG)</b> - VCG output can be imported in CSV or Xml formats.</li>
	<li><b>Veracode Detailed XML Report</b></li>
	<li><b>Zed Attack Proxy</b> - ZAP XML report format.</li>
	<li><b>Acunetix Scanner</b> - XML format.</li>
    </ul>

	{% if additional_message %}
	    <p class="text-info">
		<b>Note:</b> {{ additional_message }}
	    </p>
	{% endif %}
    </div>
{% endblock %}
{% block postscript %}
    <script type="application/javascript" src="{% static "chosen/chosen.jquery.min.js" %}"></script>
    <script type="application/javascript">
	$(function () {

	    $('#id_tags').chosen({
		'placeholder_text_multiple': 'Select or add some tags...',
		'no_results_text': "Tag not found, press TAB key to add.",
	    });

	    $(".search-field").find("input").on("keydown", function (evt) {
		var stroke;
		stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
		if (stroke == 9) { // 9 = tab key
			var o = new Option($(this).val(), $(this).val(), true, true);
			$("#id_tags").append(o);
		    $('#id_tags').trigger('chosen:updated');
		    $('#id_tags').focus();
		    return false;
		}
	    });
	});
    </script>
{% endblock %}
<commit_msg>Update import_scan_results.html<commit_after>{% extends "base.html" %}
{% load static from staticfiles %}
{% block add_css %}
    <link rel="stylesheet" href="{% static "chosen-bootstrap/chosen.bootstrap.min.css" %}">
{% endblock %}
{% block add_styles %}
.chosen-container {
    width: 70% !important;
}
{% endblock %}
{% block content %}
    <h3> Add Tests</h3>
    <form class="form-horizontal" action="" enctype="multipart/form-data" method="post">
	{% csrf_token %}
	{% include "dojo/form_fields.html" with form=form %}
	{% include "dojo/form_fields.html" with form=cred_form %}
	<div class="form-group">
	    <div class="col-sm-offset-2 col-sm-10">
		<input class="btn btn-primary" type="submit" value="Upload File"/>
	    </div>
	</div>
    </form>
    <div class="well">
	<p>Upload your third party tool scan results and all the findings
	    will be imported automatically.</p>

	<p>DefectDojo accepts:</p>
    <ul>
	<li><b>Netsparker Scanner</b> - Netsparker JSON format.</li>
	<li><b>AWS Scout2 Scanner</b> - JS file in scout2-report/inc-awsconfig/aws_config.js.</li>
	<li><b>AWS Prowler Scanner</b> - Prowler file can be imported as a CSV file (-M csv).</li>
	<li><b>Arachni Scanner</b> - Arachni JSON report format.</li>
	<li><b>AppSpider (Rapid7)</b> - Use the VulnerabilitiesSummary.xml file found in the zipped report download.</li>
	<li><b>Bandit</b> - JSON report format</li>
	<li><b>Burp XML</b> - When the Burp report is generated, the recommended option is Base64 encoding both the request and
	    response fields. These fields will be processed and made available in the 'Finding View' page.</li>
	<li><b>Brakeman Scan</b> - Import Brakeman Scanner findings in JSON format.</li>
	<li><b>Clair Scan</b> - Import JSON reports of Docker image vulnerabilities.</li>
	<li><b>Clair Klar Scan</b> -  Import JSON reports of Docker image vulnerabilities from clair klar client.</li>
	<li><b>Contrast Scanner</b> - CSV Report</b></li>
	<li><b>Checkmarx Detailed XML Report</b></li>
	<li><b>Crashtest Security JUnit XML Report</b></li>
	<li><b>Dependency Check</b> - OWASP Dependency Check output can be imported in Xml format.</li>
	<li><b>Generic Findings Import</b> - Import Generic findings in CSV format.</li>
	<li><b>Gosec Scanner </b> - Import Gosec Scanner findings in JSON format.</li>
	<li><b>MobSF Scanner </b> - Export a JSON file using the API, api/v1/report_json.</li>
	<li><b>Nessus (Tenable)</b> - Reports can be imported as CSV or .nessus (XML) report formats.</li>
	<li><b>Nexpose XML 2.0 (Rapid7)</b> - Use the full XML export template from Nexpose.</li>
	<li><b>Nikto</b> - XML output</li>
	<li><b>Nmap</b> - XML output (use -oX)</li>
	<li><b>Node Security Platform</b> - Node Security Platform (NSP) output file can be imported in JSON format.</li>
	<li><b>NPM Audit</b> - NPM Audit Scan output file can be imported in JSON format.</li>
	<li><b>OpenVAS CSV</b> - Import OpenVAS Scan in CSV format. Export as CSV Results on OpenVAS.</li>
	<li><b>PHP Security Audit v2</b> - Import PHP Security Audit v2 Scan in JSON format.</li>
	<li><b>Qualys</b> - Qualys output files can be imported in XML format.</li>
	<li><b>Qualys WebScan</b> - Qualys WebScan output files can be imported in XML format.</li>
	<li><b>Retire.js</b> - Retire.js JavaScript scan (--js) output file can be imported in JSON format.</li>
	<li><b>Safety Scan</b> - Safety scan (--json) output file can be imported in JSON format.</li>
	<li><b>SKF Scan</b> - Output of SKF Sprint summary export.</li>
	<li><b>Snyk</b> - Snyk output file (snyk test --json > snyk.json) can be imported in JSON format.</li>
	<li><b>SonarQube</b> - SonarQube output file can be imported in HTML format.</li>
	<li><b>SpotBugs</b> - XML report of textui cli.</li>
	<li><b>SSL Labs</b> - JSON Output of ssllabs-scan cli.</li>
	<li><b>Trufflehog</b> - JSON Output of Trufflehog.</li>
	<li><b>Trustwave</b> - CSV output of Trustwave vulnerability scan.</li>
	<li><b>Visual Code Grepper (VCG)</b> - VCG output can be imported in CSV or Xml formats.</li>
	<li><b>Veracode Detailed XML Report</b></li>
	<li><b>Zed Attack Proxy</b> - ZAP XML report format.</li>
	<li><b>Acunetix Scanner</b> - XML format.</li>
    </ul>

	{% if additional_message %}
	    <p class="text-info">
		<b>Note:</b> {{ additional_message }}
	    </p>
	{% endif %}
    </div>
{% endblock %}
{% block postscript %}
    <script type="application/javascript" src="{% static "chosen/chosen.jquery.min.js" %}"></script>
    <script type="application/javascript">
	$(function () {

	    $('#id_tags').chosen({
		'placeholder_text_multiple': 'Select or add some tags...',
		'no_results_text': "Tag not found, press TAB key to add.",
	    });

	    $(".search-field").find("input").on("keydown", function (evt) {
		var stroke;
		stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
		if (stroke == 9) { // 9 = tab key
			var o = new Option($(this).val(), $(this).val(), true, true);
			$("#id_tags").append(o);
		    $('#id_tags').trigger('chosen:updated');
		    $('#id_tags').focus();
		    return false;
		}
	    });
	});
    </script>
{% endblock %}

{'fraction_non_alphanumeric': 0.17632018880912578, 'fraction_numerical': 0.003933523453633592, 'mean_word_length': 3.822190611664296, 'pattern_counts': {'":': 0, '<': 377, '<?xml version=': 0, '>': 379, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7140334', 'n_tokens_mistral': 3777, 'n_tokens_neox': 3527, 'n_words': 1069}