netcat---网络工具中的“瑞士军刀”( 小身材,大智慧)

  • 侦听模式/ 传输模式
  • telnet /获取banner信息
    • nc -nv IP Port
    传输文本信息(可实现两台电脑的“聊天”)
    • A: nc -l -p 4444
    • B: nc -nv 1.1.1.1 4444
  • 传输文件/ 目录
  • 加密传输文件
  • 远程控制木马
  • 加密所有流量
  • 流媒体服务器
  • 远程克隆硬盘
root@bogon:~# nc -h
[v1.10-41.1]
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!!]
    -b            allow broadcasts
    -g gateway        source-routing hop point[s], up to 8
    -G num            source-routing pointer: 4, 8, 12, ...
    -h            this cruft
    -i secs            delay interval for lines sent, ports scanned
        -k                      set keepalive option on socket
    -l            listen mode, for inbound connects
    -n            numeric-only IP addresses, no DNS
    -o file            hex dump of traffic
    -p port            local port number
    -r            randomize local and remote ports
    -q secs            quit after EOF on stdin and delay of secs
    -s addr            local source address
    -T tos            set Type Of Service
    -t            answer TELNET negotiation
    -u            UDP mode
    -v            verbose [use twice to be more verbose]
    -w secs            timeout for connects and final net reads
    -C            Send CRLF as line-ending
    -z            zero-I/O mode [used for scanning]
port numbers can be individual or ranges: lo-hi [inclusive];
hyphens in port names must be backslash escaped (e.g. 'ftp\-data').
nc -h

相关文章:

  • 2021-09-19
  • 2022-02-10
  • 2022-12-23
  • 2021-12-01
  • 2022-12-23
  • 2021-09-30
  • 2022-01-03
  • 2022-12-23
猜你喜欢
  • 2021-12-04
  • 2021-12-18
  • 2022-12-23
  • 2022-01-22
  • 2021-12-03
  • 2022-02-27
  • 2021-08-09
相关资源
相似解决方案