Re:If you use GNU grep on text files, use the -a (--text) op...
by chaps on Tuesday April 21, 2020 @01:37PM
(#22937214)
Also works well on non-text files, similar to `strings`! I don't think it works as well, but can still be useful for quick checks.
[ Parent
| on HN ]
Re:If you use GNU grep on text files, use the -a (--text) op...
by lizknope on Tuesday April 21, 2020 @03:28PM
(#22938473)
I normally do:
strings file | grep search_pattern
Re:If you use GNU grep on text files, use the -a (--text) op...
by cesarb on Tuesday April 21, 2020 @08:14PM
(#22940698)
But remember, always use "strings -a"! http://lcamtuf.blogspot.com/2014/10/psa-dont-run-strings-on-...
Re:If you use GNU grep on text files, use the -a (--text) op...
by steerablesafe on Wednesday April 22, 2020 @03:27AM
(#22943104)
It's the default since 2014:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=c...
edit: I would say that if you are doing forensics on an untrusted binary and you are not using a dedicated VM for it then you are not careful enough. objdump, nm are still attack vectors, not to mention debuggers and disassemblers.