metasploit-framework/lib/rex/socket
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
..
comm Differentiate failed binds from connects, closes #4169 2014-11-11 14:59:41 -06:00
comm.rb Retab lib 2013-08-30 16:28:33 -05:00
ip.rb Fix improper use of host-endian or signed pack/unpack 2014-06-30 02:50:10 -05:00
parameters.rb Autonegotiate SSL/TLS versions when not explicit 2014-10-15 13:26:40 -05:00
range_walker.rb Fix beug with #next raising after the end 2014-01-09 15:03:11 -06:00
ssl_tcp.rb Typo: request -> requested in message 2014-10-15 13:48:22 -05:00
ssl_tcp_server.rb Add a defined? check to fix older versions of OpenSSL. 2014-01-23 14:51:47 -06:00
subnet_walker.rb Retab lib 2013-08-30 16:28:33 -05:00
switch_board.rb Retab lib 2013-08-30 16:28:33 -05:00
tcp.rb Retab lib 2013-08-30 16:28:33 -05:00
tcp_server.rb Retab lib 2013-08-30 16:28:33 -05:00
udp.rb Retab lib 2013-08-30 16:28:33 -05:00