Conventions
In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.
Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: " There are seven section headers, starting at the offset 0x1118
."
A block of code is set as follows:
uint64_t injection_code(void * vaddr) { volatile void *mem; mem = evil_mmap(vaddr, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0); __asm__ __volatile__("int3"); }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
0xb755a990] changed to [0x8048376]
[+] Patched GOT with PLT stubs
Successfully rebuilt ELF object from memory
Output executable location: dumpme.out
[Quenya v0.1@ELFWorkshop]
quit
Any command-line input or output is written as follows:
hacker@ELFWorkshop:~/ workshop/labs/exercise_9$ ./dumpme.out
Note
Warnings or important notes appear in a box like this.
Tip
Tips and tricks appear like this.