WinDbg script Practice 3----monitor specific process creation

Source: Internet
Author: User

$$*****************************************************************$$ Script by KMS_HHL to monitor process create and show call stack$$ Create Time 2014_11$$ nt5 ntcreateprocess->ntcreateprocessex->pspcreateprocess$$ nt6 ntcreateuserprocess$$ Execute by $$><D:\BaiduYunTongBu\ Baidu Cloud Sync disk \windbg_sc\2sc_process_monitor_x32.txt$$ We traverse the tail of the linked list activeprocesslinks In the Imagefilename, the process name match on the $$, it breaks down.$$*****************************************************************BP NT!pspcreateprocess"gur @ $t 0=0r @ $t 1=0r @ $t 2=0r @ $t 0=nt! Psactiveprocesshead+4r @ $t 1=poi (@ $t 0) r? @ $t 2= #CONTAINING_RECORD (@ $t 1, nt!_eprocess, Activeprocesslinks) as/x ${/V: $Procc} @ $t 2 as/ma $ImageName @@c++ (&@ $t 2->imagefilename[0]). block{ .if($SICMP (\"${$ImageName} \ ", \" calc.exe \ ") = = 0){. Echo found the pattern. Echo ${$ImageName} ad*        }.Else{. Echo not found the pattern. Echo'${$ImageName}'AD*GC}}"

Work often have such demand, obviously disabled a boot start item, but the boot when the startup item quietly started, using this script, can be very convenient to correct the boot is disabled off the startup item is by what way and pull themselves up again.

WinDbg script Practice 3----monitor specific process creation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.