關於netcat監聽 - Linux

Donna avatar
By Donna
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.



--

人不作出犧牲,便得不到任何收穫;如果要得到某種東西,就必須付出同等代價。這一點
,就是鍊金術的基本原則 ── 等價交換。當時我們深信這一點就是世界的真理。

阿爾風斯‧愛力克,《鋼之鍊金術師》開場白

--
Tags: Linux

All Comments

ubuntu源現在是沒有build-essential了嗎?

Enid avatar
By Enid
at 2012-09-11T20:26
請問 現在是沒有build-essential了嗎? 我執行 # apt-get install build-essential 跑出下面的訊息, 正在讀取套件清單... 完成 正在重建相依關係 正在讀取狀態資料... 完成 無法取得套件 build-essential,但它卻被其它的套件引用了。 這意 ...

誰願意分享mint的source list(可用的)?

Thomas avatar
By Thomas
at 2012-09-11T16:27
※ 引述《lante (嘿阿齁)》之銘言: : 如果你是在中華民國的話 : 可以使用國網中心的位址改成以下 : 把 archive.ubuntu.com 改成 free.nchc.org.tw 就OK 如果只是要產生ubuntu的source list的話, 那我倒是建議用以下的網址: http://mi ...

誰願意分享mint的source list(可用的)?

Joe avatar
By Joe
at 2012-09-11T15:46
Mint 13 是 Precise 不是 Natty喔 剛安裝完的檔案如下 # sources.list deb http://packages.linuxmint.com/ maya main upstream import deb http://archive.ubuntu.com/ubuntu/ ...

誰願意分享mint的source list(可用的)?

Susan avatar
By Susan
at 2012-09-11T14:57
cat sources.list | grep -v ^# deb http://free.nchc.org.tw/ubuntu/ natty main restricted deb-src http://free.nchc.org.tw/ubuntu/ natty main restricted de ...

誰願意分享mint的source list(可用的)?

Zenobia avatar
By Zenobia
at 2012-09-11T13:07
弄了一個上午修改mint 13的source list 國網也加了,不知道是代號問題 還是怎樣??? 就是跟我說 build-essential找不到 已廢棄~ 我昏了 想裝個g++,也裝不上,我太廢了! 只好再度求救了 請問那位大德有目前修改過的mint source list, 請po上來分享一下 ...