官术网_书友最值得收藏!

How it works...

We began in step 1 by importing the pefile library and specifying which file we will be analyzing. In this case, the file was python-3.7.2-amd64.exe, though it is just as easy to analyze any other PE file. We then continued on to examine the DLLs being imported by the file, in order to understand which methods the file may be using in Step 2. DLLs answer this question because a DLL is a library of code that other applications may call upon. For example, USER32.dll is a library that contains Windows USER, a component of the Microsoft Windows operating system that provides core functionality for building user interfaces. The component allows other applications to leverage the functionality for window management, message passing, input processing, and standard controls. Logically then, if we see that a file is importing a method such as GetCursorPos, then it is likely to be looking to determine the position of the cursor. Continuing in step 3, we printed out the sections of the PE file. These provide a logical and physical separation to the different parts of a program, and therefore offer the analyst valuable information about the program. Finally, we printed out all of the parsed PE header information from the file in preparation for later utilizing it for feature engineering (Step 4).

主站蜘蛛池模板: 武平县| 辽源市| 海宁市| 会宁县| 彝良县| 拜城县| 庆城县| 九寨沟县| 敦化市| 温宿县| 余江县| 剑河县| 文登市| 栾城县| 诸城市| 卢龙县| 镇平县| 柳河县| 龙南县| 大方县| 汾阳市| 灌南县| 讷河市| 阿瓦提县| 东辽县| 依兰县| 定南县| 万盛区| 洱源县| 阿克苏市| 卢湾区| 乐清市| 东莞市| 邛崃市| 古丈县| 临湘市| 滕州市| 横峰县| 射洪县| 平度市| 台北县|