`

How to get the shell encrypt tool SHC

阅读更多

Purpose: This blog entry will explain how to encrypt a shell script on your Linux or a Unix based system. Although there might be other ways to encrypt your shell script I found this one the most easiest to use. We will encrypt the script using the shc utility.  I have been using this utility since last 3 years and it works great in situations where you want users to execute the shell script but at the same time you don’t want them to see the source code of the shell script. So let’s get started…

Step 1: Download or obtain the source

Luckily Debian Etch has “.deb” package for the shc utility so we will use it.  On a Debian Etch system do:

 

# apt-get update;
# apt-get install shc

 

Now go to step 3 if you are on a Debian Etch system. If you are on a Lenny system then follow step 2.

If you are on Debian Lenny system (chances are very high) then you will need to download the “.deb” file from Debian Etch repos. You either download it from here or you can give the following command:

 

# apt-get update; apt-get install wget
# wget http://http.us.debian.org/debian/pool/main/s/shc/shc_3.8.6-2_i386.deb

 

This will download the file named  shc_3.8.6-2_i386.deb into the directory from where you gave the above command.

If you are on a system other than Debian, you can download the tarball from here or by giving the command:

 

fedora# wget http://www.datsi.fi.upm.es/%7Efrosal/sources/shc-3.8.6.tgz

 

Step 2:  Install the “.deb” file (only for users on Debian Lenny or Debian Sid)

 

Once you have downloaded the “.deb” file on your Linux system, install it using dpkg command:

 

# dpkg -i <file-you-downloaded-from-step1>
Example:
# dpkg -i shc_3.8.6-2_i386.deb

 

You only need to do the above on a Lenny system. If you are on a Debian Etch system it gets installed automatically.

 

Link:http://linux.koolsolutions.com/2009/01/20/howto-encrypting-a-shell-script-on-a-linux-or-unix-based-system/

分享到:
评论

相关推荐

    LTspice Encrypt Tool.exe

    LTspice Encrypt Tool,是一个LTspice仿真模型加密工具。如果我们需要共享仿真模型但是又不想别人知道内部算法,我们可以将子电路仿真模型进行加密。

    Linux Shell Scripting Cookbook - Third Edition

    Starting with the basics of the shell, you will learn simple commands and how to apply them to real-world issues. From there, you'll learn text processing, web interactions, network and system ...

    This is another good example on how to encrypt strings.

    This is another good example on how to encrypt strings.

    UE(官方下载)

    This power tip provides an explanation as well as some tips to get the most out of temp files. Backup and Restore Settings One of the staples of UltraEdit (and UEStudio) is its highly configurable ...

    加密Encrypt加密Encrypt

    加密Encrypt加密Encrypt加密Encrypt加密Encrypt加密Encrypt加密Encrypt

    Shell脚本方式获取 Let's Encrypt 的免费 SSL 证书

    NULL 博文链接:https://happysoul.iteye.com/blog/2390688

    .A.Practical.Guide.to.TPM.2.0

    The book includes instructions for the available execution environments and real code examples to get readers up and talking to the TPM quickly. The authors then help the users expand on that with ...

    a project model for the FreeBSD Project.7z

    It contains information about where to fetch the source, what patches to apply and how, and how the package should be installed on the system. This allows automated tools to fetch, build and install ...

    飞天诚信加密锁加密工具.rar

    The tool can encrypt Flash media. The encrypted Flash can only be played by using encrypted Flash player or using IE installed ROCKEY ActiveX component. Both the player converter and IE ActiveX ...

    Play Encrypt Private Key (PEPK) 工具

    Play Encrypt Private Key (PEPK) 工具,用于导出并加密您的私钥。 PEPK 工具是开放源代码的。源代码可供下载和查看。https://www.gstatic.com/play-apps-publisher-rapid/signing-tool/prod/pepk-src.jar

    Windows Runtime via C#

    and encrypt data via streams Design apps that give the illusion of running using live tiles, background transfers, and background tasks Share data between apps using the clipboard and the Share charm ...

    lets encrypt.rar

    Let's Encrypt是国外一个公共的免费SSL项目,由 Linux 基金会托管,由Mozilla、思科、Akamai、IdenTrust和EFF等组织发起,靠谱! Let's Encrypt安装部署简单、方便,目前Cpanel、Oneinstack等面板都已经集成了Let's...

    C#学习的101个经典例子

    Advanced - Multithreading - How-To Async Calls Advanced - Remoting - How-To TCP Remoting Advanced - Serialization - How-To Serializing Objects Advanced .NET Framework (GDI+) - Animation with GDI+ ...

    AN12554 Demo Application to Generate Red/Black Blobs Using CAAM and Encrypt/Decr

    AN12554 Demo Application to Generate Red/Black Blobs Using CAAM and Encrypt/Decrypt Data

    [开发工具] SQL Toolbelt 1.8.2.238

    SQL Compare Pro - the standard software tool, which provides a comparison and synchronization of database schemas SQL Server. SQL Data Compare Pro - allowing you to quickly and effectively compare ...

    Encrypt PDF v2.3

    Encrypt PDF v2.3破解版

    EncryptTools 字符串 加密 解密 工具

    EncryptTools 字符串 加密 解密 工具,EncryptTools 字符串 加密 解密 工具

    Release crypter 2020_crypt_Encrypt_crypter_

    It is used to encrypt the prepared server files. This tool

    encrypt-tool

    .\windows_x64_encrypt.exe -e -i .\Sincerely.flac -o .\Sincerely.enc -pub .\my_key_pair.pub 解密文件 .\windows_x64_encrypt.exe -d -i .\Sincerely.enc -o .\Sincerely.enc.flac -pri .\my_key_pair 打印提示...

    SQL Server 2016 Developer's Guide

    Use the new security features to encrypt or to have more granular control over access to rows in a table Simplify performance troubleshooting with Query Store Discover the potential of R's integration...

Global site tag (gtag.js) - Google Analytics