Skip to content

Commit d1124c4

Browse files
committed
Fix Rinda msfcrawler error
1 parent 0f4c73b commit d1124c4

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Gemfile.lock

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ PATH
9494
rex-struct2
9595
rex-text
9696
rex-zip
97+
rinda
9798
ruby-macho
9899
ruby-mysql
99100
ruby_smb (~> 3.3.3)
@@ -252,6 +253,7 @@ GEM
252253
fiddle (1.1.6)
253254
filesize (0.2.0)
254255
fivemat (1.3.7)
256+
forwardable (1.3.3)
255257
getoptlong (0.2.1)
256258
gssapi (1.3.1)
257259
ffi (>= 1.0.1)
@@ -271,6 +273,7 @@ GEM
271273
i18n (1.14.7)
272274
concurrent-ruby (~> 1.0)
273275
io-console (0.8.0)
276+
ipaddr (1.2.7)
274277
irb (1.7.4)
275278
reline (>= 0.3.6)
276279
jmespath (1.6.2)
@@ -466,6 +469,10 @@ GEM
466469
rex-zip (0.1.6)
467470
rex-text
468471
rexml (3.4.1)
472+
rinda (0.2.0)
473+
drb
474+
forwardable
475+
ipaddr
469476
rkelly-remix (0.0.7)
470477
rspec (3.13.0)
471478
rspec-core (~> 3.13.0)

metasploit-framework.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ Gem::Specification.new do |spec|
270270
getoptlong
271271
mutex_m
272272
ostruct
273+
rinda
273274
].each do |library|
274275
spec.add_runtime_dependency library
275276
end

modules/auxiliary/crawler/msfcrawler.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
require 'openssl'
1515
require 'pathname'
1616
require 'uri'
17+
require 'rinda/rinda'
18+
require 'rinda/tuplespace'
1719

1820
class MetasploitModule < Msf::Auxiliary
1921
include Msf::Auxiliary::Scanner
@@ -70,7 +72,7 @@ def run
7072
'data' => nil
7173
}
7274

73-
@NotViewedQueue = Rinda::TupleSpace.new
75+
@NotViewedQueue = ::Rinda::TupleSpace.new
7476
@ViewedQueue = Hash.new
7577
@UriLimits = Hash.new
7678
@curent_site = self.ctarget
@@ -152,7 +154,7 @@ def run
152154
####
153155

154156
end
155-
rescue Rinda::RequestExpiredError
157+
rescue ::Rinda::RequestExpiredError
156158
print_status("END.")
157159
return
158160
end

0 commit comments

Comments
 (0)