Skip to content

Commit d2100bf

Browse files
committed
Land rapid7#7301, Support URIHOST for exim4_dovecot_exec for NAT
2 parents 4c4f2e4 + 7c396db commit d2100bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/smtp/exim4_dovecot_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def exploit
123123
#we use SRVHOST as download IP for the coming wget command.
124124
#SRVHOST needs a real IP address of our download host
125125
if (datastore['SRVHOST'] == "0.0.0.0" or datastore['SRVHOST'] == "::")
126-
srv_host = Rex::Socket.source_address(rhost)
126+
srv_host = datastore['URIHOST'] || Rex::Socket.source_address(rhost)
127127
else
128128
srv_host = datastore['SRVHOST']
129129
end

0 commit comments

Comments
 (0)