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 443 | Next

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

"Gray Hat Hacking, Second Edition"

c
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.42 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
meet.c
Microsoft (R) Incremental Linker Version 8.00.50727.42
Copyright (C) Microsoft Corporation. All rights reserved.
/out:meet.exe
meet.obj
C:\grayhat>meet.exe Mr. Haxor
Hello Mr. Haxor
Bye Mr. Haxor
Chapter 11: Basic Windows Exploits
245
PART III
Windows Compiler Options
If you type in cl.exe /?, you??™ll get a huge list of compiler options. Most are not interesting
to us at this point. The following table gives the flags you??™ll be using in this chapter.
Option Description
/Zi Produces extra debugging information, useful when using the Windows debugger
that we??™ll demonstrate later.
/Fe Similar to gcc??™s -o option. The Windows compiler by default names the executable
the same as the source with .exe appended. If you want to name it something
different, specify this flag followed by the EXE name you??™d like.
/GS[-] The /GS flag is on by default in Microsoft Visual Studio 2005 and provides stack
canary protection. To disable it for testing, use the /GS- flag.
Because we??™re going to be using the debugger next, let??™s build meet.exe with full
debugging information and disable the stack canary functions.


Pages:
431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455