Too Long; Didn't Read
This article is not entry-level material and requires an existing understanding of Assembly and Machine Code. This guide will focus on ELF files, although Surgeon can also work with PE (Portable Executable) files. The ELF header points to the offsets of the program header table and the section header table, tells us the size of the headers, number of entries in them, and most importantly, the entry point. In order to be sure that whatever payload will be executed, our payload is safe and undetectable.