Endianness Explained. Little-Endian and Big-Endian for 32 and 64 bits - Binary Exploitation PWN101

RazviOverflow
RazviOverflow
2.5 هزار بار بازدید - 2 سال پیش - Endianness explained in detail, from
Endianness explained in detail, from a pwn (binary exploitation) perspective. Why is it necessary and how does it work. Byte ordering examples for both 32 and 64 bits are shown in form of theory and practice, debugging compiled C code to see how bytes of variables are actually arranged in memory. Keep in mind that type of the variable (short, int, int64, long long, etc...) defines how many bytes are to be allocated and write into memory for that particular variable and hence how many bytes have to be swapped (Endianness).

Pwntools' packing: https://docs.pwntools.com/en/stable/u...
Python's Struct: https://docs.python.org/3/library/str...

NUXI problem: Reddit: how_did_the_nuxi_problem_arise
Endianness:
https://en.wikipedia.org/wiki/Endianness
https://betterexplained.com/articles/...

00:00 - Intro
00:17 - p32 and p64 from pwntools
00:25 - Python's struct
00:50 - Theory
02:39 - Most and least significant bytes (MSB & LSB)
03:18 - Little Endian and Big Endian
07:08 - Practice and examples
07:30 - 32 bits
11:58 - 64 bits
16:27 - Final thought
17:12 - Outro[*]

Exploit code, not people.
Twitter: @Razvieu
*Outro track: Etsu - Selcouth
GG
2 سال پیش در تاریخ 1400/12/17 منتشر شده است.
2,561 بـار بازدید شده
... بیشتر