Skip to content

Commit 0ef1457

Browse files
committed
search aux msg
1 parent e9787d8 commit 0ef1457

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.gemini/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"type": "sse"
66
}
77
}
8-
}
8+
}

web/templates/analysis/search.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ <h5 class="mb-0 text-white"><i class="fas fa-info-circle me-2"></i> Search Help<
2323
</div>
2424
<div class="card-body">
2525
<p class="text-white-50">ElasticSearch queries do not use a prefix. e.g., <code>*windows.*</code> matches 'time.windows.com'.</p>
26-
<p class="text-white-50">For MD5, SHA1, SHA256, etc., no prefix is needed (matches any file generated by analysis).</p>
26+
<p class="text-white-50">For MD5, SHA1, SHA256, etc., no prefix is needed (matches <b>any</b> file generated by analysis, including dropped/extracted files).</p>
27+
<p class="text-white-50">To search for the <b>initial submitted file</b> specifically, use <code>target_sha256:</code> prefix.</p>
2728
<p class="text-white-50">By default, searches are exact matches. Use regex characters (e.g., <code>^ $ | ? * + ( ) [ ] { }</code>) to force a regex search.</p>
2829
<div class="table-responsive">
2930
<table class="table table-striped table-dark table-hover table-sm">
@@ -117,6 +118,9 @@ <h5 class="mb-0 text-white"><i class="fas fa-info-circle me-2"></i> Search Help<
117118
<div class="row mb-3">
118119
<div class="col-12 text-white-50 text-center">
119120
<h3>Results for term: <span class="text-danger font-weight-bold">{{term}}</span></h3>
121+
{% if term_only in 'md5,sha1,sha256' %}
122+
<p class="text-muted mt-1">Note: Hash searches match all generated files inside analysis. Use <code>target_sha256:</code> for initial file matches.</p>
123+
{% endif %}
120124
{% if settings.ZIPPED_DOWNLOAD_ALL and term_only in 'capetype,capeyara' %}
121125
<a href="{% url 'file' term_only|add:'zipall' '1' value_only %}" class="btn btn-sm btn-outline-warning mt-2" data-bs-toggle="tooltip" title="Download password-protected archive with all matching files."><i class="fas fa-file-archive me-1"></i> Download All Matches</a>
122126
{% endif %}

0 commit comments

Comments
 (0)