Re:Show HN: tor_ssh.sh – One command to enable SSH access vi...
by badideaprojects on Tuesday March 05, 2019 @11:24AM
(#19311583)
This post demonstrates detecting the difference between a user piping the output from curl to bash OR curl to stdout.
https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b...
(I seem to recall there being a way for the server to reliably guess whether the file was being piped or saved to disc, as well, which would let you restrict the malicious version even more. Google is failing me at the moment, though.)