Mac_Dhuhri

Email Extractor/Parse ( PHP CLI )

Aug 17th, 2019
920
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. error_reporting(0);
  3. ## log save ##
  4. // coded by Html404 Exploit-Kita.ORG
  5. function sv($site,$ext){
  6. $fp = fopen("$ext.txt", 'a');
  7. fwrite($fp, "$site\n");
  8. fclose($fp);
  9. }
  10. ## color ##
  11. function wr($cl,$st){
  12.     $cc .= "\033[" . $cl . "m";
  13.     $cc .=  $st . "\033[0m";
  14.     return $cc;
  15. }
  16. echo wr("0;31"," ___            _                ,
  17. / (_)          | |      o       /|   / o
  18. \__         _  | |  __    _|_    |__/    _|_  __,
  19. /    /\/  |/ \_|/  /  \_|  |-----| \   |  |  /  |
  20. \___/ /\_/|__/ |__/\__/ |_/|_/   |  \_/|_/|_/\_/|_/
  21.         /|
  22.         \| Sharing [IT] Exploit\n\n");
  23.  
  24. ;
  25. //sleep(2);
  26. print wr("0;33","[+] Email Extractor(Parse Email)\n");
  27. //sleep(2);
  28. print wr("0;33","[+] Opening Tools-Kita...\n");
  29. //sleep(1);
  30. print wr("0;33","[+] Please Wait ...\n\n");
  31. if($argv[1]){
  32. sleep(2);
  33. $email = file_get_contents($argv[1]);
  34. $preg = '/[\w.%+-]+@(?:[a-z\d-]+\.)+[a-z]{2,4}/iu';
  35. echo $cover;
  36. if (!preg_match_all($preg, $email, $emails)) {
  37.     echo 'No emails found :(';
  38. } else {
  39.     $exmail = array_flip(array_flip($emails[0]));
  40.     $hitung         = sizeof($exmail);
  41.     $pisah  = implode("\n", $exmail);
  42.     echo "Total E-mail ($hitung)\n\n";
  43.     echo "$pisah";
  44.     sv($pisah,"email");
  45. }
  46. }
  47. ?>
RAW Paste Data