当前位置: 技术问答>linux和unix
关于HTTP headers 和 shared library (such as libxml)
来源: 互联网 发布时间:2016-06-14
本文导语: 这是两个问题,请问答案是什么? 1. You install a new browser on your PC. You have access to a linux server on the same network. How would you determine what HTTP headers the new browser sends when it makes web requests? 2. How would...
这是两个问题,请问答案是什么?
1. You install a new browser on your PC. You have access to a linux server on the same network. How would you determine what HTTP headers the new browser sends when it makes web requests?
2. How would you determine what version of a shared library (such as libxml) a daemon depends on?
1. You install a new browser on your PC. You have access to a linux server on the same network. How would you determine what HTTP headers the new browser sends when it makes web requests?
2. How would you determine what version of a shared library (such as libxml) a daemon depends on?
|
1. Use tcpdump to capture the packet and analyse.
2.
$ ldd /usr/sbin/inetd
/usr/sbin/inetd:
libutil.so.5 => /lib/libutil.so.5 (0x80063b000)
libwrap.so.4 => /usr/lib/libwrap.so.4 (0x800748000)
libipsec.so.2 => /lib/libipsec.so.2 (0x800851000)
libc.so.6 => /lib/libc.so.6 (0x800958000)
2.
$ ldd /usr/sbin/inetd
/usr/sbin/inetd:
libutil.so.5 => /lib/libutil.so.5 (0x80063b000)
libwrap.so.4 => /usr/lib/libwrap.so.4 (0x800748000)
libipsec.so.2 => /lib/libipsec.so.2 (0x800851000)
libc.so.6 => /lib/libc.so.6 (0x800958000)