How to switch to netcat-traditional in Ubuntu?

荒凉一梦 提交于 2019-11-29 21:27:47
totox
  1. enable universe repository (if not enabled)

    sudo add-apt-repository universe
    
  2. Install the other netcat using synaptic. (To do this, the universe repository must be enabled.)

    sudo apt-get install netcat-traditional
    
  3. type sudo update-alternatives --config nc

  4. Select the option /bin/nc.traditional

  5. type 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!!]
...
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!