LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-02-2013, 12:21 PM   #1
ksaad
LQ Newbie
 
Registered: Nov 2011
Posts: 7
Blog Entries: 1

Rep: Reputation: Disabled
how to run/execute encripted shell script


Hi,

I crypt the shell script by:
$./crypt passwd <123.sh> newfile(123.x)

How I can run 123.x encripted file.
I tried:
$ ./.x 123.x response:-->bash: ./.x: No such file or directory
$./123.x response :-->bash: ./123.x: cannot execute binary file

Thanks
 
Old 01-02-2013, 12:30 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,632

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ksaad View Post
Hi,

I crypt the shell script by:
$./crypt passwd <123.sh> newfile(123.x)

How I can run 123.x encripted file.
I tried:
$ ./.x 123.x response:-->bash: ./.x: No such file or directory
$./123.x response :-->bash: ./123.x: cannot execute binary file

Thanks
You can't, obviously...because in order to run it, you have to first DEcrypt it.

You don't say what your goal is, but if you're trying to protect a shell script...you can't, for the simple reason that in order to decrypt it to run, the user would have to know the password, which would make the act of encrypting it pointless.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Source or Execute an external Script from shell script helptonewbie Linux - Newbie 2 08-11-2010 12:48 PM
help with execute mulitple shell script within shell script ufmale Programming 6 09-13-2008 12:21 AM
How to execute a shell script by clicking on it? foo1234 Linux - Newbie 12 04-18-2007 12:18 AM
auto execute shell script ykirankumar Linux - Software 3 09-22-2004 07:23 AM
shell script how to execute x2000koh Programming 6 07-29-2003 04:20 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration