当前位置:网站首页>nc基础用法3
nc基础用法3
2022-04-23 19:47:00 【franket】
加密传输
mcrypt 是一个简单的加密软件,结合它的管道功能可以实现加密传输
[[email protected] nc]# echo ooooooooo > file.txt
[[email protected] nc]# mcrypt --flush --bare -F -q -m ecb < file.txt | nc -l 4567
Enter the passphrase (maximum of 512 characters)
Please use a combination of upper and lower case letters and numbers.
Enter passphrase:
Enter passphrase:
----------
[[email protected] nc]# nc h102 4567 | mcrypt --flush --bare -F -q -d -m ecb > f.txt
Enter passphrase:
[[email protected] nc]# cat f.txt
ooooooooo
[[email protected] nc]#
远程克隆
使用这个方法可以实现批量部署
[[email protected] nc]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_temp-lv_root
50G 22G 25G 47% /
tmpfs 935M 0 935M 0% /dev/shm
/dev/sda1 477M 34M 419M 8% /boot
/dev/mapper/vg_temp-lv_home
5.4G 12M 5.1G 1% /home
[[email protected] nc]# dd if=/dev/sda1 | nc -l 5678
1024000+0 records in
1024000+0 records out
524288000 bytes (524 MB) copied, 403.753 s, 1.3 MB/s
[[email protected] nc]#
----------
[[email protected] nc]# nc h102 5678 | dd of=h102.boot.backup
1022488+2911 records in
1024000+0 records out
524288000 bytes (524 MB) copied, 340.562 s, 1.5 MB/s
[[email protected] nc]# du -sh h102.boot.backup
501M h102.boot.backup
[[email protected] nc]#
Tip: 使用下面方法可以查看其中的内容
版权声明
本文为[franket]所创,转载请带上原文链接,感谢
https://cloud.tencent.com/developer/article/1986161
边栏推荐
- 5 minutes to achieve wechat cloud applet payment function (including source code)
- php参考手册String(7.2千字)
- 山大网安靶场实验平台项目—个人记录(四)
- MySQL数据库 - 数据库和表的基本操作(二)
- C语言的十六进制printf为何输出有时候输出带0xFF有时没有
- Kubernetes getting started to proficient - install openelb on kubernetes
- 对普通bean进行Autowired字段注入
- C6748 software simulation and hardware test - with detailed FFT hardware measurement time
- Command - sudo
- filebeat、logstash配置安装
猜你喜欢
Decompile and get the source code of any wechat applet - just read this (latest)
MFCC: Mel频率倒谱系数计算感知频率和实际频率转换
Leetcode XOR operation
【webrtc】Add x264 encoder for CEF/Chromium
Esp8266 - beginner level Chapter 1
Lottery applet, mother no longer have to worry about who does the dishes (assign tasks), so easy
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(八)
命令-sudo
[transfer] summary of new features of js-es6 (one picture)
Class loading mechanism
随机推荐
VeraCrypt文件硬盘加密使用教程
仓库管理数据库系统设计
MySQL syntax collation (5) -- functions, stored procedures and triggers
Common processing of point cloud dataset
[transfer] summary of new features of js-es6 (one picture)
LeetCode异或运算
JVM的类加载过程
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (V)
How to create bep-20 pass on BNB chain
uIP1.0 主动发送的问题理解
Kubernetes入门到精通-KtConnect(全称Kubernetes Toolkit Connect)是一款基于Kubernetes环境用于提高本地测试联调效率的小工具。
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(六)
Mfcc: Mel frequency cepstrum coefficient calculation of perceived frequency and actual frequency conversion
Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
HTTP cache - HTTP authoritative guide Chapter VII
goroutine
Video understanding
Grafana shares links with variable parameters
@MapperScan与@Mapper
【webrtc】Add x264 encoder for CEF/Chromium