tcpdump记录
tcpdump -i eth0 -nn -A -X 'host 192.168.20.82 and port 9080'
- -i:interface 監(jiān)聽的網(wǎng)卡。
- -nn:表示以ip和port的方式顯示來源主機(jī)和目的主機(jī),而不是用主機(jī)名和服務(wù)。
- -A:以ascii的方式顯示數(shù)據(jù)包,抓取web數(shù)據(jù)時(shí)很有用。
- -X:數(shù)據(jù)包將會(huì)以16進(jìn)制和ascii的方式顯示。
http包,端口9080
0x4745 為"GET"前兩個(gè)字母"GE",0x4854 為"HTTP"前兩個(gè)字母"HT"。
tcpdump -XvvennSs 0 -i eth0 tcp[20:2]=0x4745 or tcp[20:2]=0x4854 and port 9080?
http包,只包含了響應(yīng)
tcpdump -XvvennSs 0 -i eth0 tcp[20:2]=0x4854 and port 9080?
目的或源為192.168.20.82,端口為9080,http協(xié)議
?tcpdump? -XvvennSs 0 -i eth0 host 192.168.20.82 and tcp[20:2]=0x4745 or tcp[20:2]=0x4854 or tcp[20:2]=0x504f and port 9080
?
查看一個(gè)程序?qū)ν鈫?dòng)監(jiān)聽的端口(listen)
[root@Tomcat33 ~]# netstat -nltp|grep 3394
轉(zhuǎn)載于:https://www.cnblogs.com/grey-wolf/p/8109706.html
總結(jié)
- 上一篇: pip install 报错Unicod
- 下一篇: django-总体