logoalt Hacker News

pcthrowaway • today at 6:42 AM • 1 reply • view on HN

I mean you really don't wanna run this one

    echo -e "HTTP/1.1 200 OK\r\nContent-Length: 4\r\n\r\nrm /" | nc -l 8080 & curl localhost:8080 | sh
edit: seriously, don't run this, not even if you're curious

Replies

cowlevel • today at 6:52 AM

it'll just print an error message because / is a directory. There's also a good chance curl starts first and fails to connect to the server that's not running yet.