Home Backend Development PHP Tutorial 被PHP Screw加密过的PHP代码,现在是不是已经有解密的方法了?解决思路

被PHP Screw加密过的PHP代码,现在是不是已经有解密的方法了?解决思路

Jun 13, 2016 am 10:19 AM
file quot zend

被PHP Screw加密过的PHP代码,现在是不是已经有解密的方法了?
如题,现在需要知道这东西是不是能够解密。。

------解决方案--------------------
screw比較簡單,當然算法是公開的,如果有人想破解也不難
------解决方案--------------------
哦,学习一下,加密还真没遇到过!
------解决方案--------------------

C/C++ code
只要你有linux主機,再裝一個程序,就能瀏覽源碼了.#ifdef HAVE_CONFIG_H#include "config.h"#endif#include "php.h"#include "php_ini.h"#include "ext/standard/info.h"#include "php_vld.h"#include "srm_oparray.h"static zend_op_array* (*old_compile_file)(zend_file_handle* file_handle, int type TSRMLS_DC);static zend_op_array* vld_compile_file(zend_file_handle*, int TSRMLS_DC);static void (*old_execute)(zend_op_array *op_array TSRMLS_DC);static void vld_execute(zend_op_array *op_array TSRMLS_DC);function_entry vld_functions[] = {{NULL, NULL, NULL}};zend_module_entry vld_module_entry = {#if ZEND_MODULE_API_NO >= 20010901STANDARD_MODULE_HEADER,#endif"vld",vld_functions,PHP_MINIT(vld),PHP_MSHUTDOWN(vld),PHP_RINIT(vld),PHP_RSHUTDOWN(vld),PHP_MINFO(vld),#if ZEND_MODULE_API_NO >= 20010901"0.8.0",#endifSTANDARD_MODULE_PROPERTIES};#ifdef COMPILE_DL_VLDZEND_GET_MODULE(vld)#endifZEND_BEGIN_MODULE_GLOBALS(vld)int active;int skip_prepend;int skip_append;int execute;ZEND_END_MODULE_GLOBALS(vld)ZEND_DECLARE_MODULE_GLOBALS(vld)#ifdef ZTS#define VLD_G(v) TSRMG(vld_globals_id, zend_vld_globals *, v)#else#define VLD_G(v) (vld_globals.v)#endifPHP_INI_BEGIN()STD_PHP_INI_ENTRY("vld.active", "0", PHP_INI_SYSTEM, OnUpdateBool, active, zend_vld_globals, vld_globals)STD_PHP_INI_ENTRY("vld.skip_prepend", "0", PHP_INI_SYSTEM, OnUpdateBool, skip_prepend, zend_vld_globals, vld_globals)STD_PHP_INI_ENTRY("vld.skip_append", "0", PHP_INI_SYSTEM, OnUpdateBool, skip_append, zend_vld_globals, vld_globals)STD_PHP_INI_ENTRY("vld.execute", "1", PHP_INI_SYSTEM, OnUpdateBool, execute, zend_vld_globals, vld_globals)PHP_INI_END()static void vld_init_globals(zend_vld_globals *vld_globals){vld_globals->active = 0;vld_globals->skip_prepend = 0;vld_globals->skip_append = 0;vld_globals->execute = 1;}PHP_MINIT_FUNCTION(vld){ZEND_INIT_MODULE_GLOBALS(vld, vld_init_globals, NULL);REGISTER_INI_ENTRIES();old_compile_file = zend_compile_file;old_execute = zend_execute;return SUCCESS;}PHP_MSHUTDOWN_FUNCTION(vld){UNREGISTER_INI_ENTRIES();zend_compile_file = old_compile_file;zend_execute = old_execute;return SUCCESS;}PHP_RINIT_FUNCTION(vld){if (VLD_G(active)) {zend_compile_file = vld_compile_file;if (!VLD_G(execute)) {zend_execute = vld_execute;}}return SUCCESS;}PHP_RSHUTDOWN_FUNCTION(vld){zend_compile_file = old_compile_file;zend_execute = old_execute;return SUCCESS;}PHP_MINFO_FUNCTION(vld){php_info_print_table_start();php_info_print_table_header(2, "vld support", "enabled");php_info_print_table_end();}static int vld_check_fe (zend_op_array *fe, zend_bool *have_fe TSRMLS_DC){if (fe->type == ZEND_USER_FUNCTION) {*have_fe = 1;}return 0;}static int vld_dump_fe (zend_op_array *fe TSRMLS_DC){if (fe->type == ZEND_USER_FUNCTION) {fprintf(stderr, "Function %s:", fe->function_name);vld_dump_oparray(fe);fprintf(stderr, "End of function %s.", fe->function_name);}return ZEND_HASH_APPLY_KEEP;}#ifdef ZEND_ENGINE_2static int vld_dump_cle (zend_class_entry **class_entry TSRMLS_DC)#elsestatic int vld_dump_cle (zend_class_entry *class_entry TSRMLS_DC)#endif{zend_class_entry *ce;zend_bool have_fe = 0;#ifdef ZEND_ENGINE_2ce = *class_entry;#elsece = class_entry;#endifif (ce->type != ZEND_INTERNAL_CLASS) {zend_hash_apply_with_argument(&ce->function_table, (apply_func_arg_t) vld_check_fe, (void *)&have_fe TSRMLS_CC);if (have_fe) {fprintf(stderr, "Class %s:", ce->name);zend_hash_apply(&ce->function_table, (apply_func_t) vld_dump_fe TSRMLS_CC);fprintf(stderr, "End of class %s.", ce->name);} else {fprintf(stderr, "Class %s: [no user functions]", ce->name);}}return ZEND_HASH_APPLY_KEEP;}/* {{{ zend_op_array vld_compile_file (file_handle, type)* This function provides a hook for compilation */static zend_op_array *vld_compile_file(zend_file_handle *file_handle, int type TSRMLS_DC){zend_op_array *op_array;if (!VLD_G(execute) &&((VLD_G(skip_prepend) && PG(auto_prepend_file) && PG(auto_prepend_file)[0] && PG(auto_prepend_file) == file_handle->filename) (VLD_G(skip_append) && PG(auto_append_file) && PG(auto_append_file)[0] && PG(auto_append_file) == file_handle->filename))){zval nop;ZVAL_STRINGL(&nop, "RETURN ;", 8, 0);return compile_string(&nop, "NOP" TSRMLS_CC);;}op_array = old_compile_file (file_handle, type TSRMLS_CC);if (op_array) {vld_dump_oparray (op_array);}zend_hash_apply (CG(function_table), (apply_func_t) vld_dump_fe TSRMLS_CC);zend_hash_apply (CG(class_table), (apply_func_t) vld_dump_cle TSRMLS_CC);return op_array;}/* }}} *//* {{{ void vld_execute(zend_op_array *op_array TSRMLS_DC)* This function provides a hook for execution */static void vld_execute(zend_op_array *op_array TSRMLS_DC){// nothing to do}/* }}} */<div class="clear">
                 
              
              
        
            </div>
Copy after login
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
1 months ago By 尊渡假赌尊渡假赌尊渡假赌
Two Point Museum: All Exhibits And Where To Find Them
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hongmeng native application random poetry Hongmeng native application random poetry Feb 19, 2024 pm 01:36 PM

To learn more about open source, please visit: 51CTO Hongmeng Developer Community https://ost.51cto.com Running environment DAYU200:4.0.10.16SDK: 4.0.10.15IDE: 4.0.600 1. To create an application, click File- >newFile->CreateProgect. Select template: [OpenHarmony] EmptyAbility: Fill in the project name, shici, application package name com.nut.shici, and application storage location XXX (no Chinese, special characters, or spaces). CompileSDK10, Model: Stage. Device

Use java's File.length() function to get the size of the file Use java's File.length() function to get the size of the file Jul 24, 2023 am 08:36 AM

Use Java's File.length() function to get the size of a file. File size is a very common requirement when dealing with file operations. Java provides a very convenient way to get the size of a file, that is, using the length() method of the File class. . This article will introduce how to use this method to get the size of a file and give corresponding code examples. First, we need to create a File object to represent the file we want to get the size of. Here is how to create a File object: Filef

How to convert php blob to file How to convert php blob to file Mar 16, 2023 am 10:47 AM

How to convert php blob to file: 1. Create a php sample file; 2. Through "function blobToFile(blob) {return new File([blob], 'screenshot.png', { type: 'image/jpeg' })} ” method can be used to convert Blob to File.

Rename files using java's File.renameTo() function Rename files using java's File.renameTo() function Jul 25, 2023 pm 03:45 PM

Use Java's File.renameTo() function to rename files. In Java programming, we often need to rename files. Java provides the File class to handle file operations, and its renameTo() function can easily rename files. This article will introduce how to use Java's File.renameTo() function to rename files and provide corresponding code examples. The File.renameTo() function is a method of the File class.

Use java's File.getParentFile() function to get the parent directory of the file Use java's File.getParentFile() function to get the parent directory of the file Jul 27, 2023 am 11:45 AM

Use java's File.getParentFile() function to get the parent directory of a file. In Java programming, we often need to operate files and folders. When we need to get the parent directory of a file, we can use the File.getParentFile() function provided by Java. This article explains how to use this function and provides code examples. File class in Java is the main class used to operate files and folders. It provides many methods to obtain and manipulate file properties

Use java's File.getParent() function to get the parent path of the file Use java's File.getParent() function to get the parent path of the file Jul 24, 2023 pm 01:40 PM

Use java's File.getParent() function to get the parent path of a file. In Java programming, we often need to operate files and folders. Sometimes, we need to get the parent path of a file, which is the path of the folder where the file is located. Java's File class provides the getParent() method to obtain the parent path of a file or folder. The File class is Java's abstract representation of files and folders. It provides a series of methods for operating files and folders. Among them, get

How to use ACL (Access Control List) for permission control in Zend Framework How to use ACL (Access Control List) for permission control in Zend Framework Jul 29, 2023 am 09:24 AM

How to use ACL (AccessControlList) for permission control in Zend Framework Introduction: In a web application, permission control is a crucial function. It ensures that users can only access the pages and features they are authorized to access and prevents unauthorized access. The Zend framework provides a convenient way to implement permission control, using the ACL (AccessControlList) component. This article will introduce how to use ACL in Zend Framework

How to delete a file or directory using File.delete() method in Java? How to delete a file or directory using File.delete() method in Java? Nov 18, 2023 am 08:02 AM

How to delete a file or directory using File.delete() method in Java? Overview: In Java, we can delete a file or directory using the delete() method of the File class. This method is used to delete the specified file or directory. However, it should be noted that this method can only delete empty directories or files that are not opened by other programs. If file or directory deletion fails, you can find the specific reason by catching IOException. Step 1: Import related packages First, we need

See all articles