shell脚本加密
来源:互联网 发布:上海交大宿舍网络 编辑:程序博客网 时间:2024/06/06 04:53
第一种方法(gzexe):
这种加密方式不是非常保险的方法,但是能够满足一般的加密用途,可以隐蔽脚本中的密码等信息。
它是使用系统自带的gzexe程序,它不但加密,同时压缩文件。
使用方法:
gzexe file.sh
它会把原来没有加密的文件备份为 file.sh~ ,同时 file.sh 即被变成加密文件;
第二种方法(shc):
使用 shc 对 Linux shell 脚本加密.
shc是一个专业的加密shell脚本的工具.它的作用是把shell脚本转换为一个可执行的二进制文件,这个办法很好的解决了脚本中含有IP、密码等不希望公开的问题.
shc的下载地址:
http://download.chinaunix.net/download/0010000/9479.shtml
安装:
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语言).
这种加密方式不是非常保险的方法,但是能够满足一般的加密用途,可以隐蔽脚本中的密码等信息。
它是使用系统自带的gzexe程序,它不但加密,同时压缩文件。
使用方法:
gzexe file.sh
它会把原来没有加密的文件备份为 file.sh~ ,同时 file.sh 即被变成加密文件;
第二种方法(shc):
使用 shc 对 Linux shell 脚本加密.
shc是一个专业的加密shell脚本的工具.它的作用是把shell脚本转换为一个可执行的二进制文件,这个办法很好的解决了脚本中含有IP、密码等不希望公开的问题.
shc的下载地址:
http://download.chinaunix.net/download/0010000/9479.shtml
安装:
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语言).
from:http://5iwww.blog.51cto.com/856039/229503
- 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脚本
- 交通灯管理系统
- SQL*PLUS使用总结
- AndroidRuntimeException:This message is already in use
- XP不能执行aspx,IIS HTTP 500 内部服务器错误 服务器无法加载应用程序 '/LM/W3SVC''/LM/W3SVC' '找不到指定的元数据
- beans的配置
- shell脚本加密
- 关于编程,大学没有传授的10件事
- asp。net 和 extjs 结合grid 分页
- android搜索框实现
- 引用学习
- Cannot declare member function ‘static int Foo::bar()’ to have static linkage
- 《STL源码剖析》-- stl_alloc.h
- 定时任务:Java中Timer和TimerTask的使用
- HTTP下载实现