Skip to content

Instantly share code, notes, and snippets.

@KyxRecon
Created June 11, 2015 18:22
Show Gist options
  • Save KyxRecon/448f389592495264f1e2 to your computer and use it in GitHub Desktop.
Save KyxRecon/448f389592495264f1e2 to your computer and use it in GitHub Desktop.
WhoisLook.php
<?php
/*
Demo Video : https://www.youtube.com/watch?feature=player_detailpage&v=exO_7uXU2Ys
Script name : Whoislook BY Alexcerus-HR
Version : 1.0
*/
@set_time_limit(0);
$subs = array(
"app",
"apps",
"cpanel",
"ftp",
"mail",
"webmail",
"smtp",
"pop",
"pop3",
"direct-connect",
"direct-connect-mail",
"record",
"ssl",
"dns",
"help",
"blog",
"forum",
"doc",
"home",
"shop",
"vb",
"www",
"web",
"webadmin",
"weblog",
"webmail",
"webmaster",
"webservices",
"webserver",
"log",
"logs",
"images",
"lab",
"ftpd",
"docs",
"download",
"downloads",
"about",
"backup",
"chat",
"data",
"smtp",
"upload",
"uploads",
"ns1",
"ns2",
"record",
"ssl",
"imap",
"result",
"vip",
"demo",
"beta",
"video",
);
$proxy = "186.42.121.150:80";
echo"\e[93m
__ ___ _ _ _
\ \ / / | (_) | | | |
\ \ /\ / /| |__ ___ _ ___| | ___ ___ | | __
\ \/ \/ / | '_ \ / _ \| / __| | / _ \ / _ \| |/ /
\ /\ / | | | | (_) | \__ \ |___| (_) | (_) | < \e[97m
\/ \/ |_| |_|\___/|_|___/______\___/ \___/|_|\_\
------------[WhoisLook By : Alexcerus]------------
\n";
echo"\r\n(Wh0isL00k) > ";
$target=trim(fgets(STDIN,1024));
echo "\n\e[93m[+] \e[97mRunning whoiswork.....\n\n";
echo"[!] Target host / IP : ".gethostbyname($target)." \n";
$sourc = @file_get_contents("http://www.whois.com/whois/$target");
preg_match_all("#<br>Name Server:(.*?)<br>#i",$sourc,$name);
$nameservers = $name[1];
foreach($nameservers as $nameserver){
echo"[-] Name Server: $nameserver \n";
}
$source = @file_get_contents("http://www.mydnstools.info/webserverinfo/$target");
preg_match_all("#<b>Server: (.*?)
</b>#i",$source,$serv);
$servers = $serv[1];
foreach($servers as $server){
echo"[-] Server: $server \n";
}
echo"\r\n\e[93m[+] \e[97mRunning subdomain finder..... \n\n";
foreach($subs as $sub){
$Check = @fsockopen("$sub.$target", 80);
if($Check)
{
echo "[-] ".$sub.".".$target." : ".gethostbyname($sub.".".$target)." \n";
}
}
$get = @file_get_contents("http://www.pagesinventory.com/search/?s=$target");
preg_match_all("#<td><a href=\"\/domain\/(.*?).html\">#i",$get,$matches);
$rzlts = $matches[1];
foreach($rzlts as $rzlt){
echo"[-] ".$rzlt." : ".gethostbyname($rzlt)." \n";
}
echo"\n\n\e[91m[!] To start the subchecker put The target site\e[97m... \n";
echo"
[+] Target:";
$site=trim(fgets(STDIN,1024));
$get = @file_get_contents("http://www.pagesinventory.com/search/?s=$site");
preg_match_all("#<td><a href=\"\/domain\/(.*?).html\">#i",$get,$matches);
$rzlts = $matches[1];
foreach($rzlts as $rzlt){
echo"
[+] ".$rzlt." : ".gethostbyname($rzlt)."";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment