- Joined
- Oct 25, 2009
- Messages
- 59
- Reaction score
- 0
- Points
- 6
Jeez, I haven't posted here in forever.
I've been thinking about this for a while now, what if I were to write a program that instantly kills all processes? I figured it would be pretty tricky to do this with software, so I thought about doing it with hardware. As in building a magic/more magic switch that cuts all power to the computer when in the "more magic" position. Despite how awesome that sounds, building it would be incredibly risky.
I noticed entering the following into a terminal...
...violently restarts the computer. Is there any way I could do this without having to enter my password? I figured I could keep my WidgetTerm running a root shell and aliasing "killswitch" to "sudo killall launchd".
I apologize, I know it appears incredibly obvious that I'm writing something malicious, but that's not it at all. I'm only curious, and the concept of a kill switch fascinates me. Most modern kernels can tell when the computer wasn't shut down properly and can fix the hard drive anyway.
Once again, please don't mistake my intentions, I'm only curious.
I've been thinking about this for a while now, what if I were to write a program that instantly kills all processes? I figured it would be pretty tricky to do this with software, so I thought about doing it with hardware. As in building a magic/more magic switch that cuts all power to the computer when in the "more magic" position. Despite how awesome that sounds, building it would be incredibly risky.
I noticed entering the following into a terminal...
Code:
sudo killall launchd
...violently restarts the computer. Is there any way I could do this without having to enter my password? I figured I could keep my WidgetTerm running a root shell and aliasing "killswitch" to "sudo killall launchd".
I apologize, I know it appears incredibly obvious that I'm writing something malicious, but that's not it at all. I'm only curious, and the concept of a kill switch fascinates me. Most modern kernels can tell when the computer wasn't shut down properly and can fix the hard drive anyway.
Once again, please don't mistake my intentions, I'm only curious.