metasploit-framework/modules/exploits/linux
HD Moore 6b4eb9a8e2 Differentiate failed binds from connects, closes #4169
This change adds two new Rex exceptions and changes the local comm to raise the right one depending on the circumstances. The problem with the existing model is
that failed binds and failed connections both raised the same exception. This change is backwards compatible with modules that rescue Rex::AddressInUse in additi
on to Rex::ConnectionError. There were two corner cases that rescued Rex::AddressInUse specifically:

1. The 'r'-services mixin and modules caught the old exception when handling bind errors. These have been updated to use BindFailed
2. The meterpreter client had a catch for the old exception when the socket reports a bad destination (usually a network connection dropped). This has been updat
ed to use InvalidDestination as that was the intention prior to this change.

Since AddressInUse was part of ConnectionError, modules and mixins which caught both in the same rescue have been updated to just catch ConnectionError.
2014-11-11 14:59:41 -06:00
..
antivirus Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
browser Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
ftp Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
games Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
http Land #3561 - unix cmd generic_sh encoder 2014-10-23 15:48:00 -05:00
ids Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
imap Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
local Add missing require 2014-10-27 15:19:59 -05:00
misc Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
mysql Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
pop3 Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
postgres Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
pptp Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
proxy Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
samba Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
smtp Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
ssh Differentiate failed binds from connects, closes #4169 2014-11-11 14:59:41 -06:00
telnet Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00
upnp Fix up comment splats with the correct URI 2014-10-17 11:47:33 -05:00