Skip to content

Commit

Permalink
Changes from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
smashery committed Dec 13, 2024
1 parent 532dc55 commit c5ba3e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/msf/core/optional_session.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module OptionalSession

attr_accessor :session_or_rhost_required

def session_or_rhost_required
def session_or_rhost_required?
@session_or_rhost_required.nil? ? true : @session_or_rhost_required
end

Expand All @@ -24,7 +24,7 @@ def validate
validate_session
elsif rhost
validate_rhost
elsif session_or_rhost_required
elsif session_or_rhost_required?
raise Msf::OptionValidateError.new(message: 'A SESSION or RHOST must be provided')
end
end
Expand Down
1 change: 1 addition & 0 deletions modules/auxiliary/admin/sccm/get_naa_credentials.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
require 'time'
require 'nokogiri'
require 'rasn1'
require 'pry-byebug'

class MetasploitModule < Msf::Auxiliary
include Msf::Auxiliary::Report
Expand Down

0 comments on commit c5ba3e0

Please sign in to comment.