当前位置:网站首页>NC basic usage 3
NC basic usage 3
2022-04-23 20:05:00 【franket】
The encrypted
mcrypt Is a simple encryption software , Combined with its pipeline function, encrypted transmission can be realized
[[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]#
Remote cloning
Using this method, batch deployment can be realized
[[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: The following methods can be used to view the contents
版权声明
本文为[franket]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231947044759.html
边栏推荐
- 2021-2022-2 ACM training team weekly Programming Competition (8) problem solution
- C6748 软件仿真和硬件测试 ---附详细FFT硬件测量时间
- antd dropdown + modal + textarea导致的textarea光标不可被键盘控制问题
- Understanding various team patterns in scrum patterns
- Mysql database - single table query (I)
- [numerical prediction case] (3) LSTM time series electricity quantity prediction, with tensorflow complete code attached
- Build intelligent garbage classification applet based on Zero
- 5 minutes to achieve wechat cloud applet payment function (including source code)
- Codeworks round 783 (Div. 2) d problem solution
- 山大网安靶场实验平台项目-个人记录(五)
猜你喜欢
aqs的学习
Fundamentals of programming language (2)
精简CUDA教程——CUDA Driver API
Is meituan, a profit-making company with zero foundation, hungry? Coupon CPS applet (with source code)
FFT物理意义: 1024点FFT就是1024个实数,实际进入fft的输入是1024个复数(虚部为0),输出也是1024个复数,有效的数据是前512个复数
Class loading mechanism
Grafana 分享带可变参数的链接
Virtual machine performance monitoring and fault handling tools
MySQL syntax collation (2)
JVM的类加载过程
随机推荐
音频编辑生成软件
uIP1.0 主动发送的问题理解
Kubernetes入门到精通-在 Kubernetes 上安装 OpenELB
Kubernetes getting started to proficient - install openelb on kubernetes
VeraCrypt文件硬盘加密使用教程
IIS data conversion problem: 16bit to 24bit
[H264] hevc H264 parsing and frame rate setting of the old version of libvlc
STM32基础知识
Electron入门教程3 ——进程通信
MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
goroutine
Mysql database - single table query (III)
腾讯邱东洋:深度模型推理加速的术与道
Electron入门教程4 —— 切换应用的主题
No, some people can't do the National Day avatar applet (you can open the traffic master and earn pocket money)
Build intelligent garbage classification applet based on Zero
kibana 报错 server is not ready yet 可能的原因
Grafana 分享带可变参数的链接
Speex Wiener filter and rewriting of hypergeometric distribution
MFC获取本机IP(网络通讯时用得多)