openssl shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting openssl shell script
# 1  
Old 07-12-2008
Question openssl shell script

HI Smilie

I have a script with an encrypted file that will output the decrypted content. my question is, instead of printing it, how can I pass it to the python parser?

I kept trying lots of ways.. no luck Smilie

Code:
#!/bin/sh

openssl enc -aes-256-cfb8 -a -d -pass pass:mypass<<EOF
U2FsdGVkX19QrWvD0dzk3IVgXNeJjtc88WjdgLsW1+wnlXd7A1thiLshi/kX1TI0
GJZIgtNBTLaXUh88G6E5GTMiv1Ze/FrjkbdLvj4WT6vwPwswKFx19QNO1afuQ3Lt
757ixnRdDXL4kBCuqYRkyYM1knJ7vxS1uJWK82z3HA==
EOF

I would like it to run the decrypted content in the python interpreter.. if you guys have any idea, that would be great.

Thanks! Smilie
# 2  
Old 07-14-2008
try os.system command in python hope it would suit your purpos
# 3  
Old 07-14-2008
I can't seem to get anything like that to work.

If you run my dest script above, it will output the decrypted python script. Is there a way to pipe that into python?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Shell script newbie- how to generate service log from shell script

Hi, I am totally a newbie to any programming languages and I just started an entry level job in an IT company. One of my recent tasks is to create a script that is able to show the log file of linux service (i.e. ntpd service) lets say, if I run my script ./test.sh, the output should be... (3 Replies)
Discussion started by: xiaogeji
3 Replies

2. Shell Programming and Scripting

Shell differences for openssl command output

The following works in bash (/bin/bash): echo "U2FsdGVkX198UexvhHEtfC7iLbT3awAfla77fvSjZQJ0LC4GmDMeLOghPWXpyy6e" | openssl aes-128-cbc -a -d -salt -pass file:<( echo -n "toy" ) Fri Sep 15 15:20:01 PDT 2017 But fails when run in sh (/bin/sh): echo... (1 Reply)
Discussion started by: SkySmart
1 Replies

3. Shell Programming and Scripting

How to pass an argument to encrypted script having openssl ?

Hi, can it be possible to pass and argument to an encrypted script? for example.. Say I have this script which takes one input.. > cat aa #!/bin/ksh UNAME=$1 echo "Hi $UNAME.." > aa TEST Hi TEST.. Now I encrypted this code.. (6 Replies)
Discussion started by: akore83
6 Replies

4. Shell Programming and Scripting

How to write config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

5. UNIX for Dummies Questions & Answers

How to write Config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

6. Shell Programming and Scripting

Unable to pass shell script variable to awk command in same shell script

I have a shell script (.sh) and I want to pass a parameter value to the awk command but I am getting exception, please assist. diff=$1$2.diff id=$2 new=new_$diff echo "My id is $1" echo "I want to sync for user account $id" ##awk command I am using is as below cat $diff | awk... (2 Replies)
Discussion started by: Ashunayak
2 Replies

7. Shell Programming and Scripting

Correct shell script to Call One shell script from another shell script

Hi All, I have new for shell scripting. Problem : I have one scrip at serv1 and path of server is /apps/dev/provimage/scripts and script name:extract_ancillary.bat. I need to call this script at server2(my working server) and execute at server2 . Please let me know how to build the... (5 Replies)
Discussion started by: Vineeta Nigam
5 Replies

8. Shell Programming and Scripting

Shell script to create multiple OpenSSL Certificates

I need to create a script that will generate a bunch of OpenSSL Certificates signed by my own CA. The certificates being generated are for testing purposes only. But what I need is the following Root CA 512 768 1024 1280 1536 1792 2048 4096 I need basically 64 combinations. Each... (4 Replies)
Discussion started by: krisarmstrong
4 Replies

9. Solaris

Openssl 0.9.8r

Hi Peeps, Having trouble compiling openssl 0.9.8r on Solaris 10 x86. The make test fails when running the shatests (segmentation faults). There is a PROBLEM file that references a file called values.c. Anyone know whereabouts in the source tree you put this file as the file doesn't tell you... (2 Replies)
Discussion started by: callmebob
2 Replies

10. Shell Programming and Scripting

How to use ssh execute other shell script on other host (shell script include nohup)?

i want use ssh on the host01 to execute autoexec.sh on the host02 like following : host01> ssh host02 autoexec.sh autoexec.sh include nohup command like follwing : nohup /home/jack/deletedata.sh & after i execute ssh host02 autoexec.sh one the host01. i can't found deletedata.sh... (1 Reply)
Discussion started by: orablue
1 Replies
Login or Register to Ask a Question