neurobin / shc

Shell script compiler

Home Page:https://neurobin.org/projects/softwares/unix/shc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

All Shellcommands are visible in the processlist

MoBlockbuster opened this issue · 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 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