Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fajarkim/bz2-shell

🛠️ Simple encryption Shell scripts to BZip2 format
https://github.com/fajarkim/bz2-shell

bash bz2-shell bzip2 compress compressor ksh mksh shell shell-compressor zsh

Last synced: 25 days ago
JSON representation

🛠️ Simple encryption Shell scripts to BZip2 format

Awesome Lists containing this project

README

        


BZSH Logo

BZip2 Shell Exec


🛠️ Simple encryption Shell scripts to BZip2 format


Report Bug · Request Feature · Ask Question


Indonesia · 한국어



[![Version](https://img.shields.io/github/v/tag/FajarKim/bz2-shell?label=Version&labelColor=302d41&color=f2cdcd&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjRDlFMEVFIiBkPSJNMzQ1IDM5LjFMNDcyLjggMTY4LjRjNTIuNCA1MyA1Mi40IDEzOC4yIDAgMTkxLjJMMzYwLjggNDcyLjljLTkuMyA5LjQtMjQuNSA5LjUtMzMuOSAuMnMtOS41LTI0LjUtLjItMzMuOUw0MzguNiAzMjUuOWMzMy45LTM0LjMgMzMuOS04OS40IDAtMTIzLjdMMzEwLjkgNzIuOWMtOS4zLTkuNC05LjItMjQuNiAuMi0zMy45czI0LjYtOS4yIDMzLjkgLjJ6TTAgMjI5LjVWODBDMCA1My41IDIxLjUgMzIgNDggMzJIMTk3LjVjMTcgMCAzMy4zIDYuNyA0NS4zIDE4LjdsMTY4IDE2OGMyNSAyNSAyNSA2NS41IDAgOTAuNUwyNzcuMyA0NDIuN2MtMjUgMjUtNjUuNSAyNS05MC41IDBsLTE2OC0xNjhDNi43IDI2Mi43IDAgMjQ2LjUgMCAyMjkuNXpNMTQ0IDE0NGEzMiAzMiAwIDEgMCAtNjQgMCAzMiAzMiAwIDEgMCA2NCAweiIvPjwvc3ZnPg%3D%3D&style=for-the-badge)](https://github.com/FajarKim/bz2-shell/releases)
[![Star](https://img.shields.io/github/stars/FajarKim/bz2-shell?label=Stars&labelColor=302d41&color=c9cbff&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1NzYgNTEyIj48cGF0aCBmaWxsPSIjRDlFMEVFIiBkPSJNMzE2LjkgMThDMzExLjYgNyAzMDAuNCAwIDI4OC4xIDBzLTIzLjQgNy0yOC44IDE4TDE5NSAxNTAuMyA1MS40IDE3MS41Yy0xMiAxLjgtMjIgMTAuMi0yNS43IDIxLjdzLS43IDI0LjIgNy45IDMyLjdMMTM3LjggMzI5IDExMy4yIDQ3NC43Yy0yIDEyIDMgMjQuMiAxMi45IDMxLjNzMjMgOCAzMy44IDIuM2wxMjguMy02OC41IDEyOC4zIDY4LjVjMTAuOCA1LjcgMjMuOSA0LjkgMzMuOC0yLjNzMTQuOS0xOS4zIDEyLjktMzEuM0w0MzguNSAzMjkgNTQyLjcgMjI1LjljOC42LTguNSAxMS43LTIxLjIgNy45LTMyLjdzLTEzLjctMTkuOS0yNS43LTIxLjdMMzgxLjIgMTUwLjMgMzE2LjkgMTh6Ii8%2BPC9zdmc%2B&style=for-the-badge)](https://github.com/FajarKim/bz2-shell/stargazers)
[![Forks](https://img.shields.io/github/forks/FajarKim/bz2-shell?label=Forks&labelColor=302d41&color=b5e8e0&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0NDggNTEyIj48cGF0aCBmaWxsPSIjRDlFMEVFIiBkPSJNODAgMTA0YTI0IDI0IDAgMSAwIDAtNDggMjQgMjQgMCAxIDAgMCA0OHptODAtMjRjMCAzMi44LTE5LjcgNjEtNDggNzMuM1YxOTJjMCAxNy43IDE0LjMgMzIgMzIgMzJIMzA0YzE3LjcgMCAzMi0xNC4zIDMyLTMyVjE1My4zQzMwNy43IDE0MSAyODggMTEyLjggMjg4IDgwYzAtNDQuMiAzNS44LTgwIDgwLTgwczgwIDM1LjggODAgODBjMCAzMi44LTE5LjcgNjEtNDggNzMuM1YxOTJjMCA1My00MyA5Ni05NiA5NkgyNTZ2NzAuN2MyOC4zIDEyLjMgNDggNDAuNSA0OCA3My4zYzAgNDQuMi0zNS44IDgwLTgwIDgwcy04MC0zNS44LTgwLTgwYzAtMzIuOCAxOS43LTYxIDQ4LTczLjNWMjg4SDE0NGMtNTMgMC05Ni00My05Ni05NlYxNTMuM0MxOS43IDE0MSAwIDExMi44IDAgODBDMCAzNS44IDM1LjggMCA4MCAwczgwIDM1LjggODAgODB6bTIwOCAyNGEyNCAyNCAwIDEgMCAwLTQ4IDI0IDI0IDAgMSAwIDAgNDh6TTI0OCA0MzJhMjQgMjQgMCAxIDAgLTQ4IDAgMjQgMjQgMCAxIDAgNDggMHoiLz48L3N2Zz4%3D&style=for-the-badge)](https://github.com/FajarKim/bz2-shell/network/members)
[![Issue Open](https://img.shields.io/github/issues/FajarKim/bz2-shell?label=Issue&labelColor=302d41&color=f5a97f&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjRDlFMEVFIiBkPSJNNDY0IDI1NkEyMDggMjA4IDAgMSAwIDQ4IDI1NmEyMDggMjA4IDAgMSAwIDQxNiAwek0wIDI1NmEyNTYgMjU2IDAgMSAxIDUxMiAwQTI1NiAyNTYgMCAxIDEgMCAyNTZ6bTI1Ni05NmE5NiA5NiAwIDEgMSAwIDE5MiA5NiA5NiAwIDEgMSAwLTE5MnoiLz48L3N2Zz4%3D&style=for-the-badge)](https://github.com/FajarKim/bz2-shell/issues?q=is%3Aopen+is%3Aissue)
[![PRs Open](https://img.shields.io/github/issues-pr/FajarKim/bz2-shell?&label=Pull%20requests&labelColor=302d41&color=ddb6f2&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA1MTIgNTEyIj48cGF0aCBmaWxsPSIjRDlFMEVFIiBkPSJNMzA1LjggMi4xQzMxNC40IDUuOSAzMjAgMTQuNSAzMjAgMjRWNjRoMTZjNzAuNyAwIDEyOCA1Ny4zIDEyOCAxMjhWMzU4LjdjMjguMyAxMi4zIDQ4IDQwLjUgNDggNzMuM2MwIDQ0LjItMzUuOCA4MC04MCA4MHMtODAtMzUuOC04MC04MGMwLTMyLjggMTkuNy02MSA0OC03My4zVjE5MmMwLTM1LjMtMjguNy02NC02NC02NEgzMjB2NDBjMCA5LjUtNS42IDE4LjEtMTQuMiAyMS45cy0xOC44IDIuMy0yNS44LTQuMWwtODAtNzJjLTUuMS00LjYtNy45LTExLTcuOS0xNy44czIuOS0xMy4zIDcuOS0xNy44bDgwLTcyYzctNi4zIDE3LjItNy45IDI1LjgtNC4xek0xMDQgODBBMjQgMjQgMCAxIDAgNTYgODBhMjQgMjQgMCAxIDAgNDggMHptOCA3My4zVjM1OC43YzI4LjMgMTIuMyA0OCA0MC41IDQ4IDczLjNjMCA0NC4yLTM1LjggODAtODAgODBzLTgwLTM1LjgtODAtODBjMC0zMi44IDE5LjctNjEgNDgtNzMuM1YxNTMuM0MxOS43IDE0MSAwIDExMi44IDAgODBDMCAzNS44IDM1LjggMCA4MCAwczgwIDM1LjggODAgODBjMCAzMi44LTE5LjcgNjEtNDggNzMuM3pNMTA0IDQzMmEyNCAyNCAwIDEgMCAtNDggMCAyNCAyNCAwIDEgMCA0OCAwem0zMjggMjRhMjQgMjQgMCAxIDAgMC00OCAyNCAyNCAwIDEgMCAwIDQ4eiIvPjwvc3ZnPg%3D%3D&style=for-the-badge)](https://github.com/FajarKim/bz2-shell/pulls?q=is%3Aopen+is%3Apr)
[![Download](https://img.shields.io/github/languages/code-size/FajarKim/bz2-shell?label=Download%20.zip&labelColor=302d41&color=b7bdf8&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAzODQgNTEyIj48cGF0aCBmaWxsPSIjRDlFMEVFIiBkPSJNNjQgMEMyOC43IDAgMCAyOC43IDAgNjRWNDQ4YzAgMzUuMyAyOC43IDY0IDY0IDY0SDMyMGMzNS4zIDAgNjQtMjguNyA2NC02NFYxNjBIMjU2Yy0xNy43IDAtMzItMTQuMy0zMi0zMlYwSDY0ek0yNTYgMFYxMjhIMzg0TDI1NiAwek05NiA0OGMwLTguOCA3LjItMTYgMTYtMTZoMzJjOC44IDAgMTYgNy4yIDE2IDE2cy03LjIgMTYtMTYgMTZIMTEyYy04LjggMC0xNi03LjItMTYtMTZ6bTAgNjRjMC04LjggNy4yLTE2IDE2LTE2aDMyYzguOCAwIDE2IDcuMiAxNiAxNnMtNy4yIDE2LTE2IDE2SDExMmMtOC44IDAtMTYtNy4yLTE2LTE2em0wIDY0YzAtOC44IDcuMi0xNiAxNi0xNmgzMmM4LjggMCAxNiA3LjIgMTYgMTZzLTcuMiAxNi0xNiAxNkgxMTJjLTguOCAwLTE2LTcuMi0xNi0xNnptLTYuMyA3MS44YzMuNy0xNCAxNi40LTIzLjggMzAuOS0yMy44aDE0LjhjMTQuNSAwIDI3LjIgOS43IDMwLjkgMjMuOGwyMy41IDg4LjJjMS40IDUuNCAyLjEgMTAuOSAyLjEgMTYuNGMwIDM1LjItMjguOCA2My43LTY0IDYzLjdzLTY0LTI4LjUtNjQtNjMuN2MwLTUuNSAuNy0xMS4xIDIuMS0xNi40bDIzLjUtODguMnpNMTEyIDMzNmMtOC44IDAtMTYgNy4yLTE2IDE2czcuMiAxNiAxNiAxNmgzMmM4LjggMCAxNi03LjIgMTYtMTZzLTcuMi0xNi0xNi0xNkgxMTJ6Ii8%2BPC9zdmc%2B&style=for-the-badge)](https://github.com/FajarKim/bz2-shell/archive/refs/heads/master.zip)

# Description
BZip2 Shell Exec is a specially designed tool, where when run, this tool will encrypt or compress all shell file strings into BZip2 format without needing to worry about being recoded or taken by someone else. Files that have been encrypted will still be able to be executed with shell language commands. The types of shell languages ​​supported are Bourne Shell (sh), Bourne Again Shell (bash), Z Shell (zsh), Korn Shell (ksh), and MirBSD Korn Shell (mksh).

> [!NOTE]
> The more lines in a file, the longer it takes to encrypt.

> [!WARNING]
> This tool may be incompatible or not supported on some Linuxes, such as on Ultrix.

# Installation Instructions
## Termux
Here is how to install BZip2 Shell Exec in Termux app!
- ```shell
pkg update -y && pkg upgrade -y
```
- ```shell
pkg install git bzip2 xz-utils curl -y
```
- ```shell
git clone https://github.com/FajarKim/bz2-shell
```
- ```shell
cd bz2-shell
```

Then, run the file `bzsh.sh` to start encrypting the shell file.
- ```shell
bash bzsh.sh --help
```

If you want to install it to the `$PATH` folder, just run the `install.sh` file located in the `tools/Termux` folder.
- ```shell
tools/Termux/install.sh
```
or
- ```shell
cd tools/Termux && bash install.sh
```

If installed successfully, run the command:
- ```shell
bzsh --help
```

You can also use this method:


Method

Command



curl


pkg install curl

bash -c "$(curl -fsSL https://raw.githubusercontent.com/FajarKim/bz2-shell/master/tools/Termux/install.sh)"




wget


pkg install wget

bash -c "$(wget -qO- https://raw.githubusercontent.com/FajarKim/bz2-shell/master/tools/Termux/install.sh)"




fetch


pkg install fetch

bash -c "$(fetch -o - https://raw.githubusercontent.com/FajarKim/bz2-shell/master/tools/Termux/install.sh)"


As an alternative, you can first download the `install.sh` script and run it afterwards:
- ```shell
pkg install wget
```
- ```shell
wget https://raw.githubusercontent.com/FajarKim/bz2-shell/master/tools/Termux/install.sh
```
- ```shell
bash install.sh
```

## Linux
Here is how to install BZip2 Shell Exec on Linux (like Ubuntu)!
- ```shell
apt update -y && apt upgrade -y
```
- ```shell
apt install git bzip2 xz-utils curl -y
```
- ```shell
git clone https://github.com/FajarKim/bz2-shell
```
- ```shell
cd bz2-shell
```

Then, run the file `bzsh.sh` to start encrypting the shell file.
- ```shell
bash bzsh.sh --help
```

If you want to install it to the `$PATH` folder, just run the `install.sh` file located in the `tools/Linux` folder.
- ```shell
tools/Linux/install.sh
```
or
- ```shell
cd tools/Linux && bash install.sh
```

If installed successfully, run the command:
- ```shell
bzsh --help
```

You can also use this method:


Method

Command



curl


apt install curl

bash -c "$(curl -fsSL https://raw.githubusercontent.com/FajarKim/bz2-shell/master/tools/Linux/install.sh)"




wget


apt install wget

bash -c "$(wget -qO- https://raw.githubusercontent.com/FajarKim/bz2-shell/master/tools/Linux/install.sh)"




fetch


apt install fetch

bash -c "$(fetch -o - https://raw.githubusercontent.com/FajarKim/bz2-shell/master/tools/Linux/install.sh)"


As an alternative, you can first download the `install.sh` script and run it afterwards:
- ```shell
apt install wget
```
- ```shell
wget https://raw.githubusercontent.com/FajarKim/bz2-shell/master/tools/Linux/install.sh
```
- ```shell
bash install.sh
```

# Instructions for Use
This tool is programmed to be run with several commands. Supported commands:


Command

Description




-h or --help

Display this help




-v or --version

Output version information



--upgrade

Upgrade version this tool



--uninstall

Uninstall this tool




-t or --type-shell

Select a type shell (sh, bash, zsh, ksh, or mksh)




-f or --file

Compress each FILE instead it

How to run this tool:
#### Example 1
```shell
bzsh.sh -t bash -f FILE
```
or
```shell
bzsh.sh --type-shell bash --file FILE
```
#### Example 2
If you want to encrypt more than 1 file at the same time, you can do that.
```shell
bzsh.sh -t bash -f FILE1 FILE2 FILE3 etc...
```
or
```shell
bzsh.sh --type-shell bash --file FILE1 FILE2 FILE3 etc...
```

## License
BZip2 Shell Exec is released under the AGPL-3.0 license, which grants the following permissions:
- Commercial use
- Modification
- Distribution
- Patent use
- Private use

For more convoluted language, see the [LICENSE](LICENSE).

### Social Media and Contact


Facebook
Instagram
WhatsApp
Telegram
Twitter
TikTok
YouTube
Messenger
Email

Follow my social media!


### Donate
Love the project? Please consider donating to help it improve!


GitHub Sponsor
PayPal Donate
Buy Me a Coffee
Trakteer.id Donate

Are you considering supporting the project by donating to me? Please DO NOT!!

Please visit [this link](https://fajarkim.github.io/donate) and make a small donation to help the people in need. A small donation goes a long way. ❤️

### Similar Repositories
Free:
- [LZip Shell Exec](https://github.com/FajarKim/lzip-shell)
- [NCompress Shell Exec](https://github.com/FajarKim/nc-shell)
- [PreZip Shell Exec](https://github.com/FajarKim/prz-shell)
- [Blind Bash](https://github.com/FajarKim/blind-bash)

Paid (For Sponsor):
- [GZip Shell Exec](https://github.com/FajarKim/gz-shell)
- [Lzma Shell Exec](https://github.com/FajarKim/lz-shell)
- [XZ Shell Exec](https://github.com/FajarKim/xz-shell)
- [Zstd Shell Exec](https://github.com/FajarKim/zstd-shell)



Made with ❤️ and Shell


Copyright © 2022-present Rangga Fajar Oktariansyah



License