66 lines
867 B
Plaintext
66 lines
867 B
Plaintext
|
|
|
|
|
|
|
|
|
|
Command: strings - print all the strings in a binary file
|
|
Syntax: strings [-] [-o] [-n] file ...
|
|
Flags: - search whole file, not just data seg
|
|
-o Print octal offset of each string
|
|
-n n is minimum length string (default = 4)
|
|
Examples: strings -5 a.out # Print the strings > 4 chars in
|
|
a.out
|
|
strings - /bin/sh # Search entire shell file (text and
|
|
data)
|
|
|
|
Strings looks for sequences of ASCII characters followed by a zero
|
|
byte. These are usually strings. This program is typically used to
|
|
help identify unknown binary programs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|