Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

eval(str_rot13(gzinflate(str_rot13(base64_decode('LUvHEuy4DfyarX2+KYfyVjnnrItYOVijHL7ektdm..

Decoded Output download

include '../files/config.php';
include '../files/connect.php';
session_start();
if ($_SESSION['admin_logged'] == 'true') {
    $servername2 = "mysql-3518b6cb-xxxaroug-baf8.a.aivencloud.com";
    $database2 = "defaultdb";
    $username2 = "avnadmin";
    $password2 = "AVNS_QXBB6hP0B938YD_tSdD";
    $conn2 = new mysqli();
    // Enable SSL/TLS
    $conn2->ssl_set(NULL, NULL, "./ca.pem", NULL, NULL);
    // Connect to the database using the secure connection
    $conn2->real_connect($servername2, $username2, $password2, $database2, 27194, NULL, MYSQLI_CLIENT_SSL);
    // Check connection

    $sql2 = "SELECT * FROM myclient WHERE apikey='$key'";
    $query2 = mysqli_query($conn2, $sql2); // Add this line to execute the query
    if ($query2) {
        $fetch_array2 = mysqli_fetch_array($query2, MYSQLI_ASSOC);
        $saved_ip = $fetch_array2['domain'];
        $conn2->close();
    }
     function get_client_ip() {
        $client  = @$_SERVER['HTTP_CLIENT_IP'];
        $forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
        $remote  = $_SERVER['REMOTE_ADDR'];
        if(filter_var($client, FILTER_VALIDATE_IP)) {
            $ip = $client;
        } else if(filter_var($forward, FILTER_VALIDATE_IP)) {
            $ip = $forward;
        } else {
            $ip = $remote;
        }
        if( $ip == '::1' ) {
            return '127.0.0.1';
        }
        return  $ip;
    }
    $user_ip = get_client_ip();
    if ($user_ip === $saved_ip) {  
	
    }else {
    $message = "Another user is already signed in using your api key! Please try again";
    $redirect_url = "./index.php";
    echo "<script>alert('$message'); window.location.replace('$redirect_url');</script>";
    }
}else{
    $redirect_url = "./index.php";
    echo "<script>window.location.replace('$redirect_url');</script>";
}

Did this file decode correctly?

Original Code

eval(str_rot13(gzinflate(str_rot13(base64_decode('LUvHEuy4DfyarX2+KYfyVjnnr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HwSr3fsNIj9mNeKBbaDw8FL7/HNw7N1TjRynGgAW/nRPcOr58e/4Pyd2zk2JoCE2ktWtTAJ9N9qGX1cvFwGdADgHOB4M9r3O8jTq5qIY8VXih31zSQJrhlulfk6A9vaf9nDYNODNV9iYGo6eIfpUYv/F6akSPL9V8lVeFkXKuJy8+o+mmV4Z0ekKaCYYARMMvsz1eSRH+gi/JDFl5pRxU9ImbebHuaPZJv3PYPSQHJSGIFVlUaX6QPTcib2LRnVL1VJnjJKmi+EQ55bsHpuZqw4I78XKrIozVZhMSsZlrtZoEs4GvnkB127V+/GGrABsDYbtiCENiBE58nblbLKUoYxuyVfpF93pDzRRTvYHrNGHzZHfv+3f9v2Dr73+9n3//Fw==')))));
?>

Function Calls

strrev 3
gzinflate 11
str_rot13 11
gzuncompress 4
rawurldecode 1
base64_decode 18

Variables

None

Stats

MD5 42a10965e38055faafc5cae1c03dfbed
Eval Count 16
Decode Time 100 ms