Skip to content

Instantly share code, notes, and snippets.

@zer1t0
zer1t0 / r2_heap_cheatsheet.org
Last active October 26, 2021 08:59
radare2 heap cheatsheet

Program architecture. i~machine:

[0x7f8491e94090]>i~machine[1-]
AMD x86-64 architecture

Program bits. i~bits:

[0x7f8491e94090]> i~bits[1]
@zer1t0
zer1t0 / malloc_chunk.c
Last active November 18, 2020 12:39
Get chunk size for a malloc allocation
/*
Get chunk size for a malloc allocation
*/
#include <stdio.h>
#include <stdlib.h>
#define NO_FLAGS ~0x7
int main(int argc, char** argv) {