Better HN
topnewbestaskshowjobs
Log inSign up

ohwutwathere

9 karma · joined Nov 3, 2022 (4y ago) · 2 submissions

Submissions

comment 4y ago · link · parent

Correct but in lots of scenarios (containers etc) you cannot execute ptrace() but you can execute mmap(), mprotect(), read(), write() which is all you really need. Edit: and fork().

See something I published just a month ago: https://github.com/anvilsecure/ulexecve/

comment 4y ago · link · parent

You can. Different ways to skin the cat and the memfd trick works fine. However there are other ways of doing it and being more stealthy.

See for example https://www.anvilsecure.com/blog/userland-execution-of-binar.... The implementation is on GitHub and rather clean if I may say so myself (am the author).