zoukankan      html  css  js  c++  java
  • CentOS6.x安装shc 3.8.9用于加密shell脚本

    [root@udiskos ~]# wget http://www.datsi.fi.upm.es/~frosal/sources/shc-3.8.9.tgz

    [root@udiskos ~]# ls

    shc-3.8.9.tgz

    [root@udiskos ~]# tar -zvxf shc-3.8.9.tgz 

    [root@udiskos ~]# ls

    shc-3.8.9  shc-3.8.9.tgz

    [root@udiskos ~]# mkdir -p /usr/local/man/man1

    [root@udiskos ~]# cd shc-3.8.9

    [root@udiskos shc-3.8.9]# ls

    CHANGES  Copying  makefile  match  pru.sh  shc.1  shc-3.8.9.c  shc.html  shc.README  test.bash  test.csh  test.ksh

    [root@udiskos shc-3.8.9]# make test

    make: *** 没有规则可以创建“shc”需要的目标“shc.c”。 停止。

    [root@udiskos shc-3.8.9]# rpm -q gcc

    gcc-4.4.7-3.el6.x86_64

    [root@udiskos shc-3.8.9]# cp -av shc-3.8.9.c shc.c

    "shc-3.8.9.c" -> "shc.c"

    [root@udiskos shc-3.8.9]# ls

    CHANGES  Copying  makefile  match  pru.sh  shc.1  shc-3.8.9.c  shc.c  shc.html  shc.README  test.bash  test.csh  test.ksh

    [root@udiskos shc-3.8.9]# make

    ***     you want to probe shc with a test script?

    ***     Please try...   make test

    [root@udiskos shc-3.8.9]# make install

    ***     Installing shc and shc.1 on /usr/local

    ***     you want to continue? y

    install -c -s shc /usr/local/bin/

    install -c -m 644 shc.1 /usr/local/man/man1/

    [root@udiskos shc-3.8.9]# cp -av shc /bin/

    "shc" -> "/bin/shc"

    [root@udiskos shc-3.8.9]# chmod +x /bin/shc 

    [root@udiskos shc-3.8.9]# shc

    shc parse(-f): No source file specified

    shc Usage: shc [-e date] [-m addr] [-i iopt] [-x cmnd] [-l lopt] [-rvDTCAh] -f script

    [root@udiskos shc-3.8.9]# cd

    [root@udiskos ~]# shc --help

    shc: invalid option -- '-'

    shc parse: Unknown option

    shc Version 3.8.9, Generic Script Compiler

    shc Copyright (c) 1994-2012 Francisco Rosales <frosal@fi.upm.es>

    shc Usage: shc [-e date] [-m addr] [-i iopt] [-x cmnd] [-l lopt] [-rvDTCAh] -f script


        -e %s  Expiration date in dd/mm/yyyy format [none]

        -m %s  Message to display upon expiration ["Please contact your provider"]

        -f %s  File name of the script to compile

        -i %s  Inline option for the shell interpreter i.e: -e

        -x %s  eXec command, as a printf format i.e: exec('%s',@ARGV);

        -l %s  Last shell option i.e: --

        -r     Relax security. Make a redistributable binary

        -v     Verbose compilation

        -D     Switch ON debug exec calls [OFF]

        -T     Allow binary to be traceable [no]

        -C     Display license and exit

        -A     Display abstract and exit

        -h     Display help and exit


        Environment variables used:

        Name    Default  Usage

        CC      cc       C compiler command

        CFLAGS  <none>   C compiler flags


        Please consult the shc(1) man page.


    [root@udiskos ~]# 

    *******************************************************************************************

  • 相关阅读:
    前端框架-Bootstrap【搭建后台管理系统】
    前端-jQuery
    前端-js基础语法-DOM
    前端-js基础语法
    前端-html标签
    python学习并发编程
    python学习网络编程
    python爬虫学习:第一爬_快眼看书排行榜
    python总结:模块汇总
    python学习_解释器接口模块:sys
  • 原文地址:https://www.cnblogs.com/myiaas/p/4161364.html
Copyright © 2011-2022 走看看