This documents tries to address some concerns with enabling PIE.
One of the criticism of "Using PIE by default on AMD64" is,
BITS 32 | |
org 0x05000000 | |
db 0x7F, "ELF" | |
dd 1 | |
dd 0 | |
dd $$ | |
dw 2 | |
dw 3 | |
dd 0x0500001B |
/* | |
* Author: @st4g3r | |
* This is a PoC for House of Einherjar on x64 Linux. | |
* | |
* gcc -Wall -o house_of_einherjar house_of_einherjar.c | |
* | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> |