Fix smb_port and require 'recog' when no DB/MDM

This commit is contained in:
HD Moore 2014-08-25 15:42:18 -05:00
parent 92ff0974b7
commit 73e4ec709f
3 changed files with 5 additions and 2 deletions

View File

@ -25,6 +25,7 @@ PATH
nokogiri
packetfu (= 1.1.9)
railties
recog
rkelly-remix (= 0.0.6)
robots
rubyzip (~> 1.1)

View File

@ -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

View File

@ -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