Liz Quilty
public shellscript v1 · immutable#!/bin/bashif [ $1 ];then SITENAME=$1 exec 3<> /dev/tcp/${1:-$SITENAME}/80 printf "GET / HTTP/1.0\r\n" >&3 printf "Accept: text/html, text/plain\r\n" >&3 printf "Accept-Language: en\r\n" >&3 printf "User-Agent: nixCraft_BashScript v.%s\r\n" "${BASH_VERSION}" >&3 printf "\r\n" >&3 while read LINE <&3 do # do something on $LINE, send $LINE to grep or awk for grabbing data, simply display back data with echo command echo $LINE doneelse echo Usage: $0 domainnamefi