wtorek, 26 czerwca 2012

czwartek, 21 czerwca 2012

Why you something more than that?

:;while [ $? -eq 0 ];do nc -vlp 8081'(r=read;e=echo;$r a b c;z=$r;while [ ${#z} -gt 2 ];do $r z;done;f=`$e $b|sed "s#^/##g;s#/$""##g"`;h="HTTP/1.0";o="$h 200 OKrn";c="Content";if [ -z "$f" -o -d "$f" ];then($e $o;$e "Parent Directory";if [ $f ];then f=$f/;fi;cd "$f";ls|(while $r n;do if [ -e "$n" ]; then $e "`ls -ghd $n`";fi;done););cd ->/dev/null;elif [ -f $f ];then $e "$o$c-Type: `file -ib $f`n$c-Length: `stat -c%s $f`";$e;cat $f;else $e -e "$h 404 Not Foundnn404 $fn";fi)';done