Php checks whether the exe file is normal

Source: Internet
Author: User

 

Php checks whether the exe file is normal

<? Php
Include "ExeInfo. php ";
$ Pe = new PE_VIEWER ('cmd.exe ');
$ Pe-> out ();
?>

Normally, the virus is shelled. The node names of programs after shelling are no longer common. text,. data,. rdata,. rsrc, etc., but the node names that contain characters such as UPX and Aspack;
2. Generally, the entry point of a program is 10000, and most of them are a little more than 1000. If the value of the program entry point is too large, it is doubtful;
3. Analyze the import table. Generally, the virus KERNEL32.DLL import table only has a few functions, such as LoadLibrary and GetProcAddress.
Of course, the above judgment is not accurate. Some hacker programs and programs that require confidentiality will also be shelled.
This script can obtain the basic information of the exe file and output it in xml format. Currently, table information is not included. You can view the output information to determine whether the exe file is normal.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.