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: 18.226.222.106
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : with-debugging.t
use strict;
use warnings;

BEGIN {
    # t/exceptions/without-debugging.t and t/exceptions/with-debugging.t are
    # identical except for this one line.
    $^P |= 0x200;
}

use Test::More tests => 2;
use Test::Moose;
use Moose::Exception;

# with_immutable only toggles on, not off
Moose::Exception->meta->make_mutable;

my ($line1, $line2);
sub foo
{
    $line1 = __LINE__; return Moose::Exception->new(
        message => 'something bad happened',
    );
}

with_immutable {
    my $immutable = shift;

    note "testing with immutable = $immutable, \$\^P is $^P";

    like(
        do { $line2 = __LINE__; foo() },
        qr{^something bad happened at .* line $line1\n\tmain::foo at .* line $line2},
        "exception is well-formed (immutable = $immutable)",
    );
}
'Moose::Exception';
© 2025 GrazzMean