zoukankan      html  css  js  c++  java
  • linux的netcat命令行工具

    一、 内部帮助
    root@router:~# nc
    BusyBox v1.28.1 (2018-04-03 17:06:42 CST) multi-call binary.

    Usage: nc [OPTIONS] HOST PORT  - connect
    nc [OPTIONS] -l -p PORT [HOST] [PORT]  - listen

            -e PROG Run PROG after connect (must be last)
            -l      Listen mode, for inbound connects
            -lk     With -e, provides persistent server
            -p PORT Local port
            -s ADDR Local address
            -w SEC  Timeout for connects and final net reads
            -i SEC  Delay interval for lines sent
            -n      Don't do DNS resolution
            -u      UDP mode
            -v      Verbose
            -o FILE Hex dump traffic
            -z      Zero-I/O mode (scanning)

    二、Linux的网卡162.168.8.1启动tcp服务器,监听端口20000

    三、Linux的网卡162.168.8.1启动udp服务器,监听端口20000

     

    四、Linux的网卡162.168.8.1启动udp客户端,连接udp服务器162.168.8.113的端口10000

  • 相关阅读:
    程序员的基本修养之二
    jQuery学习之二
    面向对象程序的设计模式
    Mysql的复杂语句
    养成良好的做事风格
    前端模板学习bootstrap
    23. Merge k Sorted Lists
    953. Verifying an Alien Dictionary
    Daily Coding Problem: Problem #541
    396. Rotate Function
  • 原文地址:https://www.cnblogs.com/jodyccf/p/12789200.html
Copyright © 2011-2022 走看看