PATH:
home
/
centosnipponia
/
public_html
/
wh
<?php $mbox=imap_open("{outlook.office365.com:993/imap/ssl/authuser=tzimplakisv@nipponia.com/user=administrator@nipponia.com}INBOX/Mol_flows/Delivery", "tzimplakisv@nipponia.com", "tesera44__", OP_READONLY); echo "<h1>Mailboxes</h1>\n"; print_r(extract_attachments($mbox, 65)); function extract_attachments($connection, $message_number) { $attachments = array(); $structure = imap_fetchstructure($connection, $message_number); if(isset($structure->parts) && count($structure->parts)) { for($i = 0; $i < count($structure->parts); $i++) { $attachments[$i] = array( 'is_attachment' => false, 'filename' => '', 'name' => '', 'attachment' => '' ); if($structure->parts[$i]->ifdparameters) { foreach($structure->parts[$i]->dparameters as $object) { if(strtolower($object->attribute) == 'filename') { $attachments[$i]['is_attachment'] = true; $attachments[$i]['filename'] = $object->value; } } } if($structure->parts[$i]->ifparameters) { foreach($structure->parts[$i]->parameters as $object) { if(strtolower($object->attribute) == 'name') { $attachments[$i]['is_attachment'] = true; $attachments[$i]['name'] = $object->value; } } } if($attachments[$i]['is_attachment']) { $attachments[$i]['attachment'] = imap_fetchbody($connection, $message_number, $i+1); if($structure->parts[$i]->encoding == 3) { // 3 = BASE64 $attachments[$i]['attachment'] = base64_decode($attachments[$i]['attachment']); } elseif($structure->parts[$i]->encoding == 4) { // 4 = QUOTED-PRINTABLE $attachments[$i]['attachment'] = quoted_printable_decode($attachments[$i]['attachment']); } } } } return $attachments; } imap_close($mbox); ?>
[+]
..
[+]
ediwarehousebot
[+]
2
[-] style.css
[edit]
[-] config.php
[edit]
[-] test1.php
[edit]
[-] t1.php
[edit]
[-] header.php
[edit]
[-] ml.php-an theloume na to steiloyme mono toy
[edit]
[+]
vendor
[-] headerpending.php
[edit]
[-] error_log
[edit]
[-] pending.php
[edit]
[-] delivered.php
[edit]
[-] 2.php
[edit]
[-] script.js
[edit]
[-] headerdelivered.php
[edit]
[-] 3.php
[edit]
[+]
old
[+]
cgi-bin
[+]
.well-known
[+]
E3
[+]
drage
[+]
f7
[+]
eviball
[+]
capetown
[+]
eurostock
[+]
2fast
[+]
biq
[+]
cite
[+]
ilark
[+]
pride
[+]
dragb
[+]
itank
[-] sql_command_import_capetown.php
[edit]
[+]
itango
[+]
sales_rd
[+]
rd
[+]
one
[-] jSignature-master.zip
[edit]
[+]
jsi
[+]
nce
[-] sales_rd.zip
[edit]
[+]
RrVFn0it5f
[-] wap.php
[edit]
[-] index.php
[edit]
[-] products.php
[edit]
[-] detail.php
[edit]
[-] .htaccess.disabled
[edit]
[-] 1.php.quarantine
[edit]