Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/ammarfaizi2/php-integral-obfuscator

PHP Integral Obfuscator
https://github.com/ammarfaizi2/php-integral-obfuscator

eval obfuscation obfuscator php php-eval php-obfuscator php7 security

Last synced: about 1 month ago
JSON representation

PHP Integral Obfuscator

Awesome Lists containing this project

README

        

# PHP Integral Obfuscator
PHP Integral Obfuscator is a tool to obfuscates PHP code. It compiles a PHP code to a binary file.

### Advantage(s) of Using Obfuscator
1. Make your PHP code not human readable. It is good for protecting your private code against people and script kiddies.

### Disadvantages of Using Obfuscator
1. Obfuscator may slow down your application in the start process (it does not affect your application runtime performance). But, if you are using it on a web-based application, the start process is done for every request. So, code obfuscation is only good for a CLI based application, not a web-based application.
2. The obfuscated file size is larger than the non-obfuscated file.
3. An obfuscated application may not be started properly due to inaccurate analyses, bugs in internal obfuscator, or any other possibilities.

# History
I created a PHP obfuscator that called IceTea Obfuscator (https://github.com/ammarfaizi2/icetea_obfuscator). But, it was not a good obfuscator, since the obfuscated code was really easy to be reversed. So here, I create a better obfuscator and named it PHP Integral Obfuscator.

# License
This software is licensed under MIT License.

# Usage
```
Usage: ./integralobf [option]

-k Give a key to encrypt the input file (default: abc123).
--key Give a key to encrypt the input file (default: abc123).
-o Save obfuscated PHP code to (default: a.out).
--output Save obfuscated PHP code to (default: a.out).
-s Add a shebang into obfuscated PHP file (default: (no shebang)).
--shebang Add a shebang into obfuscated PHP file (default: (no shebang)).
-h Show this message.
--help Show this message.

Example usage:
./integralobf --output output.php --key mypassword123 --shebang '/usr/bin/env php' input.php
```

# Contribution
I would be happy to receive issues and pull requests. Please provide the problem in details if you have an issue to be submitted.