Linux velvet.gennetworks.in 4.18.0-553.83.1.lve.el8.x86_64 #1 SMP Wed Nov 12 10:04:12 UTC 2025 x86_64
LiteSpeed
Server IP : 161.129.70.235 & Your IP : 216.73.216.5
Domains :
Cant Read [ /etc/named.conf ]
User : virtueex
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby18 /
lib64 /
ruby /
1.8 /
webrick /
Delete
Unzip
Name
Size
Permission
Date
Action
httpauth
[ DIR ]
drwxr-xr-x
2026-02-18 15:11
httpservlet
[ DIR ]
drwxr-xr-x
2026-02-18 15:11
accesslog.rb
2.25
KB
-rw-r--r--
2011-06-23 15:14
cgi.rb
6.92
KB
-rw-r--r--
2007-02-13 04:31
compat.rb
436
B
-rw-r--r--
2007-02-13 04:31
config.rb
3.13
KB
-rw-r--r--
2007-02-13 04:31
cookie.rb
3.03
KB
-rw-r--r--
2007-02-13 04:31
htmlutils.rb
584
B
-rw-r--r--
2007-02-13 04:31
httpauth.rb
1.31
KB
-rw-r--r--
2007-02-13 04:31
httpproxy.rb
7.46
KB
-rw-r--r--
2008-06-06 13:35
httprequest.rb
9.99
KB
-rw-r--r--
2010-11-22 12:52
httpresponse.rb
7.96
KB
-rw-r--r--
2010-08-16 13:01
https.rb
1.64
KB
-rw-r--r--
2010-12-20 22:25
httpserver.rb
5.63
KB
-rw-r--r--
2007-02-13 04:31
httpservlet.rb
669
B
-rw-r--r--
2007-02-13 04:31
httpstatus.rb
3.51
KB
-rw-r--r--
2010-06-10 10:53
httputils.rb
9.96
KB
-rw-r--r--
2010-01-10 16:00
httpversion.rb
1.12
KB
-rw-r--r--
2007-02-13 04:31
log.rb
2.03
KB
-rw-r--r--
2007-02-13 04:31
server.rb
5.28
KB
-rw-r--r--
2007-02-13 04:31
ssl.rb
4.22
KB
-rw-r--r--
2010-11-22 12:51
utils.rb
2.54
KB
-rw-r--r--
2012-06-06 10:50
version.rb
351
B
-rw-r--r--
2007-02-13 04:31
Save
Rename
# # log.rb -- Log Class # # Author: IPR -- Internet Programming with Ruby -- writers # Copyright (c) 2000, 2001 TAKAHASHI Masayoshi, GOTOU Yuuzou # Copyright (c) 2002 Internet Programming with Ruby writers. All rights # reserved. # # $IPR: log.rb,v 1.26 2002/10/06 17:06:10 gotoyuzo Exp $ module WEBrick class BasicLog # log-level constant FATAL, ERROR, WARN, INFO, DEBUG = 1, 2, 3, 4, 5 attr_accessor :level def initialize(log_file=nil, level=nil) @level = level || INFO case log_file when String @log = open(log_file, "a+") @log.sync = true @opened = true when NilClass @log = $stderr else @log = log_file # requires "<<". (see BasicLog#log) end end def close @log.close if @opened @log = nil end def log(level, data) if @log && level <= @level data += "\n" if /\n\Z/ !~ data @log << data end end def <<(obj) log(INFO, obj.to_s) end def fatal(msg) log(FATAL, "FATAL " << format(msg)); end def error(msg) log(ERROR, "ERROR " << format(msg)); end def warn(msg) log(WARN, "WARN " << format(msg)); end def info(msg) log(INFO, "INFO " << format(msg)); end def debug(msg) log(DEBUG, "DEBUG " << format(msg)); end def fatal?; @level >= FATAL; end def error?; @level >= ERROR; end def warn?; @level >= WARN; end def info?; @level >= INFO; end def debug?; @level >= DEBUG; end private def format(arg) str = if arg.is_a?(Exception) "#{arg.class}: #{arg.message}\n\t" << arg.backtrace.join("\n\t") << "\n" elsif arg.respond_to?(:to_str) arg.to_str else arg.inspect end end end class Log < BasicLog attr_accessor :time_format def initialize(log_file=nil, level=nil) super(log_file, level) @time_format = "[%Y-%m-%d %H:%M:%S]" end def log(level, data) tmp = Time.now.strftime(@time_format) tmp << " " << data super(level, tmp) end end end