Skip to content

Commit b21ea2b

Browse files
committed
Added code to assign CPORT value to the parent scanner object
1 parent ea32c31 commit b21ea2b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/auxiliary/scanner/smb/smb_login.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def run_host(ip)
7070
@scanner = Metasploit::Framework::LoginScanner::SMB.new(
7171
host: ip,
7272
port: rport,
73+
local_port: datastore['CPORT'],
7374
stop_on_success: datastore['STOP_ON_SUCCESS'],
7475
bruteforce_speed: datastore['BRUTEFORCE_SPEED'],
7576
connection_timeout: 5,

0 commit comments

Comments
 (0)