Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mkdir = "hasil"; // cOded by shutdown57
- $o = getopt("l:");
- if (!file_exists("$mkdir/coded.shutdown57")) {
- $status_dir = "NOT READY ";
- @mkdir("$mkdir");
- @touch("$mkdir/coded.shutdown57");
- @file_put_contents("$mkdir/coded.shutdown57", "mail filter code by shutdown57");
- sleep(3);
- exit();
- } else {
- $status_dir = "READY";
- }
- printf("
- _ ____ _ _
- | | __ ___ __/ ___|___ __| | ___ (_)_ __
- _ | |/ _` \ \ / / | / _ \ / _` |/ _ \ | | '_ \
- | |_| | (_| |\ V /| |__| (_) | (_| | __/_ | | |_) |
- \___/ \__,_| \_/ \____\___/ \__,_|\___(_)/ | .__/
- |__/|_|
- +---- EMAIL FILTER CLI - coded by shutdown57 --------------+
- | Filter : Yahoo,Yandex,Gmail,Outlook,Msn,Hotmail,Apple,Aol
- | Status : " . $status_dir . " | usage : php filter.php -l listmu.txt
- +----------------------------------------------------------+\n");
- ;
- echo "Please wait ...";
- sleep(3);
- echo "\n";
- function simpenkontl($tt, $oo)
- {
- $fp = fopen($GLOBALS['mkdir'] . "/" . $tt . "-" . date('dmY') . ".txt", 'a');
- fwrite($fp, $oo . "\n");
- fclose($fp);
- }
- function filter($email, $regex)
- {
- return preg_match("/([aA-zZ]*.)(\@" . $regex . ")\.([aA-zZ]+)/", $email);
- }
- if (isset($o['l'])) {
- $m = "\033[1;31m";
- $k = "\033[1;33m";
- $h = "\033[1;32m";
- $b = "\033[1;34m";
- $c = "\033[0m";
- $m2 = "\033[0;31m";
- $k2 = "\033[0;33m";
- $h2 = "\033[0;32m";
- $b2 = "\033[0;34m";
- $lmail = array(
- "yahoo",
- "yandex",
- "gmail",
- "hotmail",
- "aol",
- "outlook",
- "msn",
- "apple"
- );
- $mail = explode("\n", file_get_contents($o['l']));
- foreach ($mail as $rmail) {
- if (filter($rmail, $lmail[0])) {
- echo "$b Yahoo => " . $rmail . "\n";
- simpenkontl($lmail[0], $rmail);
- } elseif (filter($rmail, $lmail[1])) {
- echo "$k Yandex => " . $rmail . "\n";
- simpenkontl($lmail[1], $rmail);
- } elseif (filter($rmail, $lmail[2])) {
- echo "$m Gmail => " . $rmail . "\n";
- simpenkontl($lmail[2], $rmail);
- } elseif (filter($rmail, $lmail[3])) {
- echo "$m2 Hotmail => " . $rmail . "\n";
- simpenkontl($lmail[3], $rmail);
- } elseif (filter($rmail, $lmail[4])) {
- echo "$k2 Aol => " . $rmail . "\n";
- simpenkontl($lmail[4], $rmail);
- } elseif (filter($rmail, $lmail[5])) {
- echo "$b2 Outlook => " . $rmail . "\n";
- simpenkontl($lmail[5], $rmail);
- } elseif (filter($rmail, $lmail[6])) {
- echo "$h MSN =>" . $rmail . "\n";
- simpenkontl($lmail[6], $rmail);
- } elseif (filter($rmail, $lmail[7])) {
- echo "$h2 Apple => " . $rmail . "\n";
- simpenkontl($lmail[7], $rmail);
- } else {
- echo "$c Other => " . $rmail . "\n";
- simpenkontl("other", $rmail);
- }
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement