ITPub博客

首页 > Linux操作系统 > Linux操作系统 > shell 到c 的安装

shell 到c 的安装

原创 Linux操作系统 作者:wuft2003 时间:2010-04-01 14:25:44 0 删除 编辑

1. 下载shc 3.8.3 版本 shc-3.8.3.tgz
2.  gunzip shc-3.8.3.tgz
  shc-3.8.3.tar
3.  新建立 shc 目录 mkdir shc
4. cdshc;tar xvf   shc-3.8.3.tar
5, /osst/shc/shc-3.8.3
 
报错:
      #install -c -s /usr/local/bin/ shc
        install -c /usr/local/bin/ shc
cp: /usr/local/bin//shc/shc: Permission denied
        install -c -m 644 shc.1 /usr/local/man/man1/
install: File 644 was not found.
make: The error code from the last command is 2.

install -c /usr/bin shc.1

装:

tar zxvf shc-3.8.tgz

cd shc-3.8

make test

make

make test

make strings

make install  这一步需要root权限

使用方法:

shc -r -f script-name  注意:要有-r选项, -f 后跟要加密的脚本名.
运行后会生成两个文件,script-name.x 和 script-name.x.c
script-name.x是加密后的可执行的二进制文件.
./script-name    即可运行.
script-name.x.c是生成script-name.x的原文件(c语言)

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/21634752/viewspace-631018/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: shell 中设置颜色
请登录后发表评论 登录
全部评论

注册时间:2009-05-12

  • 博文量
    295
  • 访问量
    383685