Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function file_get_contents_curl($url) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
- curl_setopt($ch, CURLOPT_HEADER, 0);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
- $data = curl_exec($ch);
- curl_close($ch);
- return $data;
- }
- $url = 'http://www.fakemailgenerator.com/#/';
- $email = array('dayrep.com','armyspy.com','cuvox.de','einrot.com','fleckens.hu','gustr.com','jourrapide.com','rhyta.com','superrito.com','teleworm.us');
- $random_api = 'https://randomuser.me/api/';
- $json = json_decode(file_get_contents_curl($random_api.'?'.http_build_query(array(
- 'results' => '10',
- 'gender' => 'male',
- 'nat' => 'US'
- ))), true)['results'];
- $result = '';
- foreach ($json as $user) {
- $login = $user['login']['username'];
- $domain = $email[array_rand($email)];
- $result .= $login.'@'.$domain."\n";
- $result .= $url.$domain.'/'.$login."\n\n";
- }
- echo "\n".$result."\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement