Total Hit Counter

Monday, February 25, 2013

Encrypt shell scripts



URL : wget http://mirror.pnl.gov/ubuntu//pool/universe/s/shc/shc_3.8.6-3_amd64.deb

There used to be a utility shc that turns scripts into binaries (obscuring code and  passwords), available from the older Debian repositories: 
http://archive.debian.net/etch/i386/shc

You can install it by adding the repository:

deb http://archive.debian.org/debian etch maini.e.
sudo add-apt-repository 'http://archive.debian.org/debian etch main' 

Or execute this command 

echo 'deb http://archive.debian.org/debian etch main' > /etc/apt/source.list.d/archive-shc.list 

Then update the apt-get repository data.
sudo apt-get update

and then installing the shc package:sudo apt-get install shc
Usage instructions are at:http://www.datsi.fi.upm.es/~frosal/sources/shc.html


Now you can create encrypt file by following command

root@Shankar:~# shc -rf check_response_time.sh

No comments: