Linux cpanel2.daytoncreative.net 2.6.32-754.29.2.el6.x86_64 #1 SMP Tue May 12 17:39:04 UTC 2020 x86_64
Apache/2.4.43 (cPanel) OpenSSL/1.1.1g mod_bwlimited/1.4
Server IP : 70.62.220.67 & Your IP : 216.73.216.193
Domains :
Cant Read [ /etc/named.conf ]
User : michaelgreg
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
log /
perl-5.20.2 /
cpan /
IO-Compress /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
compress
[ DIR ]
drwxr-xr-x
2015-02-14 16:55
000prereq.t
2.37
KB
-r--r--r--
2014-12-27 11:49
001bzip2.t
5.47
KB
-r--r--r--
2014-12-27 11:48
001zlib-generic-deflate.t
327
B
-r--r--r--
2014-12-27 11:48
001zlib-generic-gzip.t
318
B
-r--r--r--
2014-12-27 11:48
001zlib-generic-rawdeflate.t
342
B
-r--r--r--
2014-12-27 11:48
001zlib-generic-zip.t
313
B
-r--r--r--
2014-12-27 11:48
002any-deflate.t
417
B
-r--r--r--
2014-12-27 11:48
002any-gzip.t
408
B
-r--r--r--
2014-12-27 11:48
002any-rawdeflate.t
431
B
-r--r--r--
2014-12-27 11:48
002any-transparent.t
1.4
KB
-r--r--r--
2014-12-27 11:48
002any-zip.t
403
B
-r--r--r--
2014-12-27 11:48
004gziphdr.t
28.65
KB
-r--r--r--
2014-12-27 11:48
005defhdr.t
9.56
KB
-r--r--r--
2014-12-27 11:48
006zip.t
9.76
KB
-r--r--r--
2014-12-27 11:48
01misc.t
12.13
KB
-r--r--r--
2014-12-27 11:48
020isize.t
4.68
KB
-r--r--r--
2014-12-27 11:49
050interop-gzip.t
2.82
KB
-r--r--r--
2014-12-27 11:48
100generic-bzip2.t
325
B
-r--r--r--
2014-12-27 11:48
100generic-deflate.t
340
B
-r--r--r--
2014-12-27 11:48
100generic-gzip.t
327
B
-r--r--r--
2014-12-27 11:48
100generic-rawdeflate.t
344
B
-r--r--r--
2014-12-27 11:48
100generic-zip.t
315
B
-r--r--r--
2014-12-27 11:48
101truncate-bzip2.t
595
B
-r--r--r--
2014-12-27 11:49
101truncate-deflate.t
601
B
-r--r--r--
2014-12-27 11:49
101truncate-gzip.t
598
B
-r--r--r--
2014-12-27 11:49
101truncate-rawdeflate.t
3.16
KB
-r--r--r--
2014-12-27 11:49
101truncate-zip.t
588
B
-r--r--r--
2014-12-27 11:49
102tied-bzip2.t
322
B
-r--r--r--
2014-12-27 11:48
102tied-deflate.t
326
B
-r--r--r--
2014-12-27 11:48
102tied-gzip.t
317
B
-r--r--r--
2014-12-27 11:48
102tied-rawdeflate.t
341
B
-r--r--r--
2014-12-27 11:48
102tied-zip.t
312
B
-r--r--r--
2014-12-27 11:48
103newtied-bzip2.t
325
B
-r--r--r--
2014-12-27 11:48
103newtied-deflate.t
329
B
-r--r--r--
2014-12-27 11:48
103newtied-gzip.t
320
B
-r--r--r--
2014-12-27 11:48
103newtied-rawdeflate.t
344
B
-r--r--r--
2014-12-27 11:48
103newtied-zip.t
315
B
-r--r--r--
2014-12-27 11:48
104destroy-bzip2.t
325
B
-r--r--r--
2014-12-27 11:48
104destroy-deflate.t
329
B
-r--r--r--
2014-12-27 11:48
104destroy-gzip.t
320
B
-r--r--r--
2014-12-27 11:48
104destroy-rawdeflate.t
344
B
-r--r--r--
2014-12-27 11:48
104destroy-zip.t
315
B
-r--r--r--
2014-12-27 11:48
105oneshot-bzip2.t
326
B
-r--r--r--
2014-12-27 11:48
105oneshot-deflate.t
329
B
-r--r--r--
2014-12-27 11:48
105oneshot-gzip-only.t
3.3
KB
-r--r--r--
2014-12-27 11:48
105oneshot-gzip.t
321
B
-r--r--r--
2014-12-27 11:48
105oneshot-rawdeflate.t
344
B
-r--r--r--
2014-12-27 11:48
105oneshot-zip-bzip2-only.t
4.29
KB
-r--r--r--
2014-12-27 11:48
105oneshot-zip-only.t
6.83
KB
-r--r--r--
2014-12-27 11:48
105oneshot-zip-store-only.t
2.3
KB
-r--r--r--
2014-12-27 11:49
105oneshot-zip.t
315
B
-r--r--r--
2014-12-27 11:48
106prime-bzip2.t
323
B
-r--r--r--
2014-12-27 11:48
106prime-deflate.t
327
B
-r--r--r--
2014-12-27 11:48
106prime-gzip.t
318
B
-r--r--r--
2014-12-27 11:48
106prime-rawdeflate.t
342
B
-r--r--r--
2014-12-27 11:48
106prime-zip.t
313
B
-r--r--r--
2014-12-27 11:48
107multi-bzip2.t
323
B
-r--r--r--
2014-12-27 11:48
107multi-deflate.t
327
B
-r--r--r--
2014-12-27 11:48
107multi-gzip.t
318
B
-r--r--r--
2014-12-27 11:48
107multi-rawdeflate.t
342
B
-r--r--r--
2014-12-27 11:48
107multi-zip.t
313
B
-r--r--r--
2014-12-27 11:48
108anyunc-bzip2.t
422
B
-r--r--r--
2014-12-27 11:48
108anyunc-deflate.t
426
B
-r--r--r--
2014-12-27 11:48
108anyunc-gzip.t
417
B
-r--r--r--
2014-12-27 11:48
108anyunc-rawdeflate.t
441
B
-r--r--r--
2014-12-27 11:48
108anyunc-transparent.t
1.42
KB
-r--r--r--
2014-12-27 11:48
108anyunc-zip.t
408
B
-r--r--r--
2014-12-27 11:48
109merge-deflate.t
327
B
-r--r--r--
2014-12-27 11:48
109merge-gzip.t
318
B
-r--r--r--
2014-12-27 11:48
109merge-rawdeflate.t
342
B
-r--r--r--
2014-12-27 11:48
109merge-zip.t
365
B
-r--r--r--
2014-12-27 11:48
110encode-bzip2.t
324
B
-r--r--r--
2014-12-27 11:48
110encode-deflate.t
330
B
-r--r--r--
2014-12-27 11:48
110encode-gzip.t
319
B
-r--r--r--
2014-12-27 11:48
110encode-rawdeflate.t
345
B
-r--r--r--
2014-12-27 11:48
110encode-zip.t
314
B
-r--r--r--
2014-12-27 11:48
111const-deflate.t
2.39
KB
-r--r--r--
2014-12-27 11:48
999pod.t
261
B
-r--r--r--
2014-12-27 11:48
cz-01version.t
994
B
-r--r--r--
2014-12-27 11:48
cz-03zlib-v1.t
28.5
KB
-r--r--r--
2014-12-27 11:48
cz-06gzsetp.t
3.73
KB
-r--r--r--
2014-12-27 11:48
cz-08encoding.t
3.34
KB
-r--r--r--
2014-12-27 11:48
cz-14gzopen.t
16.02
KB
-r--r--r--
2014-12-27 11:48
globmapper.t
8.13
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
BEGIN { if ($ENV{PERL_CORE}) { chdir 't' if -d 't'; @INC = ("../lib", "lib/compress"); } } use lib qw(t t/compress); use strict; use warnings; use bytes; use Test::More ; use CompTestUtils; BEGIN { # use Test::NoWarnings, if available my $extra = 0 ; $extra = 1 if eval { require Test::NoWarnings ; import Test::NoWarnings; 1 }; plan tests => 101 + $extra ; use_ok('IO::Compress::Zip', qw(:all)) ; use_ok('IO::Uncompress::Unzip', qw(unzip $UnzipError)) ; eval { require IO::Compress::Bzip2 ; import IO::Compress::Bzip2 2.010 ; require IO::Uncompress::Bunzip2 ; import IO::Uncompress::Bunzip2 2.010 ; } ; } sub getContent { my $filename = shift; my $u = new IO::Uncompress::Unzip $filename, Append => 1, @_ or die "Cannot open $filename: $UnzipError"; isa_ok $u, "IO::Uncompress::Unzip"; my @content; my $status ; for ($status = 1; $status > 0 ; $status = $u->nextStream()) { my $name = $u->getHeaderInfo()->{Name}; #warn "Processing member $name\n" ; my $buff = ''; 1 while ($status = $u->read($buff)) ; push @content, $buff; last unless $status == 0; } die "Error processing $filename: $status $!\n" if $status < 0 ; return @content; } { title "Create a simple zip - All Deflate"; my $lex = new LexFile my $file1; my @content = ( 'hello', '', 'goodbye ', ); my $zip = new IO::Compress::Zip $file1, Name => "one", Method => ZIP_CM_DEFLATE, Stream => 0; isa_ok $zip, "IO::Compress::Zip"; is $zip->write($content[0]), length($content[0]), "write"; $zip->newStream(Name=> "two", Method => ZIP_CM_DEFLATE); is $zip->write($content[1]), length($content[1]), "write"; $zip->newStream(Name=> "three", Method => ZIP_CM_DEFLATE); is $zip->write($content[2]), length($content[2]), "write"; ok $zip->close(), "closed"; my @got = getContent($file1); is $got[0], $content[0], "Got 1st entry"; is $got[1], $content[1], "Got 2nd entry"; is $got[2], $content[2], "Got 3nd entry"; } SKIP: { title "Create a simple zip - All Bzip2"; skip "IO::Compress::Bzip2 not available", 9 unless defined $IO::Compress::Bzip2::VERSION; my $lex = new LexFile my $file1; my @content = ( 'hello', '', 'goodbye ', ); my $zip = new IO::Compress::Zip $file1, Name => "one", Method => ZIP_CM_BZIP2, Stream => 0; isa_ok $zip, "IO::Compress::Zip"; is $zip->write($content[0]), length($content[0]), "write"; $zip->newStream(Name=> "two", Method => ZIP_CM_BZIP2); is $zip->write($content[1]), length($content[1]), "write"; $zip->newStream(Name=> "three", Method => ZIP_CM_BZIP2); is $zip->write($content[2]), length($content[2]), "write"; ok $zip->close(), "closed"; my @got = getContent($file1); is $got[0], $content[0], "Got 1st entry"; is $got[1], $content[1], "Got 2nd entry"; is $got[2], $content[2], "Got 3nd entry"; } SKIP: { title "Create a simple zip - Deflate + Bzip2"; skip "IO::Compress::Bzip2 not available", 9 unless $IO::Compress::Bzip2::VERSION; my $lex = new LexFile my $file1; my @content = ( 'hello', 'and', 'goodbye ', ); my $zip = new IO::Compress::Zip $file1, Name => "one", Method => ZIP_CM_DEFLATE, Stream => 0; isa_ok $zip, "IO::Compress::Zip"; is $zip->write($content[0]), length($content[0]), "write"; $zip->newStream(Name=> "two", Method => ZIP_CM_BZIP2); is $zip->write($content[1]), length($content[1]), "write"; $zip->newStream(Name=> "three", Method => ZIP_CM_DEFLATE); is $zip->write($content[2]), length($content[2]), "write"; ok $zip->close(), "closed"; my @got = getContent($file1); is $got[0], $content[0], "Got 1st entry"; is $got[1], $content[1], "Got 2nd entry"; is $got[2], $content[2], "Got 3nd entry"; } { title "Create a simple zip - All STORE"; my $lex = new LexFile my $file1; my @content = ( 'hello', '', 'goodbye ', ); my $zip = new IO::Compress::Zip $file1, Name => "one", Method => ZIP_CM_STORE, Stream => 0; isa_ok $zip, "IO::Compress::Zip"; is $zip->write($content[0]), length($content[0]), "write"; $zip->newStream(Name=> "two", Method => ZIP_CM_STORE); is $zip->write($content[1]), length($content[1]), "write"; $zip->newStream(Name=> "three", Method => ZIP_CM_STORE); is $zip->write($content[2]), length($content[2]), "write"; ok $zip->close(), "closed"; my @got = getContent($file1); is $got[0], $content[0], "Got 1st entry"; is $got[1], $content[1], "Got 2nd entry"; is $got[2], $content[2], "Got 3nd entry"; } { title "Create a simple zip - Deflate + STORE"; my $lex = new LexFile my $file1; my @content = qw( hello and goodbye ); my $zip = new IO::Compress::Zip $file1, Name => "one", Method => ZIP_CM_DEFLATE, Stream => 0; isa_ok $zip, "IO::Compress::Zip"; is $zip->write($content[0]), length($content[0]), "write"; $zip->newStream(Name=> "two", Method => ZIP_CM_STORE); is $zip->write($content[1]), length($content[1]), "write"; $zip->newStream(Name=> "three", Method => ZIP_CM_DEFLATE); is $zip->write($content[2]), length($content[2]), "write"; ok $zip->close(), "closed"; my @got = getContent($file1); is $got[0], $content[0], "Got 1st entry"; is $got[1], $content[1], "Got 2nd entry"; is $got[2], $content[2], "Got 3nd entry"; } { title "Create a simple zip - Deflate + zero length STORE"; my $lex = new LexFile my $file1; my @content = ( 'hello ', '', 'goodbye ', ); my $zip = new IO::Compress::Zip $file1, Name => "one", Method => ZIP_CM_DEFLATE, Stream => 0; isa_ok $zip, "IO::Compress::Zip"; is $zip->write($content[0]), length($content[0]), "write"; $zip->newStream(Name=> "two", Method => ZIP_CM_STORE); is $zip->write($content[1]), length($content[1]), "write"; $zip->newStream(Name=> "three", Method => ZIP_CM_DEFLATE); is $zip->write($content[2]), length($content[2]), "write"; ok $zip->close(), "closed"; my @got = getContent($file1); is $got[0], $content[0], "Got 1st entry"; ok $got[1] eq $content[1], "Got 2nd entry"; is $got[2], $content[2], "Got 3nd entry"; } { title "RT #72548"; my $lex = new LexFile my $file1; my $blockSize = 1024 * 16; my @content = ( 'hello', "x" x ($blockSize + 1) ); my $zip = new IO::Compress::Zip $file1, Name => "one", Method => ZIP_CM_STORE, Stream => 0; isa_ok $zip, "IO::Compress::Zip"; is $zip->write($content[0]), length($content[0]), "write"; $zip->newStream(Name=> "two", Method => ZIP_CM_STORE); is $zip->write($content[1]), length($content[1]), "write"; ok $zip->close(), "closed"; my @got = getContent($file1, BlockSize => $blockSize); is $got[0], $content[0], "Got 1st entry"; is $got[1], $content[1], "Got 2nd entry"; } { title "Zip file with a single zero-length file"; my $lex = new LexFile my $file1; my $zip = new IO::Compress::Zip $file1, Name => "one", Method => ZIP_CM_STORE, Stream => 0; isa_ok $zip, "IO::Compress::Zip"; $zip->newStream(Name=> "two", Method => ZIP_CM_STORE); ok $zip->close(), "closed"; my @got = getContent($file1); is $got[0], "", "no content"; is $got[1], "", "no content"; } SKIP: for my $method (ZIP_CM_DEFLATE, ZIP_CM_STORE, ZIP_CM_BZIP2) { title "Read a line from zip, Method $method"; skip "IO::Compress::Bzip2 not available", 14 unless defined $IO::Compress::Bzip2::VERSION; my $content = "a single line\n"; my $zip ; my $status = zip \$content => \$zip, Method => $method, Stream => 0, Name => "123"; is $status, 1, " Created a zip file"; my $u = new IO::Uncompress::Unzip \$zip; isa_ok $u, "IO::Uncompress::Unzip"; is $u->getline, $content, " Read first line ok"; ok ! $u->getline, " Second line doesn't exist"; } { title "isMethodAvailable" ; ok IO::Compress::Zip::isMethodAvailable(ZIP_CM_STORE), "ZIP_CM_STORE available"; ok IO::Compress::Zip::isMethodAvailable(ZIP_CM_DEFLATE), "ZIP_CM_DEFLATE available"; #ok IO::Compress::Zip::isMethodAvailable(ZIP_CM_STORE), "ZIP_CM_STORE available"; ok ! IO::Compress::Zip::isMethodAvailable(999), "999 not available"; } { title "Member & Comment 0"; my $lex = new LexFile my $file1; my $content = 'hello' ; my $zip = new IO::Compress::Zip $file1, Name => "0", Comment => "0" ; isa_ok $zip, "IO::Compress::Zip"; is $zip->write($content), length($content), "write"; ok $zip->close(), "closed"; my $u = new IO::Uncompress::Unzip $file1, Append => 1, @_ or die "Cannot open $file1: $UnzipError"; isa_ok $u, "IO::Uncompress::Unzip"; my $name = $u->getHeaderInfo()->{Name}; is $u->getHeaderInfo()->{Name}, "0", "Name is '0'"; }