Domain Empire

Available 3-Character Domain Scanner

Spaceship Spaceship
Watch
Impact
33
I was bored and happened to make this script. :P
It randomly scans for available 3-character domain names. It is currently configured to find COM, NET, ORG, INFO, BIZ, and US domains, but can easily be configured to look for others.

If you happen to accidently come accross an interesting domain using it, be sure to tell me :) Enjoy.
PHP:
<?php 
///////////////////////////////////////////////////////////////////////////////
// Jim's 3-Character Domain Scanner Script
// bellys|@|gmail|.|com - http://www.j-fx.ws
//
//
// Scans for .COM, NET, ORG, INFO, BIZ, US domains
// Easily configured for more.
//
// I make no guarantee of the validity of these results.
//
// For a list of whois servers, check out:
//http://www.domaininformation.de/whoisserver_list.html
//http://www.mit.edu/afs/athena/contrib/potluck/Net-Services/whois-servers.list
///////////////////////////////////////////////////////////////////////////////

///////////////////////////////////////////////////////////////////////////////
// This is the number of domains the script will stop at.
// Try not to set it too high. You'll upset your host and the nameservers

$i = 25; 

///////////////////////////////////////////////////////////////////////////////
// Here is the function for checking the availability of a domain

function checkdomain($xserver, $xdomain) {
$sock = fsockopen($xserver,43) or die("Error Connecting To Whois Server");
fputs($sock,"$xdomain\r\n");
while(!feof($sock))
  $result .= fgets($sock,128);
fclose($sock);
if(eregi("No match",$result)||eregi("NOT FOUND",$result))
  return true;
else
  return false;
}

///////////////////////////////////////////////////////////////////////////////
// Here is the array that we will pull random characters from

$chars = array("a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p",
"q","r","s","t","u","v","w","x","y","z","0","1","2","3","4","5","6","7","8","9");

///////////////////////////////////////////////////////////////////////////////
// Here is some boring HTML/CSS. :P

echo "<style>.domains {font-size: 10px;font-family:Tahoma;color:black;font-weight:bold;}</style>
<div class=\"domains\"><u>Scanned and found</u> ".$i." <u>domains</u>:<br />\n";

///////////////////////////////////////////////////////////////////////////////
// Now, let's start scanning!

while($i > 0){ 

///////////////////////////////////////////////////////////////////////////////
// Here is where we generate a random string of 3 in the format XXX
// This can be changed easily to the format LLN with this code instead:
///// $current = $chars[rand(0,25)].$chars[rand(0,25)].rand(0,35);
// Or to L-N with this code:
///// $current = $chars[rand(0,25)]."-".rand(0,9);
// Mix and match. Get what you're looking for! :P

  $current = $chars[rand(0,35)].$chars[rand(0,35)].$chars[rand(0,35)];

///////////////////////////////////////////////////////////////////////////////
// Here is where we start checking domains
// Feel free to add/remove domains or change whois servers

  if(checkdomain("whois.nsiregistry.net",$current.".com")) {
    echo $current.".COM\n<br />"; $i--; }

  if(checkdomain("whois.nsiregistry.net",$current.".net")) {
    echo $current.".NET\n<br />"; $i--; }

  if(checkdomain("whois.pir.org",$current.".org")) {
    echo $current.".ORG\n<br />"; $i--; }

  if(checkdomain("whois.afilias.net",$current.".info")) {
    echo $current.".INFO\n<br />"; $i--; }

  if(checkdomain("whois.biz",$current.".biz")) {
    echo $current.".BIZ\n<br />"; $i--; }

  if(checkdomain("whois.nic.us",$current.".us")) {
    echo $current.".US\n<br />"; $i--; }
  ob_flush();
  flush();
}

///////////////////////////////////////////////////////////////////////////////
// We're done! :)

echo "</div>";
?>
 
Last edited:
2
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
0
•••
I would like to add.
Use this script with CAUTION. As long as the list of possible 3 letters domains may be huge, your IP may get banned from WHOIS servers for "Request spamming."
 
0
•••
It's a great script but I don't understand exactly what will happened if my ip will get banned from WHOIS servers. If this will happen than I will not be able to scan for more websites or will I get any more troubles ?
 
0
•••
You will not be able to see who owns the domain names. And I think thats it, but that includes searching for more domain names.
 
0
•••
how do you run this script? can anyone tell me?
 
0
•••
Adding a proxy to that could be really easy...

all one would have to do is put a count function in it to switch servers ever 80 connections or so...
 
0
•••
malcolm321 said:
How come I have a 404 error? HELP

Derek

A 404 means the file is not found...Maybe you didnt upload it?
 
0
•••
Borghunter said:
Pretty sweet script, now I can get 3 letter domains easily! :D

The ones which are free are RegFee trust me :)

Hope I had this script 6 months ago :)

Olgi
 
0
•••
Nice, I will try and comment result. :)
 
0
•••
malcolm321 said:
How come I have a 404 error? HELP

Derek
If you are using SV's script.

Name the file available.php, or, change the Form Action in the script. :)
 
0
•••
Might want to know theres a few people selling this...
http://forums.DigitalPoint/showthread.php?t=251910
http://forums.DigitalPoint/showthread.php?t=251658
 
0
•••
killaklown said:
Might want to know theres a few people selling this...
Thanks. I'll look into it and hopefully get them shut down. :)
 
0
•••
:) Im running it on my home computer, therefore i couldn't care less whether the IP gets banned or not :P I :hearts: dynamic ip addresses :D Great script ;)
 
0
•••
Guys..do you know where I can just find a list of all the possiable combinations? I want to try and check them all on different TLD's. I have software that can do that.
 
0
•••
awesome work. thank you,
 
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back