Giter Site home page Giter Site logo

Comments (5)

crazywhalecc avatar crazywhalecc commented on May 18, 2024 1

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.

TNT-ma avatar TNT-ma commented on May 18, 2024 1

明白了
我把它想做是如同go一样的把项目打包为二进制,从而达到不可逆加密保护的目的
是我草率了ヘ😈ヘ

from static-php-cli.

crazywhalecc avatar crazywhalecc commented on May 18, 2024

我没有理解表达的意思,源码中貌似没有提到有关二进制 PHP 提取出来的内容。

这个项目目前只是提供一个用于便捷将 PHP 源码编译的脚本,用于编译 PHP。

另外,如果你说的是 README 中提到的那个 “提取”,那里是指从 Docker 的文件系统中将在 Docker 内编译好的 PHP 二进制文件拷贝到宿主机的意思,不是逆向编译有关的内容。

from static-php-cli.

TNT-ma avatar TNT-ma commented on May 18, 2024

from static-php-cli.

TNT-ma avatar TNT-ma commented on May 18, 2024

PHP 源码编译的脚本,

请问一下 当我将我的源代码打包为phar 后,
再使用: micro.sfx myphp.phar > okphp 进行编译
最后这个okphp 就是个二进制文件
请问这个二进制文件, 有没有可能再被逆向编译回phar 或者 逆向出原始的php源代码?

from static-php-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.