// hostsfinder.php by Nilesh Dosooye (nileshd@webmauritius.com)
// Copyright (C) 2001 Nilesh Dosooye
// http://nilesh.webmauritius.com
//
// --- GNU General Public License Disclamer ---
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
$ipaddress=getenv("remote_addr");
if ($Submit=="Find all hosts on this domain")
{
echo "Your Input was : $input
";
$ipadd=gethostbyname ($input);
list($ip1,$ip2,$ip3,$ip4)=explode('.',$ipadd);
for ($a=0;$a<256;$a++)
{
$scanip="$ip1.$ip2.$ip3.$a";
$newhostname=gethostbyaddr($scanip);
echo "$scanip ---> $newhn
";
}
}
?>