Skip to content

Commit 4005e4f

Browse files
author
=
committed
Issue rapid7#7188 resolved
1 parent 4882927 commit 4005e4f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/msf/core/handler/reverse.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,15 @@ def setup_handler
8282
'MsfPayload' => self,
8383
'MsfExploit' => assoc_exploit
8484
})
85+
86+
if (ip=='127.0.0.1' || ip=='127.0.0.2' || ip=='127.0.0.3' || ip=='127.0.0.4'|| ip=='127.0.0.5'||ip=='127.0.0.6' || ip=='127.0.0.7' || ip=='127.0.0.8')
87+
print_error("Please note that errors might be experienced with this choice of address for LHOST.")
88+
end
8589
rescue
8690
ex = $!
8791
print_error("Handler failed to bind to #{ip}:#{local_port}:- #{comm} -")
8892
else
8993
ex = false
90-
9194
via = via_string_for_ip(ip, comm)
9295
print_status("Started #{human_name} handler on #{ip}:#{local_port} #{via}")
9396

0 commit comments

Comments
 (0)