11.5 Libraries

Rabin can list the libraries used by a binary with the flag -l.

$ rabin -l /bin/ls
[Libraries]
librt.so.1
libselinux.so.1
libacl.so.1
libc.so.6

If you compare the output of 'rabin -l' and 'ldd' you will notice that rabin will list less libraries than 'ldd'. The reason is that rabin will not follow the dependencies of the listed libraries, it will just display the ones listed in the binary itself.

There is another flag related to libraries, -L, it dlopens a library and show us the address where it has been loaded.

$ rabin -L /usr/lib/librt.so 
0x0805e020 /usr/lib/librt.so