Skip to content

Instantly share code, notes, and snippets.

@iceman1001
Created December 7, 2023 10:41
Show Gist options
  • Save iceman1001/79451e48099ae382c0e9e9479999a2d7 to your computer and use it in GitHub Desktop.
Save iceman1001/79451e48099ae382c0e9e9479999a2d7 to your computer and use it in GitHub Desktop.
Search Proxmark3 dictionaries folder with key that has spaces inside
#!/usr/bin/env bash
#
# chmod 755 sd.sh
#
# Sample code
# ./sd.sh "00 01 02 03 04 05" -C4
#
str="$1"
cleanstr="${str// /}"
echo rg -i "${cleanstr}" client/dictionaries
rg -i "${cleanstr}" "$2" client/dictionaries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment