RHDyarAP

Untitled

Jan 1st, 2019
1,135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.42 KB | None | 0 0
  1. <?php
  2.  
  3.   /*
  4.   ** Email filter By Request **
  5.   ** Gratis Ga di Pungut Biaya **
  6.   */
  7.   system(clear);
  8. date_default_timezone_set('Asia/Jakarta');
  9.  
  10.         $red  = "\033[1;31m";
  11.         $yell = "\033[1;33m";
  12.         $grn  = "\033[1;32m";
  13.         $blue = "\033[1;32m";
  14.         $prpl = "\033[1;35m";
  15.         $orng = "\033[0;33m";
  16.         $cyan = "\033[1;36m";
  17.         $whit = "\033[37m";
  18.         $grn  = "\e[32m";
  19.         $wht  = "\033[37m";
  20.  
  21. print "
  22. $grn=====================================$wht
  23.       $grn       .---.  $wht
  24.       $grn      /     \ $wht
  25.       $grn      \.@-@./ $wht
  26.       $orng      /`\_/`\  $wht
  27.       $orng     // RHD ,\  $wht
  28.       $grn    | \     )|_  $wht
  29.       $grn   /`\_`>  <_/ \  $wht
  30.       $grn   \__/'---'\__/   $wht
  31. $grn=======[Filter Mail By Request]=======$wht
  32. $orng##      Contact @RH Dyar AP        ##$wht\n";
  33.   error_reporting(0);
  34.  
  35.   $all = 0;
  36.   $itung = 0;
  37.   echo "\n$grn Maillist                          : $wht" .$cyan;
  38.   $input  = trim(fgets(STDIN, 1024));
  39.   echo "\n$grn Output (result.txt)               : $wht" .$cyan;
  40.   $output = trim(fgets(STDIN, 1024));
  41.   echo "\n$grn Target Filter (yahoo/hotmail/etc.): $wht" .$cyan;
  42.   $search = trim(fgets(STDIN, 1024));
  43.  
  44.   if (check($input) == true && check($output) == true && check($search) == true )
  45.     if (($p = fopen($input, 'r')) != null)
  46.     {
  47.       print "\n $cyan Starting...$wht \n";
  48.       sleep(5);
  49.  
  50.       while (!feof($p))
  51.       {
  52.         $all++;
  53.         $email = fgets($p);
  54.         $email = str_replace(array("\n", "\r"), '', $email);  
  55.        
  56.         if (strstr($email, $search))        
  57.           if (($fp = fopen($output, 'a+')) != null)
  58.           {
  59.             $itung++;
  60.             print $red . "[ $itung ] $grn ". $email ."$yell found! $wht \n";
  61.             fprintf($fp, $email ."\n");
  62.             fclose($fp);
  63.           }
  64.       }
  65.      
  66.       echo "=====================================\n";
  67.       print "$cyan Finished!$wht \n\n";
  68.       print " Total Emaillist [". $all ."]$grn processed!$wht \n";
  69.       print "$grn Result $search $wht [ $itung ]$orng found!$wht \n";
  70.       echo "=====================================\n";
  71.       fclose($p);
  72.     }
  73.  
  74.   function check ($data)
  75.   {
  76.     if ($data)
  77.       if (isset($data))
  78.         if (!empty($data))
  79.           if (strlen($data) > 0)
  80.             if ($data != "")
  81.               return true;
  82.    
  83.     return false;
  84.   }
  85.  
  86.   /*
  87.   ** EOF.
  88.   */
  89.  
  90. ?>
Advertisement
Add Comment
Please, Sign In to add comment