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 : 3.12.107.192
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
# # utils.rb -- Miscellaneous utilities # # Author: IPR -- Internet Programming with Ruby -- writers # Copyright (c) 2001 TAKAHASHI Masayoshi, GOTOU Yuuzou # Copyright (c) 2002 Internet Programming with Ruby writers. All rights # reserved. # # $IPR: utils.rb,v 1.10 2003/02/16 22:22:54 gotoyuzo Exp $ require 'socket' require 'fcntl' begin require 'etc' rescue LoadError nil end module WEBrick module Utils def set_non_blocking(io) flag = File::NONBLOCK if defined?(Fcntl::F_GETFL) flag |= io.fcntl(Fcntl::F_GETFL) end io.fcntl(Fcntl::F_SETFL, flag) end module_function :set_non_blocking def set_close_on_exec(io) if defined?(Fcntl::FD_CLOEXEC) io.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) end end module_function :set_close_on_exec def su(user) if defined?(Etc) pw = Etc.getpwnam(user) Process::initgroups(user, pw.gid) Process::Sys::setgid(pw.gid) Process::Sys::setuid(pw.uid) else warn("WEBrick::Utils::su doesn't work on this platform") end end module_function :su def getservername host = Socket::gethostname begin Socket::gethostbyname(host)[0] rescue host end end module_function :getservername def create_listeners(address, port, logger=nil) unless port raise ArgumentError, "must specify port" end res = Socket::getaddrinfo(address, port, Socket::AF_UNSPEC, # address family Socket::SOCK_STREAM, # socket type 0, # protocol Socket::AI_PASSIVE) # flag last_error = nil sockets = [] res.each{|ai| begin logger.debug("TCPServer.new(#{ai[3]}, #{port})") if logger sock = TCPServer.new(ai[3], port) port = sock.addr[1] if port == 0 Utils::set_close_on_exec(sock) sockets << sock rescue => ex logger.warn("TCPServer Error: #{ex}") if logger last_error = ex end } raise last_error if sockets.empty? return sockets end module_function :create_listeners RAND_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "0123456789" + "abcdefghijklmnopqrstuvwxyz" def random_string(len) rand_max = RAND_CHARS.size ret = "" len.times{ ret << RAND_CHARS[rand(rand_max)] } ret end module_function :random_string end end