Comments (5)
PHP、micro-php 本身的源代码需要使用逆向工程(比如使用 IDA Pro)恢复源码,和其他编译的 C 语言程序一样。Phar 源码相当于附加在了二进制文件的后方,而 Phar 类似于 zip 一样的压缩包,并非加密或编译手段,使用 foremost
等工具可以分离 micro.sfx 和 phar 文件。也就是说,本项目和 phpmicro 做的事情只是编译 PHP,和 PHP 官方编译的动态链接的 PHP 二进制发行版别无二致,只是 micro 相当于扩充了可以将两个文件合二为一的功能。
如果你想的是编译 PHP 到二进制,可以查询有关编译 PHP 代码的项目,但目前这些项目不是很成熟。如果是加密代码,可以从互联网搜索 PHP 源码加密保护,有许多付费和免费解决方案。
from static-php-cli.
明白了
我把它想做是如同go一样的把项目打包为二进制,从而达到不可逆加密保护的目的
是我草率了ヘ😈ヘ
from static-php-cli.
我没有理解表达的意思,源码中貌似没有提到有关二进制 PHP 提取出来的内容。
这个项目目前只是提供一个用于便捷将 PHP 源码编译的脚本,用于编译 PHP。
另外,如果你说的是 README 中提到的那个 “提取”,那里是指从 Docker 的文件系统中将在 Docker 内编译好的 PHP 二进制文件拷贝到宿主机的意思,不是逆向编译有关的内容。
from static-php-cli.
from static-php-cli.
PHP 源码编译的脚本,
请问一下 当我将我的源代码打包为phar 后,
再使用: micro.sfx myphp.phar > okphp 进行编译
最后这个okphp 就是个二进制文件
请问这个二进制文件, 有没有可能再被逆向编译回phar 或者 逆向出原始的php源代码?
from static-php-cli.
Related Issues (20)
- Add yac extension
- adding qdbm handler for dba extension HOT 1
- [FEATURE] Add ds extension HOT 1
- CLI 编译命令生成器,在Ubuntu-20.04.1-x64系统,编译php8.2静态文件添加pgsql编译报错bug HOT 8
- 大佬,拉取你新的代码 然后再github actions构建 又报错了,有时间您看一下吧 HOT 1
- xz dependency unavailable HOT 1
- win版中构建的micro.sfx HOT 1
- Build error with Postgres because of libxml2 HOT 3
- libuuid fails to build on linux HOT 1
- FreeBSD Support Not Working - "Current OS is not supported" HOT 10
- bug: Linux x86_64 build failed HOT 6
- Compiled Windows executable isn't running HOT 1
- Windows Defender SmartScreen HOT 4
- SSL operation failed with code 5 HOT 10
- In extreme cases micro.sfx using `--with-upx-pack` will build the wrong binary
- Extension request: `gd` on Windows
- postgresql: Failed to get pkg-config information HOT 3
- ncurses 6.5 not working with libreadline
- xz build failed on Linux and macOS
- download bug: for-extensions=redis does not download zstd
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from static-php-cli.