shell加密为二进制可执行文件

1.下载shc工具

http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.9.tgz或者到http://www.datsi.fi.upm.es/~frosal/sources/目录下自行选择版本

wget http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.9.tgz

2.下载后,解压并安装

yum -y install gcc gcc-c++

tar -xvf shc-3.8.9.tgz

由于会安装到/usr/local/man/man1下面,所以新建如下:

mkdir -p /usr/local/man/man1

cd shc-3.8.9

make install

提示的时候输入 y 即可安装成功

3.使用

shc -r -f lua文件

shc -r -f ceshi.lua

会产生三个文件

ceshi.lua.x   ceshi.lua.x.c  ceshi.lua

留下二进制文件  ceshi.lua.x  其它两个删除

lua  <  ceshi.lua.x  即可测试执行

 

posted @ 2019-05-22 16:46  代码家园  阅读(747)  评论(0)    收藏  举报