Topic 4: Exploitation basics Flashcards
what is executable & linkable format (ELF)?
common format for executable and library files on modern *nix systems
what do all elf begin with?
“magic number” = 0x7F’E’‘L’‘F’
what are sections / the 2 types?
organize binary into logical sections used by the linker and loaders
.bss is uninitialized data (global variables)
.text is code
what are segments?
define the parts that should be loaded into memory and how the readelf command examines ELF file data
what is process/what does it provide?
instance of a running program, provides each program with 2 key abstractions: logical control flow & private address space
difference between virtual and physical memory?
can be larger than physical memory, virtual is always mapped, not all pages need to be in physical memory to run program
when is address in kernel space?
if most significant bit is 1 otherwise its in user/application space
what is heap / how is it accessed?
dynamically allocated data, malloc(), calloc(), realloc(), free()