Sunday, January 11, 2009

ldd, Strings and hexdump utilities

Ldd

the ldd utility displays all the shared libraries required by each program

Ex:- ldd ./myprogram


strings

the strings utility displays strings of printable ASCII characters in a file longer than four characters.

Ex:-

user@ubuntu:~$ strings ./hello1
/lib/ld-linux.so.2
__gmon_start__
libc.so.6
_IO_stdin_used
puts
__libc_start_main
GLIBC_2.0
PTRh
QVht
[^_]
Hello World.....


Hexdump and od

The hexdump utility displays the contents of the specified file in the deciomal (-d), hexadecimal (-x), octal (-b) and ASCII (-c) modes.


Ex:-
hexdump -c ./yourprog


The od utility is analogous to the hexdump utility.

0 comments: