:: **Zploit** v1.0 | Current Path: **/home/kreativepixelz/www/demo/contact_captcha/**
:: Editing File: mailchk.php
<?php if ($_SERVER['REQUEST_METHOD'] === 'POST') { // Honeypot field check if (!empty($_POST['honeypot'])) { die('Spam detected. Submission blocked.'); } // Input sanitization $name = htmlspecialchars(strip_tags(trim($_POST['name']))); $email = filter_var($_POST['email'], FILTER_SANITIZE_EMAIL); $message = htmlspecialchars(strip_tags(trim($_POST['message']))); // Validate email if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { die('Invalid email address.'); } // Email details $to = "harshad.mbtb@gmail.com"; // Replace with your email address $subject = "New Contact Form Submission"; $headers = "From: $email\r\nReply-To: $email\r\nContent-Type: text/plain; charset=UTF-8"; $body = "Name: $name\nEmail: $email\nMessage:\n$message"; // Send email if (mail($to, $subject, $body, $headers)) { echo 'Message sent successfully.'; } else { echo 'Failed to send message. Please try again later.'; } } else { echo 'Invalid request method.'; } ?>