OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
knoblysocial
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/17/2025 10:17:24 AM
rwxrwxr-x
📄
compose.php
590 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
composer.json
126 bytes
04/09/2025 03:44:12 AM
rw-r--r--
📄
composer.lock
6.06 KB
04/09/2025 03:44:13 AM
rw-r--r--
📄
config.php
430 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
fetch_emails.php
235 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
himanhsu_receive_email.php
1.58 KB
05/19/2025 10:07:16 AM
rw-r--r--
📁
images
-
04/09/2025 03:44:18 AM
rwxr-xr-x
📄
inbox.js
665 bytes
04/09/2025 03:44:14 AM
rw-r--r--
📄
inbox.php
933 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
index.html
7.62 KB
04/09/2025 03:44:14 AM
rw-r--r--
📄
index.php
6.61 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
index1.php
1.13 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
read_email.php
1.2 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
receiveEmail.php
3.46 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
send_email.php
1.29 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
sent.php
1.24 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
ses-email-receiver.php
751 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
simple-log.txt
11.58 KB
04/09/2025 11:28:14 AM
rw-r--r--
📄
sns-log.txt
26.02 MB
06/17/2025 10:53:08 PM
rw-r--r--
📄
styles.css
1.54 KB
04/09/2025 03:44:16 AM
rw-r--r--
📄
test_parser.php
272 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📁
vendor
-
05/19/2025 10:07:16 AM
rwxr-xr-x
📄
view_email.php
471 bytes
05/19/2025 10:07:16 AM
rw-r--r--
📄
working_send_email.php
1.29 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
zsns-log.txt
14.15 KB
04/09/2025 04:34:35 AM
rw-r--r--
📄
zzreceiveEmail.php
1.38 KB
05/19/2025 10:07:16 AM
rw-r--r--
📄
zzsns-log.txt
202.09 KB
04/09/2025 10:51:46 AM
rw-r--r--
Editing: zzreceiveEmail.php
Close
<?php ini_set('display_startup_errors', 1); require 'vendor/autoload.php'; use eXorus\PhpMimeMailParser\Parser; file_put_contents("sns-log.txt", "SNS endpoint HIT!\n", FILE_APPEND); $raw = file_get_contents('php://input'); file_put_contents("sns-log.txt", $raw . "\n\n", FILE_APPEND); $data = json_decode($raw, true); if ($data['Type'] === 'SubscriptionConfirmation') { file_get_contents($data['SubscribeURL']); exit; } if ($data['Type'] === 'Notification') { $msg = json_decode($data['Message'], true); if (!isset($msg['content'])) { file_put_contents("sns-log.txt", "No content field in message\n", FILE_APPEND); exit; } $content = base64_decode($msg['content']); $parser = new Parser(); $parser->setText($content); $subject = $parser->getHeader('subject'); $from = $parser->getHeader('from'); $to = $parser->getHeader('to'); $body = $parser->getMessageBody('text'); $html = $parser->getMessageBody('html'); $replyId = $parser->getHeader('in-reply-to') ?? ''; // Save to DB require 'config.php'; $stmt = $conn->prepare("INSERT INTO email (sender_email, recipient_email, subject, body, reply_body, received_at) VALUES (?, ?, ?, ?, ?, NOW())"); $stmt->bind_param("sssss", $from, $to, $subject, $body, $replyId); $stmt->execute(); $stmt->close(); } ?>