shell bypass 403

GrazzMean Shell

: /usr/share/doc/perl-Moose/t/bugs/ [ 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: 18.220.121.42
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : find_custom_trait_rt_92089.t
use strict;
use warnings;

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

{
    package Custom::Trait;
    use Moose::Role;

    my $alias         = 'Trait1';
    my $new_role_name = __PACKAGE__ . "::$alias";
    Moose::Meta::Role->initialize($new_role_name);
    Moose::Exporter->setup_import_methods(
        exporting_package => $new_role_name );
    Moose::Util::meta_attribute_alias( $alias, $new_role_name );
}

is(
    exception {
        package Foo;
        use Moose;
        use Custom::Trait;

        has field1 => ( is => 'rw', traits => [qw{Trait1}] );

        Foo->new;
    },
    undef,
    'Trait that is not an on-disk role works'
);

like(
    exception {
        package Bar;
        use Moose;
        use Custom::Trait;

        has field1 => ( is => 'rw', traits => [qw{UndeclaredTrait}] );
        Bar->new;
    },
    qr/\QCan't locate Moose::Meta::Attribute::Custom::Trait::UndeclaredTrait or UndeclaredTrait/,
    'Traits with no alias or package cause an exception'
);

done_testing();
© 2025 GrazzMean