ライブラリ関係 202

/ LPIC / Comment[0]
共有ライブラリを一覧表示
# ldconfig -p
1501 libs found in cache `/etc/ld.so.cache'
libzephyr.so.4 (libc6,x86-64) => /usr/lib/libzephyr.so.4
libz.so.1 (libc6,x86-64) => /lib/libz.so.1
libz.so.1 (libc6) => /usr/lib32/libz.so.1
libz.so (libc6,x86-64) => /usr/lib/libz.so
libx264.so.85 (libc6,x86-64) => /usr/lib/libx264.so.85
libx86.so.1 (libc6,x86-64) => /lib/libx86.so.1
libx86.so.1 (libc6) => /lib32/libx86.so.1
libx86.so (libc6) => /lib32/libx86.so
libxtables.so.2 (libc6,x86-64) => /lib/libxtables.so.2
libxslt.so.1 (libc6,x86-64) => /usr/lib/libxslt.so.1
:


nmapが依存している共有ライブラリの確認
# ldd `which nmap`
	linux-vdso.so.1 =>  (0x00007fff03fff000)
libpcre.so.3 => /lib/libpcre.so.3 (0x00007fd030fc4000)
libpcap.so.0.8 => /usr/lib/libpcap.so.0.8 (0x00007fd030d91000)
libssl.so.0.9.8 => /lib/libssl.so.0.9.8 (0x00007fd030b40000)
libcrypto.so.0.9.8 => /lib/libcrypto.so.0.9.8 (0x00007fd0307b0000)
liblua5.1.so.0 => /usr/lib/liblua5.1.so.0 (0x00007fd030584000)
libdl.so.2 => /lib/libdl.so.2 (0x00007fd03037f000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fd03006b000)
libm.so.6 => /lib/libm.so.6 (0x00007fd02fde8000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007fd02fbd0000)
libc.so.6 => /lib/libc.so.6 (0x00007fd02f84e000)
libz.so.1 => /lib/libz.so.1 (0x00007fd02f637000)
/lib64/ld-linux-x86-64.so.2 (0x00007fd031212000)


依存関係がキャッシュされている/etc/ld.so.cacheを更新する
# ldconfig


nmapのライブラリコールを表示
# ltrace nmap
_ZNSt8ios_base4InitD1Ev(0x6bb558, 0xffffffff, 0x7fd2e7ea6490, 0x7fd2e7ea6490, 0x975580) = 8
_ZNSt8ios_base4InitD1Ev(0x6bb580, 0xffffffff, 0x7fd2e7ea6470, 0x7fd2e7ea6470, 0x975580) = 7
_ZNSt8ios_base4InitD1Ev(0x6bb6a0, 0xffffffff, 0x7fd2e7ea6450, 0x7fd2e7ea6450, 0x975580) = 6
_ZNSt8ios_base4InitD1Ev(0x6bb770, 0xffffffff, 0x7fd2e7ea63d0, 0x7fd2e7ea63d0, 0x975580) = 5
_ZNSt8ios_base4InitD1Ev(0x6bc000, 0xffffffff, 0x7fd2e7ea63b0, 0x7fd2e7ea63b0, 0x975580) = 4
_ZNSt8ios_base4InitD1Ev(0x6bc004, 0xffffffff, 0x7fd2e7ea6390, 0x7fd2e7ea6390, 0x975580) = 3
_ZNSt8ios_base4InitD1Ev(0x6bc008, 0xffffffff, 0x7fd2e7ea6370, 0x7fd2e7ea6370, 0x975580) = 0x7fd2e8644220
+++ exited (status 255) +++
:



nmapのシステムコールを表示
# strace nmap
write(1, "custom Nmap data file location\n", 31custom Nmap data file location
) = 31
write(1, " --send-eth/--send-ip: Send usi"..., 69 --send-eth/--send-ip: Send using raw ethernet frames or IP packets
) = 69
write(1, " --privileged: Assume that the "..., 57 --privileged: Assume that the user is fully privileged
) = 57
write(1, " --unprivileged: Assume the use"..., 62 --unprivileged: Assume the user lacks raw socket privileges
) = 62
write(1, " -V: Print version number\n", 27 -V: Print version number
) = 27
write(1, " -h: Print this help summary pa"..., 36 -h: Print this help summary page.
) = 36
write(1, "EXAMPLES:\n", 10EXAMPLES:
) = 10
write(1, " nmap -v -A scanme.nmap.org\n", 29 nmap -v -A scanme.nmap.org
) = 29
write(1, " nmap -v -sP 192.168.0.0/16 10."..., 40 nmap -v -sP 192.168.0.0/16 10.0.0.0/8
) = 40
write(1, " nmap -v -iR 10000 -PN -p 80\n", 30 nmap -v -iR 10000 -PN -p 80
) = 30
write(1, "SEE THE MAN PAGE (http://nmap.or"..., 79SEE THE MAN PAGE (http://nmap.org/book/man.html) FOR MORE OPTIONS AND EXAMPLES
) = 79
exit_group(-1) = ?
:
関連記事

コメント

:
:
:
:
:
管理人のみ表示を許可