Online PHP and Javascript Decoder decode hidden script to uncover its real functionality


Show other level

goto eyu6I;
 ybYiM: $stmt_active_status->execute();
 goto pmQMG;
 JaDde: $stmt_permissions = $conn->prepare($sql_permissions);
 goto Rut21;
	 bmksp: foreach ($permissions as $permission) {
		 if ($permission["permission_name"] === "admin" && $permission["granted"] == 1) {
		 $is_admin = true;
		 
	}
		 if ($permission["permission_name"] === "rakabeh" && $permission["granted"] == 1) {
		 $is_arakabeh = true;
		 
	}
		 if ($permission["permission_name"] === "delete" && $permission["granted"] == 1) {
		 $is_delete = true;
		 
	}
		 if ($is_admin && $is_delete && $is_arakabeh) {
		 break;
		 
	}
	 
}
 goto jocMk;
 xOSs0: $is_admin = false;
 goto x5ZDh;
 sgNbm: $stmt_permissions->bind_param("s", $loggedInUsername);
 goto XexPG;
	 QzzEy: if ($conn->connect_error) {
	 echo json_encode(array("error" => "Database connection failed: " . $conn->connect_error));
	 die;
	 
}
 goto MVxrl;
	 Rut21: if (!$stmt_permissions) {
	 die("Error in permissions SQL: " . $conn->error);
	 
}
 goto sgNbm;
	 JTff_: if (isset($_SESSION["error"])) {
	 echo "<div class="alert alert-danger" role="alert">" . $_SESSION["error"] . "</div>";
	 unset($_SESSION["error"]);
	 
}
 goto yuySL;
	 Z6x3G: if (!$stmt_active_status) {
	 die("Error in active status SQL: " . $conn->error);
	 
}
 goto YNHEY;
	 Kt0aW: if ($result_active_status && $result_active_status->num_rows > 0) {
	 $user_status = $result_active_status->fetch_assoc();
		 if ($user_status["is_active"] == 0) {
		 $_SESSION["error"] = "Your account is inactive. Please contact the administrator.";
		 header("Location: ./login.php");
		 die;
		 
	}
	 
}
	 else {
	 die("Error fetching user's active status.");
	 
}
 goto W7vqE;
 YNHEY: $stmt_active_status->bind_param("s", $loggedInUsername);
 goto ybYiM;
 TX9R2: $_SESSION["permissions"] = $permissions;
 goto xOSs0;
 k5ehN: $result_permissions = $stmt_permissions->get_result();
 goto o15tX;
 J_G_Q: $stmt_active_status = $conn->prepare($sql_active_status);
 goto Z6x3G;
 awNwl: $dbPassword = '';
 goto LBTgT;
	 i8whe: if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) {
	 header("Location: ./login.php");
	 die;
	 
}
 goto KaksN;
 pmQMG: $result_active_status = $stmt_active_status->get_result();
 goto Kt0aW;
	 o15tX: if (!$result_permissions) {
	 die("Error in permissions query execution: " . $stmt_permissions->error);
	 
}
 goto snIK6;
 CTQCK: $conn = new mysqli($servername, $dbUsername, $dbPassword, $dbname);
 goto QzzEy;
 x5ZDh: $is_delete = false;
 goto x03xT;
 x03xT: $is_arakabeh = false;
 goto bmksp;
 mN1lq: $dbUsername = "root";
 goto awNwl;
	 KaksN: if (isset($_SESSION["success_message"])) {
	 echo "<div class="alert alert-success" role="alert">" . $_SESSION["success_message"] . "</div>";
	 unset($_SESSION["success_message"]);
	 
}
 goto JTff_;
 W7vqE: $sql_permissions = "SELECT * FROM user_permissions WHERE username = ?";
 goto JaDde;
 eyu6I: session_start();
 goto i8whe;
 oiAul: $servername = "localhost";
 goto mN1lq;
	 MZ0ok: while ($row = $result_permissions->fetch_assoc()) {
	 $permissions[] = $row;
	 
}
 goto TX9R2;
 snIK6: $permissions = array();
 goto MZ0ok;
 MVxrl: $sql_active_status = "SELECT is_active FROM users WHERE username = ?";
 goto J_G_Q;
 XexPG: $stmt_permissions->execute();
 goto k5ehN;
 yuySL: $loggedInUsername = $_SESSION["username"];
 goto oiAul;
 LBTgT: $dbname = "m3lmcompanyxvrp";
 goto CTQCK;
 jocMk:

goto eyu6I;
 ybYiM: $stmt_active_status->execute();
 goto pmQMG;
 JaDde: $stmt_permissions = $conn->prepare($sql_permissions);
 goto Rut21;
	 bmksp: foreach ($permissions as $permission) {
		 if ($permission["permission_name"] === "admin" && $permission["granted"] == 1) {
		 $is_admin = true;
		 
	}
		 if ($permission["permission_name"] === "rakabeh" && $permission["granted"] == 1) {
		 $is_arakabeh = true;
		 
	}
		 if ($permission["permission_name"] === "delete" && $permission["granted"] == 1) {
		 $is_delete = true;
		 
	}
		 if ($is_admin && $is_delete && $is_arakabeh) {
		 break;
		 
	}
	 
}
 goto jocMk;
 xOSs0: $is_admin = false;
 goto x5ZDh;
 sgNbm: $stmt_permissions->bind_param("s", $loggedInUsername);
 goto XexPG;
	 QzzEy: if ($conn->connect_error) {
	 echo json_encode(array("error" => "Database connection failed: " . $conn->connect_error));
	 die;
	 
}
 goto MVxrl;
	 Rut21: if (!$stmt_permissions) {
	 die("Error in permissions SQL: " . $conn->error);
	 
}
 goto sgNbm;
	 JTff_: if (isset($_SESSION["error"])) {
	 echo "<div class="alert alert-danger" role="alert">" . $_SESSION["error"] . "</div>";
	 unset($_SESSION["error"]);
	 
}
 goto yuySL;
	 Z6x3G: if (!$stmt_active_status) {
	 die("Error in active status SQL: " . $conn->error);
	 
}
 goto YNHEY;
	 Kt0aW: if ($result_active_status && $result_active_status->num_rows > 0) {
	 $user_status = $result_active_status->fetch_assoc();
		 if ($user_status["is_active"] == 0) {
		 $_SESSION["error"] = "Your account is inactive. Please contact the administrator.";
		 header("Location: ./login.php");
		 die;
		 
	}
	 
}
	 else {
	 die("Error fetching user's active status.");
	 
}
 goto W7vqE;
 YNHEY: $stmt_active_status->bind_param("s", $loggedInUsername);
 goto ybYiM;
 TX9R2: $_SESSION["permissions"] = $permissions;
 goto xOSs0;
 k5ehN: $result_permissions = $stmt_permissions->get_result();
 goto o15tX;
 J_G_Q: $stmt_active_status = $conn->prepare($sql_active_status);
 goto Z6x3G;
 awNwl: $dbPassword = '';
 goto LBTgT;
	 i8whe: if (!isset($_SESSION["loggedin"]) || $_SESSION["loggedin"] !== true) {
	 header("Location: ./login.php");
	 die;
	 
}
 goto KaksN;
 pmQMG: $result_active_status = $stmt_active_status->get_result();
 goto Kt0aW;
	 o15tX: if (!$result_permissions) {
	 die("Error in permissions query execution: " . $stmt_permissions->error);
	 
}
 goto snIK6;
 CTQCK: $conn = new mysqli("localhost", "root", $dbPassword, "m3lmcompanyxvrp");
 goto QzzEy;
 x5ZDh: $is_delete = false;
 goto x03xT;
 x03xT: $is_arakabeh = false;
 goto bmksp;
 mN1lq:  goto awNwl;
	 KaksN: if (isset($_SESSION["success_message"])) {
	 echo "<div class="alert alert-success" role="alert">" . $_SESSION["success_message"] . "</div>";
	 unset($_SESSION["success_message"]);
	 
}
 goto JTff_;
 W7vqE: $sql_permissions = "SELECT * FROM user_permissions WHERE username = ?";
 goto JaDde;
 eyu6I: session_start();
 goto i8whe;
 oiAul:  goto mN1lq;
	 MZ0ok: while ($row = $result_permissions->fetch_assoc()) {
	 $permissions[] = $row;
	 
}
 goto TX9R2;
 snIK6: $permissions = array();
 goto MZ0ok;
 MVxrl: $sql_active_status = "SELECT is_active FROM users WHERE username = ?";
 goto J_G_Q;
 XexPG: $stmt_permissions->execute();
 goto k5ehN;
 yuySL: $loggedInUsername = $_SESSION["username"];
 goto oiAul;
 LBTgT:  goto CTQCK;
 jocMk:



© 2023 Quttera Ltd. All rights reserved.