From b21ea2ba3f85ce77bfa9de90d351c0298d0e987b Mon Sep 17 00:00:00 2001 From: Brendan Date: Mon, 29 Aug 2016 13:17:10 -0500 Subject: [PATCH] Added code to assign CPORT value to the parent scanner object --- modules/auxiliary/scanner/smb/smb_login.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/auxiliary/scanner/smb/smb_login.rb b/modules/auxiliary/scanner/smb/smb_login.rb index 891f1dfa7b..64f6ee54e8 100644 --- a/modules/auxiliary/scanner/smb/smb_login.rb +++ b/modules/auxiliary/scanner/smb/smb_login.rb @@ -70,6 +70,7 @@ class MetasploitModule < Msf::Auxiliary @scanner = Metasploit::Framework::LoginScanner::SMB.new( host: ip, port: rport, + local_port: datastore['CPORT'], stop_on_success: datastore['STOP_ON_SUCCESS'], bruteforce_speed: datastore['BRUTEFORCE_SPEED'], connection_timeout: 5,