Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.159
Cant Read [ /etc/named.conf ]
8.1.31
www-data
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 /
gems /
3.0.0 /
gems /
rbs-1.0.4 /
lib /
rbs /
[ HOME SHELL ]
Name
Size
Permission
Action
ast
[ DIR ]
drwxr-xr-x
definition_builder
[ DIR ]
drwxr-xr-x
prototype
[ DIR ]
drwxr-xr-x
test
[ DIR ]
drwxr-xr-x
buffer.rb
890
B
-rw-r--r--
builtin_names.rb
1.56
KB
-rw-r--r--
cli.rb
21.91
KB
-rw-r--r--
constant.rb
461
B
-rw-r--r--
constant_table.rb
4.89
KB
-rw-r--r--
definition.rb
9.17
KB
-rw-r--r--
definition_builder.rb
29.39
KB
-rw-r--r--
environment.rb
13.72
KB
-rw-r--r--
environment_loader.rb
3.06
KB
-rw-r--r--
environment_walker.rb
4.11
KB
-rw-r--r--
errors.rb
8.66
KB
-rw-r--r--
factory.rb
301
B
-rw-r--r--
location.rb
2.31
KB
-rw-r--r--
method_type.rb
2.15
KB
-rw-r--r--
namespace.rb
2.12
KB
-rw-r--r--
parser.rb
95.03
KB
-rw-r--r--
parser.y
45.51
KB
-rw-r--r--
repository.rb
2.64
KB
-rw-r--r--
substitution.rb
1.23
KB
-rw-r--r--
test.rb
2.57
KB
-rw-r--r--
type_name.rb
1.61
KB
-rw-r--r--
type_name_resolver.rb
1.56
KB
-rw-r--r--
types.rb
25.19
KB
-rw-r--r--
validator.rb
1.76
KB
-rw-r--r--
variance_calculator.rb
3.89
KB
-rw-r--r--
vendorer.rb
2.03
KB
-rw-r--r--
version.rb
35
B
-rw-r--r--
writer.rb
8.12
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : environment_loader.rb
module RBS class EnvironmentLoader class UnknownLibraryError < StandardError attr_reader :library def initialize(lib:) @library = lib super("Cannot find type definitions for library: #{lib.name} (#{lib.version || "[nil]"})") end end Library = _ = Struct.new(:name, :version, keyword_init: true) attr_reader :core_root attr_reader :repository attr_reader :libs attr_reader :dirs DEFAULT_CORE_ROOT = Pathname(_ = __dir__) + "../../core" def self.gem_sig_path(name, version) spec = Gem::Specification.find_by_name(name, version) path = Pathname(spec.gem_dir) + "sig" if path.directory? [spec, path] end rescue Gem::MissingSpecError nil end def initialize(core_root: DEFAULT_CORE_ROOT, repository: Repository.new) @core_root = core_root @repository = repository @libs = [] @dirs = [] end def add(path: nil, library: nil, version: nil) case when path dirs << path when library libs << Library.new(name: library, version: version) end end def has_library?(library:, version:) if self.class.gem_sig_path(library, version) || repository.lookup(library, version) true else false end end def load(env:) # @type var loaded: Array[[AST::Declarations::t, Pathname, source]] loaded = [] each_decl do |decl, buf, source, path| env << decl loaded << [decl, path, source] end loaded end def each_dir if root = core_root yield :core, root end libs.each do |lib| unless has_library?(version: lib.version, library: lib.name) raise UnknownLibraryError.new(lib: lib) end case when from_gem = self.class.gem_sig_path(lib.name, lib.version) yield lib, from_gem[1] when from_repo = repository.lookup(lib.name, lib.version) yield lib, from_repo end end dirs.each do |dir| yield dir, dir end end def each_file(path, immediate:, skip_hidden:, &block) case when path.file? if path.extname == ".rbs" || immediate yield path end when path.directory? if path.basename.to_s.start_with?("_") if skip_hidden unless immediate return end end end path.children.sort.each do |child| each_file(child, immediate: false, skip_hidden: skip_hidden, &block) end end end def each_decl files = Set[] each_dir do |source, dir| skip_hidden = !source.is_a?(Pathname) each_file(dir, skip_hidden: skip_hidden, immediate: true) do |path| next if files.include?(path) files << path buffer = Buffer.new(name: path.to_s, content: path.read(encoding: "UTF-8")) Parser.parse_signature(buffer).each do |decl| yield decl, buffer, source, path end end end end end end
Close