Dies ist eine alte Version des Dokuments!


Environment Variable and Command Line Argument Buffers

Considering a NOP sled and the shellcode, the memory region available for the overall payload might become too small pretty soon. Instead of using only buffers of the application to store the payload, it is also possible to use buffers provided by the operating system. Specifically, the payload can be stored in environment variables or command line arguments. To use this technique, the return address needs to be overwritten with the corresponding buffer address. Being located at the bottom end of the stack, addresses of these locations are easier to guess than addresses of arbitrary buffers in the application.