Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions web/templates/analysis/network/_dns.html
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@ <h5 class="mb-0 text-white"><i class="fas fa-globe me-2 text-info"></i>DNS Reque
</td>
{% if settings.NETWORK_PROC_MAP %}
<td>
{% if p.process_name %}
{{ p.process_name }}{% if p.process_id %} ({{ p.process_id }}){% endif %}
{% if p.processes %}
{% for proc in p.processes %}
<span class="badge bg-warning text-dark">{% if proc.process_name %}{{ proc.process_name }}{% else %}(unknown){% endif %}{% if proc.pid %} ({{ proc.pid }}){% endif %}</span>
{% endfor %}
{% elif p.process_name or p.process_id %}
<span class="badge bg-warning text-dark">{% if p.process_name %}{{ p.process_name }}{% else %}(unknown){% endif %}{% if p.process_id %} ({{ p.process_id }}){% endif %}</span>
{% else %}
-
<span class="text-muted">-</span>
{% endif %}
</td>
{% endif %}
Expand Down
10 changes: 7 additions & 3 deletions web/templates/analysis/network/_dns_not_ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@
</td>
{% if settings.NETWORK_PROC_MAP %}
<td>
{% if p.process_name %}
{{ p.process_name }}{% if p.process_id %} ({{ p.process_id }}){% endif %}
{% if p.processes %}
{% for proc in p.processes %}
<span class="badge bg-warning text-dark">{% if proc.process_name %}{{ proc.process_name }}{% else %}(unknown){% endif %}{% if proc.pid %} ({{ proc.pid }}){% endif %}</span>
{% endfor %}
{% elif p.process_name or p.process_id %}
<span class="badge bg-warning text-dark">{% if p.process_name %}{{ p.process_name }}{% else %}(unknown){% endif %}{% if p.process_id %} ({{ p.process_id }}){% endif %}</span>
{% else %}
-
<span class="text-muted">-</span>
{% endif %}
</td>
{% endif %}
Expand Down
21 changes: 15 additions & 6 deletions web/templates/analysis/network/_hosts_not_ajax.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,24 @@
{% endif %}
</td>
<td>{{host.country_name}}</td>
{% if host.asn %}
<td><a href="/analysis/search/asn:{{host.asn}}"><span title="{{host.asn_name}}" style="font-weight: bold;">{{host.asn}}</span></a></td>
{% endif %}
<td>
{% if host.asn %}<a href="/analysis/search/asn:{{host.asn}}"><span title="{{host.asn_name}}" style="font-weight: bold;">{{host.asn}}</span></a>{% else %}<span class="text-muted">-</span>{% endif %}
</td>
{% if settings.NETWORK_PROC_MAP %}
<td>
{% if host.process_name %}
{{ host.process_name }}{% if host.process_id %} ({{ host.process_id }}){% endif %}
{% if host.processes %}
{% for p in host.processes %}
<span class="badge bg-warning text-dark"
{% spaceless %}title="{% if p.source %}source: {{ p.source }}{% endif %}{% if p.resolved_hostname %}{% if p.source %} | {% endif %}resolved via {{ p.resolved_hostname }}{% endif %}{% if p.protocol %}{% if p.source or p.resolved_hostname %} | {% endif %}{{ p.protocol }}{% if p.dst_port %}:{{ p.dst_port }}{% endif %}{% endif %}"{% endspaceless %}
{% if p.process_name %}{{ p.process_name }}{% else %}(unknown){% endif %}{% if p.pid %} ({{ p.pid }}){% endif %}
</span>
{% endfor %}
{% elif host.process_name or host.process_id %}
<span class="badge bg-warning text-dark">
{% if host.process_name %}{{ host.process_name }}{% else %}(unknown){% endif %}{% if host.process_id %} ({{ host.process_id }}){% endif %}
</span>
{% else %}
-
<span class="text-muted">-</span>
{% endif %}
</td>
{% endif %}
Expand Down
Loading