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.189.43.15
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby22 /
lib64 /
ruby /
2.2.0 /
rubygems /
Delete
Unzip
Name
Size
Permission
Date
Action
commands
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
core_ext
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
ext
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
package
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
request
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
request_set
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
resolver
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
security
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
source
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
ssl_certs
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
util
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
available_set.rb
2.99
KB
-rw-r--r--
2014-09-14 03:30
basic_specification.rb
6.66
KB
-rw-r--r--
2014-12-07 00:53
command.rb
13.55
KB
-rw-r--r--
2014-09-14 03:30
command_manager.rb
4.63
KB
-rw-r--r--
2014-09-14 03:30
compatibility.rb
1.63
KB
-rw-r--r--
2014-12-25 03:37
config_file.rb
12.57
KB
-rw-r--r--
2017-12-14 13:50
defaults.rb
4.01
KB
-rw-r--r--
2014-09-14 03:30
dependency.rb
8.48
KB
-rw-r--r--
2014-11-17 03:55
dependency_installer.rb
13.81
KB
-rw-r--r--
2014-09-14 03:30
dependency_list.rb
5.44
KB
-rw-r--r--
2014-12-07 00:53
deprecate.rb
1.7
KB
-rw-r--r--
2014-01-07 01:19
doctor.rb
3.04
KB
-rw-r--r--
2014-09-14 03:30
errors.rb
3.12
KB
-rw-r--r--
2014-09-14 03:30
exceptions.rb
6.2
KB
-rw-r--r--
2014-09-14 03:30
ext.rb
431
B
-rw-r--r--
2013-10-16 06:00
gem_runner.rb
1.96
KB
-rw-r--r--
2013-09-14 08:59
gemcutter_utilities.rb
3.94
KB
-rw-r--r--
2014-09-14 03:30
indexer.rb
13.03
KB
-rw-r--r--
2014-11-17 03:55
install_default_message.rb
307
B
-rw-r--r--
2013-07-09 23:21
install_message.rb
281
B
-rw-r--r--
2012-11-29 06:52
install_update_options.rb
5.85
KB
-rw-r--r--
2014-09-14 03:30
installer.rb
22.48
KB
-rw-r--r--
2017-09-10 01:10
installer_test_case.rb
4.23
KB
-rw-r--r--
2014-09-14 03:30
local_remote_options.rb
3.37
KB
-rw-r--r--
2014-09-14 03:30
mock_gem_ui.rb
1.35
KB
-rw-r--r--
2012-11-29 06:52
name_tuple.rb
2.37
KB
-rw-r--r--
2014-09-14 03:30
package.rb
14.87
KB
-rw-r--r--
2018-02-16 16:27
package_task.rb
3.77
KB
-rw-r--r--
2013-08-26 20:24
path_support.rb
1.82
KB
-rw-r--r--
2013-09-14 08:59
platform.rb
6.13
KB
-rw-r--r--
2014-09-14 03:30
psych_additions.rb
269
B
-rw-r--r--
2013-10-20 01:33
psych_tree.rb
763
B
-rw-r--r--
2013-07-09 22:34
rdoc.rb
7.71
KB
-rw-r--r--
2014-09-14 03:30
remote_fetcher.rb
11.09
KB
-rw-r--r--
2017-09-10 01:10
request.rb
6.73
KB
-rw-r--r--
2014-09-14 03:30
request_set.rb
9.4
KB
-rw-r--r--
2014-12-07 00:53
requirement.rb
6.2
KB
-rw-r--r--
2014-09-14 03:30
resolver.rb
13.35
KB
-rw-r--r--
2014-09-14 03:30
safe_yaml.rb
1.11
KB
-rw-r--r--
2017-12-14 13:50
security.rb
20.96
KB
-rw-r--r--
2014-01-20 04:57
server.rb
22.93
KB
-rw-r--r--
2018-02-16 16:27
source.rb
5.21
KB
-rw-r--r--
2014-12-07 00:53
source_list.rb
2.47
KB
-rw-r--r--
2013-11-19 00:34
source_local.rb
111
B
-rw-r--r--
2013-09-14 08:59
source_specific_file.rb
93
B
-rw-r--r--
2013-09-14 08:59
spec_fetcher.rb
6.31
KB
-rw-r--r--
2014-09-14 03:30
specification.rb
72.88
KB
-rw-r--r--
2018-02-16 16:27
stub_specification.rb
3.56
KB
-rw-r--r--
2014-12-07 00:53
syck_hack.rb
2.09
KB
-rw-r--r--
2013-12-19 22:09
test_case.rb
37.49
KB
-rw-r--r--
2016-04-22 09:15
test_utilities.rb
8.44
KB
-rw-r--r--
2014-09-14 03:30
text.rb
1.9
KB
-rw-r--r--
2017-09-10 01:10
uninstaller.rb
8.72
KB
-rw-r--r--
2014-09-14 03:30
uri_formatter.rb
762
B
-rw-r--r--
2013-10-20 01:33
user_interaction.rb
14.64
KB
-rw-r--r--
2014-11-17 03:55
util.rb
2.59
KB
-rw-r--r--
2014-08-03 13:33
validator.rb
4.18
KB
-rw-r--r--
2013-11-30 23:27
version.rb
10.92
KB
-rw-r--r--
2014-09-14 03:30
version_option.rb
1.83
KB
-rw-r--r--
2013-09-14 08:59
Save
Rename
#-- # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others. # All rights reserved. # See LICENSE.txt for permissions. #++ require 'rubygems/package' require 'rubygems/installer' ## # Validator performs various gem file and gem database validation class Gem::Validator include Gem::UserInteraction def initialize # :nodoc: require 'find' end ## # Given a gem file's contents, validates against its own MD5 checksum # gem_data:: [String] Contents of the gem file def verify_gem(gem_data) # TODO remove me? The code here only validate an MD5SUM that was # in some old formatted gems, but hasn't been for a long time. end ## # Given the path to a gem file, validates against its own MD5 checksum # # gem_path:: [String] Path to gem file def verify_gem_file(gem_path) open gem_path, Gem.binary_mode do |file| gem_data = file.read verify_gem gem_data end rescue Errno::ENOENT, Errno::EINVAL raise Gem::VerificationError, "missing gem file #{gem_path}" end private def find_files_for_gem(gem_directory) installed_files = [] Find.find gem_directory do |file_name| fn = file_name[gem_directory.size..file_name.size-1].sub(/^\//, "") installed_files << fn unless fn =~ /CVS/ || fn.empty? || File.directory?(file_name) end installed_files end public ## # Describes a problem with a file in a gem. ErrorData = Struct.new :path, :problem do def <=> other # :nodoc: return nil unless self.class === other [path, problem] <=> [other.path, other.problem] end end ## # Checks the gem directory for the following potential # inconsistencies/problems: # # * Checksum gem itself # * For each file in each gem, check consistency of installed versions # * Check for files that aren't part of the gem but are in the gems directory # * 1 cache - 1 spec - 1 directory. # # returns a hash of ErrorData objects, keyed on the problem gem's name. #-- # TODO needs further cleanup def alien(gems=[]) errors = Hash.new { |h,k| h[k] = {} } Gem::Specification.each do |spec| next unless gems.include? spec.name unless gems.empty? next if spec.default_gem? gem_name = spec.file_name gem_path = spec.cache_file spec_path = spec.spec_file gem_directory = spec.full_gem_path unless File.directory? gem_directory then errors[gem_name][spec.full_name] = "Gem registered but doesn't exist at #{gem_directory}" next end unless File.exist? spec_path then errors[gem_name][spec_path] = "Spec file missing for installed gem" end begin verify_gem_file(gem_path) good, gone, unreadable = nil, nil, nil, nil open gem_path, Gem.binary_mode do |file| package = Gem::Package.new gem_path good, gone = package.contents.partition { |file_name| File.exist? File.join(gem_directory, file_name) } gone.sort.each do |path| errors[gem_name][path] = "Missing file" end good, unreadable = good.partition { |file_name| File.readable? File.join(gem_directory, file_name) } unreadable.sort.each do |path| errors[gem_name][path] = "Unreadable file" end good.each do |entry, data| begin next unless data # HACK `gem check -a mkrf` source = File.join gem_directory, entry['path'] open source, Gem.binary_mode do |f| unless f.read == data then errors[gem_name][entry['path']] = "Modified from original" end end end end end installed_files = find_files_for_gem(gem_directory) extras = installed_files - good - unreadable extras.each do |extra| errors[gem_name][extra] = "Extra file" end rescue Gem::VerificationError => e errors[gem_name][gem_path] = e.message end end errors.each do |name, subhash| errors[name] = subhash.map do |path, msg| ErrorData.new path, msg end.sort end errors end end