ad - PHP Online
Form of PHP Sandbox
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of ad.php
- <?php
- $token = "server"; // Replace with your actual token
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, 'https://malak.ba/service.php?token=' . $token);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, "");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
- $result = curl_exec($ch);
- if (curl_errno($ch)) {
- echo 'Error: ' . curl_error($ch);
- } else {
- echo 'Response: ' . $result; // Debugging output to see the response
- if (strpos($result, 'Banned or Removed') !== false) {
- echo "Your Free Trial [KEY] Expired Or Suspended. Please Contact Official Cheto Sender ICQ-ID> @GamaLink Telegram= @Ninja111";
- exit(); // Stop script execution
- } else {
- echo "Request Successful. No ban or removal detected.";
- // Proceed with further actions if needed
- }
- }
- curl_close($ch);
- require 'fin_setting/phpmailer/PHPMailerAutoload.php';
- require 'fin_setting/phpmailer/class.phpmailer.php';
- require 'fin_setting/phpmailer/class.smtp.php';
- require 'fin.config.php';
- require 'fin_setting/fin.function.php';
- //
- echo "\e[0m\e[1;31m _________ .__ __ \e[0:33m\r\n";
- echo "★\e[0m\e[1;31m \_ ___ \| |__ _____/ |_ ____ \e[0;33m\r\n";
- echo "★\e[0m\e[1;31m / \ \/| | \_/ __ \ __\/ _ \ \e[0;33m\r\n";
- echo "★\e[0m\e[1;31m \ \___| Y \ ___/| | ( <_> ) \e[0;31m\r\n";
- echo "★\e[0m\e[1;31m \______ /___| /\___ >__| \____/ \e[0;31m\r\n";
- echo "★\e[0m\e[1;31m \/ \/ \/ \e[0;33m\r\n";
- echo "★\e[0m\e[1;33m ╔═╗╔═╗╔╗╔╔╦╗╔═╗╦═╗ \e[0;33m\r\n";
- echo "★\e[0m\e[1;33m ╚═╗╠╣ ║║║ ║║╠╣ ╠╦╝ \e[0;31m\r\n";
- echo "★\e[0m\e[1;33m ╚═╝╚═╝╝╚╝═╩╝╚═╝╩╚═ \e[0;33m\r\n";
- echo "???????????? ???????????????????????? \033[1;32m???????????????????? \033[0m \r\n";
- echo " \033[0;33m ★★★ \033[0m \r\n";
- ????????????:
- echo "\033[0m???????????????????????? ????????????????????\033[0m \r\n";
- echo "\033[1;33m????????????:Telegram:Ninja111 \033[0m \r\n";
- //
- function encode($text) {
- $list = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", ":", "/");
- $replace = array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", ":", "/");
- $walah = str_replace($list, $replace, $text);
- return $walah;
- }
- function Kirim($email, $smtp_acc, $fin_setup)
- {
- global $ahh, $num;
- $smtp = new SMTP;
- $smtp->do_debug = 0;
- $smtp->SMTPOptions = array(
- 'ssl' => array(
- 'verify_peer' => false,
- 'verify_peer_name' => false,
- 'allow_self_signed' => true
- )
- );
- $smtpserver = $smtp_acc['host'];
- $smtpport = $smtp_acc['port'];
- $smtpuser = $smtp_acc['username'];
- $smtppass = $smtp_acc['password'];
- $priority = $fin_setup['priority'];
- $sleeptime = $fin_setup['sleeptime'];
- $replacement = $fin_setup['replacement'];
- $userremoveline = $fin_setup['userremoveline'];
- $fromname = $fin_setup['fromname'];
- $frommail = $fin_setup['frommail'];
- $subject = $fin_setup['subject'];
- $lead = $fin_setup['lead'];
- $msgfile = $fin_setup['msgfile'];
- $sendAttach = $fin_setup['sendAttach'];
- $attchFlder = $fin_setup['attchFlder'];
- $attchName = $fin_setup['attchName'];
- $randurl = $fin_setup['scampage'];
- $redirect = $fin_setup['redirect'];
- $subject_encrypt = $fin_setup['subject_encrypt'];
- $fromname_encrypt = $fin_setup['fromname_encrypt'];
- if (!$smtp->connect($smtpserver, $smtpport))
- {
- //throw new Exception('Connect failed');
- echo " [ \e[0;31mPLEASE CHECK YOUR SMTP SERVER & PORT ! CHECK UR SMTP ON http://smtper.net AND MAKE SURE UR SMTP USE PORT 587 [ CASE 1 ]\e[0m ]";
- die();
- }
- if (!$smtp->hello(gethostname()))
- {
- //throw new Exception('EHLO failed: ' . $smtp->getError()['error']);
- echo " [ \e[0;31mPLEASE CHECK YOUR SMTP SERVER & PORT ! CHECK UR SMTP ON http://smtper.net AND MAKE SURE UR SMTP USE PORT 587 [ CASE 2 ] \e[0m ]";
- die();
- }
- $e = $smtp->getServerExtList();
- if (array_key_exists('AUTH', $e))
- {
- if ($smtp->authenticate($smtpuser, $smtppass))
- {
- if (!is_file($msgfile))
- {
- echo " [ \e[0;31m LETTER NOT FOUND - PLEASE CHECK YOUR LETTER NAME !\e[0m ]";
- die();
- }
- if ($fin_setup['sendAttach'] == 1)
- {
- if (!is_file($fin_setup['attchFlder']))
- {
- echo " [ \e[0;31m ATTACHMENT NOT FOUND - PLEASE CHECK YOUR ATTACHMENT NAME !\e[0m ]";
- die();
- }
- }
- $randstr023 = RandString1(16);
- $mail = new PHPMailer;
- $mail->Encoding = 'base64'; // 8bit base64 multipart/alternative quoted-printable
- $mail->CharSet = 'UTF-8';
- $mail->headerLine("format", "flowed");
- $mail->addCustomHeader("MIME-Version: 1.0");
- //Start SMTP
- $mail->IsSMTP();
- $mail->SMTPAuth = true;
- $mail->SMTPAutoTLS = 1;
- $mail->Host = $smtpserver;
- $mail->Port = $smtpport;
- $mail->Priority = $priority;
- $mail->Username = $smtpuser;
- $mail->Password = $smtppass;
- $randstr01 = RandString1(8);
- $randstr011 = RandString(5);
- $randstr012 = RandString1(5);
- $nmbr = RandNumber(5);
- $domains = explode('@', $email);
- $domain = $domains[1];
- $domains1 = explode('.', $domain);
- $domain0 = $domains1[0];
- $domain1 = $domains1[0];
- shuffle($subject);
- $subject = array_shift($subject);
- shuffle($fromname);
- $fromname = array_shift($fromname);
- $fromnames = str_replace('<[fin_domain0]>', $domain0, $fromname);
- $frommails = str_replace('<[fin_domain0]>', $domain1, $frommail);
- $fromnames = str_replace('<[fin_randstring]> ', $randstr011, $fromnames);
- $frommails = str_replace('<[fin_randstring]> ', $randstr01, $frommails);
- $subjects = str_replace('<[fin_randstring]> ', $randstr012, $subject);
- $subjects = subjecting($subjects, $email, $frommail, $fromname, $randurl, $subject, $redirect);
- $mail->setFrom($frommails, $fromnames);
- $mail->AddAddress($email);
- $mail->Subject = $subjects;
- if ($fromname_encrypt == 1)
- {
- $rand = 0;
- switch ($rand)
- {
- case 0:
- $fromnames = '=?UTF-8?B?' . base64_encode($fromnames) . '?=';
- $mail->setFrom($frommails, $fromnames);
- break;
- }
- }
- else
- {
- $mail->setFrom($frommails, $fromnames);
- }
- $mail->AddAddress($email);
- if ($subject_encrypt == 1)
- {
- $rand = 0;
- switch ($rand)
- {
- case 0:
- $subjects = '=?UTF-8?B?' . base64_encode($subjects) . '?=';
- $mail->Subject = $subjects;
- break;
- }
- }
- else
- {
- $mail->Subject = $subjects;
- }
- if ($fin_setup['sendAttach'] == 1) {
- $attchFlder = str_replace('<[fin_email]>',$email,file_get_contents($fin_setup['attchFlder']));
- $attchName = str_replace('<[fin_domain0]>', $domain0, $fin_setup['attchName']);
- $mail->addStringAttachment($attchFlder, $attchName, 'base64', 'application/octetstream');
- }
- if ($replacement == 1)
- {
- $msg = lettering($msgfile, $email, $frommail, $fromname, $randurl, $subject, $redirect);
- }
- else
- {
- $msg = file_get_contents($msgfile);
- }
- $mail->msgHTML($msg);
- if (!$mail->send())
- {
- $halo = $mail->ErrorInfo;
- if (preg_match('/quota/', $halo))
- {
- $err = 1;
- }
- if ($err == 1)
- {
- echo "[\e[0;32m" . date('d/m/Y h:i:s A') . "[0m] ";
- echo "[\e[1;35m";
- echo $num + 1 . "\e[0m] ";
- echo "\e[0m[\e[1;34m$email\e[0m] ";
- echo "\e[0m\e==> [ \e[0m(\e[0;33m$smtpuser\e[0m)] > [\e[0;31m- SMTP SEND QUOTA HAS LIMIT - NOT REMOVED\e[0m]";
- echo "\r\n";
- }
- else
- {
- if ($fin_setup['userremoveline'] == 1)
- {
- echo "[\e[0;32m" . date('d/m/Y h:i:s A') . "[0m] ";
- echo "[\e[1;35m";
- echo $num + 1 . "\e[0m] ";
- echo "\e[0m[\e[1;34m$email\e[0m] ";
- echo "\e[0m\e==> [\e[0m(\e[0;33m$smtpuser\e[0m)] > [\e[0;31mEMAIL NOT VALID - REMOVED\e[0m]";
- echo "\r\n";
- Savedata($fin_setup['lead'], trim(str_replace($email, "", file_get_contents($fin_setup['lead']))));
- $file = fopen("fin_invalid.txt", "a+");
- fwrite($file, "$email");
- fclose($file);
- }
- else
- {
- echo "[\e[0;32m" . date('d/m/Y h:i:s A') . "[0m] ";
- echo "[\e[1;35m";
- echo $num + 1 . "\e[0m] ";
- echo "\e[0m[\e[1;34m$email\e[0m] ";
- echo "\e[0m\e==> [ \e[0m(\e[0;33m$smtpuser\e[0m)] > [\e[0;31m- EMAIL NOT VALID - NOT REMOVED\e[0m]";
- echo "\r\n";
- }
- //exit();
- }
- }
- else
- {
- echo " [\e[0;32m" . date('d/m/Y h:i:s A') . "[0m] ";
- echo "[\e[1;35m";
- echo $num + 1 . "\e[0m] ";
- echo "\e[0m[\e[1;34m$email\e[0m] ";
- echo "\e[0m==> [ \e[0m(\e[0;33m$smtpuser\e[0m)] > [\e[0;32m- EMAIL VALID - SPAMMED\e[0m]";
- echo "\r\n";
- $file = fopen("fin_sp4mmed.txt", "a");
- fwrite($file, "" . $email . " ");
- fclose($file);
- }
- $mail->clearAddresses();
- }
- else
- {
- echo " [\e[0;32m" . date('d/m/Y h:i:s A') . "[0m] ";
- echo "[\e[1;35m";
- echo $num + 1 . "\e[0m] ";;
- echo "\e[0m[\e[1;34m$email\e[0m] ";
- echo "\e[0m\e==> [ \e[0m(\e[0;33m$smtpuser\e[0m)] > [\e[0;31m- SOMETHING WRONG ON SMTP - NOT REMOVED\e[0m]";
- echo "\r\n";
- $file = fopen("fin_failed.txt", "a");
- fwrite($file, "" . $email . " ");
- fclose($file);
- }
- }
- $smtp->quit(true);
- }
- $dipake = 0;
- if (!is_file($fin_setup['lead']))
- {
- echo " [ \e[0;31m MAILIST NOT FOUND - PLEASE CHECK YOUR MAILIST NAME !\e[0m ]";
- die();
- }
- $file = file_get_contents($fin_setup['lead']);
- if ($file)
- {
- $ext = explode("\n", $file);
- echo " ============================= [ CAMPAIGN SCRIPT RE4DY ] =============================";
- echo "\r\n";
- echo "\r\n";
- $smtp_key = 0;
- $rat = $fin_setup['ratio'];
- $crot = 0;
- $crotmax = count($ext) - 1;
- foreach ($ext as $num => $email)
- {
- if ($smtp_key == count($smtp_acc))
- {
- $smtp_key = 0;
- }
- $ahh = $ext[$crot];
- $gx_setup['fromname'] = $ahh;
- $crot++;
- if ($crot >= $crotmax)
- {
- $crot = 0;
- }
- //kirim
- Kirim($email, $smtp_acc[$smtp_key], $fin_setup);
- $dipake++;
- $smtp_key++;
- $rat--;
- if ($rat == 0)
- {
- sleep($fin_setup['sleeptime']);
- $rat = $fin_setup['ratio'];
- echo "\r\n";
- echo "\e[31m ======= CAMPAIGN $rat EMAIL(S) WITH DELAY FOR ";
- echo $fin_setup['sleeptime'];
- echo " SECONDS =======\e[0m ";
- echo "\r\n";
- echo "\r\n";
- }
- if ($fin_setup['userremoveline'] == 1)
- {
- unset($ext[$num]);
- Savedata($fin_setup['lead'], implode("", $ext));
- }
- }
- echo "\r\n";
- echo " ============================= [ CAMPAIGN SCRIPT ENDED ] =============================";
- echo "\r\n";
- }
- ?>