真感动啊,能看到张老师回复真是三生有幸,在看雪发的帖子到现在都没人回,以为石沉大海了,准备去国外论坛求助了,幸好wy大哥及时上线提醒我张老师回复了。
Pattern matching problemI have had a problem for a long time.The problem is about the conditional breakpoints and the pattern matching Command "$spat".I want to set a conditional breakpoint on DispatchCreate routine so that i can watch when my file is opened.i get the irp from esp+8 ,then get the OriginalFileObject from it,and finally get the FileName.But the Commands i used were always not working:bp f9748e01 ".block{as /mu ${$FileName} poi(poi(poi(esp+8)+64)+34)};.block{.if($spat(\"${$FileName}\",\"*abc*\")){ad *}}.else{ad *;gc}}" .it can stop but windbg also dispaly something wqrong about that : Numeric expression missing from 'and SettingsAll UsersApplication DataVMwareVMware Tools poi(poi(poi(esp+8)+64)+34)' or some Syntax error at xxx . Please help me~~ :-( Please~ Have tried again and again for quite times~ I was so tired ~
我简化了下命令,其实就是下的ntfs的creat例程,通过esp+8得到irp,在通过他得到OriginalFileObject ,然后查看文件名,但是总是不对,很纠结啊。
张老师,我按您说的在$spat(\"${$FileName} \", 加过空格了 ,可还是不行啊
windbg显示 :Numeric expression missing from 'and SettingsAll UsersApplication DataVMwareVMware Tools poi(poi(poi(esp+8)+64)+34)'
哪里不对还望老师指点啊
现在又出现了一个错误 ^ Memory access error in 'r $t1=poi(poi(poi(esp+8)+64)+34); as /mu $FileName'
纠结啊~
正如老师所言,试了下没有问题了,不过好像这样下断虚拟机基本就动不了了,因为系统每秒都要打开好多文件~:)
再次感谢张老师!~