当前位置:网站首页>nc基础用法
nc基础用法
2022-04-23 19:47:00 【franket】
前言
nc (NetCat) 是一个使用 TCP/IP 来读写网络数据的小工具。
Netcat is a featured networking utility which reads and writes data across network connections, using the TCP/IP protocol.
It is designed to be a reliable “back-end” tool that can be used directly or easily driven by other programs and scripts. At the same time, it is a feature-rich network debugging and exploration tool, since it can create almost any kind of connection you would need and has several interesting built-in capabilities.
It provides access to the following main features:
- Outbound and inbound connections, TCP or UDP, to or from any ports.
- Featured tunneling mode which allows also special tunneling such as UDP to TCP, with the possibility of specifying all network parameters (source port/interface, listening port/interface, and the remote host allowed to connect to the tunnel.
- Built-in port-scanning capabilities, with randomizer.
- Advanced usage options, such as buffered send-mode (one line every N seconds), and hexdump (to stderr or to a specified file) of trasmitted and received data.
- Optional RFC854 telnet codes parser and responder.
The GNU Netcat is distributed freely under the GNU General Public License (GPL).
下面分享一下它的基本用法
Tip: 目前官方版本还是 11 Jan 2004 年 发布的 Netcat 0.7.1 ,访问官网可能得翻墙
概要
安装nc
[[email protected] ~]# yum -y install nc
Loaded plugins: dellsysid, fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink | 5.5 kB 00:00
* base: mirrors.163.com
* epel: ftp.riken.jp
* extras: mirrors.aliyun.com
* updates: mirrors.163.com
base | 3.7 kB 00:00
dell-omsa-indep | 1.9 kB 00:00
dell-omsa-specific | 1.9 kB 00:00
elasticsearch-1.5 | 2.9 kB 00:01
epel | 4.3 kB 00:00
epel/primary_db | 5.7 MB 02:11
extras | 3.4 kB 00:00
http://yum.theforeman.org/releases/1.8/el6/x86_64/repodata/repomd.xml: [Errno 12] Timeout on http://yum.theforeman.org/releases/1.8/el6/x86_64/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.
foreman-plugins | 2.9 kB 00:02
mongodb-org-3.0 | 2.9 kB 00:00
percona-release-noarch | 951 B 00:00
percona-release-x86_64 | 951 B 00:00
puppetlabs-deps | 2.5 kB 00:00
puppetlabs-products | 2.5 kB 00:00
rabbitmq_rabbitmq-server/signature | 836 B 00:00
rabbitmq_rabbitmq-server/signature | 1.0 kB 00:00 ...
rabbitmq_rabbitmq-server-source/signature | 836 B 00:00
rabbitmq_rabbitmq-server-source/signature | 1.0 kB 00:00 ...
rhscl-ruby193-epel-6-x86_64 | 3.0 kB 00:00
rhscl-v8314-epel-6-x86_64 | 3.0 kB 00:00
updates | 3.4 kB 00:00
varnish-4.0 | 951 B 00:00
zabbix | 951 B 00:00
zabbix-non-supported | 951 B 00:00
Resolving Dependencies
--> Running transaction check
---> Package nc.x86_64 0:1.84-24.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
====================================================================================================================================
Package Arch Version Repository Size
====================================================================================================================================
Installing:
nc x86_64 1.84-24.el6 base 57 k
Transaction Summary
====================================================================================================================================
Install 1 Package(s)
Total download size: 57 k
Installed size: 109 k
Downloading Packages:
nc-1.84-24.el6.x86_64.rpm | 57 kB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows:
perl-DBD-MySQL-4.013-3.el6.x86_64 has missing requires of libmysqlclient.so.16()(64bit)
perl-DBD-MySQL-4.013-3.el6.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)
ruby-mysql-2.8.2-1.el6.x86_64 has missing requires of libmysqlclient.so.16()(64bit)
ruby-mysql-2.8.2-1.el6.x86_64 has missing requires of libmysqlclient.so.16(libmysqlclient_16)(64bit)
ruby193-rubygem-mysql2-0.3.11-4.el6.x86_64 has missing requires of libmysqlclient_r.so.16()(64bit)
ruby193-rubygem-mysql2-0.3.11-4.el6.x86_64 has missing requires of libmysqlclient_r.so.16(libmysqlclient_16)(64bit)
Installing : nc-1.84-24.el6.x86_64 1/1
Verifying : nc-1.84-24.el6.x86_64 1/1
Installed:
nc.x86_64 0:1.84-24.el6
Complete!
[[email protected] ~]#
版权声明
本文为[franket]所创,转载请带上原文链接,感谢
https://cloud.tencent.com/developer/article/1986158
边栏推荐
- Introduction to electron Tutorial 4 - switching application topics
- MySQL数据库 - 单表查询(三)
- How about Bohai futures. Is it safe to open futures accounts?
- Unity创建超写实三维场景的一般步骤
- Electron入门教程3 ——进程通信
- Go three ways to copy files
- 指针数组与数组指针的区分
- Physical meaning of FFT: 1024 point FFT is 1024 real numbers. The actual input to FFT is 1024 complex numbers (imaginary part is 0), and the output is also 1024 complex numbers. The effective data is
- LeetCode异或运算
- IIS data conversion problem: 16bit to 24bit
猜你喜欢
Lottery applet, mother no longer have to worry about who does the dishes (assign tasks), so easy
MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
2021-2022-2 ACM training team weekly Programming Competition (8) problem solution
Prefer composition to inheritance
Zero base to build profit taking away CPS platform official account
Garbage collector and memory allocation strategy
MySQL syntax collation (5) -- functions, stored procedures and triggers
The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
[report] Microsoft: application of deep learning methods in speech enhancement
The most detailed network counting experiment in history (2) -- rip experiment of layer 3 switch
随机推荐
Lpc1768 optimization comparison of delay time and different levels
Kubernetes introduction to mastery - ktconnect (full name: kubernetes toolkit connect) is a small tool based on kubernetes environment to improve the efficiency of local test joint debugging.
Speex Wiener filter and rewriting of hypergeometric distribution
MySQL syntax collation
命令-sudo
MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
[报告] Microsoft :Application of deep learning methods in speech enhancement
Electron入门教程4 —— 切换应用的主题
LeetCode异或运算
Unity general steps for creating a hyper realistic 3D scene
MySQL syntax collation (4)
MFC obtains local IP (used more in network communication)
数据库查询 - 选课系统
Devops integration - environment variables and building tools of Jenkins service
How to use go code to compile Pb generated by proto file with protoc Compiler Go file
MySQL数据库 - 单表查询(二)
Class loading process of JVM
MFC获取本机IP(网络通讯时用得多)
Design of library management database system
LPC1768 关于延时Delay时间与不同等级的优化对比