News for hackers. Stuff that matters.
Re:Detecting the use of “curl | bash” server side by raverbashing on Tuesday December 27, 2022 @06:34AM (#34147789)
And in the end you could always do

    curl -o file.sh
    bash file.sh
No detection
Re:Detecting the use of “curl | bash” server side by jrochkind1 on Tuesday December 27, 2022 @08:21AM (#34148345)
Right, 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.
Re:Detecting the use of “curl | bash” server side by prmoustache on Tuesday December 27, 2022 @10:04AM (#34149257)
I 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.