如何在 Ubuntu 中切换到 netcat-traditional? [英] How to switch to netcat-traditional in Ubuntu?

查看:32
本文介绍了如何在 Ubuntu 中切换到 netcat-traditional?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这是一个简单的问题,但是如何在 ubuntu 中切换到 netcat-traditional ?每当我编写 netcat -h 时,似乎我正在运行 netcat-openbsd ?我是 Ubuntu 的新手,所以确切的命令会有所帮助.谢谢

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

推荐答案

  1. 启用 Universe 存储库(如果未启用)

  1. enable universe repository (if not enabled)

sudo add-apt-repository universe

  • 使用突触安装另一个 netcat.(为此,必须启用 Universe 存储库.)

  • Install the other netcat using synaptic. (To do this, the universe repository must be enabled.)

    sudo apt-get install netcat-traditional
    

  • 输入 sudo update-alternatives --config nc

    选择选项/bin/nc.traditional

    输入 nc -h

    输出:

    [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!!]
    ...
    

    这篇关于如何在 Ubuntu 中切换到 netcat-traditional?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆