[root@localhost shc-3.8.6]# shc -r -f test sh: line 1: cc: command not found shc: Success [root@localhost shc-3.8.6]# 只生成出test.x.c的文件并没有test.x文件。是怎么回事? [ 本帖最后由 johnson0418 于 2008-10-29 23:14 编辑 ]
by johnson0418 - Shell - 2008-10-30 10:57:31 阅读(1790) 回复(4)
shc -v -T -r -f name.sh 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/40227/showart_1212578.html
目前我追加了一个T参数,好像没有出现上述的情况来! shc -v -T -r -f name.sh 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/5591/showart_409698.html
各位高手 因需求,需要将shell脚本进行加密,使用shc, 但是貌似对于有变量引入的脚本无法执行 例如,我的脚本执行时必须带上两个变量 ./test tring1 string2
我在hp-ux B.11.11上使用shc加密,报以下错误: ./shc test.csh sh: ./shc: Execute permission denied. 请教是怎么回事? 另外请问是否还有其他的加密方法。
我用shc 加密shell脚本时出现了 shc: invalid first line in script: echo "ding" shc: Success 我的脚本中只有一条块结合命令 1.sh echo "test shc " 结果就出现了上述的错误! shc -f 1.sh 有人说加参数-r ,我不知道-r 是什么作用!
我用shc将我的SHELL脚本进行了加密,但是加密之后有的时候运行的时候就像死机了一样,没有任何输出,也终止不了.用SSH登录到服务器上,发现出现了这个程序的死进程. 但是有的时候执行的时候就不会发生这种情况.是不是shc加密的有问题呢?我用的是静态编译的方法.
本帖最后由 hyh717 于 2014-10-13 15:13 编辑 如题,想知道怎样还原shc加密或的脚本,有人试过吗? 网上有人写一个解密脚本,执行后出现出错:skip flag not found。附上脚本:[code]#!/bin/sh ############################################################## # Used to unzip script files generated by shc # # Modified by cuterhei at 2014-02-26: 目录遍历 # # Created by cuterhei at 20...
本帖最后由 南非蜘蛛 于 2011-03-23 10:09 编辑 我把一个软件base加密后放到shell里,shell现在大小有317KB多了 我还想加密这个shell,但是 [@root]# ./shc -r -f a.sh shc: WARNING!! Scripts of length near to (or higher than) the current System limit on "maximum size of arguments to EXEC", could comprise its binary execution. In the current System the call sysconf(_SC_ARG_MAX) returns 131072 byt...
本帖最后由 xiaopan3322 于 2010-08-23 21:27 编辑 无聊的时候喜欢编译编译shell脚本,,, 用的是shc, 结果是会生成一个c文件和一个binary文件。。。 感觉挺有意思,,, 不知道大家有没有玩过,有兴趣的哥们,可以去玩玩啊
写好的SHELL,不想让别人看到里面的内容,就可以用shc来加SHELL,效果还可以! 安装:(以cnetos为例) rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm yum install shc -y 用rpmforge的源,就可以安装shc了, 加密: shc -r -f shell脚本 shc -v -f shell脚本 加完密码之后,会生成三个文件 [root@localhost ~]# file changeyum.sh* changeyum.sh: Bourne-Again s...