shc v4.0.3 releases: Shell script compiler
Shell Script Compiler
A generic shell script compiler. Shc takes a script, which is specified on the command line and produces C source code. The generated source code is then compiled and linked to produce a stripped binary executable.
The compiled binary will still be dependent on the shell specified in the first line of the shellcode (i.e shebang) (i.e. #!/bin/sh), thus shc does not create completely independent binaries.
shc itself is not a compiler such as cc, it rather encodes and encrypts a shell script and generates C source code with the added expiration capability. It then uses the system compiler to compile a stripped binary which behaves exactly like the original script. Upon execution, the compiled binary will decrypt and execute the code with the shell -c option.
Changelog v4.0.3
- Enhance -H flag by intika https://github.com/intika (Hide commands arguments from ps and cmdline)
- Remove -s flag (experimental feature not working as expected by intika https://github.com/intika)
Install
- git clone https://github.com/neurobin/shc.git
- ./configure
- make
- sudo make install
Usage
Copyright (C) neurobin
Source: https://github.com/neurobin/