2 ms·
And in the end you could always do curl -o file.sh bash file.sh No detection
by raverbashing 4y ago
And in the end you could always do
curl -o file.sh
bash file.sh
No detection
- jrochkind1 4y agoRight, the point of the thought experiment is to inject malicious code only in cases where someone is piping directly to bash without reading it, and not in cases where they might have the opportunity to read it. So in that case you would not inject malicious code. That is correct for the exersize.
- prmoustache 4y agoI hate it when I do that, look at the script and realize that the script itself curl | bash other scripts. Unless there are other sane ways to install the project, I just put in on my blacklist and ignore it.