shell bypass 403

GrazzMean Shell

: /usr/share/doc/perl-Mail-Box/examples/ [ drwxr-xr-x ]
Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 18.117.103.114
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : multipart.pl
#!/usr/bin/perl

# Print the types of messages in the folder.  Multi-part messages will
# be shown with all their parts.
#
# This code can be used and modified without restriction.
# Mark Overmeer, <mailbox@overmeer.net>, 9 nov 2001

use warnings;
use strict;
use lib '..', '.';

use Mail::Box::Manager 2.00;

sub show_type($;$);

#
# Get the command line arguments.
#

die "Usage: $0 folderfile\n"
    unless @ARGV==1;

my $filename = shift @ARGV;

#
# Open the folder
#

my $mgr    = Mail::Box::Manager->new;

my $folder = $mgr->open
   ( $filename
   , extract    => 'LAZY'   # never take the body unless needed
   );                       #  which saves memory and time.

die "Cannot open $filename: $!\n"
    unless defined $folder;

#
# List all messages in this folder.
#

my @messages = $folder->messages;
print "Mail folder $filename contains ", scalar @messages, " messages:\n";

my $counter  = 1;
foreach my $message (@messages)
{   printf "%3d. ", $counter++;
    print $message->get('Subject') || '<no subject>', "\n";

    show_type $message;
}

sub show_type($;$)
{   my $msg    = shift;
    my $indent = (shift || '') . '    ';   # increase indentation

    print $indent, " type=", $msg->get('Content-Type'), ', '
      , $msg->size, " bytes\n";

    if($msg->isMultipart)
    {   foreach my $part ($msg->parts)
        {   show_type $part, $indent;
        }
    }
}

#
# Finish
#

$folder->close;

© 2025 GrazzMean