domain = wildchar = punycode = reason = None
- if mode in ("detection_mode", "software"):
+ if mode in ("detection_mode", "software", "command"):
database.cursor.execute(
- f"SELECT domain, origin, software, command, total_peers, total_blocks, first_seen, last_updated \
+ f"SELECT domain, origin, software, detection_mode, command, total_peers, total_blocks, first_seen, last_updated \
FROM instances \
WHERE {mode} = ? \
ORDER BY domain \
<th>Domain</th>
<th>Origin</th>
<th>Software</th>
+ <th>Detection mode</th>
<th>Command</th>
<th>First added</th>
<th>Last seen</th>
{% include "widgets/links.html" %}
{% endwith %}
</td>
- <td>{{row['software']}}</td>
+ <td>
+ {% with mode='software', amount=amount, value=row['software'] %}
+ {% include "widgets/list_links.html" %}
+ {% endwith %}
+ </td>
+ <td>
+ {% with mode='detection_mode', amount=amount, value=row['detection_mode'] %}
+ {% include "widgets/list_links.html" %}
+ {% endwith %}
+ </td>
<td><code>{{row['command']}}</code></td>
<td>{{row['first_seen']}}</td>
<td>{{row['last_seen']}}</td>
<tr>
<td>{{loop.index}}</td>
<td>
- {% if mode in ('command', 'error_code', 'avg_peers', 'obfuscator', 'obfuscation') %}
+ {% if mode in ('error_code', 'avg_peers', 'obfuscator', 'obfuscation') %}
{{entry['domain']}}
{% elif entry['domain'] == None %}
-
{% elif mode == 'block_level' %}
<a href="top?mode={{mode}}&value={{entry['domain']}}&amount=50">{{entry['domain']}}</a>
- {% elif mode in ('software', 'detection_mode') %}
+ {% elif mode in ('software', 'detection_mode', 'command') %}
<a href="list?mode={{mode}}&value={{entry['domain']}}&amount=50">{{entry['domain']}}</a>
{% else %}
{% with domain=entry['domain'] %}
--- /dev/null
+{% if value != None %}
+ <a href="list?mode={{mode}}&value={{value}}&amount={{amount}}" title="Information on domain {{domain}}">{{value}}</a>
+{% else %}
+ None
+{% endif %}