Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <head>
- <link href='https://fonts.googleapis.com/css?family=Orbitron' rel='stylesheet' type='text/css'>
- </head>
- <style>
- html,body{
- font-family: 'Orbitron', sans-serif;
- background:#000000;
- }
- input {
- color: 3300FF;
- border:4px solid #33CCFF;
- font-family: 'Orbitron', sans-serif;
- }
- h3,fieldset {
- color: #FFFFFF;
- width:50%;
- border:4px solid red;
- font-family: 'Orbitron', sans-serif;
- }
- </style>
- <center>
- <img src="http://i.imgur.com/CO3ooXD.gif"/>
- <br></br>
- <fieldset>
- <legend><h2>Upload Email File To Check</h2></legend></br>
- <form action="" method="POST" enctype="multipart/form-data">
- <input type="file" name="files">
- <br>
- </br>
- <input type='submit' name='scan' value='START CHECKING'>
- <br>
- </br>
- <h3> >> <a href="validemails.txt">Valid Emails</a></h3>
- </fieldset>
- </form>
- <br>
- <h3>Coded By H4T3D</h3>
- </br>
- </center>
- <?php
- error_reporting(0);
- set_time_limit(0);
- if(isset($_POST['scan']))
- {
- function checking($email)
- {
- static $counter=1;
- print($counter++." ,Checking: $email<br>");
- if (eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$", $email)) {
- print("Format Test: PASSED<br>");
- print("Online host verification Test...<br><br>");
- print("MX Records for: $email<br>");
- list($alias, $domain) = split("@", $email);
- if (checkdnsrr($domain, "MX")) {
- getmxrr($domain, $mxhosts);
- foreach($mxhosts as $mxKey => $mxValue){
- print(" $mxValue<br>");
- }
- print("Online host verification Test: PASSED<br><br>");
- print("<font color='#00FF00'>Email Status: VALID</font></br>");
- $myfile = fopen("validemails.txt", "a") or die("Unable to open file!");
- fwrite($myfile, $email."\n");
- fclose($myfile);
- } else {
- print(" No records found.<br>");
- print("<font color='red'>Online host verification Test: FAILED</font><br><br>");
- print("Email Status: INVALID<br><br>");
- }
- } else {
- print("Format Test: FAILED<br><br>");
- print("<font color='red'>Invalid email address provided.</font><br><br>");
- print("Email Status: INVALID<br><br>");
- }
- }// end of checking
- $files = @$_FILES["files"];
- if ($files["name"] != '')
- {
- $fullpath = $_REQUEST["path"] . $files["name"];
- if (move_uploaded_file($files['tmp_name'],$fullpath))
- {
- $file = fopen($files["name"], "r");
- while(!feof($file))
- {
- $line = fgets($file);
- $email=$line;
- $email = @trim($email);
- echo checking($email);
- } // end of file
- fclose($file);
- }//UPLOADED FILE
- }//IF FILE IS NOT NULL
- }//end of scan button
- ?>
Advertisement
Add Comment
Please, Sign In to add comment