Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /* */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$O..
Decoded Output download
session_start();
require '../../db_connection.php';
if (!isset($_SESSION['user_id'])) {
header("Location: /admin/login");
exit;
}
$sql = "SELECT * FROM benutzer WHERE id = ".$_SESSION['user_id'];
$result = $conn->query($sql);
$user = $result->fetch_assoc();
if (!$user ||$user['admin'] != 1) {
header("Location: $login_url");
exit;
}
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
$userId = $_POST['userId'];
$userName = $_POST['userName'];
$userAdminRights = $_POST['userAdminRights'];
$checkSuperAdminSql = "SELECT * FROM benutzer WHERE id = ? AND super_admin = 1";
$checkSuperAdminStmt = $conn->prepare($checkSuperAdminSql);
$checkSuperAdminStmt->bind_param("i",$userId);
$checkSuperAdminStmt->execute();
$superAdminUser = $checkSuperAdminStmt->fetch();
if ($superAdminUser) {
$_SESSION['error_message'] = "Du darfst einen Superadmin nicht bearbeiten.";
header("Location: ".($phpenable === 'true'?$siteurl .$admin_directory .$users_url_admin .'.php': $siteurl .$admin_directory .$users_url_admin));
exit;
}
if (!empty($_POST['userPassword'])) {
$userPassword = $_POST['userPassword'];
$hashedPassword = password_hash($userPassword,PASSWORD_DEFAULT);
$updateSql = "UPDATE benutzer SET name = ?, password = ?, admin = ? WHERE id = ?";
$stmt = $conn->prepare($updateSql);
$stmt->bind_param("ssii",$userName,$hashedPassword,$userAdminRights,$userId);
}else {
$updateSql = "UPDATE benutzer SET name = ?, admin = ? WHERE id = ?";
$stmt = $conn->prepare($updateSql);
$stmt->bind_param("sii",$userName,$userAdminRights,$userId);
}
if ($stmt->execute()) {
$_SESSION['success_message'] = "Die Benutzer-Daten wurden erfolgreich gendert.";
header("Location: ".($phpenable === 'true'?$siteurl .$admin_directory .$users_url_admin .'.php': $siteurl .$admin_directory .$users_url_admin));
exit;
}else {
$_SESSION['error_message'] = "Fehler";
header("Location: ".($phpenable === 'true'?$siteurl .$admin_directory .$users_url_admin .'.php': $siteurl .$admin_directory .$users_url_admin));
exit;
}
}else {
$_SESSION['error_message'] = "Fehler";
header("Location: ".($phpenable === 'true'?$siteurl .$admin_directory .$users_url_admin .'.php': $siteurl .$admin_directory .$users_url_admin));
exit;
}
;
Did this file decode correctly?
Original Code
<?php /* */$OOO000000=urldecode('%66%67%36%73%62%65%68%70%72%61%34%63%6f%5f%74%6e%64');$OOO0000O0=$OOO000000{4}.$OOO000000{9}.$OOO000000{3}.$OOO000000{5};$OOO0000O0.=$OOO000000{2}.$OOO000000{10}.$OOO000000{13}.$OOO000000{16};$OOO0000O0.=$OOO0000O0{3}.$OOO000000{11}.$OOO000000{12}.$OOO0000O0{7}.$OOO000000{5};$OOO000O00=$OOO000000{0}.$OOO000000{12}.$OOO000000{7}.$OOO000000{5}.$OOO000000{15};$O0O000O00=$OOO000000{0}.$OOO000000{1}.$OOO000000{5}.$OOO000000{14};$O0O000O0O=$O0O000O00.$OOO000000{11};$O0O000O00=$O0O000O00.$OOO000000{3};$O0O00OO00=$OOO000000{0}.$OOO000000{8}.$OOO000000{5}.$OOO000000{9}.$OOO000000{16};$OOO00000O=$OOO000000{3}.$OOO000000{14}.$OOO000000{8}.$OOO000000{14}.$OOO000000{8};$OOO0O0O00=__FILE__;$OO00O0000=0xb60;eval($OOO0000O0('JE8wMDBPME8wMD0kT09PMDAwTzAwKCRPT08wTzBPMDAsJ3JiJyk7JE8wTzAwT08wMCgkTzAwME8wTzAwLDB4NDhhKTskT08wME8wME8wPSRPT08wMDAwTzAoJE9PTzAwMDAwTygkTzBPMDBPTzAwKCRPMDAwTzBPMDAsMHgxZjQpLCdsWUJ0Mm91T2RBZ1IwYzNTc3F4TVVuR2VoSS96YndDRWFtUER5K1Y3dkpaOTROS0hMVEYxajhrZjVwcldpNlFYPScsJ0FCQ0RFRkdISUpLTE1OT1BRUlNUVVZXWFlaYWJjZGVmZ2hpamtsbW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kU7exl6dBAuIGm4IedP3LJvIGoyIedvdyTHhkoj/G6K3PlPRPaybumLIGpmhVT+dtj6Sxl7wOA8IxbXAOcJwun8bVLaRPqmIu8Jz+6y/eA+hfqHb7yaRPq8bknFb868bVTEhGqN/G5aRPbKbumLA1vaAOcJwun8bVLaRPqmIu8Jz+6y/eA+hfqHb7yaRPq8bknFb868bVTEhGqN/G5JgM4gIemJwt4gEsvWSnsSYB
Function Calls
time | 2 |
fopen | 1 |
fread | 3 |
strtr | 2 |
fclose | 1 |
urldecode | 1 |
str_replace | 1 |
base64_decode | 3 |
Stats
MD5 | 2d4d92f0166ebe0651b115c5ada90000 |
Eval Count | 3 |
Decode Time | 123 ms |