sieben
1
Ich antworte mal in Form eines Links:
http://www.michael-prokop.at/computer/tools_zsh.html
http://www.michael-prokop.at/computer/tools_zsh.html
Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
#!/bin/zsh
TMPDIR=/tmp
DEFAULTPORT=80
if [ -z $1 ]
then
echo " Usage: $0 hostname [port]"
exit 1;
fi
printf 'HEAD / HTTP/1.0\n\n' | nc -w 10 $1 ${2-$DEFAULTPORT} > $TMPDIR/getv.$$
if [ -s $TMPDIR/getv.$$ ]
then
grep '^Server:*' $TMPDIR/getv.$$
rm -f $TMPDIR/getv.$$
fi
#!/bin/sh
DEFAULTPORT=80
if [ -z $1 ]
then
echo " Usage: $0 hostname [port]"
exit 1;
fi
echo -e 'HEAD / HTTP/1.0\n\n' | nc -w 10 $1 ${2-$DEFAULTPORT} | \
egrep '^Server: ' | sed -e 's#^Server: ##'
[1:10:47] fmp@nexus> httpdid heise.de -(/home/fmp)-
Apache/1.3.29 (Unix)
[1:12:39] fmp@nexus> httpdid hackerboard.de -(/home/fmp)-
Apache/1.3.31 (Unix) FrontPage/5.0.2.2635 PHP/4.3.7
[1:12:51] fmp@nexus> -(/home/fmp)-
Kann man natürlich ähnlich flexibel gestalten, wie Ihr das gemacht habt.hackerbox:~ D_Mon$ httpid hackerboard.de
Server: Apache/1.3.31 (Unix) FrontPage/5.0.2.2635 PHP/4.3.7