IDA-Pro/plugins/zynamics/msdn-crawler
You are here: | msdn-crawler
|
Description
Using the zynamics MSDN crawler script you can extract Windows API documentation from compiled MSDN help files. The MSDN crawler parses the help files and generates an XML file that contains all important information about Windows API functions.
Installation
Prerequisites
Microsoft Platform SDK
You must first have a local copy of MSDN on your host. Download following files:
- http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.1.cab
- http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.2.cab
- http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.3.cab
- http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.4.cab
- http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.5.cab
- http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.6.cab
- http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.7.cab
- http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.8.cab
- http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.9.cab
- http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.10.cab
- http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/Extract.exe
- http://download.microsoft.com/download/platformsdk/sdk/update/WIN98MeXP/EN-US/2600.2180/FULL/PSDK-FULL.bat
Then run PSDK-FULL.bat to make the setup file:
C:\>PSDK-FULL.bat C:\temp
Go to C:\temp and launch the setup.exe file. It will install the Microsoft Platform SDK for Windows XP SP2.
Visual Studio
We also need the help file decompiler (hxcomp.exe). It is available from VisualStudio SDK. You can get VisualStudio 2005 SDK here: http://sdrv.ms/Z9bDEL.
Notice that you will need to install Visual Studio 2005 prior to installing the SDK.
Once finished, the hxcomp utility will be located in C:\Program Files\Visual Studio 2005 SDK\2007.02\VisualStudioIntegration\Archive\HelpIntegration\hxcomp.exe.
Decompilation of HxS files
Decompile all HxS files in your MSDN documentation "help" directory (C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Help). This can be achieved with following commands:
C:\>cd "\Program Files\Microsoft Platform SDK for Windows XP SP2\Help" C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Help>for /R %x in (*.hxs) do hxcomp -u "%x"
Installation of msdn-crawler
$ git clone https://github.com/zynamics/msdn-crawler.git
Usage
C:\msdn-crawler>python msdn_crawler.py "c:\Program Files\Microsoft Platform SDK for Windows XP SP2\Help"