您的位置:首页 > 其它

学习API HOOK,编写了一个winsock 的封包抓取程序,可免费使用;

2005-10-24 00:06 801 查看
开发环境是:windows 2000 + delphi 7

监视API:recv,recvfrom,WSARecvEx,send,sendto,accept,bind,closesocket,connect

socket 版本:wsock32.dll/*ws2_32.dll(暂时有兼容问题)

目前还不支持修改封包;

当前实现针对某个进程或多个选定进程的通讯封包的监视功能。

内置HexEditor 实时查看封包内容

保存的日志格式如下:

[1:02:48]-[iexplore.exe]-[recv]-[Length:1]-[success]:
..

[1:02:48]-[iexplore.exe]-[send]-[Length:418]-[success]:
GET /search.asp HTTP/1.1..Accept: */*..Referer: http://hack.gameres.com/newthread.asp?forumid=102..Accept-Language: ;;zh-cn..Accept-Encoding: gzip, deflate..User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)..Host: hack.gameres.com..Connection: Keep-Alive..Cookie: GameRes=pmpop=1&settings%5Fbbschat=0&userid=3542&password=8c908deb0f4c3bd3&username=S%2EF%2E; ASPSESSIONIDCCRSADQD=AEFGOHGCDPLICBFMGJKFPJPO.....

[1:02:48]-[iexplore.exe]-[recv]-[Length:1024]-[success]:
....x..."...h.t.t.p.:././.h.a.c.k...g.a.m.e.r.e.s...c.o.m./.s.e.a.r.c

有问题请给我留言


sf_200510720162.rar (522328bytes)

程序为3个文件:SocketMonitor.exe madCHook.dll SocketHook.dll

使用时请复制madCHook.dll 到 \Winnt\System32 或 Windows\System32目录下去.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐