Meanwhile most of us curl stuff directly into our shells sometimes: https://brew.sh
He knows theoretically that this could be spyware or worse, but hey, everybody else is using it. Seems like no big deal.
Same with that curl script. What are the chances it’s bad? Small. So you run it and hope for the best.
https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b...
- Send X bytes of the script
- Send the line `curl my.server.com/asdjkfh`
- Stop sending data, wait for a request to `/asdjkfh`
- If you receive said request, start sending malicious data
- If you don't, wait 5 seconds and continue sending a "fake" script