關於netcat監聽 - Linux

By Donna
at 2012-09-12T15:55
at 2012-09-12T15:55
Table of Contents
※ 引述《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.
--
人不作出犧牲,便得不到任何收穫;如果要得到某種東西,就必須付出同等代價。這一點
,就是鍊金術的基本原則 ── 等價交換。當時我們深信這一點就是世界的真理。
阿爾風斯‧愛力克,《鋼之鍊金術師》開場白
--
: 如果我想監聽本機的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.
--
人不作出犧牲,便得不到任何收穫;如果要得到某種東西,就必須付出同等代價。這一點
,就是鍊金術的基本原則 ── 等價交換。當時我們深信這一點就是世界的真理。
阿爾風斯‧愛力克,《鋼之鍊金術師》開場白
--
Tags:
Linux
All Comments
Related Posts
ubuntu源現在是沒有build-essential了嗎?

By Enid
at 2012-09-11T20:26
at 2012-09-11T20:26
誰願意分享mint的source list(可用的)?

By Thomas
at 2012-09-11T16:27
at 2012-09-11T16:27
誰願意分享mint的source list(可用的)?

By Joe
at 2012-09-11T15:46
at 2012-09-11T15:46
誰願意分享mint的source list(可用的)?

By Susan
at 2012-09-11T14:57
at 2012-09-11T14:57
誰願意分享mint的source list(可用的)?

By Zenobia
at 2012-09-11T13:07
at 2012-09-11T13:07