Linux ip-172-26-2-223 5.4.0-1018-aws #18-Ubuntu SMP Wed Jun 24 01:15:00 UTC 2020 x86_64
Apache
: 172.26.2.223 | : 3.142.243.141
Cant Read [ /etc/named.conf ]
8.1.13
www
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
/
usr /
lib /
ruby /
2.7.0 /
rexml /
[ HOME SHELL ]
Name
Size
Permission
Action
dtd
[ DIR ]
drwxr-xr-x
formatters
[ DIR ]
drwxr-xr-x
light
[ DIR ]
drwxr-xr-x
parsers
[ DIR ]
drwxr-xr-x
validation
[ DIR ]
drwxr-xr-x
attlistdecl.rb
1.92
KB
-rw-r--r--
attribute.rb
5.97
KB
-rw-r--r--
cdata.rb
1.59
KB
-rw-r--r--
child.rb
2.66
KB
-rw-r--r--
comment.rb
2.12
KB
-rw-r--r--
doctype.rb
7.97
KB
-rw-r--r--
document.rb
9.55
KB
-rw-r--r--
element.rb
44
KB
-rw-r--r--
encoding.rb
1.16
KB
-rw-r--r--
entity.rb
5.4
KB
-rw-r--r--
functions.rb
12.27
KB
-rw-r--r--
instruction.rb
2.14
KB
-rw-r--r--
namespace.rb
1.4
KB
-rw-r--r--
node.rb
2.18
KB
-rw-r--r--
output.rb
553
B
-rw-r--r--
parent.rb
4.27
KB
-rw-r--r--
parseexception.rb
1.25
KB
-rw-r--r--
quickpath.rb
9.12
KB
-rw-r--r--
rexml.rb
1.29
KB
-rw-r--r--
sax2listener.rb
3.61
KB
-rw-r--r--
security.rb
824
B
-rw-r--r--
source.rb
6.75
KB
-rw-r--r--
streamlistener.rb
3.84
KB
-rw-r--r--
text.rb
14.57
KB
-rw-r--r--
undefinednamespaceexception.rb
244
B
-rw-r--r--
xmldecl.rb
2.95
KB
-rw-r--r--
xmltokens.rb
2.32
KB
-rw-r--r--
xpath.rb
3.42
KB
-rw-r--r--
xpath_parser.rb
29.63
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : source.rb
# coding: US-ASCII # frozen_string_literal: false require_relative 'encoding' module REXML # Generates Source-s. USE THIS CLASS. class SourceFactory # Generates a Source object # @param arg Either a String, or an IO # @return a Source, or nil if a bad argument was given def SourceFactory::create_from(arg) if arg.respond_to? :read and arg.respond_to? :readline and arg.respond_to? :nil? and arg.respond_to? :eof? IOSource.new(arg) elsif arg.respond_to? :to_str require 'stringio' IOSource.new(StringIO.new(arg)) elsif arg.kind_of? Source arg else raise "#{arg.class} is not a valid input stream. It must walk \n"+ "like either a String, an IO, or a Source." end end end # A Source can be searched for patterns, and wraps buffers and other # objects and provides consumption of text class Source include Encoding # The line number of the last consumed text attr_reader :line attr_reader :encoding # Constructor # @param arg must be a String, and should be a valid XML document # @param encoding if non-null, sets the encoding of the source to this # value, overriding all encoding detection def initialize(arg, encoding=nil) @orig = arg @scanner = StringScanner.new(@orig) if encoding self.encoding = encoding else detect_encoding end @line = 0 end # The current buffer (what we're going to read next) def buffer @scanner.rest end def buffer_encoding=(encoding) @scanner.string.force_encoding(encoding) end # Inherited from Encoding # Overridden to support optimized en/decoding def encoding=(enc) return unless super encoding_updated end def read(term = nil) end def read_until(term) @scanner.scan_until(Regexp.union(term)) or @scanner.rest end def match(pattern, cons=false) if cons @scanner.scan(pattern).nil? ? nil : @scanner else @scanner.check(pattern).nil? ? nil : @scanner end end def position @scanner.pos end def position=(pos) @scanner.pos = pos end # @return true if the Source is exhausted def empty? @scanner.eos? end # @return the current line in the source def current_line lines = @orig.split res = lines.grep @scanner.rest[0..30] res = res[-1] if res.kind_of? Array lines.index( res ) if res end private def detect_encoding scanner_encoding = @scanner.rest.encoding detected_encoding = "UTF-8" begin @scanner.string.force_encoding("ASCII-8BIT") if @scanner.scan(/\xfe\xff/n) detected_encoding = "UTF-16BE" elsif @scanner.scan(/\xff\xfe/n) detected_encoding = "UTF-16LE" elsif @scanner.scan(/\xef\xbb\xbf/n) detected_encoding = "UTF-8" end ensure @scanner.string.force_encoding(scanner_encoding) end self.encoding = detected_encoding end def encoding_updated if @encoding != 'UTF-8' @scanner.string = decode(@scanner.rest) @to_utf = true else @to_utf = false @scanner.string.force_encoding(::Encoding::UTF_8) end end end # A Source that wraps an IO. See the Source class for method # documentation class IOSource < Source #attr_reader :block_size # block_size has been deprecated def initialize(arg, block_size=500, encoding=nil) @er_source = @source = arg @to_utf = false @pending_buffer = nil if encoding super("", encoding) else super(@source.read(3) || "") end if !@to_utf and @orig.respond_to?(:force_encoding) and @source.respond_to?(:external_encoding) and @source.external_encoding != ::Encoding::UTF_8 @force_utf8 = true else @force_utf8 = false end end def read(term = nil, min_bytes = 1) term = encode(term) if term begin str = readline(term) @scanner << str read_bytes = str.bytesize begin while read_bytes < min_bytes str = readline(term) @scanner << str read_bytes += str.bytesize end rescue IOError end true rescue Exception, NameError @source = nil false end end def read_until(term) pattern = Regexp.union(term) term = encode(term) data = [] begin until str = @scanner.scan_until(pattern) @scanner << readline(term) end rescue EOFError @scanner.rest else read if @scanner.eos? and !@source.eof? str end end def match( pattern, cons=false, term: nil) read if @scanner.eos? && @source # To avoid performance issue, we need to increase bytes to read per scan min_bytes = 1 while true if cons md = @scanner.scan(pattern) else md = @scanner.check(pattern) end break if md return nil if pattern.is_a?(String) && pattern.bytesize <= @scanner.rest_size return nil if @source.nil? return nil unless read(nil, min_bytes) min_bytes *= 2 end md.nil? ? nil : @scanner end def empty? super and ( @source.nil? || @source.eof? ) end # @return the current line in the source def current_line begin pos = @er_source.pos # The byte position in the source lineno = @er_source.lineno # The XML < position in the source @er_source.rewind line = 0 # The \r\n position in the source begin while @er_source.pos < pos @er_source.readline line += 1 end rescue end @er_source.seek(pos) rescue IOError pos = -1 line = -1 end [pos, lineno, line] end private def readline(term = nil) str = @source.readline(term || @line_break) if @pending_buffer if str.nil? str = @pending_buffer else str = @pending_buffer + str end @pending_buffer = nil end return nil if str.nil? if @to_utf decode(str) else str.force_encoding(::Encoding::UTF_8) if @force_utf8 str end end def encoding_updated case @encoding when "UTF-16BE", "UTF-16LE" @source.binmode @source.set_encoding(@encoding, @encoding) end @line_break = encode(">") @pending_buffer, @scanner.string = @scanner.rest, "" @pending_buffer.force_encoding(@encoding) super end end end
Close