shc icon indicating copy to clipboard operation
shc copied to clipboard

All Shellcommands are visible in the processlist

Open MoBlockbuster opened this issue 1 year ago • 4 comments

After you compile your script with

shc -vf $script.sh

or

shc -vUf $script.sh

the whole script is visible for everyone (also non-root-user) in the process list. You may check it with ps aux | grep $script

Only -H hide the code. But then you can not use the script in a systemdunit. Currently i am not sure why, but the service crashes immediately after you start it.

Is there any solution to hide the code also in the processlist?

BR

MoBlockbuster avatar Jun 10 '23 14:06 MoBlockbuster

@MoBlockbuster any progress? I met the same trouble.

BiaoLiu2017 avatar Aug 21 '23 09:08 BiaoLiu2017

Currently not

MoBlockbuster avatar Aug 21 '23 09:08 MoBlockbuster

@MoBlockbuster @BiaoLiu2017 Take a look at my variant which uses pipe instead of command line: https://github.com/liberize/ssc

liberize avatar Jan 17 '24 15:01 liberize

thanks. I will check your solution in the next days

MoBlockbuster avatar Jan 17 '24 16:01 MoBlockbuster