Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 18.118.32.116
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
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
2024-03-03 22:48
httpservlet
[ DIR ]
drwxr-xr-x
2024-03-03 22:48
accesslog.rb
2.25
KB
-rw-r--r--
2011-06-23 09:44
cgi.rb
6.92
KB
-rw-r--r--
2007-02-12 23:01
compat.rb
436
B
-rw-r--r--
2007-02-12 23:01
config.rb
3.13
KB
-rw-r--r--
2007-02-12 23:01
cookie.rb
3.03
KB
-rw-r--r--
2007-02-12 23:01
htmlutils.rb
584
B
-rw-r--r--
2007-02-12 23:01
httpauth.rb
1.31
KB
-rw-r--r--
2007-02-12 23:01
httpproxy.rb
7.46
KB
-rw-r--r--
2008-06-06 08:05
httprequest.rb
9.99
KB
-rw-r--r--
2010-11-22 07:22
httpresponse.rb
7.96
KB
-rw-r--r--
2010-08-16 07:31
https.rb
1.64
KB
-rw-r--r--
2010-12-20 16:55
httpserver.rb
5.63
KB
-rw-r--r--
2007-02-12 23:01
httpservlet.rb
669
B
-rw-r--r--
2007-02-12 23:01
httpstatus.rb
3.51
KB
-rw-r--r--
2010-06-10 05:23
httputils.rb
9.96
KB
-rw-r--r--
2010-01-10 10:30
httpversion.rb
1.12
KB
-rw-r--r--
2007-02-12 23:01
log.rb
2.03
KB
-rw-r--r--
2007-02-12 23:01
server.rb
5.28
KB
-rw-r--r--
2007-02-12 23:01
ssl.rb
4.22
KB
-rw-r--r--
2010-11-22 07:21
utils.rb
2.54
KB
-rw-r--r--
2012-06-06 05:20
version.rb
351
B
-rw-r--r--
2007-02-12 23:01
Save
Rename
# # accesslog.rb -- Access log handling utilities # # Author: IPR -- Internet Programming with Ruby -- writers # Copyright (c) 2002 keita yamaguchi # Copyright (c) 2002 Internet Programming with Ruby writers # # $IPR: accesslog.rb,v 1.1 2002/10/01 17:16:32 gotoyuzo Exp $ module WEBrick module AccessLog class AccessLogError < StandardError; end CLF_TIME_FORMAT = "[%d/%b/%Y:%H:%M:%S %Z]" COMMON_LOG_FORMAT = "%h %l %u %t \"%r\" %s %b" CLF = COMMON_LOG_FORMAT REFERER_LOG_FORMAT = "%{Referer}i -> %U" AGENT_LOG_FORMAT = "%{User-Agent}i" COMBINED_LOG_FORMAT = "#{CLF} \"%{Referer}i\" \"%{User-agent}i\"" module_function # This format specification is a subset of mod_log_config of Apache. # http://httpd.apache.org/docs/mod/mod_log_config.html#formats def setup_params(config, req, res) params = Hash.new("") params["a"] = req.peeraddr[3] params["b"] = res.sent_size params["e"] = ENV params["f"] = res.filename || "" params["h"] = req.peeraddr[2] params["i"] = req params["l"] = "-" params["m"] = req.request_method params["n"] = req.attributes params["o"] = res params["p"] = req.port params["q"] = req.query_string params["r"] = req.request_line.sub(/\x0d?\x0a\z/o, '') params["s"] = res.status # won't support "%>s" params["t"] = req.request_time params["T"] = Time.now - req.request_time params["u"] = req.user || "-" params["U"] = req.unparsed_uri params["v"] = config[:ServerName] params end def format(format_string, params) format_string.gsub(/\%(?:\{(.*?)\})?>?([a-zA-Z%])/){ param, spec = $1, $2 case spec[0] when ?e, ?i, ?n, ?o raise AccessLogError, "parameter is required for \"#{spec}\"" unless param (param = params[spec][param]) ? escape(param) : "-" when ?t params[spec].strftime(param || CLF_TIME_FORMAT) when ?% "%" else escape(params[spec].to_s) end } end def escape(data) if data.tainted? data.gsub(/[[:cntrl:]\\]+/) {$&.dump[1...-1]}.untaint else data end end end end