shell bypass 403

UnknownSec Shell

: /home/.cpan/build/Test-File-1.995-0/t/ [ drwxr-xr-x ]
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: 172.67.154.186
Your Ip: 216.73.216.55
User: espa7358 (1004) | Group: espa7358 (1003)
Safe Mode: OFF
Disable Function:
NONE

name : normalize.t
use Test::More;

use File::Spec;

use_ok( 'Test::File' );

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Try it when it should work
subtest file_spec_unix => sub {
	my $module = 'File::Spec::Unix';
	use_ok( $module );
	local @File::Spec::ISA = ( $module );

	my $file       = '/foo/bar/baz';
	my $normalized = Test::File::_normalize( $file );

	is( $normalized, $file, "Normalize gives same path for unix" );
	};

subtest file_spec_win32 => sub {
	my $module = 'File::Spec::Win32';
	use_ok( $module );
	local @File::Spec::ISA = ( $module );

	my $file       = '/foo/bar/baz';
	my $normalized = Test::File::_normalize( $file );

	isnt( $normalized, $file, "Normalize gives different path for Win32" );
	is(   $normalized, '\foo\bar\baz', "Normalize gives right path for Win32" );
	};

subtest file_spec_mac => sub {
	my $module = 'File::Spec::Mac';
	use_ok( $module );
	local @File::Spec::ISA = ( $module );

	my $file       = '/foo/bar/baz';
	my $normalized = Test::File::_normalize( $file );

	isnt( $normalized, $file, "Normalize gives different path for Mac" );
	is( $normalized, 'foo:bar:baz', "Normalize gives right path for Mac" );
	};

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# Try it when it shouldn't work
subtest normalize_undef => sub {
	my $normalized = Test::File::_normalize( undef );
	ok( ! defined $normalized, "Passing undef fails" );
	};

subtest normalize_empty => sub {
	my $normalized = Test::File::_normalize( '' );
	ok( defined $normalized, "Passing empty string returns defined value" );
	is( $normalized, '', "Passing empty string returns empty string" );
	ok( ! $normalized, "Passing empty string fails" );
	};

subtest normalize_empty => sub {
	my $normalized = Test::File::_normalize();
	ok( ! defined $normalized, "Passing nothing fails" );
	};

done_testing();
© 2026 UnknownSec