ways to close vimKerb@discuss.tchncs.de to Programmer Humor@programming.dev – 206 points – 1 years ago44Post a CommentPreviewYou are viewing a single commentView all commentscat /dev/zero > "/proc/$(pidof vim)/mem" is my favorite dumb way. Clear its memory, wait for the segfault....you can write to program memory? Idk how exactly but that feels like a security risk.It's your process, why shouldn't you be able to write to it? Vi is certainly doing it...You do need to be root to do it to arbitrary processes. dumb way. Get fancy, add progress bar: pv < /dev/zero > "/proc/$(pidof vim)/mem"
cat /dev/zero > "/proc/$(pidof vim)/mem" is my favorite dumb way. Clear its memory, wait for the segfault....you can write to program memory? Idk how exactly but that feels like a security risk.It's your process, why shouldn't you be able to write to it? Vi is certainly doing it...You do need to be root to do it to arbitrary processes. dumb way. Get fancy, add progress bar: pv < /dev/zero > "/proc/$(pidof vim)/mem"
...you can write to program memory? Idk how exactly but that feels like a security risk.It's your process, why shouldn't you be able to write to it? Vi is certainly doing it...You do need to be root to do it to arbitrary processes.
It's your process, why shouldn't you be able to write to it? Vi is certainly doing it...You do need to be root to do it to arbitrary processes.
cat /dev/zero > "/proc/$(pidof vim)/mem"
is my favorite dumb way. Clear its memory, wait for the segfault....you can write to program memory? Idk how exactly but that feels like a security risk.
It's your process, why shouldn't you be able to write to it? Vi is certainly doing it...
You do need to be root to do it to arbitrary processes.
Get fancy, add progress bar: pv < /dev/zero > "/proc/$(pidof vim)/mem"