#!/bin/bash # nsrl entrypoint — dispatches between single-hash lookup and directory mode. # ... | -s | -h -> search.py (old NSRL CLI, SHA-1) # analyse [args] -> hashlookup-forensic-analyser with the # bundled bloom (e.g. analyse -d /data) set -euo pipefail if [ "${1:-}" = "analyse" ] || [ "${1:-}" = "analyze" ]; then shift exec python3 /opt/hfa/bin/hashlookup-analyser.py \ --bloomfilters /nsrl/hashlookup-full.bloom "$@" fi exec python3 /nsrl/search.py "$@"