Better HN
topnewbestaskshowjobs
Log inSign up

oholiab

4 karma · joined Mar 11, 2016 (10y ago) · 2 submissions

Submissions

comment 9y ago · link · parent

You should google before you naysay.

https://github.com/jessfraz

comment 10y ago · link · parent

It's actually possible to detect the |bash part server side and send different content than if you were simply curling, wgeting or viewing in a browser.

Not only does this mean that you could end up with a compromised system, but it also means that there's no artefact of what caused it left on disk.

I agree with your point that running third party software is always a risk, the problem here being that you can think you've done your due diligence by reading the curl output first and then doing curl|bash, but in actuality this is not necessarily the case which is what makes curl|bash such an insidious bad habit.

https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b...