公告
财富商城
积分规则
提问
发文
2019-03-08 06:56发布
在下西门庆
Is there some easy way in linux to listen for data on network and save them to a text file?
Thank you.
Other tools are Ethereal (man page) or Wireshark and it's console variant tshark.
In any case please be aware that you are following local and company rules.
Netcat is your friend here.
nc -l localhost 10000 > log.txt
Netcat will listen for a connection on port 10000, redirect anything received to log.txt.
Also available is TCPDump.
sudo tcpdump -i eth0 -vvvvtttAXns 1500 'port 10000'
最多设置5个标签!
Other tools are Ethereal (man page) or Wireshark and it's console variant tshark.
In any case please be aware that you are following local and company rules.
Netcat is your friend here.
Netcat will listen for a connection on port 10000, redirect anything received to log.txt.
Also available is TCPDump.