dirtycow / dirtycow.github.io

Dirty COW
https://dirtycow.ninja
3.35k stars 940 forks source link

what is the need of using /proc/self/mem? #20

Closed balu143 closed 7 years ago

balu143 commented 7 years ago

What is the role of using /proc/self/mem to write into the mmaped region? Why can't we write to the region using some sprintf(ptr,...)?

dirtycow commented 7 years ago

Because https://twitter.com/tehjh/status/789346811161022464