虽然叫nc不过用起来非常方便。

选项

             -                         Use IPv4 only
- Use IPv6 only
-U, --unixsock Use Unix domain sockets only
-C, --crlf Use CRLF for EOL sequence
-c, --sh-exec <command> Executes the given command via /bin/sh
-e, --exec <command> Executes the given command
--lua-exec <filename> Executes the given Lua script
-g hop1[,hop2,...] Loose source routing hop points ( max)
-G <n> Loose source routing hop pointer (, , , ...)
-m, --max-conns <n> Maximum <n> simultaneous connections
-h, --help Display this help screen
-d, --delay <time> Wait between read/writes
-o, --output <filename> Dump session data to a file
-x, --hex-dump <filename> Dump session data as hex to a file
-i, --idle-timeout <time> Idle read/write timeout
-p, --source-port port Specify source port to use
-s, --source addr Specify source address to use (doesn't affect -l)
-l, --listen Bind and listen for incoming connections
-k, --keep-open Accept multiple connections in listen mode
-n, --nodns Do not resolve hostnames via DNS
-t, --telnet Answer Telnet negotiations
-u, --udp Use UDP instead of default TCP
--sctp Use SCTP instead of default TCP
-v, --verbose Set verbosity level (can be used several times)
-w, --wait <time> Connect timeout
--append-output Append rather than clobber specified output files
--send-only Only send data, ignoring received; quit on EOF
--recv-only Only receive data, never send anything
--allow Allow only given hosts to connect to Ncat
--allowfile A file of hosts allowed to connect to Ncat
--deny Deny given hosts from connecting to Ncat
--denyfile A file of hosts denied from connecting to Ncat
--broker Enable Ncat's connection brokering mode
--chat Start a simple Ncat chat server
--proxy <addr[:port]> Specify address of host to proxy through
--proxy-type <type> Specify proxy type ("http" or "socks4")
--proxy-auth <auth> Authenticate with HTTP or SOCKS proxy server
--ssl Connect or listen with SSL
--ssl-cert Specify SSL certificate file (PEM) for listening
--ssl-key Specify SSL private key (PEM) for listening
--ssl-verify Verify trust and domain name of certificates
--ssl-trustfile PEM file containing trusted SSL certificates
--version Display Ncat's version information and exit

监听端口

有时需要测试主机上的某个端口是否可达,尤其是配置防火墙的时候。可以通过nc -l <port>来指定打开的端口如:

nc -l 

打开本机的6666端口,可以从其他远程主机上进行尝试的访问,可以通过Telnet进行连接。

与NCAT配合

与ncat配合可以进行简单的网络聊天与文本传输

最新文章

  1. mysql 列名中 包含斜杠或者空格的处理方式
  2. int与Integer的爱恨情仇
  3. linux下共享库的注意点之-fpic
  4. MIT 6.828 JOS学习笔记7. Lab 1 Part 2.2: The Boot Loader
  5. 10条PHP编程习惯助你找工作
  6. DNS服务器配置
  7. Intent实现页面跳转和传值
  8. MySql数据类型(转)
  9. POJ 3624
  10. liunx下mysql数据库使用之三范式,关系模型设计注意项,安装目录结构
  11. poj 1847 Tram
  12. poj 4044 Score Sequence(暴力)
  13. 【原创】ZOJ_1649 Rescue 解题报告
  14. MVC — 第 6 天
  15. Struts2和Struts1的主要区别(完整版)
  16. Android程序两种退出的方法
  17. Bash中的数学扩展
  18. YYHS-NOIP2017Training0921-逆光
  19. mysql数据库表卡死解决方法
  20. Java高阶语法---final

热门文章

  1. Python 将时间戳转换为本地时间并进行格式化
  2. JVM之JIT
  3. git小白使用教程(一)
  4. 如何利用反射简化Servlet操作
  5. python3中文件操作及编码
  6. mapreduce程序的按照key值从大到小降序排列
  7. zabbix数据库表结构解析
  8. Android 开发工具类 07_ScreenUtils
  9. 计算机硬件的五大单元 &amp; CPU的种类 &amp; 计算机的运行流程
  10. Hibernate 抛出的 Could not execute JDBC batch update