Re: [問題] 關於netcat監聽
※ 引述《sheshark (sheshark)》之銘言:
: 如果我想監聽本機的25端口並且把監聽內容存在文件當中應該打什麼命令?
: nc 127.0.0.1 25 > 1 這樣不行啊。
: 感謝回答!
sudo nc -l 127.0.0.1 25
man nc
-l Used to specify that nc should listen for an incoming connection
rather than initiate a connection to a remote host. It is an
error to use this option in conjunction with the -p, -s, or -z
options. Additionally, any timeouts specified with the -w option
are ignored.
--
人不作出犧牲,便得不到任何收穫;如果要得到某種東西,就必須付出同等代價。這一點
,就是鍊金術的基本原則 ── 等價交換。當時我們深信這一點就是世界的真理。
阿爾風斯‧愛力克,《鋼之鍊金術師》開場白
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 122.201.142.21
討論串 (同標題文章)