Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Can you run one of these files as an executable?


It looks like this is just for static data files. To run a piece of memory as executable you'd have to explictly mark the page as executable with e.g. mprotect(2) on Linux. I guess there's nothing stopping you from doing that from Go also.


You still need an ELF loader, unless you're shipping shellcode. As far as I know, there's currently no great way to load an arbitrary segment of memory as an ELF, without doing some sort of copy (eg. memfd_create, write, exec).


You mean load the packed payload at runtime and execute it?


Interesting.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: