Priy
December 29, 2013, 12:41pm
1
Hi I am new in programming.
I have written a shell code, but i want to secure my code.
I have tried SHC. It is converting it to binary, but can be converted in plain text again by core dump.
I have tried to convert it in rpm by "rpmbuild -bb my.spec" option but the result is same.
Is there any idea/way by which we can protect it by getting plain text code.
How other linux commands are converted to binary ?
kurumi
December 29, 2013, 9:42pm
2
priy:
Hi I am new in programming.
I have written a shell code, but i want to secure my code.
I have tried SHC. It is converting it to binary, but can be converted in plain text again by core dump.
I have tried to convert it in rpm by "rpmbuild -bb my.spec" option but the result is same.
Is there any idea/way by which we can protect it by getting plain text code.
How other linux commands are converted to binary ?
shell code is different from shell script.
What makes your code so secret? did you embed passwords inside?
another way. Write in C and compile.
Priy
December 29, 2013, 11:07pm
3
Yes, Passwords are there.
I have used dialog command in shell, I am not getting how to use dialog in c program.
kurumi
December 29, 2013, 11:38pm
4
bring your password outside the script. Usually the way to do this is via a database that provide login mechanisms + encryption. If not, you can set up an encrypted file that stores the password. See here for more info.
1 Like
Priy
December 30, 2013, 12:58am
5
Hi kurumi ,
Thanks for idea,
But can you give ideas/link on how to write same in c .