-
Notifications
You must be signed in to change notification settings - Fork 29
/
README
54 lines (39 loc) · 1.83 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
How to use SHC Bash Script Compiler
copy shc binary to /bin (cp shc /bin)
give execute permissions (chmod +x /bin/shc)
#shc
This will give you all the options of the command.
shc Copyright (c) 1994-2003 Francisco Rosales <[email protected]>
shc Usage: shc [-e date] [-m addr] [-i iopt] [-x cmnd] [-l lopt] [-rvDTCAh] -f script
-e %s Expiration date in dd/mm/yyyy format [none]
-m %s Message to display upon expiration ["Please contact your provider"]
-f %s File name of the script to compile
-i %s Inline option for the shell interpreter i.e: -e
-x %s eXec command, as a printf format i.e: exec('%s',@ARGV);
-l %s Last shell option i.e: --
-r Relax security. Make a redistributable binary
-v Verbose compilation
-D Switch ON debug exec calls [OFF]
-T Allow binary to be traceable [no]
-C Display license and exit
-A Display abstract and exit
-h Display help and exit
Environment variables used:
Name Default Usage
CC cc C compiler command
CFLAGS <none> C compiler flags
Please consult the shc(1) man page.
Below is a example for how to use it.
#shc -e 31/12/2010 -m "Please contact Gourav Joshi at Gmail dot com" -r -f configs.sh
This will create 2 file as output;
config.sh.x
config.sh.x.c
We just have to rename the ".x" file as some name.
e.g.
#mv config.sh.x configs
This will create a binary "configs", which we will give execute permission and use.
#chmod +x configs
# cp -ap configs /bin
Now we can use it directly.
#configs
Note: - The software used here is a copyright software which is available free to use. There is no code written by me. This document is only meant to help for how to use this software and create a binary of bash script. Any suggestions regarding the software can be directly send at [email protected]