“Ravi Gupta” wrote in message news:xxxxx@windbg… Hi, I wanted to know if there is any way to create a bat file or any other ways to run set of commands automatically.
My requirement is to dump fixed set of registers but I don’t want to type them every time. I want to create a bat file or script file if possible.
if you are using the gui version of windbg
do edit -> view -> set browser start command and add
lets say ?? (wchar_t *)@$proc->ProcessParameters->ImagePathName.Buffer
you can dump this everytime you press ctrl+n also you can chain
commands here with ;
?? (wchar_t *)@$proc->ProcessParameters->ImagePathName.Buffer ; r eax ; r esp ; dd poi(esp) l1
On 11/19/15, Scott Noone wrote: > Check out “script files”: > > https://msdn.microsoft.com/en-us/library/windows/hardware/ff560137(v=vs.85).aspx > > -scott > OSR > @OSRDrivers > > “Ravi Gupta” wrote in message news:xxxxx@windbg… > Hi, > I wanted to know if there is any way to create a bat file or any other > ways to run set of commands automatically. > > My requirement is to dump fixed set of registers but I don’t want to type > > them every time. I want to create a bat file or script file if possible. > > Any suggestion or input will be great. > > Thanks > Sarbojit > > > — > WINDBG is sponsored by OSR > > OSR is hiring!! Info at http://www.osr.com/careers > > For our schedule of WDF, WDM, debugging and other seminars visit: > http://www.osr.com/seminars > > To unsubscribe, visit the List Server section of OSR Online at > http://www.osronline.com/page.cfm?name=ListServer >
Thanks for all your response
Actually I want to put some logic into the script not just of commands e.g.
if register value is X I will some set of commands if it is Y different set
of commands.
In other words I want to process the out of one command and do base of the
out come. Is it possible? I was looking for any training material to do the
same. Any link video tutorial will be great help.
On Fri, Nov 20, 2015 at 11:52 PM, raj r wrote:
> if you are using the gui version of windbg > do edit -> view -> set browser start command and add > lets say ?? (wchar_t *)@$proc->ProcessParameters->ImagePathName.Buffer > > you can dump this everytime you press ctrl+n also you can chain > commands here with ; > > ?? (wchar_t *)@$proc->ProcessParameters->ImagePathName.Buffer ; r eax > ; r esp ; dd poi(esp) l1 > > > and by pressing ctrl+n you get > > wchar_t * 0x00020894 > “C:\WINDOWS\system32\calc.exe” > eax=7ffd6000 > esp=0039ffcc > 7c951e40 909011eb > > > On 11/19/15, Scott Noone wrote: > > Check out “script files”: > > > > > https://msdn.microsoft.com/en-us/library/windows/hardware/ff560137(v=vs.85).aspx > > > > -scott > > OSR > > @OSRDrivers > > > > “Ravi Gupta” wrote in message news:xxxxx@windbg. > … > > Hi, > > I wanted to know if there is any way to create a bat file or any other > > ways to run set of commands automatically. > > > > My requirement is to dump fixed set of registers but I don’t want to > type > > > > them every time. I want to create a bat file or script file if possible. > > > > Any suggestion or input will be great. > > > > Thanks > > Sarbojit > > > > > > — > > WINDBG is sponsored by OSR > > > > OSR is hiring!! Info at http://www.osr.com/careers > > > > For our schedule of WDF, WDM, debugging and other seminars visit: > > http://www.osr.com/seminars > > > > To unsubscribe, visit the List Server section of OSR Online at > > http://www.osronline.com/page.cfm?name=ListServer > > > > — > WINDBG is sponsored by OSR > > OSR is hiring!! Info at http://www.osr.com/careers > > For our schedule of WDF, WDM, debugging and other seminars visit: > http://www.osr.com/seminars > > To unsubscribe, visit the List Server section of OSR Online at > http://www.osronline.com/page.cfm?name=ListServer >