当前位置:网站首页>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
边栏推荐
- 山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(八)
- 仓库管理数据库系统设计
- Intuitive understanding of the essence of two-dimensional rotation
- MySQL practical skills
- DevOps集成-Jenkins 服务的环境变量和构建工具 Tools
- 对普通bean进行Autowired字段注入
- Kubernetes getting started to proficient - install openelb on kubernetes
- MFC obtains local IP (used more in network communication)
- Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies
- Kubernetes入门到精通-裸机LoadBalence 80 443 端口暴露注意事项
猜你喜欢

Grafana shares links with variable parameters

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

Zero base to build profit taking away CPS platform official account

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.

Understanding various team patterns in scrum patterns

MySQL syntax collation (2)

php参考手册String(7.2千字)

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

指针数组与数组指针的区分
![[transfer] summary of new features of js-es6 (one picture)](/img/45/76dba32e4fa7ed44a42e5f98ea8207.jpg)
[transfer] summary of new features of js-es6 (one picture)
随机推荐
Kubernetes入门到精通-在 Kubernetes 上安装 OpenELB
MySQL syntax collation
【2022】将3D目标检测看作序列预测-Point2Seq: Detecting 3D Objects as Sequences
Lottery applet, mother no longer have to worry about who does the dishes (assign tasks), so easy
Devops integration - environment variables and building tools of Jenkins service
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.
Prefer composition to inheritance
仓库管理数据库系统设计
渤海期货这家公司怎么样。期货开户办理安全?
Mfcc: Mel frequency cepstrum coefficient calculation of perceived frequency and actual frequency conversion
goroutine
Class loading mechanism
ESP8266-入门第一篇
The most detailed network counting experiment in history (2) -- rip experiment of layer 3 switch
uIP1. 0 actively sent problem understanding
The difference between underline and dot of golang import package
C学习完结
Mysql database - single table query (III)
Executor、ExecutorService、Executors、ThreadPoolExecutor、Future、Runnable、Callable
Common processing of point cloud dataset