Search binary files grep

Treat binary as text (-a) to search process memory

grep -a 'password' /proc/<pid>/mem 2>/dev/null | strings | head -20