neurobin/shc — reverse-engineered prompt
Reverse engineered prompt
Build me a command line tool called shc that takes a shell script file and turns it into a stripped binary executable. It should read the script, encode or encrypt it into generated C source, compile that C code, and make the final program behave the same as the original script when someone runs it.
Please keep it clear that the binary still depends on the shell named in the script shebang, so it is not a fully standalone app. Add options for choosing the input script, naming the output binary, making the binary harder to trace, and adding an optional expiration date with a message.
I want it to work with normal Unix shell scripts and common shells where possible. Include a simple install flow using configure, make, and make install, plus tests and a manual page. Also add a README that explains what it does, its limits, and warns users to check the generated binaries carefully.
Want more depth? Deep Reverse