Skip to content

Commit 00c02bb

Browse files
committed
Land rapid7#7349, Add initialization of RHOST value prior to calling child check()
2 parents 3ddf80d + b0bb5b5 commit 00c02bb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/msf/core/auxiliary/scanner.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ def cleanup
4747

4848
def check
4949
nmod = replicant
50+
nmod.datastore['RHOST'] = @original_rhost
5051
begin
5152
nmod.check_host(datastore['RHOST'])
5253
rescue NoMethodError

0 commit comments

Comments
 (0)