You're viewing a single thread.
View all comments
43
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
You've viewed 43 comments.
Scroll to top