Skip to content

Commit 1cf485f

Browse files
committed
Restore tcp.rb to its current state
1 parent f4498c3 commit 1cf485f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/msf/core/exploit/tcp.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -468,8 +468,6 @@ def ssl_cert
468468
#
469469
def regenerate_payload(cli, arch = nil, platform = nil, target = nil)
470470

471-
$stderr.puts("Tcp##{__method__} : target: #{target.inspect}")
472-
473471
ohost = datastore['RHOST']
474472
oport = datastore['RPORT']
475473
p = nil
@@ -479,7 +477,7 @@ def regenerate_payload(cli, arch = nil, platform = nil, target = nil)
479477
datastore['RHOST'] = cli.peerhost
480478
datastore['RPORT'] = cli.peerport
481479

482-
if ((p = super(platform, arch, target)) == nil)
480+
if ((p = super(arch, platform, target)) == nil)
483481
print_error("Failed to generate payload")
484482
return nil
485483
end

0 commit comments

Comments
 (0)