当前位置:网站首页>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
边栏推荐
- Building googlenet neural network based on pytorch for flower recognition
- Lpc1768 optimization comparison of delay time and different levels
- [2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
- LeetCode异或运算
- C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间
- 数据库查询 - 选课系统
- OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
- MySQL数据库 - 数据库和表的基本操作(二)
- 【文本分类案例】(4) RNN、LSTM 电影评价倾向分类,附TensorFlow完整代码
- C学习完结
猜你喜欢

The most detailed network counting experiment in history (2) -- rip experiment of layer 3 switch

命令-sudo
![[webrtc] add x264 encoder for CEF / Chromium](/img/3f/9bf73d6d2aec14ba94dfc6734eb6ac.png)
[webrtc] add x264 encoder for CEF / Chromium

MFCC: Mel频率倒谱系数计算感知频率和实际频率转换

Is meituan, a profit-making company with zero foundation, hungry? Coupon CPS applet (with source code)
![[report] Microsoft: application of deep learning methods in speech enhancement](/img/c1/7bffbcecababf8dabf86bd34ab1809.png)
[report] Microsoft: application of deep learning methods in speech enhancement

【webrtc】Add x264 encoder for CEF/Chromium

山大网安靶场实验平台项目-个人记录(五)

Mfcc: Mel frequency cepstrum coefficient calculation of perceived frequency and actual frequency conversion

Kubernetes entry to mastery - bare metal loadbalance 80 443 port exposure precautions
随机推荐
[report] Microsoft: application of deep learning methods in speech enhancement
【webrtc】Add x264 encoder for CEF/Chromium
【h264】libvlc 老版本的 hevc h264 解析,帧率设定
Audio editing generation software
深度分析数据恢复原理——那些数据可以恢复那些不可以数据恢复软件
Kubernetes getting started to proficient - install openelb on kubernetes
Design of warehouse management database system
OpenHarmony开源开发者成长计划,寻找改变世界的开源新生力!
5 minutes to achieve wechat cloud applet payment function (including source code)
C6748 software simulation and hardware test - with detailed FFT hardware measurement time
Class loading process of JVM
图书管理数据库系统设计
nc基础用法3
[H264] hevc H264 parsing and frame rate setting of the old version of libvlc
仓库管理数据库系统设计
MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
The difference between underline and dot of golang import package
php参考手册String(7.2千字)
PHP reference manual string (7.2000 words)
C语言的十六进制printf为何输出有时候输出带0xFF有时没有