3 ms·
Cool! I did something very similar to this a couple of years back: https://github.com/osandov/asmase https://github.com/osandov/asmase. Instead of assembling to
by osandov 11y ago
Cool! I did something very similar to this a couple of years back: https://github.com/osandov/asmase https://github.com/osandov/asmase. Instead of assembling to a file, I used the LLVM libraries to assemble in memory, then used ptrace to get a child process to point its instruction pointer at that machine code.