- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Shell Script to EXE ???
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2001 07:39 AM
02-01-2001 07:39 AM
Shell Script to EXE ???
Does anyone know of a tool that will safely encrypt a shell script but still leave it in an executable state ??
I have some shell scripts that include various security information that I would like to shield from prying eyes ......
Any ideas ??????
Regards,
Paul M.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2001 08:09 AM
02-01-2001 08:09 AM
Re: Shell Script to EXE ???
I doesn't know any tool for this, but
You can put the secur information to file.
You can hide it anybody except root.
In Your shell script use
$(cat filename ) | ....
of course file permissions 400.
regards, Saa
ps: Your scripts rights can modify to 510 or 500 it depends who can run this script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2001 08:15 AM
02-01-2001 08:15 AM
Re: Shell Script to EXE ???
At least centralize and/or isolate the sensitive information in a file that your scripts source (read).
#!/usr/bin/sh
. /.includeme
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2001 08:25 AM
02-01-2001 08:25 AM
Re: Shell Script to EXE ???
Unfortunately, I never heard about such a 'shell script compiler'.
What you could do to hide your script, at least to the average user, is call it from a C program (with the system() call).
This C program could possibly do all setuid, setgid before calling the script.
Make sure your script has the right read/write permission.
This looks like 'quick and dirty job', doesn't it?
Good luck
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2001 08:39 AM
02-01-2001 08:39 AM
Re: Shell Script to EXE ???
I have only one problem ..... I have never written a C program in my life !
Is there any particular resource that you would suggest in order to "learn" how to write C for HP-UX ??
Many thanks in advance,
Paul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2001 11:44 PM
02-01-2001 11:44 PM
Re: Shell Script to EXE ???
Here is the kind of program you need. You see it's quite simple. Simply replace the "/usr/bin/ls /etc" with the command you want to run.
--CUT HERE
#include
main()
{
system("/usr/bin/ls /etc");
}
-\CUT
Put the text into a file ending in '.c' (my_prog.c for example) and type "make myprog".
The executable will be created.
There are many books on the C language available on the market. I couldn't recommend any because I'm still happy with "The C programming Language - from K&Richie" that I've discovered 20 years ago ;-)
It's still a good reference.
All the best,
Dan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2001 12:57 AM
02-02-2001 12:57 AM
Re: Shell Script to EXE ???
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2001 02:46 AM
02-02-2001 02:46 AM
Re: Shell Script to EXE ???
You can indeed get compilers for shell scripts which should make them impossible to read. They advertise all the time in SysAdmin Magazine (www.sysadminmag.com)