shell bypass 403

GrazzMean Shell

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

name : 009_import_unimport.t
#!/usr/bin/perl

use strict;
use warnings;

use Test::More tests => 40;


my @moose_exports = qw(
    extends with
    has
    before after around
    override
    augment
    super inner
);

{
    package Foo;

    eval 'use Mouse';
    die $@ if $@;
}

can_ok('Foo', $_) for @moose_exports;

{
    package Foo;

    eval 'no Mouse';
    die $@ if $@;
}

ok(!Foo->can($_), '... Foo can no longer do ' . $_) for @moose_exports;

# and check the type constraints as well

my @moose_type_constraint_exports = qw(
    type subtype as where message
    coerce from via
    enum
    find_type_constraint
);

{
    package Bar;

    eval 'use Mouse::Util::TypeConstraints';
    die $@ if $@;
}

can_ok('Bar', $_) for @moose_type_constraint_exports;

{
    package Bar;

    eval 'no Mouse::Util::TypeConstraints';
    die $@ if $@;
}


ok(!Bar->can($_), '... Bar can no longer do ' . $_) for @moose_type_constraint_exports;


© 2025 GrazzMean