Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. <?php
  2. function file_get_contents_curl($url) {
  3. $ch = curl_init();
  4.  
  5. curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
  6. curl_setopt($ch, CURLOPT_HEADER, 0);
  7. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  8. curl_setopt($ch, CURLOPT_URL, $url);
  9. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
  10.  
  11. $data = curl_exec($ch);
  12. curl_close($ch);
  13.  
  14. return $data;
  15. }
  16.  
  17. $url = 'http://www.fakemailgenerator.com/#/';
  18. $email = array('dayrep.com','armyspy.com','cuvox.de','einrot.com','fleckens.hu','gustr.com','jourrapide.com','rhyta.com','superrito.com','teleworm.us');
  19. $random_api = 'https://randomuser.me/api/';
  20.  
  21. $json = json_decode(file_get_contents_curl($random_api.'?'.http_build_query(array(
  22. 'results' => '10',
  23. 'gender' => 'male',
  24. 'nat' => 'US'
  25. ))), true)['results'];
  26.  
  27. $result = '';
  28.  
  29. foreach ($json as $user) {
  30. $login = $user['login']['username'];
  31. $domain = $email[array_rand($email)];
  32. $result .= $login.'@'.$domain."\n";
  33. $result .= $url.$domain.'/'.$login."\n\n";
  34. }
  35.  
  36. echo "\n".$result."\n";
  37. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement