首页
社区
课程
招聘
[转帖]APIScan 2.2 by Sirmabus
发表于: 2008-2-10 16:25 2948

[转帖]APIScan 2.2 by Sirmabus

2008-2-10 16:25
2948
APIScan 2.2 by Sirmabus

Ver 2.2: Got rid of the useless index numbers so now you can WinDiff dumps better.

Intro

APIScan is a simple tool to gather a list of APIs that a target process uses.

You can use this list in an initial analysis to help determine a target's
general operating nature. Also can be used to help determine patch/update changes by doing a WinDiff on a "before" and "after" dump.

There are similar tools, often more robust (like "Dependency Walker"), but
most of these just parse the target IAT ("Import Address Table") alone.
APIScan catches dynamically/delayed loaded modules too; and dumps them as a simple list.


Example dump for a module:

Library     Flags   Function
====================================
-- COMCTL32.DLL
 [I...] ImageList_Add
 [I...] ImageList_Create
 [I...] ImageList_Destroy
 [I.O.] InitCommonControls
 [.D..] InitCommonControlsEx
 [.D.F] ImNotHere
...
...


Explanation:
APIScan saw that "COMCTL32.DLL" is loaded both as an import via the IAT, plus it caught it being loaded dynamically for "InitCommonControlsEx".
That's the 'D' flag in "[.D.F] InitCommonControlsEx". The 'F' in "[.D.F] ImNotHere" means that that the application failed in one or more attempt to dynamically load (from the 'D') "ImNotHere", since this export doesn't exist in "COMCTL32.DLL". In "[I.O.] InitCommonControls", the 'I' tells us this API is in the IAT, and the 'O' tells us it was by "ordinal".
Note, you can have both 'I' and 'D' flags since an application (as well as 'O', and 'F', if there is a 'D') can have it both in it's IAT and loaded it dynamicly (with "GetProcAddress()").


TODO:
1. Add intra-module support.
API scan could parse the IATs of modules/DLLs and optionally filter out GetProcAddress() calls made within modules for better focus.
2. Optional real time output to DBGVIEW.

[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!

上传的附件:
收藏
免费 1
支持
分享
最新回复 (1)
雪    币: 209
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
2
暂时用不到, 对我来说用处不大
2008-2-10 21:25
0
游客
登录 | 注册 方可回帖
返回
//