当前位置:网站首页>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
边栏推荐
- [2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
- Vericrypt file hard disk encryption tutorial
- 指针数组与数组指针的区分
- Class loading mechanism
- Audio editing generation software
- NiO related Basics
- kibana 报错 server is not ready yet 可能的原因
- [H264] hevc H264 parsing and frame rate setting of the old version of libvlc
- Go recursively loops through folders
- MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
猜你喜欢
Software College of Shandong University Project Training - Innovation Training - network security shooting range experimental platform (8)
NiO related Basics
MySQL syntax collation (4)
Building googlenet neural network based on pytorch for flower recognition
深度学习——特征工程小总结
Unity general steps for creating a hyper realistic 3D scene
Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
如何在BNB链上创建BEP-20通证
The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
@Mapperscan and @ mapper
随机推荐
Leetcode XOR operation
IIS data conversion problem: 16bit to 24bit
FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数
使用 WPAD/PAC 和 JScript在win11中进行远程代码执行1
[transfer] summary of new features of js-es6 (one picture)
Grafana shares links with variable parameters
nc基础用法2
[text classification cases] (4) RNN and LSTM film evaluation Tendency Classification, with tensorflow complete code attached
MySQL syntax collation (2)
【webrtc】Add x264 encoder for CEF/Chromium
IIS数据转换问题16bit转24bit
Class loading mechanism
VeraCrypt文件硬盘加密使用教程
MySQL syntax collation (4)
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
Why is the hexadecimal printf output of C language sometimes with 0xff and sometimes not
使用 WPAD/PAC 和 JScript在win11中进行远程代码执行
Executor、ExecutorService、Executors、ThreadPoolExecutor、Future、Runnable、Callable
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
LPC1768 关于延时Delay时间与不同等级的优化对比