Answer the question
In order to leave comments, you need to log in
How to find all domains in a certain range of ip addresses?
Hello, there is a range of ip addresses for example 217.12.200.1 - 217.12.240.255
How can I find all domains in this range?
Answer the question
In order to leave comments, you need to log in
The problem is that you can hardly find all 100%, because. this information is not fully disclosed. Unless there is a dns transfer vulnerability, when all names can be requested from the server.
As usual get domains - brute on dictionaries. There are utilities like DirBuster, dirsearch, Sublist3r, gobuster. You can also scan online, with something like URL Fuzzer or METASCAN .
Well, you should never forget about the power of Google, look at shodan.io, censys.io, fofa.so, they can give out a lot of useful information by IP.
No way. Even if you find the right service, it will not provide accurate information.
In PHP:
<?php
$i1=217; $i2=12; $i3=200; $i4=1; //здесь надо вписать начало диапазона
$a1=217; $a2=12; $a3=240; $a4=255; //здесь конец диапазона
$o1=$i1; $o2=$i2; $o3=$i3; $o4=$i4;
for( ; ; ){
$host=gethostbyaddr($o1.'.'.$o2.'.'.$o3.'.'.$o4);
if($host & $host != $o1.'.'.$o2.'.'.$o3.'.'.$o4)
echo $o1.'.'.$o2.'.'.$o3.'.'.$o4.': '.$host."\r\n";
$o4++;
if($i3<$a3 or $i2<$a2 or $i1<$a1){
if($o4>255){
$o3++;
if($i2<$a2 or $i1<$a1){
if($o3>255){
$o2++;
if($i1<$a1){
if($o2>255){
$o1++;
if($o1>$a1){
break;
}
$o2=1;
}
}elseif($o2>$a2){
break;
}
$o3=1;
}
}elseif($o3>$a3){
break;
}
$o4=1;
}
}elseif($o4>$a4){
break;
}
}
?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question