Fix smb_port and require 'recog' when no DB/MDM
This commit is contained in:
parent
92ff0974b7
commit
73e4ec709f
|
@ -25,6 +25,7 @@ PATH
|
|||
nokogiri
|
||||
packetfu (= 1.1.9)
|
||||
railties
|
||||
recog
|
||||
rkelly-remix (= 0.0.6)
|
||||
robots
|
||||
rubyzip (~> 1.1)
|
||||
|
|
|
@ -80,4 +80,6 @@ Gem::Specification.new do |spec|
|
|||
spec.add_runtime_dependency 'sqlite3'
|
||||
# required for Time::TZInfo in ActiveSupport
|
||||
spec.add_runtime_dependency 'tzinfo'
|
||||
# required for OS fingerprinting
|
||||
spec.add_runtime_dependency 'recog'
|
||||
end
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
|
||||
require 'msf/core'
|
||||
|
||||
require 'recog'
|
||||
|
||||
class Metasploit3 < Msf::Auxiliary
|
||||
|
||||
|
@ -38,7 +38,7 @@ class Metasploit3 < Msf::Auxiliary
|
|||
end
|
||||
|
||||
def rport
|
||||
@rport || datastore['RPORT']
|
||||
@smb_port || datastore['RPORT']
|
||||
end
|
||||
|
||||
def smb_direct
|
||||
|
|
Loading…
Reference in New Issue