Hello There, Guest! Login Register
Logo
Dismiss this notice
MaDLeeTs is not responsible for any attacks that are carried out on networks, websites or servers.
MaDLeeTs staff members cannot be held responsible.
All information on this forum is for educational purposes only.


Get all Subdomains

  • 0 Vote(s) - 0 Average


06-26-2014, 07:15 PM #1
T3N38R15 Offline ? lawless-coder *****
Moderators
Posts:812 Threads:48 Joined:Jan 2014 Reputation: 126
Mood: Fine
salam mads Smiley1
i create a new Sub-domain finder and i think it is maybe useful for you Smiley1
Code:
<?php
if(empty($_GET["domain"])==0){
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "http://www.ewhois.com/" . $_GET["domain"] . "/");
    curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    $content = curl_exec($ch);
    if (preg_match('/<h4>Contributing Subdomains<\/h4>(.*?)<br class="clearBoth" \/>/s', $content, $matches)){
        $stre= str_replace("<h4>Contributing Subdomains</h4>","",$matches[0]);$stre= str_replace('<br class="clearBoth" />',"",$stre);
        $stre= str_replace('<div>',"",$stre);$stre= str_replace('</div>',"",$stre);$stre= str_replace(' ',"",$stre);$stre= str_replace('OTHER',"",$stre);
        $stre = preg_replace("/\(([^\)]+)\)/", "", $stre);
        echo '<pre>' . $stre . '</pre>';
    }
    curl_close($ch);
}else{echo '<center>Domain search : (example : google.com)</br><form><input type="text" name="domain"/><input type="submit" value="search"/></form></br>by T3N38R15</center>';}
?>

if you like it pleas post a comment Smiley1

[Image: xodhvlpa.jpg]
[Image: test.php]

06-26-2014, 09:53 PM #2
KOH Offline King Of Hacking ***
Registered
Posts:79 Threads:17 Joined:Aug 2013 Reputation: 0
Mood: None
This Is A Nice PHP Script Smiley1

09-16-2014, 12:44 PM #3
kazunari Offline TeaM MaDLeeTs ***
TeaM MaDLeeTs
Posts:24 Threads:5 Joined:Apr 2014 Reputation: 0
Mood: Alone
bro why it display blank page when searching subdomain.

thanks anyway.

09-16-2014, 09:10 PM #4
Erenox Offline Junior Coder **
Registered
Posts:15 Threads:1 Joined:Aug 2014 Reputation: 3
Mood: Mad
Probably because EWhois don't provide Reverse Lookup Service anymore. Worriedsmiley

a nice alternative here

[Image: pgZE3bEsrQ1f.png]

09-17-2014, 12:49 AM #5
T3N38R15 Offline ? lawless-coder *****
Moderators
Posts:812 Threads:48 Joined:Jan 2014 Reputation: 126
Mood: Fine
doh Sadsmiley ok i find maybe a other way Smiley1

[Image: xodhvlpa.jpg]
[Image: test.php]

03-11-2017, 08:04 PM #6
An0n 3xPloiTeR Offline UltraMicroscopic N00b ***
TeaM MaDLeeTs
Posts:13 Threads:2 Joined:Mar 2017 Reputation: 0
Mood: Hacker
(06-26-2014, 07:15 PM)T3N38R15 Wrote:  salam mads Smiley1
i create a new Sub-domain finder and i think it is maybe useful for you Smiley1
Code:
<?php
if(empty($_GET["domain"])==0){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.ewhois.com/" . $_GET["domain"] . "/");
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HEADER, 0);
$content = curl_exec($ch);
if (preg_match('/<h4>Contributing Subdomains<\/h4>(.*?)<br class="clearBoth" \/>/s', $content, $matches)){
$stre= str_replace("<h4>Contributing Subdomains</h4>","",$matches[0]);$stre= str_replace('<br class="clearBoth" />',"",$stre);
$stre= str_replace('<div>',"",$stre);$stre= str_replace('</div>',"",$stre);$stre= str_replace(' ',"",$stre);$stre= str_replace('OTHER',"",$stre);
$stre = preg_replace("/\(([^\)]+)\)/", "", $stre);
echo '<pre>' . $stre . '</pre>';
}
curl_close($ch);
}else{echo '<center>Domain search : (example : google.com)</br><form><input type="text" name="domain"/><input type="submit" value="search"/></form></br>by T3N38R15</center>';}
?>

if you like it pleas post a comment Smiley1

What About This Code Dear  Nice Clapping 

Code:
<center>
<title>An0n 3xPloiTeR Domains Finder :)</title>
<form action="" method="POST">
<input type="submit" name="submit" value="Grab iT" /><br><br>
</form>
<?php
if (isset($_POST['submit'])) {
$string = "cd /var/named/;ls";
$result = @shell_exec($string);
$domains = str_replace(".db","", $result);
echo "<textarea rows='23' cols='120'>".$domains."</textarea>";
}
?>
</center>

Output:
http://rajamusicbank.com/raw.php

An0n 3xPloiTeR Here music Nice wink
"The quieter you become, the more you can hear."
=================================================
[Image: Hack_The_Planet_by_HATE_LOVE_FEAR_ANGER.jpg]
============================================
./logout

06-08-2017, 04:14 PM #7
T3N38R15 Offline ? lawless-coder *****
Moderators
Posts:812 Threads:48 Joined:Jan 2014 Reputation: 126
Mood: Fine
well this is also an option if you are on the target server.
but my script is for the external usage Smiley1
anyway good job.

[Image: xodhvlpa.jpg]
[Image: test.php]






Forum Jump:


Users browsing this thread:1 Guest(s)