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 /
lib /
ruby /
vendor_ruby /
mail /
encodings /
[ HOME SHELL ]
Name
Size
Permission
Action
7bit.rb
480
B
-rw-r--r--
8bit.rb
436
B
-rw-r--r--
base64.rb
828
B
-rw-r--r--
binary.rb
238
B
-rw-r--r--
identity.rb
476
B
-rw-r--r--
quoted_printable.rb
1.09
KB
-rw-r--r--
transfer_encoding.rb
2.27
KB
-rw-r--r--
unix_to_unix.rb
428
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : transfer_encoding.rb
# encoding: utf-8 # frozen_string_literal: true module Mail module Encodings class TransferEncoding NAME = '' PRIORITY = -1 # And encoding's superclass can always transport it since the # class hierarchy is arranged e.g. Base64 < 7bit < 8bit < Binary. def self.can_transport?(enc) enc && enc <= self end # Override in subclasses to indicate that they can encode text # that couldn't be directly transported, e.g. Base64 has 7bit output, # but it can encode binary. def self.can_encode?(enc) can_transport? enc end def self.cost(str) raise "Unimplemented" end def self.compatible_input?(str) true end def self.to_s self::NAME end def self.negotiate(message_encoding, source_encoding, str, allowed_encodings = nil) message_encoding = Encodings.get_encoding(message_encoding) || Encodings.get_encoding('8bit') source_encoding = Encodings.get_encoding(source_encoding) if message_encoding && source_encoding && message_encoding.can_transport?(source_encoding) && source_encoding.compatible_input?(str) source_encoding else renegotiate(message_encoding, source_encoding, str, allowed_encodings) end end def self.renegotiate(message_encoding, source_encoding, str, allowed_encodings = nil) encodings = Encodings.get_all.select do |enc| (allowed_encodings.nil? || allowed_encodings.include?(enc)) && message_encoding.can_transport?(enc) && enc.can_encode?(source_encoding) end lowest_cost(str, encodings) end def self.lowest_cost(str, encodings) best = nil best_cost = nil encodings.each do |enc| # If the current choice cannot be transported safely, give priority # to other choices but allow it to be used as a fallback. this_cost = enc.cost(str) if enc.compatible_input?(str) if !best_cost || (this_cost && this_cost < best_cost) best_cost = this_cost best = enc elsif this_cost == best_cost best = enc if enc::PRIORITY < best::PRIORITY end end best end end end end
Close