Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.198
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby32 /
share /
ruby /
irb /
cmd /
Delete
Unzip
Name
Size
Permission
Date
Action
backtrace.rb
332
B
-rw-r--r--
2026-04-07 17:42
break.rb
318
B
-rw-r--r--
2026-04-07 17:42
catch.rb
324
B
-rw-r--r--
2026-04-07 17:42
chws.rb
698
B
-rw-r--r--
2026-04-07 17:42
continue.rb
263
B
-rw-r--r--
2026-04-07 17:42
debug.rb
4.39
KB
-rw-r--r--
2026-04-07 17:42
delete.rb
260
B
-rw-r--r--
2026-04-07 17:42
edit.rb
1.57
KB
-rw-r--r--
2026-04-07 17:42
finish.rb
259
B
-rw-r--r--
2026-04-07 17:42
fork.rb
671
B
-rw-r--r--
2026-04-07 17:42
help.rb
1.34
KB
-rw-r--r--
2026-04-07 17:42
info.rb
322
B
-rw-r--r--
2026-04-07 17:42
irb_info.rb
1.14
KB
-rw-r--r--
2026-04-07 17:42
load.rb
1.7
KB
-rw-r--r--
2026-04-07 17:42
ls.rb
3.38
KB
-rw-r--r--
2026-04-07 17:42
measure.rb
1.39
KB
-rw-r--r--
2026-04-07 17:42
next.rb
255
B
-rw-r--r--
2026-04-07 17:42
nop.rb
1.4
KB
-rw-r--r--
2026-04-07 17:42
pushws.rb
907
B
-rw-r--r--
2026-04-07 17:42
show_cmds.rb
969
B
-rw-r--r--
2026-04-07 17:42
show_source.rb
3.71
KB
-rw-r--r--
2026-04-07 17:42
step.rb
255
B
-rw-r--r--
2026-04-07 17:42
subirb.rb
1.36
KB
-rw-r--r--
2026-04-07 17:42
whereami.rb
461
B
-rw-r--r--
2026-04-07 17:42
Save
Rename
# frozen_string_literal: true require "reline" require_relative "nop" require_relative "../color" module IRB # :stopdoc: module ExtendCommand class Ls < Nop category "Context" description "Show methods, constants, and variables. `-g [query]` or `-G [query]` allows you to filter out the output." def self.transform_args(args) if match = args&.match(/\A(?<args>.+\s|)(-g|-G)\s+(?<grep>[^\s]+)\s*\n\z/) args = match[:args] "#{args}#{',' unless args.chomp.empty?} grep: /#{match[:grep]}/" else args end end def execute(*arg, grep: nil) o = Output.new(grep: grep) obj = arg.empty? ? irb_context.workspace.main : arg.first locals = arg.empty? ? irb_context.workspace.binding.local_variables : [] klass = (obj.class == Class || obj.class == Module ? obj : obj.class) o.dump("constants", obj.constants) if obj.respond_to?(:constants) dump_methods(o, klass, obj) o.dump("instance variables", obj.instance_variables) o.dump("class variables", klass.class_variables) o.dump("locals", locals) nil end def dump_methods(o, klass, obj) singleton_class = begin obj.singleton_class; rescue TypeError; nil end maps = class_method_map((singleton_class || klass).ancestors) maps.each do |mod, methods| name = mod == singleton_class ? "#{klass}.methods" : "#{mod}#methods" o.dump(name, methods) end end def class_method_map(classes) dumped = Array.new classes.reject { |mod| mod >= Object }.map do |mod| methods = mod.public_instance_methods(false).select do |m| dumped.push(m) unless dumped.include?(m) end [mod, methods] end.reverse end class Output MARGIN = " " def initialize(grep: nil) @grep = grep @line_width = screen_width - MARGIN.length # right padding end def dump(name, strs) strs = strs.grep(@grep) if @grep strs = strs.sort return if strs.empty? # Attempt a single line print "#{Color.colorize(name, [:BOLD, :BLUE])}: " if fits_on_line?(strs, cols: strs.size, offset: "#{name}: ".length) puts strs.join(MARGIN) return end puts # Dump with the largest # of columns that fits on a line cols = strs.size until fits_on_line?(strs, cols: cols, offset: MARGIN.length) || cols == 1 cols -= 1 end widths = col_widths(strs, cols: cols) strs.each_slice(cols) do |ss| puts ss.map.with_index { |s, i| "#{MARGIN}%-#{widths[i]}s" % s }.join end end private def fits_on_line?(strs, cols:, offset: 0) width = col_widths(strs, cols: cols).sum + MARGIN.length * (cols - 1) width <= @line_width - offset end def col_widths(strs, cols:) cols.times.map do |col| (col...strs.size).step(cols).map do |i| strs[i].length end.max end end def screen_width Reline.get_screen_size.last rescue Errno::EINVAL # in `winsize': Invalid argument - <STDIN> 80 end end private_constant :Output end end # :startdoc: end