Hacker News new | past | comments | ask | show | jobs | submit
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
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.