WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 38339530

(no title)

silasb | 2 years ago

Can't you use `mprotect` to allow you to write to memory and execute?

https://github.com/Frodox/execute-machine-code-from-memory/t... has several examples of how to do it.

EDIT: https://www.kvakil.me/posts/2022-10-13-optimizing-mprotect-i... is another good link that explains this.

discuss

order

No comments yet.

powered by hn/api // news.ycombinator.com