首页
社区
课程
招聘
[旧帖] [原创]遍历进程,显示进程名的Windbg脚本 0.00雪花
2012-4-23 03:01 2413

[旧帖] [原创]遍历进程,显示进程名的Windbg脚本 0.00雪花

2012-4-23 03:01
2413
经常来看坛子里前辈的文章,学到不少东西,可是自己却一直不是正式会员。
学习了一下Windbg,写了一个遍历进程,显示进程名的脚本,只为求邀请码,不知道能否成功。
祝看雪论坛越办越好!

r $t0 = @@masm(poi[PsInitialSystemProcess]);                                                                                                                        $$ $t0为System进程的_EPROCESS指针;
r $t1 = @$t0 + @@c++(0x88);                                                                                                                                                                $$ $t1为_EPROCESS的ActiveProcessLinks域的指针;       
r $t2 = @@c++(#CONTAINING_RECORD(@@masm(poi[@$t1]), _EPROCESS, ActiveProcessLinks)) + @@c++(0x88);                $$ $t2为下一个_EPROCESS结构的ActiveProcessLinks域的指针;

.while(@$t1 != @$t2)
{
        .printf "%ma\n", @@c++(@$t2+0xec);
        r $t2 = @@c++(#CONTAINING_RECORD(@@masm(poi[@$t2]), _EPROCESS, ActiveProcessLinks)) + @@c++(0x88);
}

结果为:
lkd> $$><d:\install\test.txt
smss.exe
csrss.exe
winlogon.exe
services.exe
lsass.exe
svchost.exe
svchost.exe
svchost.exe
svchost.exe
svchost.exe
spoolsv.exe
explorer.exe
IcbcDaemon.exe
SddSUpdate.exe
igfxsrvc.exe
igfxtray.exe
igfxpers.exe
ICBCEBankAssist
stickies.exe
YodaoDict.exe
WordBook.exe
svchost.exe
AliIM.exe
wmiprvse.exe
sogoupinyintray
AliimSafe.exe
firefox.exe
plugin-containe
plugin-containe
plugin-containe
notepad++.exe
SogouCloud.exe
Foxit Reader.ex
notepad++.exe
notepad++.exe
Foxit Updater.e
Foxit Updater.e
VirtualBox.exe
VBoxSVC.exe
VirtualBox.exe
windbg.exe
notepad++.exe

[培训]二进制漏洞攻防(第3期);满10人开班;模糊测试与工具使用二次开发;网络协议漏洞挖掘;Linux内核漏洞挖掘与利用;AOSP漏洞挖掘与利用;代码审计。

收藏
点赞3
打赏
分享
最新回复 (0)
游客
登录 | 注册 方可回帖
返回