OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
znew1aws-ses
/
vendor
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/16/2024 08:24:03 AM
rwxr-xr-x
📄
_get.section.collection.php
58.55 KB
08/16/2024 08:24:09 AM
rw-r--r--
📄
_get.section.create.php
21.82 KB
08/16/2024 08:24:09 AM
rw-r--r--
📄
_get.section.general.php
8.06 KB
08/16/2024 08:24:09 AM
rw-r--r--
📄
autoload.php
771 bytes
08/16/2024 08:24:04 AM
rw-r--r--
📁
aws
-
08/16/2024 08:24:15 AM
rwxr-xr-x
📁
bin
-
08/16/2024 08:24:09 AM
rwxr-xr-x
📄
chk.logged.in.php
1.16 KB
08/16/2024 08:24:04 AM
rw-r--r--
📄
chk.login.php
1.31 KB
08/16/2024 08:24:04 AM
rw-r--r--
📁
composer
-
08/16/2024 08:24:12 AM
rwxr-xr-x
📄
d_get.section.collection.php
57.93 KB
08/16/2024 08:24:05 AM
rw-r--r--
📄
d_get.section.create.php
21.87 KB
08/16/2024 08:24:05 AM
rw-r--r--
📄
get.section.account.php
8.47 KB
08/16/2024 08:24:06 AM
rw-r--r--
📄
get.section.analytics.php
11.46 KB
08/16/2024 08:24:06 AM
rw-r--r--
📄
get.section.collection.php
58.52 KB
08/16/2024 08:24:06 AM
rw-r--r--
📄
get.section.community.php
5.89 KB
08/16/2024 08:24:06 AM
rw-r--r--
📄
get.section.create.php
22.41 KB
08/16/2024 08:24:06 AM
rw-r--r--
📄
get.section.curated.php
5.07 KB
08/16/2024 08:24:06 AM
rw-r--r--
📄
get.section.dashboard.php
3.31 KB
08/16/2024 08:24:07 AM
rw-r--r--
📄
get.section.feed.php
6.87 KB
08/16/2024 08:24:07 AM
rw-r--r--
📄
get.section.general.php
9.31 KB
08/16/2024 08:24:07 AM
rw-r--r--
📄
get.section.newsletter.php
9.25 KB
08/16/2024 08:24:07 AM
rw-r--r--
📄
get.section.request.article.php
5.82 KB
08/16/2024 08:24:08 AM
rw-r--r--
📄
get.section.settings.php
21.15 KB
08/16/2024 08:24:08 AM
rw-r--r--
📄
get.section.team.php
6.73 KB
08/16/2024 08:24:08 AM
rw-r--r--
📄
get.section.utils.php
4.1 KB
08/16/2024 08:24:08 AM
rw-r--r--
📁
guzzlehttp
-
08/16/2024 08:24:20 AM
rwxr-xr-x
📄
logout.php
428 bytes
08/16/2024 08:24:08 AM
rw-r--r--
📁
mtdowling
-
08/16/2024 08:24:22 AM
rwxr-xr-x
📁
phpmailer
-
08/16/2024 08:24:24 AM
rwxr-xr-x
📁
psr
-
08/16/2024 08:24:28 AM
rwxr-xr-x
📁
ralouphie
-
08/16/2024 08:24:29 AM
rwxr-xr-x
📄
sendgrid.php
3.62 KB
08/16/2024 08:24:08 AM
rw-r--r--
📁
symfony
-
08/16/2024 08:24:30 AM
rwxr-xr-x
📄
upload.php
2.4 KB
08/16/2024 08:24:08 AM
rw-r--r--
📄
verify.php
3.12 KB
08/16/2024 08:24:08 AM
rw-r--r--
📄
verify_email.php
7.13 KB
08/16/2024 08:24:09 AM
rw-r--r--
📁
wildbit
-
08/16/2024 08:24:30 AM
rwxr-xr-x
📄
z.get.section.feed.php
6.88 KB
08/16/2024 08:24:09 AM
rw-r--r--
Editing: verify_email.php
Close
<?php include '../inc/validate.logged.php'; require 'vendor/autoload.php'; use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; use Aws\Ses\SesClient; use Aws\Exception\AwsException; // AWS credentials $awsAccessKeyId = 'AKIARWSGL3TOIAEQEUPU'; $awsSecretAccessKey = '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'; $region = 'ap-south-1'; // Change the region if necessary // This keys is for the sending the mail $awsAccessKey = 'AKIARWSGL3TOGXCYQJVY'; $awsSecretKey = 'BIj9DvNM3uX+cckSX4So50fqln6DEhie6dMJpe3AjzqK'; // Create an AWS SES client $client = new SesClient([ // 'version' => 'latest', 'version' => '2010-12-01', 'region' => $region, 'credentials' => [ 'key' => $awsAccessKeyId, 'secret' => $awsSecretAccessKey, ], ]); function listEmail($client) { try { // Send email verification request $result = $client->listIdentities([ 'IdentityType' => 'EmailAddress', ]); $listEmail = $result->get('Identities'); echo "<pre>"; print_r($listEmail); echo "</pre>"; return $listEmail; } catch (AwsException $e) { // Output error message if fails echo "Error: " . $e->getMessage() . "\n"; } } function verifyEmail($client, $emailAddress) { try { // Send email verification request $result = $client->VerifyEmailAddress([ 'EmailAddress' => $emailAddress, ]); // Output the result echo "Verification request sent to " . $emailAddress . ". Please check the email inbox for the verification link.<br><br>"; echo "After verifying the email, Please click the below button to set the Bounce, Complaints and Delivery emails for the analytics..<br> "; echo "<button class='btn btn-primary' onclick='verifyNotification(\"" . $emailAddress . "\")'>Please Click Here</button>"; } catch (AwsException $e) { // Output error message if fails echo "Error: " . $e->getMessage() . "\n"; } } $awsAccessKey = 'AKIARWSGL3TOGXCYQJVY'; $awsSecretKey = 'BIj9DvNM3uX+cckSX4So50fqln6DEhie6dMJpe3AjzqK'; function sendEmail($fromEmail, $fromName, $toName, $toEmail, $emailSubject, $emailBody) { global $awsAccessKey; global $awsSecretKey; $mail = new PHPMailer(true); try { $mail->CharSet = 'UTF-8'; $mail->isSMTP(); $mail->Host = 'email-smtp.ap-south-1.amazonaws.com'; $mail->Username = $awsAccessKey; $mail->Password = $awsSecretKey; $mail->Port = 587; $mail->SMTPDebug = 2; // Set to 2 for detailed debug output $mail->SMTPAuth = true; $mail->SMTPSecure = 'tls'; $mail->setFrom($fromEmail, $fromName); $mail->addAddress($toEmail, $toName); $mail->isHTML(true); $mail->Subject = $emailSubject; $mail->Body = $emailBody; $mail->send(); return true; } catch (Exception $e) { return false; } } function checkVerifyEmail($client, $checkEmail) { $listEmail = listEmail($client); foreach ($listEmail as $email) { if ($email == $checkEmail) { if (sendEmail($checkEmail, 'Test', 'Trash', 'trash@knobly.com', 'Verified email Status', 'This email is to check the email is verified or not')) { return true; } else { return false; } } } return false; } ?> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Knobly Cream: Create • Reach • Measure</title> <!-- Bootstrap CSS --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"> <!-- Font Awesome CSS --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css"> <!-- Additional Stylesheets --> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.0.0/animate.min.css"> <link rel="stylesheet" href="../inc/fontawesome/css/all.min.css"> <link rel="stylesheet" href="../inc/magnific-popup.css"> <link rel="stylesheet" href="../inc/style.css"> <!-- jQuery --> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <!-- Bootstrap JS and dependencies --> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.8.0/Chart.min.js" crossorigin="anonymous"></script> <script src="https://cdn.tiny.cloud/1/u5oz235qw5jiqww4udm90ocp9zg2rncblqo2ch0ym3twjgyt/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script> <script src="https://js.zohostatic.com/books/zfwidgets/assets/js/zf-widget.js"></script> <script src="../inc/jquery.magnific-popup.min.js"></script> <script src="../inc/common.js"></script> <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.3/dist/umd/popper.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script> </head> <body class="sb-nav-fixed"> <?php include "navbar.php"; ?> <div id="layoutSidenav"> <?php include 'sidebar.php'; ?> <div id="layoutSidenav_content"> <main> <div id="panelContent" class="container-fluid"> <div id="response"> <? if (isset($_POST['email'])) { $email = $_POST['email']; verifyEmail($client, $email); } ?> </div> </div> </main> </div> </div> </body> <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> <script> function verifyNotification(email) { $.ajax({ url: "checkNotificationTopics.php", type: "POST", data: { check_email: email }, success: function(response) { $("#response").html(response); $("#response").append("<a href='index.php'><button class='btn btn-primary'>Go Back to Dashboard</button></a>"); }, error: function(xhr, status, error) { $("#response").html("An error occurred: " + error); } }); } </script> </html>