Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.217.130
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby27 /
src /
passenger-release-6.1.2 /
dev /
Delete
Unzip
Name
Size
Permission
Date
Action
boost-patches
[ DIR ]
drwxr-xr-x
2026-05-26 22:42
ci
[ DIR ]
drwxr-xr-x
2026-05-26 22:42
configkit-schemas
[ DIR ]
drwxr-xr-x
2026-05-26 22:42
rack.test
[ DIR ]
drwxr-xr-x
2026-05-26 22:42
vagrant
[ DIR ]
drwxr-xr-x
2026-05-26 22:42
colorize-logs
7.29
KB
-rwxr-xr-x
2026-01-28 03:20
copy_boost_headers
9.55
KB
-rwxr-xr-x
2026-01-28 03:20
index_cxx_dependencies.rb
3.94
KB
-rwxr-xr-x
2026-01-28 03:20
install_scripts_bootstrap_code.rb
1.31
KB
-rwxr-xr-x
2026-01-28 03:20
list_tests
981
B
-rwxr-xr-x
2026-01-28 03:20
nginx_version_sha256
2.5
KB
-rwxr-xr-x
2026-01-28 03:20
parse_file_descriptor_log
2.54
KB
-rwxr-xr-x
2026-01-28 03:20
ruby_server.rb
6.17
KB
-rwxr-xr-x
2026-01-28 03:20
runner
623
B
-rwxr-xr-x
2026-01-28 03:20
show-latest-crashlog-dir
784
B
-rwxr-xr-x
2026-01-28 03:20
Save
Rename
#!/usr/bin/env ruby # Parses a file descriptor log as produced by Passenger, # and display the file descriptors that are still open # according to the log. class ParserApp Agent = Struct.new(:name, :fds) Entry = Struct.new(:source, :purpose) def initialize(path) @io = File.open(path, "r") @agents = {} end def close @io.close end def analyze @lineno = 1 while !@io.eof? line = @io.readline.strip pid, source, message = parse_line(line) case message when /^Starting agent: (.+)$/ agent_name = $1 if (old_pid = find_agent(agent_name)) warn "#{agent_name} restarted" @agents.delete(old_pid) end @agents[pid] = Agent.new(agent_name, {}) when /^File descriptor opened: (.+)/ fd = $1.to_i if agent = @agents[pid] if agent.fds.has_key?(fd) warn "FD #{fd} already opened" end agent.fds[fd] = Entry.new(source) else warn "No agent information about #{pid}" end when /^File descriptor closed: (.+)/ fd = $1.to_i if agent = @agents[pid] if agent.fds.has_key?(fd) agent.fds.delete(fd) else warn "FD #{fd} not opened" end else warn "No agent information about #{pid}" end when /^File descriptor purpose: (.+?): (.+)/ fd = $1.to_i purpose = $2 if agent = @agents[pid] if entry = agent.fds[fd] entry.purpose = purpose else warn "FD #{fd} not opened" end else warn "No agent information about #{pid}" end end @lineno += 1 end rescue EOFError end def report @agents.each_pair do |pid, agent| puts puts "#{pid}: #{agent.name}" puts("-" * 80) agent.fds.keys.sort.each do |fd| entry = agent.fds[fd] printf "%-5d %-30s %s\n", fd, entry.source, entry.purpose end end end private def parse_line(line) if line =~ /^\[ (.+?) \]: (.+)/ info = $1 message = $2 fragments = info.split(" ") pid = fragments[2].sub(/\/.*/, '') source = fragments.last [pid, source, message] else nil end end def find_agent(name) @agents.each_pair do |pid, agent| if agent.name == name return pid end end nil end def warn(message) STDERR.puts "Warning:#{@lineno}: #{message}" end end app = ParserApp.new(ARGV[0]) app.analyze app.report app.close