diff --git a/app/templates/_macros_ssl_tls.html b/app/templates/_macros_ssl_tls.html deleted file mode 100644 index 12689ce..0000000 --- a/app/templates/_macros_ssl_tls.html +++ /dev/null @@ -1,195 +0,0 @@ -{# templates/_macros_ssl_tls.html #} -{% macro ssl_tls_card(ssl_tls) %} -
SSL/TLS enrichment failed or is unavailable.
- {% if ssl_tls and ssl_tls.error %} -{{ ssl_tls.error }}
- {% endif %}
-
- {# -------- 2) Skipped branch -------- #}
- {% elif ssl_tls.skipped %}
- Skipped
- {% if ssl_tls.reason %}{{ ssl_tls.reason }}{% endif %}
-
- {{ ssl_tls|tojson(indent=2) }}
- {{ probe.hostname }}:{{ probe.port }}
- {% endif %}
- No probe data.
- {% else %} -| Version | -Status | -Selected Cipher | -Latency | -
|---|---|---|---|
| {{ v }} | -- {% if r and r.supported %} - Supported - {% else %} - Not Supported - {% endif %} - | -- {% if r and r.selected_cipher %} - {{ r.selected_cipher }} - {% elif r and r.error %} - ({{ r.error }}) - {% else %} - — - {% endif %} - | -- {% if r and r.handshake_seconds is not none %} - {{ '%.0f' % (r.handshake_seconds*1000) }} ms - {% else %} - — - {% endif %} - | -
{{ crtsh.hostname or 'n/a' }}
- {% if crtsh.root_domain %}
- • Root:
- {{ crtsh.root_domain }}
- {% if crtsh.is_root_domain %}
- Root
- {% else %}
- Subdomain
- {% endif %}
- {% endif %}
- {% endif %}
- No CT data.
- {% else %} -No active host certs found.
- {% endif %} -No wildcard/root certs found.
- {% endif %} -{{ ssl_tls|tojson(indent=2) }}
- | Field | +Value | +
|---|---|
| {{ k.replace('_', ' ').title() }} | +{{ v }} | +
{{ enrichment.raw_whois }}
+ {% endif %}
+
+ {% if enrichment.geoip %}
+ | {{ key.replace('_', ' ').title() }} | +{{ val }} | +
No enrichment data available.
+ {% endif %} + + +| Action | +Method | +Inputs | +Matches (Rules) | +Form Snippet | +
|---|---|---|---|---|
| + {% if f.action %} + {{ f.action[:80] }}{% if f.action|length > 80 %}…{% endif %} + {% else %} + (no action) + {% endif %} + | + + +{{ (f.method or 'get')|upper }} | + + +
+ {% if f.inputs and f.inputs|length > 0 %}
+
+ {% for inp in f.inputs %}
+
+ {{ inp.name or '(unnamed)' }} : {{ (inp.type or 'text') }}
+
+ {% endfor %}
+
+ {% else %}
+ None
+ {% endif %}
+ |
+
+
+
+ {% if f.rules and f.rules|length > 0 %}
+
|
+
+
+
+ {% if f.content_snippet %}
+
+
+ {% else %}
+ N/A
+ {% endif %}
+ + View snippet ({{ f.content_snippet|length }} chars) ++{{ f.content_snippet }}
+ |
+
No form issues detected.
+ {% endif %} + + +| Type | +Source URL | +Matches (Rules & Heuristics) | +Content Snippet | +
|---|---|---|---|
| {{ s.type or 'unknown' }} | + ++ {% if s.src %} + + {{ s.src[:100] }}{% if s.src|length > 100 %}…{% endif %} + + {% else %} + N/A + {% endif %} + | + + +
+ {% set has_rules = s.rules and s.rules|length > 0 %}
+ {% set has_heur = s.heuristics and s.heuristics|length > 0 %}
+
+ {% if has_rules %}
+ Rules
+
Heuristics
+
|
+
+
+
+ {% if s.content_snippet %}
+
+
+ {% else %}
+ {% if s.type == 'external' and s.src %}
+
+ {% else %}
+ N/A
+ {% endif %}
+ {% endif %}
+ + View snippet ({{ s.content_snippet|length }} chars) ++{{ s.content_snippet }}
+ |
+
No suspicious scripts detected.
+ {% endif %} + + +SSL/TLS enrichment failed or is unavailable.
+ {% if ssl_tls and ssl_tls.error %} +{{ ssl_tls.error }}
+ {% endif %}
+
+ {# -------- 2) Skipped branch -------- #}
+ {% elif ssl_tls.skipped %}
+ Skipped
+ {% if ssl_tls.reason %}{{ ssl_tls.reason }}{% endif %}
+
+ {{ ssl_tls|tojson(indent=2) }}
+ {{ probe.hostname }}:{{ probe.port }}
+ {% endif %}
+ No probe data.
+ {% else %} +| Version | +Status | +Selected Cipher | +Latency | +
|---|---|---|---|
| {{ v }} | ++ {% if r and r.supported %} + Supported + {% else %} + Not Supported + {% endif %} + | ++ {% if r and r.selected_cipher %} + {{ r.selected_cipher }} + {% elif r and r.error %} + ({{ r.error }}) + {% else %} + — + {% endif %} + | ++ {% if r and r.handshake_seconds is not none %} + {{ '%.0f' % (r.handshake_seconds*1000) }} ms + {% else %} + — + {% endif %} + | +
{{ crtsh.hostname or 'n/a' }}
+ {% if crtsh.root_domain %}
+ • Root:
+ {{ crtsh.root_domain }}
+ {% if crtsh.is_root_domain %}
+ Root
+ {% else %}
+ Subdomain
+ {% endif %}
+ {% endif %}
+ {% endif %}
+ No CT data.
+ {% else %} +No active host certs found.
+ {% endif %} +No wildcard/root certs found.
+ {% endif %} +{{ ssl_tls|tojson(indent=2) }}
+ | Field | -Value | -
|---|---|
| {{ k.replace('_', ' ').title() }} | -{{ v }} | -
{{ enrichment.raw_whois }}
- {% endif %}
-
- {% if enrichment.geoip %}
- | {{ key.replace('_', ' ').title() }} | -{{ val }} | -
No enrichment data available.
- {% endif %} - - -| Action | -Method | -Inputs | -Matches (Rules) | -Form Snippet | -
|---|---|---|---|---|
| - {% if f.action %} - {{ f.action[:80] }}{% if f.action|length > 80 %}…{% endif %} - {% else %} - (no action) - {% endif %} - | - - -{{ (f.method or 'get')|upper }} | - - -
- {% if f.inputs and f.inputs|length > 0 %}
-
- {% for inp in f.inputs %}
-
- {{ inp.name or '(unnamed)' }} : {{ (inp.type or 'text') }}
-
- {% endfor %}
-
- {% else %}
- None
- {% endif %}
- |
-
-
-
- {% if f.rules and f.rules|length > 0 %}
-
|
-
-
-
- {% if f.content_snippet %}
-
-
- {% else %}
- N/A
- {% endif %}
- - View snippet ({{ f.content_snippet|length }} chars) --{{ f.content_snippet }}
- |
-
No form issues detected.
- {% endif %} - - -| Type | -Source URL | -Matches (Rules & Heuristics) | -Content Snippet | -
|---|---|---|---|
| {{ s.type or 'unknown' }} | - -- {% if s.src %} - - {{ s.src[:100] }}{% if s.src|length > 100 %}…{% endif %} - - {% else %} - N/A - {% endif %} - | - - -
- {% set has_rules = s.rules and s.rules|length > 0 %}
- {% set has_heur = s.heuristics and s.heuristics|length > 0 %}
-
- {% if has_rules %}
- Rules
-
Heuristics
-
|
-
-
-
- {% if s.content_snippet %}
-
-
- {% else %}
- {% if s.type == 'external' and s.src %}
-
- {% else %}
- N/A
- {% endif %}
- {% endif %}
- - View snippet ({{ s.content_snippet|length }} chars) --{{ s.content_snippet }}
- |
-
No suspicious scripts detected.
- {% endif %} - - -