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


Show other level

goto Mj7Cy; sEVk1: function pay_users($pdo, $limit = 50) { log_message("Payment process started."); $top_users = get_top_users_by_valid_views($pdo, $limit); $cpc_rate = get_cpc_rate($pdo); if ($cpc_rate == 0) { log_message("CPC rate not found in settings."); echo "CPC rate not found in settings.\xa"; return; } log_message("CPC rate fetched: {$cpc_rate}"); foreach ($top_users as $user_id => $daily_visits) { $amount = $daily_visits * $cpc_rate / 100000; $sql = "UPDATE users SET balance = balance + :amount WHERE id = :user_id"; $stmt = $pdo->prepare($sql); $stmt->execute(array(":amount" => $amount, ":user_id" => $user_id)); log_message("User {$user_id} balance updated: {$amount} added to balance."); echo "User {$user_id} balance updated: {$amount} added to balance.
"; } log_message("Payment process completed."); } goto rmROu; TF6xt: $log_file = __DIR__ . "/runs.log"; goto lBkTE; ne_y5: function get_top_users_by_valid_views($pdo, $limit = 50) { $current_date = new DateTime(); $current_day_of_week = $current_date->format("w"); $last_monday = $current_date->modify("last Monday")->format("Y-m-d"); $next_sunday = (new DateTime($last_monday))->modify("+6 days")->format("Y-m-d"); $sql = "\xa        SELECT user, COUNT(DISTINCT ip_address) AS daily_visits\xa        FROM visitor_logs
        WHERE timestamp >= :last_monday AND timestamp < :next_sunday
        AND type = 1
        GROUP BY user, DATE(timestamp)
    "; $stmt = $pdo->prepare($sql); $stmt->execute(array(":last_monday" => $last_monday, ":next_sunday" => $next_sunday)); $result = $stmt->fetchAll(PDO::FETCH_ASSOC); $user_totals = array(); foreach ($result as $row) { if (!isset($user_totals[$row["user"]])) { $user_totals[$row["user"]] = 0; } $user_totals[$row["user"]] += $row["daily_visits"]; } arsort($user_totals); return array_slice($user_totals, 0, $limit, true); } goto eX9Nv; Sb0ve: $dbname = "linkmone_mixwall"; goto P0JuF; rmROu: pay_users($pdo); goto wypCo; P0JuF: $username = "linkmone_mixwall"; goto nDrfs; lBkTE: function log_message($message) { global $log_file; $timestamp = date("Y-m-d H:i:s"); file_put_contents($log_file, "[{$timestamp}] {$message}" . PHP_EOL, FILE_APPEND); } goto lnXGc; eX9Nv: function get_cpc_rate($pdo) { $sql = "SELECT value FROM settings WHERE name = 'cpc'"; $stmt = $pdo->query($sql); $row = $stmt->fetch(PDO::FETCH_ASSOC); if ($row) { return (double) $row["value"]; } return 0; } goto sEVk1; nDrfs: $password = "}xtqW4cfV2=d"; goto TF6xt; lnXGc: try { $pdo = new PDO("mysql:host={$host};dbname={$dbname}", $username, $password); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); log_message("Database connection established successfully."); } catch (PDOException $e) { log_message("Error: Could not connect to the database. " . $e->getMessage()); die("Could not connect to the database: " . $e->getMessage()); } goto ne_y5; Mj7Cy: $host = "localhost"; goto Sb0ve; wypCo:

goto Mj7Cy; sEVk1: function pay_users($pdo, $limit = 50) { log_message("Payment process started."); $top_users = get_top_users_by_valid_views($pdo, $limit); $cpc_rate = get_cpc_rate($pdo); if ($cpc_rate == 0) { log_message("CPC rate not found in settings."); echo "CPC rate not found in settings.\xa"; return; } log_message("CPC rate fetched: {$cpc_rate}"); foreach ($top_users as $user_id => $daily_visits) { $amount = $daily_visits * $cpc_rate / 100000; $sql = "UPDATE users SET balance = balance + :amount WHERE id = :user_id"; $stmt = $pdo->prepare($sql); $stmt->execute(array(":amount" => $amount, ":user_id" => $user_id)); log_message("User {$user_id} balance updated: {$amount} added to balance."); echo "User {$user_id} balance updated: {$amount} added to balance.
"; } log_message("Payment process completed."); } goto rmROu; TF6xt: $log_file = __DIR__ . "/runs.log"; goto lBkTE; ne_y5: function get_top_users_by_valid_views($pdo, $limit = 50) { $current_date = new DateTime(); $current_day_of_week = $current_date->format("w"); $last_monday = $current_date->modify("last Monday")->format("Y-m-d"); $next_sunday = (new DateTime($last_monday))->modify("+6 days")->format("Y-m-d"); $sql = "\xa        SELECT user, COUNT(DISTINCT ip_address) AS daily_visits\xa        FROM visitor_logs
        WHERE timestamp >= :last_monday AND timestamp < :next_sunday
        AND type = 1
        GROUP BY user, DATE(timestamp)
    "; $stmt = $pdo->prepare($sql); $stmt->execute(array(":last_monday" => $last_monday, ":next_sunday" => $next_sunday)); $result = $stmt->fetchAll(PDO::FETCH_ASSOC); $user_totals = array(); foreach ($result as $row) { if (!isset($user_totals[$row["user"]])) { $user_totals[$row["user"]] = 0; } $user_totals[$row["user"]] += $row["daily_visits"]; } arsort($user_totals); return array_slice($user_totals, 0, $limit, true); } goto eX9Nv; Sb0ve:  goto P0JuF; rmROu: pay_users($pdo); goto wypCo; P0JuF:  goto nDrfs; lBkTE: function log_message($message) { global $log_file; $timestamp = date("Y-m-d H:i:s"); file_put_contents($log_file, "[{$timestamp}] {$message}" . PHP_EOL, FILE_APPEND); } goto lnXGc; eX9Nv: function get_cpc_rate($pdo) { $sql = "SELECT value FROM settings WHERE name = 'cpc'"; $stmt = $pdo->query($sql); $row = $stmt->fetch(PDO::FETCH_ASSOC); if ($row) { return (double) $row["value"]; } return 0; } goto sEVk1; nDrfs: $password = "}xtqW4cfV2=d"; goto TF6xt; lnXGc: try { $pdo = new PDO("mysql:host={"localhost"};dbname={"linkmone_mixwall"}", "linkmone_mixwall", $password); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); log_message("Database connection established successfully."); } catch (PDOException $e) { log_message("Error: Could not connect to the database. " . $e->getMessage()); die("Could not connect to the database: " . $e->getMessage()); } goto ne_y5; Mj7Cy:  goto Sb0ve; wypCo:



© 2023 Quttera Ltd. All rights reserved.