Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
CGI /
[ HOME SHELL ]
Name
Size
Permission
Action
Application
[ DIR ]
drwxr-xr-x
File
[ DIR ]
drwxr-xr-x
FormBuilder
[ DIR ]
drwxr-xr-x
HTML
[ DIR ]
drwxr-xr-x
Session
[ DIR ]
drwxr-xr-x
Simple
[ DIR ]
drwxr-xr-x
Untaint
[ DIR ]
drwxr-xr-x
XMLForm
[ DIR ]
drwxr-xr-x
Ajax.pm
43.14
KB
-rw-r--r--
Application.pm
79.77
KB
-rw-r--r--
Carp.pm
18.58
KB
-rw-r--r--
Cookie.pm
17.09
KB
-rw-r--r--
Fast.pm
9.54
KB
-rw-r--r--
FormBuilder.pm
52.72
KB
-rw-r--r--
FormBuilder.pod
91.21
KB
-rw-r--r--
Pretty.pm
1.9
KB
-rw-r--r--
Push.pm
9.87
KB
-rw-r--r--
Session.pm
49.96
KB
-rw-r--r--
Simple.pm
124.09
KB
-rw-r--r--
Untaint.pm
8.92
KB
-rw-r--r--
Util.pm
11.41
KB
-rw-r--r--
XML.pm
2.77
KB
-rw-r--r--
XMLForm.pm
13.39
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : XML.pm
package CGI::XML; use strict; use CGI; use vars qw($VERSION @ISA $self $parser); use XML::Parser; @ISA = qw(CGI); $VERSION = '0.1'; sub toXML { my ($self,$root) = @_; my $xml = join "\n", (map { "<$_>" . &QuoteXMLChars($self->param($_)) . "</$_>" } $self->param), ""; return $root ? "<$root>\n$xml</$root>\n" : $xml; } sub toCGI { my ($self, $xml) = @_; my $root; my $parser = new XML::Parser(Handlers => {Char => $self->handle_char}); $parser->parse($xml); } sub handle_char { my $self = shift; return sub { my ($parser,$cdata) = @_; return if $parser->depth == 1; my $element = $parser->current_element; $self->delete($element); unshift @{$self->param_fetch(-name=>$element)},$cdata; } } sub QuoteXMLChars { $_[0] =~ s/&/&/g; $_[0] =~ s/</</g; $_[0] =~ s/>/>/g; $_[0] =~ s/'/'/g; $_[0] =~ s/"/"/g; $_[0] =~ s/([\x80-\xFF])/&XmlUtf8Encode(ord($1))/ge; return($_[0]); } sub XmlUtf8Encode { # borrowed from XML::DOM my $n = shift; if ($n < 0x80) { return chr ($n); } elsif ($n < 0x800) { return pack ("CC", (($n >> 6) | 0xc0), (($n & 0x3f) | 0x80)); } elsif ($n < 0x10000) { return pack ("CCC", (($n >> 12) | 0xe0), ((($n >> 6) & 0x3f) | 0x80), (($n & 0x3f) | 0x80)); } elsif ($n < 0x110000) { return pack ("CCCC", (($n >> 18) | 0xf0), ((($n >> 12) & 0x3f) | 0x80), ((($n >> 6) & 0x3f) | 0x80), (($n & 0x3f) | 0x80)); } return $n; } 1; __END__ =head1 NAME CGI::XML - Perl extension for converting CGI.pm variables to/from XML =head1 SYNOPSIS use CGI::XML; $q = new CGI::XML; # convert CGI.pm variables to XML $xml = $q->toXML; $xml = $q->toXML($root); # convert XML to CGI.pm variables $q->toCGI($xml); =head1 DESCRIPTION The CGI::XML module converts CGI.pm variables to XML and vice versa. B<CGI::XML> is a subclass of B<CGI.pm>, so it reads the CGI variables just as CGI.pm would. =head1 METHODS =over 4 =item $q = new CGI::XML creates a new instance of CGI::XML. You also have access to all of the methods in CGI.pm. =item $q->toXML([$root]) where B<$root> is an optional parameter that specifies the root element. By default, B<toXML> will not return a root element. =item $q->toCGI($xml) where B<$xml> is the XML you would like to convert to CGI.pm parameters. Values in the XML will overwrite any existing values if they exist. =back =head1 NOTE B<CGI::XML> does not currently handle multiple selections passed from HTML forms. This will be added in a future release. =head1 AUTHOR Jonathan Eisenzopf <eisen@pobox.com> =head1 CONTRIBUTORS David Black <dblack@candle.superlink.net> =head1 SEE ALSO perl(1), XML::Parser(3). =cut
Close