shell 脚本加密
来源:互联网 发布:淘宝访客显示其他来源 编辑:程序博客网 时间:2024/06/06 15:01
第一种方法(gzexe):
这种加密方式不是非常保险的方法,但是能够满足一般的加密用途,可以隐蔽脚本中的密码等信息。
它是使用系统自带的gzexe程序,它不但加密,同时压缩文件。
使用方法:
gzexe file.sh
它会把原来没有加密的文件备份为 file.sh~ ,同时 file.sh 即被变成加密文件;
第二种方法(shc):
使用 shc 对 Linux shell 脚本加密.
shc是一个专业的加密shell脚本的工具.它的作用是把shell脚本转换为一个可执行的二进制文件,这个办法很好的解决了脚本中含有IP、密码等不希望公开的问题.
shc的下载地址:
http://www.anyside.com/linux/shc-3.8.tgz
安装:
tar zxvf shc-3.8.tgz
cd shc-3.8
make test
make
make test
make strings
make install
使用方法:
shc -r -f script-name
运行后会生成两个文件,script-name.x 和 script-name.x.c. 其中script-name.x是加密后的可执行的二进制文件;用./script-name即可运行,script-name.x.c是生成script-name.x的原文件(c语言).
- shell 脚本加密
- shell 脚本加密
- shell脚本加密
- shell脚本加密
- shell脚本加密
- Linux shell脚本加密
- Shell脚本加密
- shell脚本加密
- shell脚本加密
- Shell 脚本加密工具shc
- 使用shc加密shell脚本
- 用shc加密shell脚本
- 用shc加密shell脚本
- 用shc加密shell脚本
- 使用shc加密shell脚本
- shell脚本简单密码加密
- shc对shell脚本加密
- 使用shc加密shell脚本
- js 捕捉url参数
- iSCSI协定对多User同时写一个target device的互斥问题讨论
- POI操作Excel文档(一)
- 欧几里德算法
- 浅谈U盘病毒运作原理
- shell 脚本加密
- 害怕的一天
- 在另一个应用程序域中执行代码(C# 编程指南)
- POI操作Excel文档(二)
- 存储过程 IN 多个参数解决
- POI操作Excel文档(三)
- JavaScript mediaplayer
- Oracle工作流的优化
- C++的函数的参数的传递方式