How it works...

Now we will look at an explanation of the previous commands:

  1. We used the file command to get the information about the binary. We also got the architecture information by running the file command.
  2. The string command will return the string within that binary file.
  3. By running the od command, you will get the hexdump of the file.
  4. There are symbols present in the binary. You can list those symbols by running the nm command.
  5. By running the ldd command, you can check which shared library your binary is linked with.

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.