3 ms·
rm -rf / Using this type of code to show unintended consequences is itself a hotbed of unintended consequences! Just put in code that prints "pwned" instead o
by IncRnd 9y ago
rm -rf /
Using this type of code to show unintended consequences is itself a hotbed of unintended consequences!
Just put in code that prints "pwned" instead of running code that would delete someone's system or home folder.
- apk-d 9y agoDo any up-to-date operating systems actually run this without the --no-preserve-root flag?
- firethief 9y agoAnyone who would compile and run random code from the internet without thinking about whether it's subtly malicious (let alone overtly destructive) has a lesson to be learned that's probably worth the data on their hard drive. If they don't have backups, that's two lessons.
- IncRnd 9y agoAgreed. But, that's not a reason for telling people to run code that would delete the entire drive.