#ifndef WOODY_H #define WOODY_H #include "../ft_printf/includes/ft_printf.h" #include #include #include #include #include #include #include #include #include #include #include #define PAYLOAD "\x50\x57\x56\x52\x53\xbf\x01\x00\x00\x00\x48\x8d\x35\x16\x00\x00\x00\xba\x0a\x00\x00\x00\xb8\x01\x00\x00\x00\x0f\x05\x5b\x5a\x5e\x5f\x58\xe9\xd9\xff\xff\xff\x2e\x2e\x57\x4f\x4f\x44\x59\x2e\x2e\x0a" #define JUMP "\xe9" typedef struct efl_content { long unsigned int file_size; char *file_path; char *file; Elf64_Ehdr *Ehdr; Elf64_Phdr *Phdr; Elf64_Shdr *Shdr; char *extra_data; } t_efl_content; // utils.c void *fetch(char *file, unsigned long file_size, unsigned long offset_to_data, unsigned long supposed_data_size); int ft_put_error(char *str); // woody.c int prepare_injection(t_efl_content *woody); // encrypt.c void encrypt(char *file, unsigned long int offset, unsigned long int size); #endif