2012-05-05 74 views
0

在我的apache服務器上,想要通過本地PC在家中跟蹤特定端口,那麼如何使用nmap,假設端口號是3080. 任何命令?跟蹤我的服務器上的特定端口

+0

你是什麼意思'追蹤'它? – Venge

+0

跟蹤它的意思,像下載或上傳等任何活動。 –

回答

0

看一看的tcpdump命令:

$ sudo tcpdump -n -i eth2 dst port 3080 
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode 
listening on eth2, link-type EN10MB (Ethernet), capture size 65535 bytes 

這聽的eth2接口(我的無線連接)的端口3080

而在另一個shell傳出連接上:

$ telnet google.com 3080 

要查看連接嘗試:

16:52:38.073965 IP 192.168.1.10.51290 > 74.125.227.70.3080: Flags [S], seq 4004145863, win 14600, options [mss 1460,sackOK,TS val 38502 ecr 0,nop,wscale 4], length 0 
16:52:39.071494 IP 192.168.1.10.51290 > 74.125.227.70.3080: Flags [S], seq 4004145863, win 14600, options [mss 1460,sackOK,TS val 38752 ecr 0,nop,wscale 4], length 0 
16:52:41.075491 IP 192.168.1.10.51290 > 74.125.227.70.3080: Flags [S], seq 4004145863, win 14600, options [mss 1460,sackOK,TS val 39253 ecr 0,nop,wscale 4], length 0 
^C 
3 packets captured 
3 packets received by filter 
0 packets dropped by kernel 

另請參見Wireshark

相關問題