Projects STRLCPY flan Commits c768fc36
🤬
  • forgot to add report template

  • Loading...
  • sw committed 4 years ago
    c768fc36
    1 parent c675f2e5
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    contrib/report_builders/templates/jinja2_report.html
     1 +<html lang="en">
     2 +<head>
     3 + <title>Flan scan report</title>
     4 + 
     5 + <style type="text/css">
     6 + body {
     7 + margin: 22pt;
     8 + }
     9 + 
     10 + h1, h2, h3 {
     11 + text-align: center;
     12 + }
     13 + 
     14 + #summary_review, #command {
     15 + font-size: 18px;
     16 + }
     17 + 
     18 + #command code {
     19 + font-family: Monospaced, monospace;
     20 + font-weight: bolder;
     21 + color: darkslategray;
     22 + }
     23 + 
     24 + .section_head {
     25 + font-family: 'helvetica', san-serif, serif;
     26 + font-size: 20px;
     27 + font-weight: bolder;
     28 + font-stretch: expanded;
     29 + }
     30 + 
     31 + .services_list {
     32 + font-family: 'helvetica', serif;
     33 + padding-left: 20px;
     34 + }
     35 + 
     36 + .service_cpe {
     37 + font-size: 16px;
     38 + font-family: 'helvetica', serif;
     39 + font-weight: bold;
     40 + }
     41 + 
     42 + .vuln_short {
     43 + border: 1px solid #1d1d1d;
     44 + padding: 8px 0 7px 6px;
     45 + text-align: left;
     46 + font-weight: bold;
     47 + }
     48 + 
     49 + .vuln_short a {
     50 + color: black;
     51 + }
     52 + 
     53 + .vuln_short.high {
     54 + background: #FD6865;
     55 + }
     56 + 
     57 + .vuln_short.medium {
     58 + background: #F8A101;
     59 + }
     60 + 
     61 + .vuln_short.low {
     62 + background: #33CDF9;
     63 + }
     64 + 
     65 + .vulns_list li {
     66 + display: inline-block;
     67 + padding: 10px;
     68 + vertical-align: top;
     69 + width: 100%;
     70 + margin: 10px 0 10px -60px;
     71 + border: 1px solid black;
     72 + }
     73 + 
     74 + .vuln_desc {
     75 + padding-top: 7px;
     76 + }
     77 + 
     78 + .locations_head {
     79 + font-size: 18px;
     80 + font-style: oblique;
     81 + font-weight: bold;
     82 + margin-left: -20px;
     83 + margin-bottom: 10px;
     84 + }
     85 + 
     86 + .locations_container {
     87 + margin-bottom: 20px;
     88 + }
     89 + 
     90 + .locations_list li {
     91 + margin-left: -70px;
     92 + list-style: none;
     93 + padding: 10px;
     94 + }
     95 + 
     96 + .ip_vulnerable {
     97 + font-size: 18px;
     98 + font-weight: bolder;
     99 + color: #9c0000;
     100 + }
     101 + 
     102 + .ip {
     103 + font-size: 18px;
     104 + color: #193232;
     105 + }
     106 + 
     107 + .non_vuln_service_list li {
     108 + margin-bottom: 10px;
     109 + margin-left: -40px;
     110 + list-style: none;
     111 + }
     112 + 
     113 + .service_name {
     114 + font-size: 16px;
     115 + font-family: helvetica, serif;
     116 + font-weight: bold;
     117 + margin-bottom: 5px;
     118 + }
     119 + 
     120 + .ip_list li {
     121 + margin-left: -25px;
     122 + }
     123 + </style>
     124 +</head>
     125 +<body>
     126 +<h1>Flan scan report</h1>
     127 +<h2>{{ data.start_date }}</h2>
     128 +<h2>Summary</h2>
     129 +<div id="summary_review">
     130 + Flan Scan ran a network vulnerability scan with the following Nmap command on Sun Nov 24 20:20:15 2019:
     131 + <div id="command">
     132 + <code>{{ data.nmap_command }}</code>
     133 + </div>
     134 +</div>
     135 +<div id="vulnerable_services">
     136 + <h4 class="section_head">Services with vulnerabilities:</h4>
     137 + <ol class="services_list">
     138 + {% for service, report in data.vulnerable.items() %}
     139 + <li>
     140 + <div class="service_cpe">{{ service }}</div>
     141 + <div class="service_vulns">
     142 + <ul class="vulns_list">
     143 + {% for vuln in report.vulnerabilities %}
     144 + <li>
     145 + <div class="vuln_short {{ vuln.severity_str.lower() }}">
     146 + <a class="vuln_link"
     147 + href="{{ vuln.url }}">{{ vuln.name }}</a> {{ vuln.severity_str }}
     148 + ({{ vuln.severity }})
     149 + </div>
     150 + <div class="vuln_desc">{{ vuln.description }}</div>
     151 + </li>
     152 + {% endfor %}
     153 + </ul>
     154 + <div class="locations_container">
     155 + <div class="locations_head">The above {{ report.vulnerabilities|length }} vulnerabilities apply
     156 + to these network locations:
     157 + </div>
     158 + <ul class="locations_list">
     159 + {% for loc, ports in report.locations.items() %}
     160 + <li> <span class="ip_vulnerable"> {{ loc }} </span> Ports: <span class="ports"> {{ ports }} </span></li>
     161 + {% endfor %}
     162 + </ul>
     163 + </div>
     164 + </div>
     165 + </li>
     166 + {% endfor %}
     167 + </ol>
     168 + 
     169 +</div>
     170 +<div id="non_vuln">
     171 + <h4 class="section_head">Services with no known vulnerabilities:</h4>
     172 + <ul class="non_vuln_service_list">
     173 + {% for service, report in data.not_vulnerable.items() %}
     174 + <li>
     175 + <div class="service_name">{{ service }}</div>
     176 + <ul class="locations_list">
     177 + {% for loc, ports in report.locations.items() %}
     178 + <li><span class="ip">{{ loc }}</span> Ports: <span class="ports">{{ ports }}</span></li>
     179 + {% endfor %}
     180 + </ul>
     181 + </li>
     182 + {% endfor %}
     183 + </ul>
     184 +</div>
     185 +<div id="ips">
     186 + <div class="section_head">List of addresses scanned:</div>
     187 + <ol class="ip_list">
     188 + {% for ip in data.ips %}
     189 + <li>{{ ip }}</li>
     190 + {% endfor %}
     191 + </ol>
     192 +</div>
     193 +</body>
     194 +</html>
Please wait...
Page is in error, reload to recover