shc
shc copied to clipboard
All Shellcommands are visible in the processlist
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 any progress? I met the same trouble.
Currently not
@MoBlockbuster @BiaoLiu2017 Take a look at my variant which uses pipe instead of command line: https://github.com/liberize/ssc
thanks. I will check your solution in the next days