8 ms·
Does `path = "$(rm -rf /)"` work in this context?
by Kinrany 5y ago
Does `path = "$(rm -rf /)"` work in this context?
- bstpierre 5y agoNo, because this isn’t being run through the shell, it’s directly exec’ing the program. So you’re just going to get a dir named “$(rm -rf /)”.
- im3w1l 5y agoIt's funny how easy it is to miss characters with special meaning. In this case it's the slash. You would get a directory named "$(rm -rf " with a subdirectory named ")"