poys

filtermail

Jan 2nd, 2019
278
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.74 KB | None | 0 0
  1. <?php
  2. class IDsec {
  3.  
  4. function emailFilter($email, $list)
  5. {
  6. // Gmail
  7. if (preg_match('/@gmail.co.uk/', $email)) {
  8. echo "\e[32;1m[Gmail.UK] \e[00;1m=> $list\n";
  9. $create = "Gmail[UK]_List.txt";
  10. $buat = fopen($create, 'a+');
  11. fwrite($buat, $list."\n");
  12. fclose($buat);
  13. }elseif (preg_match('/@gmail.ca/', $email)) {
  14. echo "\e[32;1m[Gmail.CA] \e[00;1m=> $list\n";
  15. $create = "Gmail[CA]_List.txt";
  16. $buat = fopen($create, 'a+');
  17. fwrite($buat, $list."\n");
  18. fclose($buat);
  19. }elseif (preg_match('/@gmail.de/', $email)) {
  20. echo "\e[32;1m[Gmail.DE] \e[00;1m=> $list\n";
  21. $create = "Gmail[DE]_List.txt";
  22. $buat = fopen($create, 'a+');
  23. fwrite($buat, $list."\n");
  24. fclose($buat);
  25. }elseif (preg_match('/@gmail.ru/', $email)) {
  26. echo "\e[32;1m[Gmail.RU] \e[00;1m=> $list\n";
  27. $create = "Gmail[RU]_List.txt";
  28. $buat = fopen($create, 'a+');
  29. fwrite($buat, $list."\n");
  30. fclose($buat);
  31. }elseif (preg_match('/@gmail.fr/', $email)) {
  32. echo "\e[32;1m[Gmail.FR] \e[00;1m=> $list\n";
  33. $create = "Gmail[FR]_List.txt";
  34. $buat = fopen($create, 'a+');
  35. fwrite($buat, $list."\n");
  36. fclose($buat);
  37. }elseif (preg_match('/@gmail.com/', $email)) {
  38. echo "\e[32;1m[Gmail.COM] \e[00;1m=> $list\n";
  39. $create = "Gmail[COM]_List.txt";
  40. $buat = fopen($create, 'a+');
  41. fwrite($buat, $list."\n");
  42. fclose($buat);
  43. }elseif (preg_match('/@gmail.co.id/', $email)) {
  44. echo "\e[32;1m[Gmail.ID] \e[00;1m=> $list\n";
  45. $create = "Gmail[ID]_List.txt";
  46. $buat = fopen($create, 'a+');
  47. fwrite($buat, $list."\n");
  48. fclose($buat);
  49. }elseif (preg_match('/@gmail.com.au/', $email)) {
  50. echo "\e[32;1m[Gmail.AU] \e[00;1m=> $list\n";
  51. $create = "Gmail[AU]_List.txt";
  52. $buat = fopen($create, 'a+');
  53. fwrite($buat, $list."\n");
  54. fclose($buat);
  55. }elseif (preg_match('/@gmail/', $email)) {
  56. echo "\e[32;1m[Gmail] \e[00;1m=> $list\n";
  57. $create = "Gmail[MIX]_List.txt";
  58. $buat = fopen($create, 'a+');
  59. fwrite($buat, $list."\n");
  60. fclose($buat);
  61.  
  62. // Yahoo
  63. }elseif (preg_match('/@yahoo.ru/', $email)) {
  64. echo "\e[32;1m[Yahoo.RU] \e[00;1m=> $list\n";
  65. $create = "Yahoo[RU]_List.txt";
  66. $buat = fopen($create, 'a+');
  67. fwrite($buat, $list."\n");
  68. fclose($buat);
  69. }elseif (preg_match('/@yahoo.co.uk/', $email)) {
  70. echo "\e[32;1m[Yahoo.UK] \e[00;1m=> $list\n";
  71. $create = "Yahoo[UK]_List.txt";
  72. $buat = fopen($create, 'a+');
  73. fwrite($buat, $list."\n");
  74. fclose($buat);
  75. }elseif (preg_match('/@yahoo.de/', $email)) {
  76. echo "\e[32;1m[Yahoo.DE] \e[00;1m=> $list\n";
  77. $create = "Yahoo[DE]_List.txt";
  78. $buat = fopen($create, 'a+');
  79. fwrite($buat, $list."\n");
  80. fclose($buat);
  81. }elseif (preg_match('/@yahoo.com/', $email)) {
  82. echo "\e[32;1m[Yahoo.COM] \e[00;1m=> $list\n";
  83. $create = "Yahoo[COM]_List.txt";
  84. $buat = fopen($create, 'a+');
  85. fwrite($buat, $list."\n");
  86. fclose($buat);
  87. }elseif (preg_match('/@yahoo.fr/', $email)) {
  88. echo "\e[32;1m[Yahoo.FR] \e[00;1m=> $list\n";
  89. $create = "Yahoo[FR]_List.txt";
  90. $buat = fopen($create, 'a+');
  91. fwrite($buat, $list."\n");
  92. fclose($buat);
  93. }elseif (preg_match('/@yahoo.co.jp/', $email)) {
  94. echo "\e[32;1m[Yahoo.JP] \e[00;1m=> $list\n";
  95. $create = "Yahoo[JP]_List.txt";
  96. $buat = fopen($create, 'a+');
  97. fwrite($buat, $list."\n");
  98. fclose($buat);
  99. }elseif (preg_match('/@yahoo.com.br/', $email)) {
  100. echo "\e[32;1m[Yahoo.BR] \e[00;1m=> $list\n";
  101. $create = "Yahoo[BR]_List.txt";
  102. $buat = fopen($create, 'a+');
  103. fwrite($buat, $list."\n");
  104. fclose($buat);
  105. }elseif (preg_match('/@yahoo.co.in/', $email)) {
  106. echo "\e[32;1m[Yahoo.CO.IN] \e[00;1m=> $list\n";
  107. $create = "Yahoo[CO.IN]_List.txt";
  108. $buat = fopen($create, 'a+');
  109. fwrite($buat, $list."\n");
  110. fclose($buat);
  111. }elseif (preg_match('/@yahoo.es/', $email)) {
  112. echo "\e[32;1m[Yahoo.ES] \e[00;1m=> $list\n";
  113. $create = "Yahoo[ES]_List.txt";
  114. $buat = fopen($create, 'a+');
  115. fwrite($buat, $list."\n");
  116. fclose($buat);
  117. }elseif (preg_match('/@yahoo.it/', $email)) {
  118. echo "\e[32;1m[Yahoo.IT] \e[00;1m=> $list\n";
  119. $create = "Yahoo[IT]_List.txt";
  120. $buat = fopen($create, 'a+');
  121. fwrite($buat, $list."\n");
  122. fclose($buat);
  123. }elseif (preg_match('/@yahoo.in/', $email)) {
  124. echo "\e[32;1m[Yahoo.IN] \e[00;1m=> $list\n";
  125. $create = "Yahoo[IN]_List.txt";
  126. $buat = fopen($create, 'a+');
  127. fwrite($buat, $list."\n");
  128. fclose($buat);
  129. }elseif (preg_match('/@yahoo.ca/', $email)) {
  130. echo "\e[32;1m[Yahoo.CA] \e[00;1m=> $list\n";
  131. $create = "Yahoo[CA]_List.txt";
  132. $buat = fopen($create, 'a+');
  133. fwrite($buat, $list."\n");
  134. fclose($buat);
  135. }elseif (preg_match('/@yahoo.com.au/', $email)) {
  136. echo "\e[32;1m[Yahoo.AU] \e[00;1m=> $list\n";
  137. $create = "Yahoo[AU]_List.txt";
  138. $buat = fopen($create, 'a+');
  139. fwrite($buat, $list."\n");
  140. fclose($buat);
  141. }elseif (preg_match('/@yahoo.com.ar/', $email)) {
  142. echo "\e[32;1m[Yahoo.AR] \e[00;1m=> $list\n";
  143. $create = "Yahoo[AR]_List.txt";
  144. $buat = fopen($create, 'a+');
  145. fwrite($buat, $list."\n");
  146. fclose($buat);
  147. }elseif (preg_match('/@yahoo.com.mx/', $email)) {
  148. echo "\e[32;1m[Yahoo.MX] \e[00;1m=> $list\n";
  149. $create = "Yahoo[MX]_List.txt";
  150. $buat = fopen($create, 'a+');
  151. fwrite($buat, $list."\n");
  152. fclose($buat);
  153. }elseif (preg_match('/@yahoo.co.id/', $email)) {
  154. echo "\e[32;1m[Yahoo.ID] \e[00;1m=> $list\n";
  155. $create = "Yahoo[ID]_List.txt";
  156. $buat = fopen($create, 'a+');
  157. fwrite($buat, $list."\n");
  158. fclose($buat);
  159. }elseif (preg_match('/@yahoo.com.sg/', $email)) {
  160. echo "\e[32;1m[Yahoo.SG] \e[00;1m=> $list\n";
  161. $create = "Yahoo[SG]_List.txt";
  162. $buat = fopen($create, 'a+');
  163. fwrite($buat, $list."\n");
  164. fclose($buat);
  165. }elseif (preg_match('/@yahoo/', $email)) {
  166. echo "\e[32;1m[Yahoo] \e[00;1m=> $list\n";
  167. $create = "Yahoo[MIX]_List.txt";
  168. $buat = fopen($create, 'a+');
  169. fwrite($buat, $list."\n");
  170. fclose($buat);
  171.  
  172. }elseif (preg_match('/@rocketmail/', $email)) {
  173. echo "\e[32;1m[Rocketmail] \e[00;1m=> $list\n";
  174. $create = "Rocketmail_List.txt";
  175. $buat = fopen($create, 'a+');
  176. fwrite($buat, $list."\n");
  177. fclose($buat);
  178. }elseif (preg_match('/@ymail/', $email)) {
  179. echo "\e[32;1m[Ymail] \e[00;1m=> $list\n";
  180. $create = "Ymail_List.txt";
  181. $buat = fopen($create, 'a+');
  182. fwrite($buat, $list."\n");
  183. fclose($buat);
  184.  
  185. // Yandex
  186. }elseif (preg_match('/@yandex.de/', $email)) {
  187. echo "\e[32;1m[Yandex.DE] \e[00;1m=> $list\n";
  188. $create = "Yandex[DE]_List.txt";
  189. $buat = fopen($create, 'a+');
  190. fwrite($buat, $list."\n");
  191. fclose($buat);
  192. }elseif (preg_match('/@yandex.com.au/', $email)) {
  193. echo "\e[32;1m[Yandex.AU] \e[00;1m=> $list\n";
  194. $create = "Yandex[AU]_List.txt";
  195. $buat = fopen($create, 'a+');
  196. fwrite($buat, $list."\n");
  197. fclose($buat);
  198. }elseif (preg_match('/@yandex.com/', $email)) {
  199. echo "\e[32;1m[Yandex.COM] \e[00;1m=> $list\n";
  200. $create = "Yandex[COm]_List.txt";
  201. $buat = fopen($create, 'a+');
  202. fwrite($buat, $list."\n");
  203. fclose($buat);
  204. }elseif (preg_match('/@yandex.co.id/', $email)) {
  205. echo "\e[32;1m[Yandex.ID] \e[00;1m=> $list\n";
  206. $create = "Yandex[ID]_List.txt";
  207. $buat = fopen($create, 'a+');
  208. fwrite($buat, $list."\n");
  209. fclose($buat);
  210. }elseif (preg_match('/@yandex.ru/', $email)) {
  211. echo "\e[32;1m[Yandex.RU] \e[00;1m=> $list\n";
  212. $create = "Yandex[RU]_List.txt";
  213. $buat = fopen($create, 'a+');
  214. fwrite($buat, $list."\n");
  215. fclose($buat);
  216. }elseif (preg_match('/@yandex.co.uk/', $email)) {
  217. echo "\e[32;1m[Yandex.UK] \e[00;1m=> $list\n";
  218. $create = "Yandex[UK]_List.txt";
  219. $buat = fopen($create, 'a+');
  220. fwrite($buat, $list."\n");
  221. fclose($buat);
  222. }elseif (preg_match('/@yandex.ca/', $email)) {
  223. echo "\e[32;1m[Yandex.CA] \e[00;1m=> $list\n";
  224. $create = "Yandex[CA]_List.txt";
  225. $buat = fopen($create, 'a+');
  226. fwrite($buat, $list."\n");
  227. fclose($buat);
  228. }elseif (preg_match('/@yandex/', $email)) {
  229. echo "\e[32;1m[Yandex] \e[00;1m=> $list\n";
  230. $create = "Yandex[MIX]_List.txt";
  231. $buat = fopen($create, 'a+');
  232. fwrite($buat, $list."\n");
  233. fclose($buat);
  234.  
  235. // Hotmail
  236. }elseif (preg_match('/@hotmail.com/', $email)) {
  237. echo "\e[32;1m[Hotmail.COM] \e[00;1m=> $list\n";
  238. $create = "Hotmail[COM]_List.txt";
  239. $buat = fopen($create, 'a+');
  240. fwrite($buat, $list."\n");
  241. fclose($buat);
  242. }elseif (preg_match('/@hotmail.co.id/', $email)) {
  243. echo "\e[32;1m[Hotmail.ID] \e[00;1m=> $list\n";
  244. $create = "Hotmail[ID]_List.txt";
  245. $buat = fopen($create, 'a+');
  246. fwrite($buat, $list."\n");
  247. fclose($buat);
  248. }elseif (preg_match('/@hotmail.co.uk/', $email)) {
  249. echo "\e[32;1m[Hotmail.UK] \e[00;1m=> $list\n";
  250. $create = "Hotmail[UK]_List.txt";
  251. $buat = fopen($create, 'a+');
  252. fwrite($buat, $list."\n");
  253. fclose($buat);
  254. }elseif (preg_match('/@hotmail.fr/', $email)) {
  255. echo "\e[32;1m[Hotmail.FR] \e[00;1m=> $list\n";
  256. $create = "Hotmail[FR]_List.txt";
  257. $buat = fopen($create, 'a+');
  258. fwrite($buat, $list."\n");
  259. fclose($buat);
  260. }elseif (preg_match('/@hotmail.ru/', $email)) {
  261. echo "\e[32;1m[Hotmail.RU] \e[00;1m=> $list\n";
  262. $create = "Hotmail[RU]_List.txt";
  263. $buat = fopen($create, 'a+');
  264. fwrite($buat, $list."\n");
  265. fclose($buat);
  266. }elseif (preg_match('/@hotmail.de/', $email)) {
  267. echo "\e[32;1m[Hotmail.DE] \e[00;1m=> $list\n";
  268. $create = "Hotmail[DE]_List.txt";
  269. $buat = fopen($create, 'a+');
  270. fwrite($buat, $list."\n");
  271. fclose($buat);
  272. }elseif (preg_match('/@hotmail.it/', $email)) {
  273. echo "\e[32;1m[Hotmail.IT] \e[00;1m=> $list\n";
  274. $create = "Hotmail[IT]_List.txt";
  275. $buat = fopen($create, 'a+');
  276. fwrite($buat, $list."\n");
  277. fclose($buat);
  278. }elseif (preg_match('/@hotmail.es/', $email)) {
  279. echo "\e[32;1m[Hotmail.ES] \e[00;1m=> $list\n";
  280. $create = "Hotmail[ES]_List.txt";
  281. $buat = fopen($create, 'a+');
  282. fwrite($buat, $list."\n");
  283. fclose($buat);
  284. }elseif (preg_match('/@hotmail/', $email)) {
  285. echo "\e[32;1m[Hotmail] \e[00;1m=> $list\n";
  286. $create = "Hotmail[MIX]_List.txt";
  287. $buat = fopen($create, 'a+');
  288. fwrite($buat, $list."\n");
  289. fclose($buat);
  290.  
  291. // Live
  292. }elseif (preg_match('/@live.com/', $email)) {
  293. echo "\e[32;1m[Live.COM] \e[00;1m=> $list\n";
  294. $create = "Live[COM]_List.txt";
  295. $buat = fopen($create, 'a+');
  296. fwrite($buat, $list."\n");
  297. fclose($buat);
  298. }elseif (preg_match('/@live.co.id/', $email)) {
  299. echo "\e[32;1m[Live.Id] \e[00;1m=> $list\n";
  300. $create = "Live[ID]_List.txt";
  301. $buat = fopen($create, 'a+');
  302. fwrite($buat, $list."\n");
  303. fclose($buat);
  304. }elseif (preg_match('/@live.de/', $email)) {
  305. echo "\e[32;1m[Live.DE] \e[00;1m=> $list\n";
  306. $create = "Live[DE]_List.txt";
  307. $buat = fopen($create, 'a+');
  308. fwrite($buat, $list."\n");
  309. fclose($buat);
  310. }elseif (preg_match('/@live.co.uk/', $email)) {
  311. echo "\e[32;1m[Live.CO.Uk] \e[00;1m=> $list\n";
  312. $create = "Live[UK]_List.txt";
  313. $buat = fopen($create, 'a+');
  314. fwrite($buat, $list."\n");
  315. fclose($buat);
  316. }elseif (preg_match('/@live.fr/', $email)) {
  317. echo "\e[32;1m[Live.FR] \e[00;1m=> $list\n";
  318. $create = "Live[FR]_List.txt";
  319. $buat = fopen($create, 'a+');
  320. fwrite($buat, $list."\n");
  321. fclose($buat);
  322. }elseif (preg_match('/@live.nl/', $email)) {
  323. echo "\e[32;1m[Live.NL] \e[00;1m=> $list\n";
  324. $create = "Live[NL]_List.txt";
  325. $buat = fopen($create, 'a+');
  326. fwrite($buat, $list."\n");
  327. fclose($buat);
  328. }elseif (preg_match('/@live.com.au/', $email)) {
  329. echo "\e[32;1m[Live.AU] \e[00;1m=> $list\n";
  330. $create = "Live[AU]_List.txt";
  331. $buat = fopen($create, 'a+');
  332. fwrite($buat, $list."\n");
  333. fclose($buat);
  334. }elseif (preg_match('/@live.ca/', $email)) {
  335. echo "\e[32;1m[Live.Ca] \e[00;1m=> $list\n";
  336. $create = "Live[CA]_List.txt";
  337. $buat = fopen($create, 'a+');
  338. fwrite($buat, $list."\n");
  339. fclose($buat);
  340. }elseif (preg_match('/@live.it/', $email)) {
  341. echo "\e[32;1m[Live.IT] \e[00;1m=> $list\n";
  342. $create = "Live[IT]_List.txt";
  343. $buat = fopen($create, 'a+');
  344. fwrite($buat, $list."\n");
  345. fclose($buat);
  346. }elseif (preg_match('/@live/', $email)) {
  347. echo "\e[32;1m[Live] \e[00;1m=> $list\n";
  348. $create = "Live[MIX]_List.txt";
  349. $buat = fopen($create, 'a+');
  350. fwrite($buat, $list."\n");
  351. fclose($buat);
  352.  
  353. }elseif (preg_match('/@outlook/', $email)) {
  354. echo "\e[32;1m[Outlook] \e[00;1m=> $list\n";
  355. $create = "Outlook_List.txt";
  356. $buat = fopen($create, 'a+');
  357. fwrite($buat, $list."\n");
  358. fclose($buat);
  359. }elseif (preg_match('/@icloud/', $email)) {
  360. echo "\e[32;1m[iCloud] \e[00;1m=> $list\n";
  361. $create = "iCloud_List.txt";
  362. $buat = fopen($create, 'a+');
  363. fwrite($buat, $list."\n");
  364. fclose($buat);
  365. }elseif (preg_match('/@rambler/', $email)) {
  366. echo "\e[32;1m[Rambler] \e[00;1m=> $list\n";
  367. $create = "Rambler_List.txt";
  368. $buat = fopen($create, 'a+');
  369. fwrite($buat, $list."\n");
  370. fclose($buat);
  371. }elseif (preg_match('/@mail/', $email)) {
  372. echo "\e[32;1m[Mail] \e[00;1m=> $list\n";
  373. $create = "Mail_List.txt";
  374. $buat = fopen($create, 'a+');
  375. fwrite($buat, $list."\n");
  376. fclose($buat);
  377. }elseif (preg_match('/@aol/', $email)) {
  378. echo "\e[32;1m[Aol] \e[00;1m=> $list\n";
  379. $create = "Aol_List.txt";
  380. $buat = fopen($create, 'a+');
  381. fwrite($buat, $list."\n");
  382. fclose($buat);
  383. }elseif (preg_match('/@sky/', $email)) {
  384. echo "\e[32;1m[Sky] \e[00;1m=> $list\n";
  385. $create = "Sky_List.txt";
  386. $buat = fopen($create, 'a+');
  387. fwrite($buat, $list."\n");
  388. fclose($buat);
  389. }else{
  390. echo "\e[36;1m[Mix] \e[00;1m=> $list\n";
  391. $create = "Mix_List_Email.txt";
  392. $buat = fopen($create, 'a+');
  393. fwrite($buat, $list."\n");
  394. fclose($buat);
  395. }
  396. }
  397.  
  398. public function message($maillist)
  399. {
  400. $getFile = file_get_contents($maillist);
  401. $pisah = explode("\r\n", $getFile);
  402. foreach ($pisah as $list) {
  403. $email = $list;
  404. $execution = $this->emailFilter($email, $list);
  405. //print_r($email);
  406. echo $execution;
  407. }
  408. }
  409. }
  410. system('clear');
  411. $idsec = new IDsec();
  412. echo "\e[36;1m
  413. ___ _ ____
  414. |_ _|_ __ __| | ___/ ___| ___ ___
  415. | || '_ \ / _` |/ _ \___ \ / _ \/ __|
  416. | || | | | (_| | (_) |__) | __/ (__
  417. |___|_| |_|\__,_|\___/____/ \___|\___|
  418. [~] Email Filter </> @Fansa
  419.  
  420. [~] +Country :
  421. [~] Gmail,Yahoo,Yandex,Hotmail,Live
  422.  
  423. [~] Non-Country :
  424. [~] Rocketmail,Ymail,Sky,Aol,Mail
  425. [~] Outlook,iCloud,Rambler
  426. [~] Gmail,Yahoo,Yandex,Hotmail,Live
  427.  
  428. [~] Email Tersimpan Sesuai Jenis Emailnya
  429. [~] Ex : Gmail => Gmail_List.txt
  430. [~] Untuk Mix Tersimpan di => Mix_List_Email.txt\n
  431. ";
  432. echo "\e[93;1m[x] Masukan List Email : ";
  433. $jancok = trim(fgets(STDIN, 1024));
  434. $cekFile = file_exists($jancok);
  435. if ($cekFile == 1) {
  436. echo "\e[93;1m[!] Filter Email [!]\n";
  437. $idsec->message($jancok);
  438. }else{
  439. echo "\e[31;1mFile notfound\e[00;1m\n";
  440. }
Add Comment
Please, Sign In to add comment