-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathEmailfilfer.php
44 lines (39 loc) · 1.29 KB
/
Emailfilfer.php
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
<?php
error_reporting(0);
$banner = "\e[36;1m
__ _ ___ _
/ _\ __ _ __| | / __\___ __| | ___
\ \ / _` |/ _` |/ / / _ \ / _` |/ _ \
_\ \ (_| | (_| / /__| (_) | (_| | __/
\__/\__,_|\__,_\____/\___/ \__,_|\___|
[#] email filter [#]
Coded by : VanGans - SadCode Official\n\n\e[0;1m";
sleep(2);
echo $banner;
sleep(2);
echo "Nama File Mailist : ";
$mailist = trim(fgets(STDIN));
sleep(2);
echo "Filter (ex : yahoo) : ";
$filter = trim(fgets(STDIN));
sleep(1);
echo "sedang memfilter email.. silahkan tunggu ^_^\n";
sleep(4);
$list = file_get_contents($mailist);
preg_match_all("/(.+)(@$filter)(.*+)*/ix", $list, $hasil);
foreach ($hasil[0] as $result) {
$jumlah = count($hasil[0]);
if ($jumlah <= 0) {
echo "email $filter tidak ditemukan\n";
}else{
$file = "filter_result.txt";
//meggabungkan hasil filter..
touch($file);
$o = fopen($file, 'a');
fwrite($o, $result."\n");
fclose($o);
}
}
// A34ECAAF
echo $jumlah." email $filter ditemukan..\nCek hasilnya di $file\n";
?>