Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
$_F=__FILE__;$_X='P0kgP2RQZGp1Kmo4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4ODg4..
Decoded Output download
?><?php
/*
=====================================================
DataLife Engine - by SoftNews Media Group
-----------------------------------------------------
https://dle-news.ru/
-----------------------------------------------------
Copyright (c) 2004-2023 SoftNews Media Group
=====================================================
This code is protected by copyright
=====================================================
File: mail.class.php
-----------------------------------------------------
Use: Mail class
=====================================================
*/
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;
if( !defined( 'DATALIFEENGINE' ) ) {
header( "HTTP/1.1 403 Forbidden" );
header ( 'Location: ../../' );
die( "Hacking attempt!" );
}
require_once (DLEPlugins::Check(ROOT_DIR . '/engine/classes/mail/class.phpmailer.php'));
require_once (DLEPlugins::Check(ROOT_DIR . '/engine/classes/mail/smtp.php'));
require_once (DLEPlugins::Check(ROOT_DIR . '/engine/classes/mail/exception.php'));
class dle_mail {
public $mail = false;
public $send_error = false;
public $smtp_msg = "";
public $from = false;
public $html_mail = false;
public $bcc = array ();
public $keepalive = false;
function __construct($config, $is_html = false) {
$this->mail = new PHPMailer(true);
$this->mail->CharSet = 'utf-8';
$this->mail->Encoding = "base64";
$config['mail_title'] = str_replace( '&', '&', $config['mail_title'] );
if( $config['mail_title'] ) {
$this->mail->setFrom($config['admin_mail'], $config['mail_title']);
} else {
$this->mail->setFrom( $config['admin_mail'] );
}
if($config['mail_metod'] == "smtp") {
// $this->mail->SMTPDebug = SMTP::DEBUG_SERVER;
$this->mail->isSMTP();
$this->mail->Timeout = 10;
$this->mail->SMTPAutoTLS = false;
$this->mail->Host = $config['smtp_host'];
$this->mail->Port = intval( $config['smtp_port'] );
$this->mail->SMTPSecure = $config['smtp_secure'];
if($this->mail->SMTPSecure == 'ssl') {
$this->mail->SMTPOptions = array("ssl"=>array("verify_peer"=>false,"verify_peer_name"=>false));
}
if($this->mail->SMTPSecure == 'tls') {
$this->mail->SMTPOptions = array("tls"=>array("verify_peer"=>false,"verify_peer_name"=>false));
}
if( $config['smtp_user'] ) {
$this->mail->SMTPAuth = true;
$this->mail->Username = $config['smtp_user'];
$this->mail->Password = $config['smtp_pass'];
}
if( $config['smtp_mail'] ) {
$this->mail->From = $config['smtp_mail'];
$this->mail->Sender = $config['smtp_mail'];
}
}
$this->mail->XMailer = "DLE CMS";
if ( $is_html ) {
$this->mail->isHTML();
$this->html_mail = true;
}
}
function send($to, $subject, $message) {
try {
if( $this->from ) {
$this->mail->addReplyTo($this->from, $this->from);
}
$this->mail->addAddress($to);
$this->mail->Subject = (string)$subject;
if($this->mail->Mailer == 'smtp' AND $this->keepalive ) {
$this->mail->SMTPKeepAlive = true;
}
if( $this->html_mail ) {
$this->mail->msgHTML($message);
} else {
$this->mail->Body = $message;
}
if( count( $this->bcc ) ) {
foreach($this->bcc as $bcc) {
$this->mail->addBCC($bcc);
}
}
$this->mail->send();
} catch (Exception $e) {
$this->smtp_msg = trim( $e->errorMessage() );
$this->smtp_msg = str_replace ('"', '\"', $this->smtp_msg);
$this->smtp_msg = str_replace( "{", '', $this->smtp_msg );
$this->smtp_msg = str_replace( "}", '', $this->smtp_msg );
$this->smtp_msg = str_replace( "
", '', $this->smtp_msg );
$this->smtp_msg = str_replace( "
", '', $this->smtp_msg );
$this->smtp_msg = str_replace( " ", '', $this->smtp_msg );
$this->send_error = true;
}
$this->mail->clearAllRecipients();
$this->mail->clearAttachments();
$this->mail->clearCustomHeaders();
}
function addCustomHeader($name, $value = null) {
$this->mail->addCustomHeader( $name, $value );
}
function addAttachment($path, $name = '', $encoding = 'base64', $type = '', $disposition = 'attachment') {
$this->mail->addAttachment( $path, $name, $encoding, $type, $disposition );
}
}
Did this file decode correctly?
Original Code
$_F=__FILE__;$_X='P0kgP2RQZGp1Kmo4ODg4ODg4ODg4ODg4ODg4OD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DQsSiRya0ZWNEopO2pKSkpKcGpqCQpWMk5lbXMySmtNTUJlZWtOUEg0MmUoJGRrZVAsSiQya0g0SjhKJycsSiQ0Mk5zTW0yRUo4Sid2a3c0eEsnLEokZXtkNEo4SicnLEokTW13ZHN3bWVtczJKOEona2Vla05QSDQyZScpSlJqCQkkZVBtdy1JSGttRi1Ja01NQmVla05QSDQyZShKJGRrZVAsSiQya0g0LEokNDJOc01tMkUsSiRle2Q0LEokTW13ZHN3bWVtczJKKTtqCXBqcGo=';$_D=strrev('edoced_46esab');eval($_D('JF9YPWJhc2U2NF9kZWNvZGUoJF9YKTskX1g9c3RydHIoJF9YLCdqWHlnNjd7YWtuPTlvNDFXR3BDWjBGU1EzUj5jVEQ8Sk52LmxZSHd1eAo1ZiBlYnFLMkEvXUJVOH10T3N6ZGlNW1ZFTHJQbWhJJywnClBYT05reTFhTE1FWmVqMHp9SktCbDUzLntHSUNTUiBjYlVXUW1zLzZmd3g8dFQ3NG4ycXJBRD1IVjlvWXBdZDh1Z1t2aGlGPicpOyRfUj1zdHJfcmVwbGFjZSgnX19GSUxFX18nLCInIi4kX0YuIiciLCRfWCk7ZXZhbCgkX1IpOyRfUj0wOyRfWD0wOw=='));
Function Calls
strtr | 1 |
strrev | 1 |
str_replace | 1 |
base64_decode | 2 |
Stats
MD5 | 2a3ad97e98a8622be475c7d9e558c643 |
Eval Count | 2 |
Decode Time | 57 ms |