Analyzing apache
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
{% if data["apache"]["indexes"]["audit"] %}
|
||||
{% for item in data['apache']['indexes']['indexes'] %}
|
||||
<div class="accordion" id="accordionApacheIndexes">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#{{ data['apache']['indexes']['indexes'][item]['accordion-id'] }}" aria-expanded="true" aria-controls="{{ data['apache']['indexes']['indexes'][item]['accordion-id'] }}">
|
||||
<strong>VirtualHost {{ item }}</strong>
|
||||
{% if data['apache']['indexes']['indexes'][item]['result'] == 'failed' %}
|
||||
<span class="text-bg-danger p-1" style="padding-left:10pt;padding-right:10pt;margin-left:15pt;">{{ data['apache']['indexes']['indexes'][item]['result'] }}</span>
|
||||
{% elif data['apache']['indexes']['indexes'][item]['result'] == 'success' %}
|
||||
<span class="text-bg-success p-1" style="padding-left:10pt;padding-right:10pt;margin-left:15pt;">{{ data['apache']['indexes']['indexes'][item]['result'] }}</span>
|
||||
{% endif %}
|
||||
<span class="text-bg-primary p-1" style="padding-left:10pt;padding-right:10pt;margin-left:15pt;">{{ data['apache']['indexes']['indexes'][item]['level'] }}</span>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="{{ data['apache']['indexes']['indexes'][item]['accordion-id'] }}" class="accordion-collapse collapse" data-bs-parent="#accordionApache">
|
||||
<div class="accordion-body">
|
||||
{{ data['apache']['indexes']['indexes'][item]['description'] }}. <br />
|
||||
{% if data['apache']['indexes']['indexes'][item]['result'] == 'failed' %}
|
||||
Result of the audit:
|
||||
<div class="bd-example-snippet bd-code-snippet">
|
||||
<div class="highlight">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell">
|
||||
{% for protocol in data['apache']['indexes']['indexes'][item]['msg'] %}
|
||||
{{ protocol }}
|
||||
{% endfor %}
|
||||
</pre></code>
|
||||
</div> <!-- end .highlight -->
|
||||
</div> <!-- end .bd-code-snippet -->
|
||||
|
||||
For resolving the issue, add this line in the VirtualHost file:
|
||||
<div class="bd-example-snippet bd-code-snippet">
|
||||
<div class="highlight">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell">
|
||||
{{ data['apache']['indexes']['indexes'][item]['recommand_value'] }}
|
||||
</pre></code>
|
||||
</div> <!-- end .highlight -->
|
||||
</div> <!-- end .bd-code-snippet -->
|
||||
{% endif %}
|
||||
|
||||
</div> <!-- end .accordion-body -->
|
||||
</div> <!-- end .accordion-collapse -->
|
||||
</div> <!-- end .accordion-item -->
|
||||
</div> <!-- end .accordion -->
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{{ data['apache']['indexes']['msg'] }}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,38 @@
|
||||
{% if data['apache']['signature']['audit'] %}
|
||||
{% for item in data['apache']['signature']['signature'] %}
|
||||
<div class="accordion" id="accordionApacheSignature">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#{{ data['apache']['signature']['signature'][item]['accordion-id'] }}" aria-expanded="true" aria-controls="{{ data['apache']['signature']['signature'][item]['accordion-id'] }}">
|
||||
<strong>VirtualHost {{ item }}</strong>
|
||||
{% if data['apache']['signature']['signature'][item]['result'] == 'failed' %}
|
||||
<span class="text-bg-danger p-1" style="padding-left:10pt;padding-right:10pt;margin-left:15pt;">{{ data['apache']['signature']['signature'][item]['result'] }}</span>
|
||||
{% elif data['apache']['signature']['signature'][item]['result'] == 'success' %}
|
||||
<span class="text-bg-success p-1" style="padding-left:10pt;padding-right:10pt;margin-left:15pt;">{{ data['apache']['signature']['signature'][item]['result'] }}</span>
|
||||
{% endif %}
|
||||
<span class="text-bg-primary p-1" style="padding-left:10pt;padding-right:10pt;margin-left:15pt;">{{ data['apache']['signature']['signature'][item]['level'] }}</span>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="{{ data['apache']['signature']['signature'][item]['accordion-id'] }}" class="accordion-collapse collapse" data-bs-parent="#accordionApache">
|
||||
<div class="accordion-body">
|
||||
{{ data['apache']['signature']['signature'][item]['description'] }}. <br />
|
||||
{% if data['apache']['signature']['signature'][item]['result'] == 'failed' %}
|
||||
For resolving the issue, add this line in the VirtualHost file:
|
||||
<div class="bd-example-snippet bd-code-snippet">
|
||||
<div class="highlight">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell">
|
||||
{{ data['apache']['signature']['signature'][item]['recommand_value'] }}
|
||||
</pre></code>
|
||||
</div> <!-- end .highlight -->
|
||||
</div> <!-- end .bd-code-snippet -->
|
||||
{% endif %}
|
||||
|
||||
</div> <!-- end .accordion-body -->
|
||||
</div> <!-- end .accordion-collapse -->
|
||||
</div> <!-- end .accordion-item -->
|
||||
</div> <!-- end .accordion -->
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
{{ data['apache']['msg'] }}
|
||||
{% endif %}
|
||||
@@ -0,0 +1,48 @@
|
||||
{% if data["apache"]["ssl"]["audit"] %}
|
||||
{% for item in data['apache']['ssl']['virtualhost'] %}
|
||||
<div class="accordion" id="accordionApacheSsl">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#{{ data['apache']['ssl']['virtualhost'][item]['accordion-id'] }}" aria-expanded="true" aria-controls="{{ data['apache']['ssl']['virtualhost'][item]['accordion-id'] }}">
|
||||
<strong>VirtualHost {{ item }}</strong>
|
||||
{% if data['apache']['ssl']['virtualhost'][item]['result'] == 'failed' %}
|
||||
<span class="text-bg-danger p-1" style="padding-left:10pt;padding-right:10pt;margin-left:15pt;">{{ data['apache']['ssl']['virtualhost'][item]['result'] }}</span>
|
||||
{% elif data['apache']['ssl']['virtualhost'][item]['result'] == 'success' %}
|
||||
<span class="text-bg-success p-1" style="padding-left:10pt;padding-right:10pt;margin-left:15pt;">{{ data['apache']['ssl']['virtualhost'][item]['result'] }}</span>
|
||||
{% endif %}
|
||||
<span class="text-bg-primary p-1" style="padding-left:10pt;padding-right:10pt;margin-left:15pt;">{{ data['apache']['ssl']['virtualhost'][item]['level'] }}</span>
|
||||
</button>
|
||||
</h2>
|
||||
<div id="{{ data['apache']['ssl']['virtualhost'][item]['accordion-id'] }}" class="accordion-collapse collapse" data-bs-parent="#accordionApache">
|
||||
<div class="accordion-body">
|
||||
{{ data['apache']['ssl']['virtualhost'][item]['description'] }}. <br />
|
||||
{% if data['apache']['ssl']['virtualhost'][item]['result'] == 'failed' %}
|
||||
Result of the audit:
|
||||
<div class="bd-example-snippet bd-code-snippet">
|
||||
<div class="highlight">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell">
|
||||
{% for protocol in data['apache']['ssl']['virtualhost'][item]['msg'] %}
|
||||
{{ protocol }}
|
||||
{% endfor %}
|
||||
</pre></code>
|
||||
</div> <!-- end .highlight -->
|
||||
</div> <!-- end .bd-code-snippet -->
|
||||
|
||||
For resolving the issue, add this line in the VirtualHost file:
|
||||
<div class="bd-example-snippet bd-code-snippet">
|
||||
<div class="highlight">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell">
|
||||
{{ data['apache']['ssl']['virtualhost'][item]['recommand_value'] }}
|
||||
</pre></code>
|
||||
</div> <!-- end .highlight -->
|
||||
</div> <!-- end .bd-code-snippet -->
|
||||
{% endif %}
|
||||
|
||||
</div> <!-- end .accordion-body -->
|
||||
</div> <!-- end .accordion-collapse -->
|
||||
</div> <!-- end .accordion-item -->
|
||||
</div> <!-- end .accordion -->
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{{ data['apache']['ssl']['msg'] }}
|
||||
{% endif %}
|
||||
@@ -1,53 +1,19 @@
|
||||
<h3 class="fs-3">Apache</h3>
|
||||
|
||||
{% if data['apache']['audit'] %}
|
||||
{% for item in data['postfix']['vulnerabilities'] %}
|
||||
<div class="accordion" id="accordionApache">
|
||||
<div class="accordion-item">
|
||||
<h2 class="accordion-header">
|
||||
<button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#{{ data['postfix']['vulnerabilities'][item]['accordion-id'] }}" aria-expanded="true" aria-controls="{{ data['postfix']['vulnerabilities'][item]['accordion-id'] }}">
|
||||
<strong>{{ item }}</strong>
|
||||
{% if data['postfix']['vulnerabilities'][item]['result'] == 'failed' %}
|
||||
<span class="text-bg-danger p-1" style="padding-left:10pt;padding-right:10pt;margin-left:15pt;">{{ data['postfix']['vulnerabilities'][item]['result'] }}</span>
|
||||
{% elif data['postfix']['vulnerabilities'][item]['result'] == 'success' %}
|
||||
<span class="text-bg-success p-1" style="padding-left:10pt;padding-right:10pt;margin-left:15pt;">{{ data['postfix']['vulnerabilities'][item]['result'] }}</span>
|
||||
{% endif %}
|
||||
</button>
|
||||
</h2>
|
||||
<div id="{{ data['postfix']['vulnerabilities'][item]['accordion-id'] }}" class="accordion-collapse collapse" data-bs-parent="#accordionApache">
|
||||
<div class="accordion-body">
|
||||
{{ data['postfix']['vulnerabilities'][item]['description'] }}. <br />
|
||||
{% if data['postfix']['vulnerabilities'][item]['result'] == 'success' %}
|
||||
<div class="bd-example-snippet bd-code-snippet">
|
||||
<div class="highlight">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell">
|
||||
{{ data['postfix']['vulnerabilities'][item]['flagFound'] }}
|
||||
</pre></code>
|
||||
</div> <!-- end .highlight -->
|
||||
</div> <!-- end .bd-code-snippet -->
|
||||
{% else %}
|
||||
For resolving the issue, add this line in the <strong>{{ data['postfix']['filename'] }}</strong> vulnerabilities:
|
||||
<div class="bd-example-snippet bd-code-snippet">
|
||||
<div class="highlight">
|
||||
<pre tabindex="0" class="chroma"><code class="language-shell">
|
||||
{% for value in data['postfix']['vulnerabilities'][item]['recommand_value'] %}
|
||||
{{ data['postfix']['vulnerabilities'][item]['flag'] }} = {{ value }}
|
||||
{% endfor %}
|
||||
</pre></code>
|
||||
</div> <!-- end .highlight -->
|
||||
</div> <!-- end .bd-code-snippet -->
|
||||
{% endif %}
|
||||
<h5 class="fs-5">SSL</h5>
|
||||
{% include 'apache-ssl.html.j2' %}
|
||||
|
||||
<div style="margin-bottom: 15pt"></div>
|
||||
|
||||
{% if 'id' in data['postfix']['vulnerabilities'][item] %}
|
||||
linked with the <strong>{{ data['postfix']['vulnerabilities'][item]['id'] }}</strong>
|
||||
{% endif %}
|
||||
<h5 class="fs-5">Signature</h5>
|
||||
{% include 'apache-signature.html.j2' %}
|
||||
|
||||
</div> <!-- end .accordion-body -->
|
||||
</div> <!-- end .accordion-collapse -->
|
||||
</div> <!-- end .accordion-item -->
|
||||
</div> <!-- end .accordion -->
|
||||
{% endfor %}
|
||||
<div style="margin-bottom: 15pt"></div>
|
||||
|
||||
<h5 class="fs-5">Indexes</h5>
|
||||
{% include 'apache-indexes.html.j2' %}
|
||||
|
||||
{% else %}
|
||||
{{ data['apache']['msg'] }}
|
||||
{{ data['apache']['msg'] }}
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user