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 /
dist /
Tie-File /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
00_version.t
356
B
-r--r--r--
2014-12-27 11:49
01_gen.t
3.83
KB
-r--r--r--
2014-12-27 11:48
02_fetchsize.t
828
B
-r--r--r--
2014-12-27 11:48
03_longfetch.t
906
B
-r--r--r--
2014-12-27 11:48
04_splice.t
7.52
KB
-r--r--r--
2014-12-27 11:48
05_size.t
2.38
KB
-r--r--r--
2014-12-27 11:48
06_fixrec.t
882
B
-r--r--r--
2014-12-27 11:48
07_rv_splice.t
5.31
KB
-r--r--r--
2014-12-27 11:48
08_ro.t
1.85
KB
-r--r--r--
2014-12-27 11:48
09_gen_rs.t
5.5
KB
-r--r--r--
2014-12-27 11:48
10_splice_rs.t
6.4
KB
-r--r--r--
2014-12-27 11:48
11_rv_splice_rs.t
4.85
KB
-r--r--r--
2014-12-27 11:48
12_longfetch_rs.t
650
B
-r--r--r--
2014-12-27 11:48
13_size_rs.t
1.51
KB
-r--r--r--
2014-12-27 11:48
14_lock.t
1007
B
-r--r--r--
2014-12-27 11:48
15_pushpop.t
3.08
KB
-r--r--r--
2014-12-27 11:48
16_handle.t
3.33
KB
-r--r--r--
2014-12-27 11:48
17_misc_meth.t
3.41
KB
-r--r--r--
2014-12-27 11:48
18_rs_fixrec.t
880
B
-r--r--r--
2014-12-27 11:48
19_cache.t
4.49
KB
-r--r--r--
2014-12-27 11:48
20_cache_full.t
5.35
KB
-r--r--r--
2014-12-27 11:48
21_win32.t
1.08
KB
-r--r--r--
2014-12-27 11:48
22_autochomp.t
3.94
KB
-r--r--r--
2014-12-27 11:48
23_rv_ac_splice.t
4.9
KB
-r--r--r--
2014-12-27 11:48
24_cache_loop.t
1.23
KB
-r--r--r--
2014-12-27 11:48
25_gen_nocache.t
3.02
KB
-r--r--r--
2014-12-27 11:48
26_twrite.t
16.82
KB
-r--r--r--
2014-12-27 11:48
27_iwrite.t
10.41
KB
-r--r--r--
2014-12-27 11:48
28_mtwrite.t
11.97
KB
-r--r--r--
2014-12-27 11:48
29_downcopy.t
16.81
KB
-r--r--r--
2014-12-27 11:48
29a_upcopy.t
4.78
KB
-r--r--r--
2014-12-27 11:48
30_defer.t
9.58
KB
-r--r--r--
2014-12-27 11:48
31_autodefer.t
4.58
KB
-r--r--r--
2014-12-27 11:48
32_defer_misc.t
4.99
KB
-r--r--r--
2014-12-27 11:48
33_defer_vs.t
2.76
KB
-r--r--r--
2014-12-27 11:48
40_abs_cache.t
5.33
KB
-r--r--r--
2014-12-27 11:48
41_heap.t
4.94
KB
-r--r--r--
2014-12-27 11:48
42_offset.t
1.51
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
#!/usr/bin/perl # # Unit tests of _iwrite function # # _iwrite($self, $data, $start, $end) # # 'i' here is for 'insert'. This writes $data at absolute position $start # in the file, copying the data at that position downwards--- # but only down to position $end. Data at or past $end is not moved # or even examined. Since there isn't enough room for the full copy # (Because we inserted $data at the beginning) we copy as much as possible # and return a string containing the remainder. my $file = "tf$$.txt"; $| = 1; print "1..203\n"; my $N = 1; my $oldfile; use Tie::File; print "ok $N\n"; $N++; $: = Tie::File::_default_recsep(); $FLEN = 40970; # Use files of this length $oldfile = mkrand($FLEN); print "# MOF tests\n"; # (2-85) These were generated by 'gentests.pl' to cover all possible cases # (I hope) # Legend: # x: data is entirely contained within one block # x>: data runs from the middle to the end of the block # <x: data runs from the start to the middle of the block # <x>: data occupies precisely one block # x><x: data overlaps one block boundary # <x><x: data runs from the start of one block into the middle of the next # x><x>: data runs from the middle of one block to the end of the next # <x><x>: data occupies two blocks exactly # <x><x><x>: data occupies three blocks exactly # 0: data is null # # For each possible alignment of the old and new data, we investigate # up to three situations: old data is shorter, old and new data are the # same length, and new data is shorter. # # try($pos, $old, $new) means to run a test where the area being # written into starts at position $pos, the area being written into # has length $old, and and the new data has length $new. try( 8605, 2394, 2394); # old=x , new=x ; old = new try( 9768, 1361, 664); # old=x , new=x ; old > new try( 9955, 6429, 6429); # old=x> , new=x ; old = new try(10550, 5834, 4123); # old=x> , new=x ; old > new try(14580, 6158, 851); # old=x><x , new=x ; old > new try(13442, 11134, 1572); # old=x><x> , new=x ; old > new try( 8192, 514, 514); # old=<x , new=<x ; old = new try( 8192, 2196, 858); # old=<x , new=<x ; old > new try( 8192, 8192, 8192); # old=<x> , new=<x ; old = new try( 8192, 8192, 1290); # old=<x> , new=<x ; old > new try( 8192, 10575, 6644); # old=<x><x , new=<x ; old > new try( 8192, 16384, 5616); # old=<x><x> , new=<x ; old > new try( 8192, 24576, 6253); # old=<x><x><x>, new=<x ; old > new try( 9965, 6419, 6419); # old=x> , new=x> ; old = new try(16059, 6102, 325); # old=x><x , new=x> ; old > new try( 9503, 15073, 6881); # old=x><x> , new=x> ; old > new try(16316, 1605, 1605); # old=x><x , new=x><x ; old = new try(16093, 4074, 993); # old=x><x , new=x><x ; old > new try(14739, 9837, 9837); # old=x><x> , new=x><x ; old = new try(14071, 10505, 7344); # old=x><x> , new=x><x ; old > new try( 8192, 8192, 8192); # old=<x> , new=<x> ; old = new try( 8192, 14817, 8192); # old=<x><x , new=<x> ; old > new try( 8192, 16384, 8192); # old=<x><x> , new=<x> ; old > new try( 8192, 24576, 8192); # old=<x><x><x>, new=<x> ; old > new try( 8192, 9001, 9001); # old=<x><x , new=<x><x ; old = new try( 8192, 11760, 10274); # old=<x><x , new=<x><x ; old > new try( 8192, 16384, 10781); # old=<x><x> , new=<x><x ; old > new try( 8192, 24576, 9284); # old=<x><x><x>, new=<x><x ; old > new try(14761, 9815, 9815); # old=x><x> , new=x><x> ; old = new try( 8192, 16384, 16384); # old=<x><x> , new=<x><x> ; old = new try( 8192, 24576, 16384); # old=<x><x><x>, new=<x><x> ; old > new try( 8192, 24576, 24576); # old=<x><x><x>, new=<x><x><x>; old = new try( 8771, 776, 0); # old=x , new=0 ; old > new try( 8192, 2813, 0); # old=<x , new=0 ; old > new try(13945, 2439, 0); # old=x> , new=0 ; old > new try(14493, 6090, 0); # old=x><x , new=0 ; old > new try( 8192, 8192, 0); # old=<x> , new=0 ; old > new try( 8192, 10030, 0); # old=<x><x , new=0 ; old > new try(14983, 9593, 0); # old=x><x> , new=0 ; old > new try( 8192, 16384, 0); # old=<x><x> , new=0 ; old > new try( 8192, 24576, 0); # old=<x><x><x>, new=0 ; old > new try(10489, 0, 0); # old=0 , new=0 ; old = new print "# SOF tests\n"; # (86-133) # These tests all take place at the start of the file try( 0, 4868, 4868); # old=<x , new=<x ; old = new try( 0, 147, 118); # old=<x , new=<x ; old > new try( 0, 8192, 8192); # old=<x> , new=<x ; old = new try( 0, 8192, 4574); # old=<x> , new=<x ; old > new try( 0, 11891, 1917); # old=<x><x , new=<x ; old > new try( 0, 16384, 5155); # old=<x><x> , new=<x ; old > new try( 0, 24576, 2953); # old=<x><x><x>, new=<x ; old > new try( 0, 8192, 8192); # old=<x> , new=<x> ; old = new try( 0, 11083, 8192); # old=<x><x , new=<x> ; old > new try( 0, 16384, 8192); # old=<x><x> , new=<x> ; old > new try( 0, 24576, 8192); # old=<x><x><x>, new=<x> ; old > new try( 0, 14126, 14126); # old=<x><x , new=<x><x ; old = new try( 0, 12002, 9034); # old=<x><x , new=<x><x ; old > new try( 0, 16384, 13258); # old=<x><x> , new=<x><x ; old > new try( 0, 24576, 14367); # old=<x><x><x>, new=<x><x ; old > new try( 0, 16384, 16384); # old=<x><x> , new=<x><x> ; old = new try( 0, 24576, 16384); # old=<x><x><x>, new=<x><x> ; old > new try( 0, 24576, 24576); # old=<x><x><x>, new=<x><x><x>; old = new try( 0, 6530, 0); # old=<x , new=0 ; old > new try( 0, 8192, 0); # old=<x> , new=0 ; old > new try( 0, 14707, 0); # old=<x><x , new=0 ; old > new try( 0, 16384, 0); # old=<x><x> , new=0 ; old > new try( 0, 24576, 0); # old=<x><x><x>, new=0 ; old > new try( 0, 0, 0); # old=0 , new=0 ; old = new print "# EOF tests 1\n"; # (134-169) # These tests all take place at the end of the file $FLEN = 40960; # Force the file to be exactly 40960 bytes long $oldfile = mkrand($FLEN); try(32768, 8192, 8192); # old=<x> , new=<x ; old = new try(32768, 8192, 4026); # old=<x> , new=<x ; old > new try(24576, 16384, 1917); # old=<x><x> , new=<x ; old > new try(16384, 24576, 3818); # old=<x><x><x>, new=<x ; old > new try(32768, 8192, 8192); # old=<x> , new=<x> ; old = new try(24576, 16384, 8192); # old=<x><x> , new=<x> ; old > new try(16384, 24576, 8192); # old=<x><x><x>, new=<x> ; old > new try(24576, 16384, 12221); # old=<x><x> , new=<x><x ; old > new try(16384, 24576, 15030); # old=<x><x><x>, new=<x><x ; old > new try(24576, 16384, 16384); # old=<x><x> , new=<x><x> ; old = new try(16384, 24576, 16384); # old=<x><x><x>, new=<x><x> ; old > new try(16384, 24576, 24576); # old=<x><x><x>, new=<x><x><x>; old = new try(35973, 4987, 0); # old=x> , new=0 ; old > new try(32768, 8192, 0); # old=<x> , new=0 ; old > new try(29932, 11028, 0); # old=x><x> , new=0 ; old > new try(24576, 16384, 0); # old=<x><x> , new=0 ; old > new try(16384, 24576, 0); # old=<x><x><x>, new=0 ; old > new try(40960, 0, 0); # old=0 , new=0 ; old = new print "# EOF tests 2\n"; # (170-203) # These tests all take place at the end of the file $FLEN = 42000; # Force the file to be exactly 42000 bytes long $oldfile = mkrand($FLEN); try(41683, 317, 317); # old=x , new=x ; old = new try(41225, 775, 405); # old=x , new=x ; old > new try(35709, 6291, 284); # old=x><x , new=x ; old > new try(40960, 1040, 1040); # old=<x , new=<x ; old = new try(40960, 1040, 378); # old=<x , new=<x ; old > new try(32768, 9232, 5604); # old=<x><x , new=<x ; old > new try(39994, 2006, 966); # old=x><x , new=x> ; old > new try(36725, 5275, 5275); # old=x><x , new=x><x ; old = new try(37990, 4010, 3199); # old=x><x , new=x><x ; old > new try(32768, 9232, 8192); # old=<x><x , new=<x> ; old > new try(32768, 9232, 9232); # old=<x><x , new=<x><x ; old = new try(32768, 9232, 8795); # old=<x><x , new=<x><x ; old > new try(41500, 500, 0); # old=x , new=0 ; old > new try(40960, 1040, 0); # old=<x , new=0 ; old > new try(35272, 6728, 0); # old=x><x , new=0 ; old > new try(32768, 9232, 0); # old=<x><x , new=0 ; old > new try(42000, 0, 0); # old=0 , new=0 ; old = new sub mkrand { my $len = shift; srand $len; my @c = ('a' .. 'z', 'A' .. 'Z', 0..9, $:); my $d = ""; $d .= $c[rand @c] until length($d) >= $len; substr($d, $len) = ""; # chop it off to the proper length $d; } sub try { my ($s, $len, $newlen) = @_; my $e = $s + $len; open F, "> $file" or die "Couldn't open file $file: $!"; binmode F; print F $oldfile; close F; die "wrong length!" unless -s $file == $FLEN; my $newdata = "-" x $newlen; my $expected = $oldfile; my $expected_return = substr($expected, $e - $newlen, $newlen, ""); substr($expected, $s, 0, $newdata); my $o = tie my @lines, 'Tie::File', $file or die $!; my $actual_return = $o->_iwrite($newdata, $s, $e); undef $o; untie @lines; open F, "< $file" or die "Couldn't open file $file: $!"; binmode F; my $actual; { local $/; $actual = <F>; } close F; my ($alen, $xlen) = (length $actual, length $expected); unless ($alen == $xlen) { print "# try(@_) expected file length $xlen, actual $alen!\n"; } print $actual eq $expected ? "ok $N\n" : "not ok $N\n"; $N++; if (! defined $actual_return && ! defined $expected_return) { print "ok $N\n"; } elsif (! defined $actual_return || ! defined $expected_return) { print "not ok $N\n"; } else { print $actual_return eq $expected_return ? "ok $N\n" : "not ok $N\n"; } $N++; } sub ctrlfix { for (@_) { s/\n/\\n/g; s/\r/\\r/g; } } END { 1 while unlink $file; }