General knowledge
Pwn refers to the exploitation of a vulnerability in a binary to gain access to sensitive data or gain unauthorized control over the service.
Memory Segmentation
Segment | Address | Contents
--------|----------------------------------|-----------------------------------------
Reserved| 0x00000000 | Program entry point, interrupt vectors
--------|----------------------------------|-----------------------------------------
.txt | 0xYYYYYYYY (Platform-dependent) | instructions executed by the program
--------|----------------------------------|-----------------------------------------
.plt | | Procesdure Linkage Table
--------|----------------------------------|-----------------------------------------
.got | | Global Offset Table
--------|----------------------------------|-----------------------------------------
.Data | | Global variables, static variables
--------|----------------------------------|-----------------------------------------
.bss | | Global variables, static variables
--------|----------------------------------|-----------------------------------------
HEAP | | | Dynamically allocated memory
| v |
--------|----------------------------------|-----------------------------------------
Free | | free memory area used for stack
memory | | and heap growth
--------|----------------------------------|-----------------------------------------
LINKS | | External libraries and functions
--------|----------------------------------|-----------------------------------------
Free | | free memory area used for stack
memory | | and heap growth
--------|----------------------------------|-----------------------------------------
STACK | ^ | Local variables, function params
| | |
| 0xffffffff |
--------|----------------------------------|-----------------------------------------Registers
Addresses (Endianness)
Address
Little Endian
Big Endian
Last updated