Debug Tools

strace <command> ¸ viser loebende hvad programmet laver


ldd viser lib-deps:
root@chilibeans:~/openssh-3.7p1# ldd /usr/local/sbin/sshd
        libutil.so.1 => /lib/libutil.so.1 (0x7002e000)
        libz.so.1 => /usr/lib/libz.so.1 (0x70040000)
        libnsl.so.1 => /lib/libnsl.so.1 (0x70060000)
        libcrypto.so.0 => /usr/lib/libcrypto.so.0 (0x70086000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x7018a000)
        libc.so.6 => /lib/libc.so.6 (0x701c8000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x70000000)


nm - list symbols from object files
root@chilibeans:~/openssh-3.7p1# nm /lib/libc-2.2.3.so | grep setresuid
00000000000db898 t __setresuid
00000000000db898 W setresuid


Show you a list op open ports and which programs binded.
netstat -tupan

 

Dette indlæg blev udgivet i Knowledge Base, Old Base, Programmering. Bogmærk permalinket.

Skriv et svar