You're viewing a single thread.
All Comments
42 comments
cat /dev/zero > "/proc/$(pidof vim)/mem"
is my favorite dumb way. Clear its memory, wait for the segfault.18 0 Reply...you can write to program memory? Idk how exactly but that feels like a security risk.
2 0 ReplyIt's your process, why shouldn't you be able to write to it? Vi is certainly doing it...
6 0 ReplyYou do need to be root to do it to arbitrary processes.
5 0 Reply
dumb way.
Get fancy, add progress bar: pv < /dev/zero > "/proc/$(pidof vim)/mem"
1 0 Reply
42 comments
Scroll to top