Linux sothorn202 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 202.28.82.202 | : 216.73.216.9
pkexec version 0.105
Cant Read [ /etc/named.conf ]
iqtd
RED EYES BYPASS SHELL!
Terminal
Auto Root
Adminer
Backdoor Destroyer
Kernel Exploit
Lock Shell
Lock File
Create User
+ Create Folder
+ Create File
/
home /
lifelonglearn /
work_181165 /
page /
FormtestEdit /
[ HOME SHELL ]
NAME
SIZE
PERMISSION
ACTION
index.css
4.89
KB
-rwxr-xr-x
index.js
1.64
KB
-rwxr-xr-x
index.php
13.1
KB
-rwxr-xr-x
index_db.php
2.78
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : index_db.php
<?php require_once("../../server/server.php"); if(!empty($_SESSION["lms-ID"])){ $user_id = $_SESSION["lms-ID"];}else{ $user_id = 0;} if(!empty($_POST["couse_id"])){ $couse_id = $_POST["couse_id"];}else{ $couse_id = 0;} if(!empty($_POST["questions_count"])){ $questions_count = $_POST["questions_count"]; }else{ $questions_count = 0; } if(!empty($_POST["choices_max"])){ $choices_max = $_POST["choices_max"];}else{ $choices_max = 0;} $datetime_now = date("Y-m-d H:i:s"); echo "user_id = ".$user_id."<br/>"; echo "couse_id = ".$couse_id."<br/>"; echo "questions_count = ".$questions_count."<br/>"; echo "choices_max = ".$choices_max."<br/>"; echo "datetime_now = ".$datetime_now; echo "<hr/>"; for($i=1;$i<=$questions_count;$i++){ if(!empty($_POST["questions_".$i])){ $questions = $_POST["questions_".$i]; }else{ $questions = ""; } $file = $_FILES['question_img']['name'][$couse_id][$i]['file'] ?? null; $directory = null; $target_dir = "../../file/question/"; if (move_uploaded_file($_FILES["question_img"]["tmp_name"][$couse_id][$i]['file'], "../../file/question/" . $file)) { $file = $target_dir . basename($_FILES["question_img"]["name"][$couse_id][$i]['file']); $uploadOk = 1; if ($_FILES["question_img"]["size"][$couse_id][$i]['file'] > 500000) { //echo "Sorry, your file is too large."; $uploadOk = 0; } if (move_uploaded_file($_FILES["question_img"]["tmp_name"][$couse_id][$i]['file'], $file)) { //echo "The file ". basename( $_FILES["question_img"]["name"][$couse_id][$i]['file']). " has been uploaded."; $directory = "file/question/" . $_FILES['question_img']['name'][$couse_id][$i]['file']; } } //echo $directory; $query_questions= $db->query("INSERT INTO questions (couse, no_question, question_text, inp_date, upd_date, question_img) VALUES ('".$couse_id."', '".$i."', '".$questions."', '".$datetime_now."', '".$datetime_now."', '".$directory."')"); for($j=1;$j<=$choices_max;$j++){ if(!empty($_POST["choices_".$i."_".$j])){ $choices = $_POST["choices_".$i."_".$j];}else{ $choices = "";} if($choices!=""){ //echo "choices".$i."-".$j." = ".$choices."<br/>"; $query_choices= $db->query("INSERT INTO choices (no_question, no_couse, no_choice, choice_text, inp_date, upd_date) VALUES ('".$i."', '".$couse_id."', '".$j."', '".$choices."', '".$datetime_now."', '".$datetime_now."')"); } if(!empty($_POST["answers_".$i."_".$j])){ $answers = $_POST["answers_".$i."_".$j];}else{ $answers = "";} if($answers!=""){ //echo "answers".$i."-".$j." = ".$answers."<br/>"; $query_answers= $db->query("INSERT INTO answers (couse, no_question, answers_true) VALUES ('".$couse_id."', '".$i."', '".$j."')"); } } } header("location: ../../Formtest"); exit(0); ?>
Close