Skip to content

Instantly share code, notes, and snippets.

@quocnb
Last active March 29, 2020 07:02
Show Gist options
  • Save quocnb/cd4035f753c01480ded7496fab267a17 to your computer and use it in GitHub Desktop.
Save quocnb/cd4035f753c01480ded7496fab267a17 to your computer and use it in GitHub Desktop.

Find and print text of binary file

strings <file_name> | grep "your_text"

Find text in image file

  1. same above
  2. Find hidden text by https://stylesuxx.github.io/steganography/

Find text in multiple directories

grep -rl "text" /path

Print text too

grep -Hrn 'search term' path/to/files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment