--- /dev/null
+#!/bin/bash
+# This utility is useful to obtain all programs using an certain in name 'cryptic' or suspicious library.
+# Syntax: ./lib_dep_check_ldd.sh {lib_name} {path/to/some/bin}
+# Programed by: Will Budić
+# Date: 2026-02-18
+
+isSearchingFor=$1
+[[ -z "$isSearchingFor" ]] && isSearchingFor="libsqlite"
+echo -e "Searching for [$isSearchingFor]"
+# Specify directories to check
+if [ -x "$2" ]; then
+ directories=("$2")
+else
+ directories=("/usr/bin" "/usr/local/bin" "/bin" "~/.local/bin")
+fi
+found=()
+count=0
+for dir in "${directories[@]}"; do
+ echo -e "Examining $dir..."
+ for app in "$dir"/*; do
+ if [ -x "$app" ]; then
+ if ldd "$app" 2> /dev/null | grep -q "$isSearchingFor" ; then
+ echo -e "$app is linked to $isSearchingFor"
+ ((count++))
+ found+=($app);
+ fi
+ fi
+ done
+done
+
+for exe in "${found[@]}"; do
+ echo -e "Executable $exe"
+ ldd "$exe" | grep "$isSearchingFor"
+done
+
+if [ "$count" == 0 ]; then
+ echo -e "Nothing found in executables linked to [$isSearchingFor]."
+else
+ echo -e "Found [$isSearchingFor] linked $count times, is that scary?"
+fi
+
+