Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

All Shellcommands are visible in the processlist #154

Open
MoBlockbuster opened this issue Jun 10, 2023 · 4 comments
Open

All Shellcommands are visible in the processlist #154

MoBlockbuster opened this issue Jun 10, 2023 · 4 comments

Comments

@MoBlockbuster
Copy link

MoBlockbuster commented Jun 10, 2023

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

@BiaoLiu2017
Copy link

@MoBlockbuster any progress? I met the same trouble.

@MoBlockbuster
Copy link
Author

Currently not

@liberize
Copy link

liberize commented Jan 17, 2024

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

@MoBlockbuster
Copy link
Author

thanks. I will check your solution in the next days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants