shell bypass 403

GrazzMean Shell

: /usr/share/doc/perl-Moose/t/exceptions/ [ drwxr-xr-x ]
Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.137.187.85
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : class-mop-class-immutable-trait.t
use strict;
use warnings;

use Test::More;
use Test::Fatal;

use Moose();

{
    my $exception = exception {
        package Foo;
        use Moose;
        __PACKAGE__->meta->make_immutable;
        __PACKAGE__->meta->superclasses("Bar");
    };

    like(
        $exception,
        qr/The 'superclasses' method is read-only when called on an immutable instance/,
        "calling 'foo' on an immutable instance");

    isa_ok(
        $exception,
        "Moose::Exception::CallingReadOnlyMethodOnAnImmutableInstance",
        "calling 'foo' on an immutable instance");

    is(
        $exception->method_name,
        "superclasses",
        "calling 'foo' on an immutable instance");
}

{
    my $exception = exception {
        package Foo;
        use Moose;
        __PACKAGE__->meta->make_immutable;
        __PACKAGE__->meta->add_method( foo => sub { "foo" } );
    };

    like(
        $exception,
        qr/The 'add_method' method cannot be called on an immutable instance/,
        "calling 'add_method' on an immutable instance");

    isa_ok(
        $exception,
        "Moose::Exception::CallingMethodOnAnImmutableInstance",
        "calling 'add_method' on an immutable instance");

    is(
        $exception->method_name,
        "add_method",
        "calling 'add_method' on an immutable instance");
}

done_testing;
© 2025 GrazzMean