I know this is a simple question, but how do I switch to netcat-traditional
in ubuntu? Whenever I write netcat -h
it appears that I am running netcat-openbsd
instead? I'm new to Ubuntu so exact commands would be helpful. Thanks
我知道这是一个简单的问题,但是我如何在ubuntu中切换到传统的netcatt呢?每当我写netcat -h时,似乎我都在运行netcat-openbsd ?我是Ubuntu的新手,所以准确的命令是很有用的。谢谢
1 个解决方案
#1
39
-
Install the other netcat using synaptic. (To do this, the universe repository must be enabled.)
使用synaptic安装另一个netcat。(要做到这一点,必须启用宇宙存储库。)
-
type
sudo update-alternatives --config nc
类型sudo update- options -config nc。
-
Select the option
/bin/nc.traditional
选择的选项/bin/nc.traditional
-
type
nc -h
nc - h型
output:
输出:
[v1.10-38]
connect to somewhere: nc [-options] hostname port[s] [ports] ...
listen for inbound: nc -l -p port [-options] [hostname] [port]
options:
-c shell commands as `-e'; use /bin/sh to exec [dangerous!!]
-e filename program to exec after connect [dangerous!!]
...
#1
39
-
Install the other netcat using synaptic. (To do this, the universe repository must be enabled.)
使用synaptic安装另一个netcat。(要做到这一点,必须启用宇宙存储库。)
-
type
sudo update-alternatives --config nc
类型sudo update- options -config nc。
-
Select the option
/bin/nc.traditional
选择的选项/bin/nc.traditional
-
type
nc -h
nc - h型
output:
输出:
[v1.10-38]
connect to somewhere: nc [-options] hostname port[s] [ports] ...
listen for inbound: nc -l -p port [-options] [hostname] [port]
options:
-c shell commands as `-e'; use /bin/sh to exec [dangerous!!]
-e filename program to exec after connect [dangerous!!]
...