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

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).

主站蜘蛛池模板: 延川县| 噶尔县| 斗六市| 九江市| 宜阳县| 普宁市| 浮梁县| 吴旗县| 扶余县| 白河县| 上林县| 思南县| 山阳县| 绥滨县| 庆云县| 华亭县| 孙吴县| 河津市| 兴国县| 武宁县| 六安市| 班戈县| 栾川县| 彭阳县| 罗平县| 清丰县| 溧阳市| 阿勒泰市| 涪陵区| 湘潭县| 西丰县| 商洛市| 河源市| 图片| 石棉县| 安阳市| 温泉县| 佛山市| 钟山县| 武安市| 宿州市|