a422015028 / shell_script_compiler

Compile shell script as binary

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shell script compiler

Compile your shell script as executable file. It will aslo obfuscate your shell script. The shell script will be also compiled with standalone mode busybox without depending on /system/bin/sh

How to use

CI Build:

  1. Fork this repo
  2. Write your shell script in scripts/script.sh
  3. Run GitHub Actions
  4. compiled_script.zip will be available as github artifact

Linux environment:

  1. Clone repo
git clone https://github.com/HuskyDG/shell_script_compiler && cd shell_script_compiler
  1. Setup Android NDK
wget https://dl.google.com/android/repository/android-ndk-r23b-linux.zip && unzip android-ndk-r23b-linux.zip
  1. Build executable
chmod 777 ./build.sh

mkdir -p bin

ANDROID_NDK_HOME=./android-ndk-r23b CXX=aarch64-linux-android31-clang++ ./build.sh bin/compiled_script_arm64

ANDROID_NDK_HOME=./android-ndk-r23b CXX=armv7a-linux-androideabi31-clang++ ./build.sh bin/compiled_script_arm

ANDROID_NDK_HOME=./android-ndk-r23b CXX=i686-linux-android31-clang++ ./build.sh bin/compiled_script_x86

ANDROID_NDK_HOME=./android-ndk-r23b CXX=x86_64-linux-android31-clang++ ./build.sh bin/compiled_script_x64

P/s: This does not have protection yet, please implement it by yourself

About

Compile shell script as binary

License:GNU General Public License v3.0


Languages

Language:C++ 100.0%Language:Shell 0.0%Language:C 0.0%