Skip to content

Commit 73e4ec7

Browse files
author
HD Moore
committed
Fix smb_port and require 'recog' when no DB/MDM
1 parent 92ff097 commit 73e4ec7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Gemfile.lock

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ PATH
2525
nokogiri
2626
packetfu (= 1.1.9)
2727
railties
28+
recog
2829
rkelly-remix (= 0.0.6)
2930
robots
3031
rubyzip (~> 1.1)

metasploit-framework.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,4 +80,6 @@ Gem::Specification.new do |spec|
8080
spec.add_runtime_dependency 'sqlite3'
8181
# required for Time::TZInfo in ActiveSupport
8282
spec.add_runtime_dependency 'tzinfo'
83+
# required for OS fingerprinting
84+
spec.add_runtime_dependency 'recog'
8385
end

modules/auxiliary/scanner/smb/smb_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
require 'msf/core'
8-
8+
require 'recog'
99

1010
class Metasploit3 < Msf::Auxiliary
1111

@@ -38,7 +38,7 @@ def initialize
3838
end
3939

4040
def rport
41-
@rport || datastore['RPORT']
41+
@smb_port || datastore['RPORT']
4242
end
4343

4444
def smb_direct

0 commit comments

Comments
 (0)