Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
host ~ # emerge net-analyzer/netcat -av
...
[ebuild R ] net-analyzer/netcat-110-r8 USE="crypt -ipv6 -static (-GAPING_SECURITY_HOLE%)" 0 kB
...
host ~ # :; while [ $? -eq 0 ]; do nc -vlp 8080 -c'(r=read; e=echo;$r a b c; z=$r; while [ ${#z} -gt 2 ]; do $r z; done; f=`stat -c%s $f`»;$e; cat $f; else $e -e «$h 404 Not Found\n\n404\n»; fi)'; done $e «$o$c-Type: `file -ib $f`\n$c-Length: `
nc -h for help
host ~ # nc -c
nc: option requires an argument -- c
nc -h for help
host ~ # nc -c echo
nc -h for help
host ~ # nc -h | grep -- -c
host ~ #
HTTP сервер на bash