PHP Encoder, protect PHP scripts in PHP 8 and PHP 7, High Performance, Compitable with X86_64, MIPS, ARM platform and Ubuntu/Centos/OpenWRT system.

Overview

What's FRICC2?

FRICC2 is a PHP Script encryption tool. When you are developing a commercial software using PHP, the script can be distributed as encrypted up until just before execution. Thanks for PHP-Screw.

中文版说明

Features

  1. Less file handle open or read.
  2. Compress supported, small size of target files.
  3. Fix serval memory Leak.
  4. More performance when php open files.
  5. Supported Bundle in PHP with static.
  6. Tested on Ubuntu / CentOS / Openwrt.
  7. Tested in x86_64 / MIPS / ARM Processors.
  8. Supported PHP 8(include JIT), Tested Memory Leak.
  9. Supported Sandbox Mode(uncomment in fricc2_lib.h to enable it), only encrypted source can be run.

Requirement

PHP Version

PHP Version Status Notice
PHP 8.X Static / Shared Recommend
PHP 7.4.X Static / Shared Recommend
PHP 7.0.X / 7.3.X Static / Shared Runtime Little Memory Leak (auto free when php exit)
Other Version NO TEST NO TEST

ZLIB Support in PHP

PHP must be compiled with the "--with-zlib" option.

Installation

Get Source

# git clone source
cd ~/
git clone https://github.com/hoowa/FRICC2.git

# optional init key (Set Better Secure different)
chmod +x ~/FRICC2/fricc2load/init_key
~/FRICC2/fricc2load/init_key

# optional enable sandbox mode to edit fricc2_lib.h
# uncomment FRICCSANDBOX_ENABLE

# Requirement Example CentOS 7.9
yum groupinstall "Development Tools"
yum install zlib-static zlib-devel

# Requirement Example Ubuntu 20.04
sudo apt install build-essential pkg-config autoconf zlib1g-dev

Build PHP Extension (Shared)

# Compile fricc2load
cd ~/FRICC2/fricc2load/
phpize
./configure
make
make install

# Append this line to php.ini
extension=fricc2load.so

# Test in CLI
php -m|grep fricc2load

# Restart the web server / your php daemon as you need

Build Encode Program

# Compile Encode Program
cd ~/FRICC2/fricc2/
make
cp fricc2 /usr/bin/

# Test Create test.php
<?php
	echo "hello fricc2\n";
?>
fricc2 -o test_new.php test.php
php ./test_new.php
# Screen output:
hello fricc2

Others

Optional Build PHP Extension (Static)

# example of your php source in ~/php-7.4.22/
cd ~/php-7.4.22
cp -avf ~/FRICC2/fricc2load/ ./ext/
./buildconf --force

# append --enable-fricc2load=static --with-zlib to configure (example):
./configure --enable-fricc2load=static --with-zlib
make
make install

# check modules
php -m|grep fricc2load

Author

Sun Bing [email protected]

Issues
  • phar package encryption error cannot be executed

    phar package encryption error cannot be executed

    image

    I hope the author can support the encryption of phar packages. I'm using hyperf framework and I haven't been able to find an encryption protection scheme.

    I implore the author to consider helping.

    Thank you very much.

    opened by etjson 9
Owner
Hoowa Sun
Nothing
Hoowa Sun
conversion from absolute encoder and incremental encoder, control two robotis dynamixel motors, testing qserialport library in qt

Q_dxl This example is created for testing: Serial connection Testing two dynamixel motors (eg. MX-28AT) Doing the conversion from absolute encoder (of

ibov 1 Oct 30, 2021
OpenWrt Packages

NueXini_Packages 1.如何使用NueXini_Packages? / How to use NueXini_Packages? cd lede sed -i '$a src-git NueXini_Packages https://github.com/NueXini/NueXini

null 104 Jun 29, 2022
Hobbyist Operating System targeting x86_64 systems. Includes userspace, Virtual File System, An InitFS (tarfs), Lua port, easy porting, a decent LibC and LibM, and a shell that supports: piping, file redirection, and more.

SynnixOS Epic Hobby OS targeting x86_64 CPUs, it includes some hacked together functionality for most essential OSs although, with interactivity via Q

RaidTheWeb 40 May 27, 2022
Classified is an easy and handy encryptor and and decryptor which is can protect your file.

CLASSIFIED Classified is an encrypted and a decrypter. It can encrypt anykind of file with any extension. It is very secure. The thing only matters is

Shreejan Dolai 3 Feb 13, 2022
A Discord Bot to protect your server from spam, invitations, fake nitro ads and more written in C++

Antispambot An efficient Discord Bot to prevent spam written in C++. Tested on a large discord server and mitigates around 90% spam. Its well commente

Phil 4 May 1, 2022
dex-vm implementation, used to protect the classes.dex file

nmmp 基于dex-vm运行dalvik字节码从而对dex进行保护,增加反编译难度。 项目分为两部分nmm-protect是纯java项目,对dex进行转换,把dex里方法及各种数据转为c结构体,处理apk生成c项目,编译生成so,输出处理后的apk。nmmvm是一个安卓项目,包含dex-vm实现

mao 253 Jun 23, 2022
Protect your Discord token from malicious grabbers!

Discord Token Protector Protect your Discord token from malicious grabbers! This project is still under development! You might face some unstability i

Andro24 147 Jun 23, 2022
Protect files under a specific folder from deleting or moving by explorer.exe.

Explorer-Delete-Protection Protect files under a specific folder from deleting or moving by explorer.exe. Requierments: Microsoft Detours Library - ht

null 4 Jan 2, 2022
Make your Pop!_OS (Ubuntu Linux) shortcut key experience more like Mac OS

Meta Mac Enables a Mac OS-like shortcut key experience on Pop!_OS (and most Ubuntu-based Linux distros). Installation Download or git clone this repos

Duane Johnson 12 Jun 28, 2022
Deepin Wine for Ubuntu/Debian

Deepin wine for Ubuntu and Debian 一、项目介绍 Deepin-wine 环境的 Ubuntu/Debian 移植版 使用deepin原版二进制文件,解决依赖问题 仅供个人研究学习使用 刚刚适配debian,可能在安装或运行上还存在问题,欢迎反馈! Gitee用户遇到

星外之神 5.9k Jul 1, 2022
A graphical application to enhance user experience with Ubuntu on WSL during the distro installation process.

Ubuntu WSL Splash TODO: Place a CI badge here. TODO: Put a nice screenshot here when we get one. A graphical application to enhance user experience wi

Ubuntu 10 Jun 8, 2022
Yet another matrix client. Click packaging for locally running on Ubuntu Touch

Cinny Click Packaging Cinny is a Matrix client focusing primarily on simple, elegant and secure interface. License Cinny source package licensed under

Nitan Alexandru Marcel 5 Jun 24, 2022
It's a simple and free x86_64 architecture operating system created by one person, GoofOS started since 2022

This project is while developing... GoofOS GoofOS is a text operating system for x86 computers. About This is a 32 bit x86_64 graphical operating syst

null 3 May 1, 2022
An x86_64 operating system

Vigil Vigil is a x86_64 operating system. Features Booted by Limine using the stivale2 protocol Physical memory manager Virtual memory manager "Slab"

null 19 Jun 14, 2022
[redacted]os - a hobbyist x86_64 operating system kernel.

[redacted]os NOTE: This kernel is still in early stages of development - check back after a few months to see a potentially usable OS. It lacks proper

null 8 Jun 7, 2022
An eventing framework for building high performance and high scalability systems in C.

NOTE: THIS PROJECT HAS BEEN DEPRECATED AND IS NO LONGER ACTIVELY MAINTAINED As of 2019-03-08, this project will no longer be maintained and will be ar

Meta Archive 1.7k Jun 15, 2022
An experimental operating system for x86 and ARM

Odyssey - an experimental operating system for x86 and ARM

Anuradha Weeraman 35 Jun 8, 2022
A high performance, shared memory, lock free, cross platform, single file, no dependencies, C++11 key-value store

SimDB A high performance, shared memory, lock free, cross platform, single file, no dependencies, C++11 key-value store. SimDB is part of LAVA (Live A

null 442 Jun 25, 2022
An x86_64 hobbyist OS written in C and Assembly

KnutOS An x86_64 hobbyist OS made for FUN and LEARNING! It is written in C and Assembly and features a monolithic kernel. Screenshots Features Limine

Yves Vollmeier 24 Jun 20, 2022