PHP determines whether the exe file is normal_PHP tutorial

WBOY
Release: 2016-07-13 17:09:29
Original
968 people have browsed it

php determines whether the exe file is normal

include "ExeInfo.php";
$pe = new PE_VIEWER( 'cmd.exe' );
$pe->out();
?>

, usually viruses will be packed. The section name of the packed program is no longer the common .text, .data, .rdata, .rsrc, etc., but contains UPX Section name with characters such as , Aspack etc.;
2. Usually the entry point of a program is less than 10,000, and most of them are a little more than 1,000. If the value of the program entry point is too large, it is questionable;
3. Analyze the import table. Usually the virus's KERNEL32.DLL import table only has a few functions such as LoadLibrary and GetProcAddress.
Of course, the above judgment is not accurate, and some hacker programs and programs that need to be kept confidential will also be packed.
This script can obtain the basic information of the exe file and output it in xml format. It currently does not include import table information. You can check the output information to determine whether the exe file is normal.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629749.htmlTechArticlephp Determine whether the exe file is normal?php include ExeInfo.php; $pe = new PE_VIEWER( 'cmd.exe' ); $pe-out(); ? , Usually viruses will be packed, and the section name of the packed program is no longer common.t...
Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!