PDA

View Full Version : WinDbg: i don't wanna launch that script!


fasmotol
March 6th, 2013, 09:25
Hello, woodmann!
The question is: how to make windbg to execute a script when breaking on bp?
I do like that:
Code:

bp somemodule!someproc "$$>a<D:\everth\scripts\somescript.wds"

on bp break i get
Code:
Command file execution failed, Win32 error 0n2
"The system cannot find the file specified."

though i can run flawlessly the script from windbg console.
tried also
Code:
$><%path%
and
Code:
$$><%path%
with the same result.

blabberer
March 7th, 2013, 15:09
ntdll!DbgBreakPoint:
7c90120e cc int 3
0:000> bp 401000 "$$>a<D:\everth\scripts\somescript.wds"
0:000> bl
0 e 00401000 0001 (0001) 0:**** msgbox!start "$$>a<D:everthscriptssomescript.wds"
0:000> bp 401000 "$$>a<D:\\everth\\scripts\\somescript.wds"
breakpoint 0 redefined
0:000> bl
0 e 00401000 0001 (0001) 0:**** msgbox!start "$$>a<D:\\everth\\scripts\\somescript.wds"
0:000> g

lets tell fasmotol about .dbgdbg

eax=00000000 ebx=7ffdf000 ecx=0013ffb0 edx=7c90e514 esi=7c96e5df edi=00000000
eip=00401000 esp=0013ffc4 ebp=0013fff0 iopl=0 nv up ei pl zr na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00000246
msgbox!start:
00401000 6a00 push 0

0:000> .shell type d:\everth\scripts\*.*

d:\everth\scripts\somescript.wds


.echo lets tell fasmotol about .dbgdbg .shell: Process exited
Press ENTER to continue

fasmotol
March 7th, 2013, 20:23
.echo "fasmotol is just a total dumb..s kid - the right part of bl output was hidden on his small monitor and he had no intention to scroll it. facepalm."
.echo "thanks, blabberer"

Woodmann
March 7th, 2013, 22:13