How it works...

After executing the script, two extra files will be created. The files are:

  • hello.sh.x: This file is the stripped binary encrypted shell script in binary format
  • hello.sh.x.c: This file is the C source code of hello.sh

Now, execute the encrypted shell script as follows:

$ ./hello.sh.x

The logger command will make an entry about your file in the syslog file, which is present in the /var/log directory of your system. You can check out that file. Navigate to /var/log directory and run nano syslog; you will find the entry in it.

Get Bash Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.