Exploit databaseDownload repository ZIP
GH-08b4e46992fde5efb0a6e5e3983b5d84
jas502n/cve-2019-12384
Sources for CVE-2019-12384
5 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files34
jas502n/cve-2019-12384Revision 20605173b861
- ↑..Parent directory
- build_command.rb
- cert_command.rb
- check_command.rb
- cleanup_command.rb
- contents_command.rb
- dependency_command.rb
- environment_command.rb
- fetch_command.rb
- generate_index_command.rb
- help_command.rb
- install_command.rb
- list_command.rb
- lock_command.rb
- mirror_command.rb
- open_command.rb
- outdated_command.rb
- owner_command.rb
- pristine_command.rb
- push_command.rb
- query_command.rb
- rdoc_command.rb
- search_command.rb
- server_command.rb
- setup_command.rb
- signin_command.rb
- signout_command.rb
- sources_command.rb
- specification_command.rb
- stale_command.rb
- uninstall_command.rb
- unpack_command.rb
- update_command.rb
- which_command.rb
- yank_command.rb
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
jruby-9.2.7.0/lib/ruby/stdlib/rubygems/commands/signout_command.rb
Ruby · 906 bytes# frozen_string_literal: true
require 'rubygems/command'
class Gem::Commands::SignoutCommand < Gem::Command
def initialize
super 'signout', 'Sign out from all the current sessions.'
end
def description # :nodoc:
'The `signout` command is used to sign out from all current sessions,'\
' allowing you to sign in using a different set of credentials.'
end
def usage # :nodoc:
program_name
end
def execute
credentials_path = Gem.configuration.credentials_path
if !File.exist?(credentials_path) then
alert_error 'You are not currently signed in.'
elsif !File.writable?(credentials_path) then
alert_error "File '#{Gem.configuration.credentials_path}' is read-only."\
' Please make sure it is writable.'
else
Gem.configuration.unset_api_key!
say 'You have successfully signed out from all sessions.'
end
end
end