⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
usr
/
share
/
perl5
/
Archive
/
Cpio
/
View File Name :
FileHandle_with_pushback.pm
package Archive::Cpio::FileHandle_with_pushback; sub new { my ($class, $F) = @_; bless { F => $F, already_read => '' }, $class; } sub pushback { my ($FHwp, $s) = @_; $FHwp->{already_read} .= $s; } sub read { my ($FHwp, $size) = @_; $size or return; $size =~ /^\d+$/ or die "bad size $size\n"; my $tmp = ''; if ($FHwp->{already_read}) { $tmp = substr($FHwp->{already_read}, 0, $size); substr($FHwp->{already_read}, 0, $size) = ''; $size -= length($tmp); } read($FHwp->{F}, $tmp, $size, length($tmp)) == $size or die "unexpected end of file while reading (got $tmp)\n"; $tmp; } sub read_ahead { my ($FHwp, $size) = @_; my $s = $FHwp->read($size); $FHwp->pushback($s); $s; } 1;