-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.php
More file actions
71 lines (61 loc) · 2.18 KB
/
run.php
File metadata and controls
71 lines (61 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
SORTING EMAIL
PENGGUNAAN "php file.php list.txt"
*/
error_reporting(0);
ini_set('memory_limit', '-1');
mkdir('country');
echo "=====================================================================\r\n";
echo " || SORT EMAIL ATAU EMAIL FILTER! \r\n";
echo " || (c) 2017 WAHYU ARIF P\r\n";
echo " ============= || \r\n";
echo " SORT FILTER EMAIL || Facebook : https://www.facebook.com/warifp\r\n";
echo " ============= || Instagram : https://www.instagram.com/warifp\r\n";
echo " || Github : https://github.com/idsystem404\r\n";
echo "=====================================================================\r\n\n";
echo "Penggunaan : php namafile.php namalist.txt\r\n";
echo "Hasil tersimpan di Folder /country/\r\n\n";
echo "Tekan [ENTER] Untuk memulai [EMAIL FILTER]!";
rtrim( fgets( STDIN));
echo "\n";
$f = file_get_contents($argv[1]);
$f = explode("\r\n", $f);
$f = array_unique($f);
$yahoo = 0;
$gmail = 0;
$hotmail = 0;
$aol = 0;
$other = 0;
foreach ($f as $key => $email) {
$explode = explode("@", $email);
if(! is_numeric($explode[0]) && filter_var($email, FILTER_VALIDATE_EMAIL) && !preg_match("/marketplace.amazon|example|test|auto|cdiscount.com/", $explode[0])){
if(preg_match("/gmail/", $explode[1])){
$x = fopen("country/email-gmail.txt", "a+");
fwrite($x, $email."\r\n");
fclose($x);
$gmail++;
}else if(preg_match("/yahoo|ymail|rocketmail/", $explode[1])){
$x = fopen("country/email-yahoo.txt", "a+");
fwrite($x, $email."\r\n");
fclose($x);
$yahoo++;
}else if(preg_match("/hotmail|live|outlook|msn/", $explode[1])){
$x = fopen("country/email-hotmail.txt", "a+");
fwrite($x, $email."\r\n");
fclose($x);
$hotmail++;
}else if(preg_match("/aol|AOL/", $explode[1])){
$x = fopen("country/email-aol.txt", "a+");
fwrite($x, $email."\r\n");
fclose($x);
$aol++;
}else{
$x = fopen("country/email-other.txt", "a+");
fwrite($x, $email."\r\n");
fclose($x);
$other++;
}
}
echo "Yahoo [".$yahoo."] | Hotmail [".$hotmail."] | Aol [".$aol."] | GMAIl [".$gmail."] | Other [".$other."]\t\n";
}