Category: PWN


PWN>Theory

Segments and Sections

SegmentsSegments usually describe the layout of .elf files in memory. In a C program the memory layout is as follows: So each the segments are...

PWN>Tools

GDB Debugger

CompilingAdd -g option to gcc to preserve debugging info. 1gcc -o target target.c -g Using file command to check if the elf file contains...

PWN>Theory

Endianness

Endianness is a quite simple concept. They are 2 types of endianness: big endian and little endian. Nowadays most machines use little endian but...

PWN>Theory

Assembly

Assembly SyntaxThere are 2 types of styles of assembly code: Intel and AT&T. The main difference is: In Intel syntax the first operand is the...