Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- ** Email filter By Request **
- ** Gratis Ga di Pungut Biaya **
- */
- system(clear);
- date_default_timezone_set('Asia/Jakarta');
- $red = "\033[1;31m";
- $yell = "\033[1;33m";
- $grn = "\033[1;32m";
- $blue = "\033[1;32m";
- $prpl = "\033[1;35m";
- $orng = "\033[0;33m";
- $cyan = "\033[1;36m";
- $whit = "\033[37m";
- $grn = "\e[32m";
- $wht = "\033[37m";
- print "
- $grn=====================================$wht
- $grn .---. $wht
- $grn / \ $wht
- $grn \.@-@./ $wht
- $orng /`\_/`\ $wht
- $orng // RHD ,\ $wht
- $grn | \ )|_ $wht
- $grn /`\_`> <_/ \ $wht
- $grn \__/'---'\__/ $wht
- $grn=======[Filter Mail By Request]=======$wht
- $orng## Contact @RH Dyar AP ##$wht\n";
- error_reporting(0);
- $all = 0;
- $itung = 0;
- echo "\n$grn Maillist : $wht" .$cyan;
- $input = trim(fgets(STDIN, 1024));
- echo "\n$grn Output (result.txt) : $wht" .$cyan;
- $output = trim(fgets(STDIN, 1024));
- echo "\n$grn Target Filter (yahoo/hotmail/etc.): $wht" .$cyan;
- $search = trim(fgets(STDIN, 1024));
- if (check($input) == true && check($output) == true && check($search) == true )
- if (($p = fopen($input, 'r')) != null)
- {
- print "\n $cyan Starting...$wht \n";
- sleep(5);
- while (!feof($p))
- {
- $all++;
- $email = fgets($p);
- $email = str_replace(array("\n", "\r"), '', $email);
- if (strstr($email, $search))
- if (($fp = fopen($output, 'a+')) != null)
- {
- $itung++;
- print $red . "[ $itung ] $grn ". $email ."$yell found! $wht \n";
- fprintf($fp, $email ."\n");
- fclose($fp);
- }
- }
- echo "=====================================\n";
- print "$cyan Finished!$wht \n\n";
- print " Total Emaillist [". $all ."]$grn processed!$wht \n";
- print "$grn Result $search $wht [ $itung ]$orng found!$wht \n";
- echo "=====================================\n";
- fclose($p);
- }
- function check ($data)
- {
- if ($data)
- if (isset($data))
- if (!empty($data))
- if (strlen($data) > 0)
- if ($data != "")
- return true;
- return false;
- }
- /*
- ** EOF.
- */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment