首页 > 系统相关 >linux 脚本加密 shc

linux 脚本加密 shc

时间:2022-10-13 12:00:43浏览次数:40  
标签:加密 sh shc linux test yes root bogon

部署

yum -y install shc

进行加密

 

[root@bogon ~]# shc -r -v -f test.sh
shc shll=bash
shc [-i]=-c
shc [-x]=exec '%s' "$@"
shc [-l]=
shc opts=
shc: cc   test.sh.x.c -o test.sh.x
shc: strip test.sh.x
shc: chmod ug=rwx,o=rx test.sh.x
[root@bogon ~]# ls -l
总用量 44
-rw-------. 1 root root  1569 7月  19 18:55 anaconda-ks.cfg
-rw-r--r--. 1 root root     4 10月  9 14:21 kkk
-rw-r--r--. 1 root root   238 10月 13 11:30 test.sh
-rwxrwxr-x. 1 root root 11392 10月 13 11:41 test.sh.x
-rw-r--r--. 1 root root 18472 10月 13 11:41 test.sh.x.c
[root@bogon ~]# ls
anaconda-ks.cfg  kkk  test.sh  test.sh.x  test.sh.x.c
[root@bogon ~]# mv test.sh.x test
[root@bogon ~]# ls
anaconda-ks.cfg  kkk  test  test.sh  test.sh.x.c
[root@bogon ~]# ./test
[root@bogon ~]# cat kkk
yes
yes
yes
yes
yes
yes
yes
yes
yes
yes
[root@bogon ~]#

 

  

标签:加密,sh,shc,linux,test,yes,root,bogon
From: https://www.cnblogs.com/libruce/p/16787717.html

相关文章

  • mysql8.0.27之后无法指定加密方式创建用户或者修改密码
    mysql>createuser'admin2'@'%'identifiedwithmysql_native_passwordby'123456';4058-1factorauthenticationmethoddoesnotmatchagainstauthentication......
  • linux子网掩码修改记录
    1、输入密码进入linux,并且进入root2、输入ifconfig。返回网卡信息,释:其中eno1为当前以太网名称。InetIP/子网掩码位置数Bcast广播地址或者mask子网掩码3、修改子网掩......
  • 雷电USB4开源示波器,4通道,带宽350MHz,采样率1Gsps,上位机支持Windows和Linux
    开源:​​https://github.com/EEVengers/ThunderScope​​​这个示波器三大特色:(1)不仅开源,作者还有一个超详细的设计过程记录贴,有兴趣可以看看,这个还是非常难得的。   ......
  • 神武服务端手游开服架设服务器搭建教程linux​
    神武服务端手游开服架设服务器搭建教程linux​大家好我是艾西,今天跟大家分享下怎么架设神武手游服务端​《神武》回合制网络游戏以西游记为背景,辅以多样化的门派设置、画面......
  • Linux/Mac 编辑文件vim 涉及的命令(vim分页命令)
    整页翻页ctrl-fctrl-bctrl-f:下一页ctrl-b:上一页f就是forwordb就是backward翻半页ctrl-d:向下翻半页ctlr-u:向上翻半页d=downu=up滚一行ctrl-e:向下滚一行c......
  • Linux 防火墙相关命令
    一、防火墙的开启、关闭、禁用命令(1)设置开机启用防火墙:systemctlenablefirewalld.service(2)设置开机禁用防火墙:systemctldisablefirewalld.service(3)启动防火墙:system......
  • HTTPS涉及的加密算法讲解
    前言从2015年左右开始,Google、Baidu、Facebook等互联网巨头,不谋而合地开始大力推行HTTPS,国内外的大型互联网公司很多也都已经启用了全站HTTPS为鼓励全球网站的HTTPS......
  • java学习心得——Linux服务器操作命令整理
     基础操作:cd/  返回根目录mkdir wwwroot创建文件夹cdwwwroot跳转到文件夹bashstart.sh运行脚本命令cd..返回上级目录ls查看当前目录文件ll查看当......
  • 记录下linux命令关于chown
    题目:关于对其他用户(自己创建的user1)下的目录test及其下的所有文件的所有者改成bin,所属组改成daemon。一开始切换到user1下却操作不了修改文件为bin用户,chown-R也没用......
  • linux大全链接
    ​​http://man.linuxde.net/​​......