Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #Aniki
- /*Security Cyber Art */
- function save($file,$emel) {
- $buka = fopen("result/filter/".$file,"a"); //edit output disini euy
- fwrite($buka,$emel);
- fclose($buka);
- }
- # code nya ribet :'v
- #mungkin anda recode lagi biar rapi
- $gm[0] = '';
- $hm[0] = '';
- $yh[0] = '';
- $ao[0] = '';
- $ma[0] = '';
- $out[0] = '';
- $xtr[0] = '';
- $oth[0] = '';
- $x = 0;
- echo "===== Galautoolz - Email Filter ===== \n filter by Hotmail | Yahoo | Aol | Gmail | other \n";
- echo "NAME LIST : "; $list = trim(fgets(STDIN));
- #Grab file mailist
- $mailist = file($list);
- # START FILTER
- echo "\n ===================================== \n";
- foreach($mailist as $email){
- if(preg_match("/@gmail\./i",$email)){
- $gm[$x] = $email;
- echo " [ Gmail ] $email ";
- save('r_gmail.txt',$email);
- }
- else if(preg_match("/@hotmail\./i",$email)){
- $hm[$x] = $email;
- echo "[ Hotmail ] $email";
- save('r_hotmail.txt',$email);
- }
- else if(preg_match("/@yahoo\./i",$email)){
- $yh[$x] = $email;
- echo "[ Yahoo ] $email";
- save('r_yahoo.txt',$email);
- }
- else if(preg_match("/@aol\./i",$email)){
- $ao[$x] = $email;
- echo "[ Aol ] $email";
- save('r_aol.txt',$email);
- }
- else if(preg_match("/@mail\./i",$email)){
- $ma[$x] = $email;
- echo "[ Mail ] $email ";
- save('r_mail.txt',$email);
- }
- else if(preg_match("/@outlook\./i",$email)){
- $out[$x] = $email;
- echo "[ Outlook ] $email ";
- save('r_outlook.txt',$email);
- }
- else if(preg_match("/@xtra\.co\.nz/i",$email)){
- $xtr[$x] = $email;
- echo "[ Xtra ] $email";
- save('r_xtra.txt',$email);
- }
- else{
- $oth[$x] = $email;
- echo " [ Other ] $email";
- save('r_other.txt',$email);
- }
- $x++;
- }
- #TAMPILKAN DETAIL
- echo "\n==========================";
- echo "\nDONE check in result/filter/* ";
- echo "\n Gmail : ".count($gm)."\n Hotmail : ".count($hm)."\n Yahooo : ".count($yh)."\n Aol : ".count($ao)."\n Mail : ".count($ma)."\n Outlook : ".count($out)."\n Xtra : ".count($xtr)."\n Other : ".count($oth)."\n \n";
- //copyright dari anda suatu kebanggan bagiku
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement