A few months ago, we saw how to execute a shellcode from memory in Rust. What if we could write the actual shellcode in Rust? Writing shellcodes is usually done directly in assembly. It gives you absolute control over what you are crafting, however, it comes with many, many drawbacks: