by Graziano_M · 4y ago · 0 comments
This anti-pattern is a bit of a red flag for me though:
bash -c "$(curl -fsSL http://gef.blah.cat/sh)"You are downloading and running their python script anyway. Why do you trust their software but not their install script?
The fact that it is hosted on http is suboptimal, but it does redirect to an https github page in this case
It is not as bad as:
curl something | sh
Where you can detect on the server side that the download goes into a pipe (due to buffering) and serve different versions of the file depending on if you are downloading it or executing it directly, but it is still bad practice.