BUILDING
BUILDING ELF BINARY FROM SHELLCODE
root@sre:~$ python3
>>> from pwn import *
>>> context(os="linux", arch="amd64", log_level="error")
>>> ELF.from_bytes(unhex('4831db66bb79215348bb422041636164656d5348bb48656c6c6f204854534889e64831c0b0014831ff40b7014831d2b2120f054831c0043c4030ff0f05')).save('helloworld')
* unhex() converts the raw machine code back to binary
* the save() is used to save the shellcode to a file
Last updated