Skip to content

Instantly share code, notes, and snippets.

@ArianK16a
Created December 1, 2019 21:03
Show Gist options
  • Save ArianK16a/1e4a533560c87fc5734f9210fc111c00 to your computer and use it in GitHub Desktop.
Save ArianK16a/1e4a533560c87fc5734f9210fc111c00 to your computer and use it in GitHub Desktop.
#!/bin/bash
scan () {
for blob in $(find $1 -type f); do
if [ "$(strings $blob | grep $2)" != "" ]; then
echo -e "$blob": \\n"$(strings $blob | grep $2) \n"
fi
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment