Skip to content

Commit e2b6034

Browse files
committed
3.9.3
1 parent ac8e83b commit e2b6034

File tree

4 files changed

+10
-57
lines changed

4 files changed

+10
-57
lines changed

ChangeLog

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
CHANGES
22

3+
3.9.3 Sat Jul 30 18:46:34 BDT 2016
4+
5+
* zsh support
6+
* Fix issue #13 (https://github.com/neurobin/shc/issues/13)
7+
8+
39
3.9.2 Fri Aug 21 16:12:33 BDT 2015
410

511
Added BusyBox support with patch taken from:
@@ -15,9 +21,9 @@ CHANGES
1521

1622
3.9.0 Wed Apr 01 08:35:22 AM GMT 2015
1723

18-
Thanks to me http://github.com/neurobin,
19-
for adding output file option with [-o filename]
20-
and fixing bug on make install (manual install failed)
24+
(http://github.com/neurobin)
25+
Added output file option with [-o filename]
26+
and fixed bug on make install (manual install failed)
2127
Now you can access manual by entering command: man shc
2228
in a terminal.
2329

README

Lines changed: 1 addition & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1 @@
1-
# Shell Script Compiler
2-
3-
A generic shell script compiler. Shc takes a script, which is
4-
specified on the command line and produces C source code. The
5-
generated source code is then compiled and linked to produce a
6-
stripped binary executable.
7-
8-
The compiled binary will still be dependent on the shell specified in the
9-
first line of the shell code (i.e shebang) (i.e. #!/bin/sh), thus shc does not create com‐
10-
pletely independent binaries.
11-
12-
shc itself is not a compiler such as cc, it rather encodes and encrypts a
13-
shell script and generates C source code with the added expiration capability.
14-
It then uses the system compiler to compile a stripped binary which behaves
15-
exactly like the original script. Upon execution, the compiled binary will
16-
decrypt and execute the code with the shell -c option.
17-
18-
Install:
19-
--------
20-
21-
1. cd to directory "main": `cd main`
22-
2. do a `make`
23-
3. and then `sudo make install`
24-
4. or simply run the `install` script/file provided, in terminal.
25-
26-
Usage:
27-
------
28-
```
29-
shc [options]
30-
shc -f script.sh -o binary
31-
```
32-
33-
34-
35-
Testing:
36-
--------
37-
38-
1. cd to `test` directory: `cd test`
39-
2. Try: `shc -f test.bash -o test`
40-
3. output binary file will be test. If no output file is specified
41-
by the `-o` option, then it will create an executable with `.x` extension by default.
42-
43-
44-
Known bugs:
45-
-----------
46-
47-
The one (and I hope the only) limitation using shc is the
48-
_SC_ARG_MAX system configuration parameter.
49-
50-
It limits the maximum length of the arguments to the exec function,
51-
limiting the maximum length of the runnable script of shc.
52-
53-
!! - CHECK YOUR RESULTS CAREFULLY BEFORE USING - !!
54-
<h2><a href="http://neurobin.github.io/shc">WebPage</a></h2>
1+
README.md

bin/x32/shc

2.57 KB
Binary file not shown.

bin/x64/shc

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)