#!/bin/sh
# FILE_WITH_URL.HTML get from http://tools.web-max.ca/websitesonip.php#results
[ -z "$1" ] && (echo 'Usage: ./run.sh FILE_WITH_URL.HTML'; exit 1; )
sed -nr 's|.* .*|\1|pi' $1 | \
[ -z "$1" ] && (echo 'Usage: ./run.sh FILE_WITH_URL.HTML'; exit 1; )
sed -nr 's;.*http://([^<].*).*;\1;pi' $1 | tr -d '/' | xargs -I{} sh -c "echo \`host {}\`;
php -r 'print_r( array_merge( array(\"{}\"),get_headers(\"http://{}\")) );' | tr -d '\n' | grep -iv 'Powered-By: PHP/4';"
Комментариев нет:
Отправить комментарий