shell bypass 403

UnknownSec Shell

Uname: Linux dedi-15171674.espacofacial.com.br 5.14.0-687.36.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 7 05:40:49 EDT 2026 x86_64
Software: Apache
PHP version: 8.2.33 [ PHP INFO ] PHP os: Linux
Server Ip: 104.21.5.151
Your Ip: 216.73.216.87
User: espa7358 (1004) | Group: espa7358 (1003)
Safe Mode: OFF
Disable Function:
NONE

name : process-relative.t
#============================================================= -*-perl-*-
#
# t/process-relative.t
#
# Test template process with . in INCLUDE_PATH
#
# Written by Nicolas R. <[email protected]>
#
# Copyright (C) 2018 cPanel Inc.  All Rights Reserved.
#
# This is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
#
# $Id$
#
#========================================================================

use strict;
use lib qw( ./lib ../lib );
use Template;

#use Template::Test;

use Test::More tests => 8;

#$Template::Test::DEBUG = 0;
#$Template::Context::DEBUG = 1;

my $template_file = q[t/test/dir/file1];

plan( skip_all => "File $template_file missing" ) unless -e $template_file;

foreach my $f ( $template_file, "./$template_file" ) {
    note "processing $f with INCLUDE_PATH='.' ; RELATIVE => 1";
    my $out;
    Template->new( { INCLUDE_PATH => ".", RELATIVE => 1 } )->process( $f, undef, \$out );
    is $out => q[This is file 1], "process file $f";
}

foreach my $f ( $template_file, "./$template_file" ) {
    note "processing $f with RELATIVE => 1";
    my $out;
    Template->new( { RELATIVE => 1 } )->process( $f, undef, \$out );
    is $out => q[This is file 1], "process file $f";
}

{
    my $f = $template_file;
    note "processing $f with INCLUDE_PATH='.'";
    my $out;
    Template->new( { INCLUDE_PATH => "." } )->process( $f, undef, \$out );
    is $out => q[This is file 1], "process file $f";
}

{
    my $f = "./$template_file";
    note "processing $f with INCLUDE_PATH='.'";
    my $out;
    Template->new( { INCLUDE_PATH => "." } )->process( $f, undef, \$out );
    is $out => undef, "process file $f fails without setting RELATIVE";
}

{
    my $out;
    my $f = $template_file;
    note "processing $f without INCLUDE_PATH set";
    Template->new()->process( $f, undef, \$out );
    is $out => q[This is file 1], "process file $f";
}

{
    my $out;
    my $f = "./$template_file";
    note "processing $f without INCLUDE_PATH set";
    Template->new()->process( $f, undef, \$out );
    is $out => undef, "process file $f";
}
© 2026 UnknownSec