当前位置:网站首页>NC basic usage 1
NC basic usage 1
2022-04-23 20:05:00 【franket】
Port scanning
[[email protected] ~]# nc -zvn 192.168.100.101 20-25
nc: connect to 192.168.100.101 port 20 (tcp) failed: No route to host
nc: connect to 192.168.100.101 port 21 (tcp) failed: No route to host
Connection to 192.168.100.101 22 port [tcp/*] succeeded!
nc: connect to 192.168.100.101 port 23 (tcp) failed: No route to host
nc: connect to 192.168.100.101 port 24 (tcp) failed: No route to host
nc: connect to 192.168.100.101 port 25 (tcp) failed: No route to host
[[email protected] ~]# nc -zvn 192.168.100.101 3306
Connection to 192.168.100.101 3306 port [tcp/*] succeeded!
[[email protected] ~]#
|
Option |
Comment |
|---|---|
|
-z |
Just scan , No data |
|
-n |
No analysis , Digital state |
|
-v |
Give details |
Open a session connection
[[email protected] ~]# nc -l 12345
hello
for test
i miss you
^_^
----------
[[email protected] BGPtest]# nc h102 12345
hello
for test
i miss you
^_^
At the moment , To confirm server The firewall at the end is for 12345 The port is open
File transfer
server End send file
[[email protected] nc]# echo "abc test" > file.txt
[[email protected] nc]# nc -l 2345 < file.txt
----------
[[email protected] nc]# nc h102 2345 > f.txt
[[email protected] nc]# cat f.txt
abc test
[[email protected] nc]#
server Receiving documents
[[email protected] nc]# nc -l 2345 > file.txt
----------
[[email protected] nc]# echo "uiuiuiuiui" > f.txt
[[email protected] nc]# nc -v h102 2345 < f.txt
Connection to h102 2345 port [tcp/dbm] succeeded!
[[email protected] nc]#
----------
[[email protected] nc]# cat file.txt
uiuiuiuiui
[[email protected] nc]#
版权声明
本文为[franket]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231947044831.html
边栏推荐
- SRS deployment
- 基于pytorch搭建GoogleNet神经网络用于花类识别
- 本地调用feign接口报404
- PHP reference manual string (7.2000 words)
- Understanding various team patterns in scrum patterns
- Introduction to electron tutorial 3 - process communication
- MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
- [2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
- Go recursively loops through folders
- aqs的学习
猜你喜欢

Grafana shares links with variable parameters

C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间

Scrum Patterns之理解各种团队模式

MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)

MySQL syntax collation

Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)

Shanda Wangan shooting range experimental platform project - personal record (V)

2021-2022-2 ACM training team weekly Programming Competition (8) problem solution

命令-sudo

MySQL syntax collation (3)
随机推荐
C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间
【h264】libvlc 老版本的 hevc h264 解析,帧率设定
Compact CUDA tutorial - CUDA driver API
kibana 报错 server is not ready yet 可能的原因
Mysql database - connection query
山大网安靶场实验平台项目-个人记录(五)
Design of library management database system
Why is the hexadecimal printf output of C language sometimes with 0xff and sometimes not
Build intelligent garbage classification applet based on Zero
仓库管理数据库系统设计
Grafana 分享带可变参数的链接
Go recursively loops through folders
渤海期货这家公司怎么样。期货开户办理安全?
nc基础用法
uIP1.0 主动发送的问题理解
Zero base to build profit taking away CPS platform official account
MySQL syntax collation (5) -- functions, stored procedures and triggers
Golang timer
Grafana shares links with variable parameters
MySQL数据库 - 单表查询(二)