OXIESEC PANEL
- Current Dir:
/
/
usr
/
share
/
perl5
/
Archive
/
Zip
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 06:50:13 AM
rwxr-xr-x
📄
Archive.pm
31.58 KB
07/03/2018 06:29:39 PM
rw-r--r--
📄
BufferedFileHandle.pm
2.68 KB
12/19/2017 06:41:58 PM
rw-r--r--
📄
DirectoryMember.pm
1.94 KB
12/19/2017 06:41:59 PM
rw-r--r--
📄
FAQ.pod
12.36 KB
12/19/2017 06:39:06 PM
rw-r--r--
📄
FileMember.pm
1.31 KB
12/19/2017 06:41:59 PM
rw-r--r--
📄
Member.pm
36.78 KB
12/19/2017 06:41:59 PM
rw-r--r--
📄
MemberRead.pm
7.64 KB
12/19/2017 06:41:59 PM
rw-r--r--
📄
MockFileHandle.pm
1.3 KB
12/19/2017 06:41:59 PM
rw-r--r--
📄
NewFileMember.pm
2.13 KB
12/19/2017 06:41:59 PM
rw-r--r--
📄
StringMember.pm
1.68 KB
12/19/2017 06:41:59 PM
rw-r--r--
📄
Tree.pm
816 bytes
12/19/2017 06:41:59 PM
rw-r--r--
📄
ZipFileMember.pm
13.45 KB
12/19/2017 06:41:59 PM
rw-r--r--
Editing: MockFileHandle.pm
Close
package Archive::Zip::MockFileHandle; # Output file handle that calls a custom write routine # Ned Konz, March 2000 # This is provided to help with writing zip files # when you have to process them a chunk at a time. use strict; use vars qw{$VERSION}; BEGIN { $VERSION = '1.60'; $VERSION = eval $VERSION; } sub new { my $class = shift || __PACKAGE__; $class = ref($class) || $class; my $self = bless( { 'position' => 0, 'size' => 0 }, $class ); return $self; } sub eof { my $self = shift; return $self->{'position'} >= $self->{'size'}; } # Copy given buffer to me sub print { my $self = shift; my $bytes = join('', @_); my $bytesWritten = $self->writeHook($bytes); if ($self->{'position'} + $bytesWritten > $self->{'size'}) { $self->{'size'} = $self->{'position'} + $bytesWritten; } $self->{'position'} += $bytesWritten; return $bytesWritten; } # Called on each write. # Override in subclasses. # Return number of bytes written (0 on error). sub writeHook { my $self = shift; my $bytes = shift; return length($bytes); } sub binmode { 1 } sub close { 1 } sub clearerr { 1 } # I'm write-only! sub read { 0 } sub tell { return shift->{'position'} } sub opened { 1 } 1;