neurobin / shc

Shell script compiler
https://neurobin.org/projects/softwares/unix/shc/
GNU General Public License v3.0
2k stars 338 forks source link

code is exposed after binary runs #40

Open hafsiam opened 7 years ago

hafsiam commented 7 years ago

Hi folks,

I'm using ksh, once I generated my binary executable cmd : shc -v -r -T -f myscript.ksh

I can easly retreive the code in ps command

you can reproduce the issue : while the script is running try to run in another console in the same machine

'ps -ef | grep '

let you see the result .. the original script is exposed via the use of ps -ef !! and will require not too much effort to re-construct the code

info my env build machins is : 2.6.32-504.el6.x86_64 run machine : 3.10.0-327.el7.x86_64

note : I googled a bit and found that some other people are exposing quit a tricky methode to retreive the code

Questions :

br, M

vpashka commented 6 years ago

+1

vpashka commented 6 years ago

duplicate https://github.com/neurobin/shc/issues/7 ?

neurobin commented 6 years ago

There is no -T flag in this shc version. The option is renamed to -U to produce untraceable binary (with ptrace, truss etc.)

SilenceDZ commented 6 years ago

I had added -U parameter to compile script but script still can be seen with the "ps -ef |grep Githubissues.

  • Githubissues is a development platform for aggregating issues.