Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- error_reporting(0);
- /*
- Email Filter Beta V.1
- Code By ZakirDotID
- CopyRight x20 Family Coder
- */
- trait Email {
- public static function _sv($name,$data){
- $fp = @fopen(date("d").$name, "a+");
- fwrite($fp, $data);
- fclose($fp);
- }
- public static function _r($email,$regex){
- return preg_match("/([aA-zZ]*.)(\@".$regex.")\.([aA-zZ]+)/",$email);
- }
- public static function _f($email,$x){
- switch ($x) {
- case '1':
- return 'gmail';
- break;
- case '2':
- return 'hotmail';
- break;
- case '3':
- return 'yahoo';
- break;
- case '4':
- return 'other';
- break;
- case '5':
- return 'aol';
- break;
- default:
- return 'other';
- break;
- }
- }
- public static function _s($email){
- if (self::_r($email,'gmail')) {
- return self::_f($email,1);
- } elseif (self::_r($email,'hotmail')){
- return self::_f($email,2);
- } elseif (self::_r($email,'yahoo')){
- return self::_f($email,3);
- } elseif (self::_r($email,'aol')){
- return self::_f($email,5);
- } else {
- return self::_f($email,4);
- }
- }
- public static function run(){
- echo self::_h();
- echo "\n\t Input File : ";
- $files = trim(fgets(STDIN));
- $file = file_get_contents($files) or exit("\n Fata Error : FIles Not Exits!\n");
- $emails = explode("\r\n", $file);
- echo "\n \====================================/\n Total ( ".count($emails). " ) \n \====================================/\n";
- foreach ($emails as $email) {
- if(self::_s($email) == 'gmail'){
- echo " [+] $email ==> gmail [-]\n";
- self::_sv('gmail-data.log',$email."\r\n");
- $gm = $gm + 1;
- } elseif(self::_s($email) == 'hotmail'){
- echo " [+] $email ==> hotmail [-]\n";
- self::_sv('hotmail-data.log',$email."\r\n");
- $hm = $hm + 1;
- } elseif(self::_s($email) == 'yahoo'){
- echo " [+] $email ==> yahoo [-]\n";
- self::_sv('yahoo-data.log',$email."\r\n");
- $yh = $yh + 1;
- } elseif(self::_s($email) == 'aol'){
- echo " [+] $email ==> aol [-]\n";
- self::_sv('aol-data.log',$email."\r\n");
- $al = $al + 1;
- } else {
- echo " [+] $email ==> other [-]\n";
- self::_sv('other-data.log',$email."\r\n");
- $ot = $ot + 1;
- }
- }
- echo "\n \====================================/\n";
- $gm = (!empty($gm)) ? $gm : "0" ;
- $hm = (!empty($hm)) ? $hm : "0" ;
- $yh = (!empty($yh)) ? $yh : "0" ;
- $al = (!empty($al)) ? $al : "0" ;
- $ot = (!empty($ot)) ? $ot : "0" ;
- echo " [+] Kalkulasi Data [-] \n [+] Gmail : ( $gm ) \n [+] Hotmail : ( $hm ) \n [+] Yahoo ( $yh ) \n [+] Aol : ( $al ) \n [+] Other : ( $ot )\n";
- echo " [+] Thanks Using My Tools! Developed By x20 Family [-]\n";
- }
- public static function _h(){
- $h[] = "\t Email Filter V.1";
- $h[] = "\t Code By ZakirDotID";
- $h[] = "\t Don`t Change CopyRight!";
- $head = implode("\n", $h);
- return $head;
- }
- }
- Email::run();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement