SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 449 | Next

Shon Harris, Allen Harper, Chris Eagle, and Jonathan Ness

"Gray Hat Hacking, Second Edition"

If it can??™t find them there, it will download them from Microsoft??™s public
Gray Hat Hacking: The Ethical Hacker??™s Handbook
248
symbols server. After it downloads them, it will place the downloaded symbols in c:\symbols,
expecting the directory to exist, so they??™ll be available locally the next time they??™re
needed. Setting up the symbol path to use the symbols server is a common setup, and
Microsoft has a shorter version that does exactly the same thing as the previous syntax:
C:\grayhat>set _NT_SYMBOL _PATH=srv*c:\symbols*http://msdl.microsoft.com/
download/symbols
Now that we have the debugger installed, have learned the core commands, and have
set up our symbols path, let??™s launch the debugger for the first time. We??™ll debug
meet.exe that we built with debugging information (symbols) in the previous section.
Launching the Debugger
In this chapter, we??™ll use the cdb debugger. You??™re welcome to follow along with the
WinDbg GUI debugger if you??™d prefer, but youmay find the command-line debugger to
be an easier quick-start debugger. To launch cdb, pass it the executable to run and any
command-line arguments.
C:\grayhat>md c:\symbols
C:\grayhat>set _NT_SYMBOL_PATH=srv*c:\symbols*http://msdl.


Pages:
437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461