metasploit-framework/lib
Brent Cook bbb41c39b8 fix backward meterpreter packet timeout logic
The current logic times out every packet almost immediately, making it possible
for almost any non-trivial meterpreter session to receive duplicate packets.

This causes problems especially with any interactions that involve passing
resource handles or pointers back and forth between MSF and meterpreter, since
meterpreter can be told to operate on freed pointers, double-closes, etc.

This probably fixes tons of heisenbugs, including #3798.

To reproduce this, I enabled all debug messages in meterpreter to slow it
down, then ran this RC script with a reverse TCP meterpreter, after linking in
the test modules:

(cd modules/post
 ln -s ../../test/modules/post/test)

die.rc:
use exploit/multi/handler
set payload windows/meterpreter/reverse_tcp
set lhost 192.168.43.1
exploit -j
sleep 5
use post/test/services
set SESSION 1
run
2014-12-29 08:15:51 -06:00
..
anemone Retab lib 2013-08-30 16:28:33 -05:00
bit-struct Fix improper use of host-endian or signed pack/unpack 2014-06-30 02:50:10 -05:00
metasm Fix jcxz to jecxz for x86_64 in metasm 2014-12-19 13:34:56 -06:00
metasploit Land #4416, define rails version dep in one place 2014-12-19 15:17:54 -06:00
msf override default attr for OptRegexp 2014-12-24 09:57:14 -06:00
nessus Retab lib 2013-08-30 16:28:33 -05:00
net Revert "Various merge resolutions from master <- staging" 2014-08-22 10:17:44 -05:00
openvas Retab lib 2013-08-30 16:28:33 -05:00
postgres Retab lib 2013-08-30 16:28:33 -05:00
rabal Retab lib 2013-08-30 16:28:33 -05:00
rapid7 Rapid7 Comma Inc 2014-03-13 09:46:20 -05:00
rbmysql FixRM #8396 change all lib use of regex to 8-bit pattern 2013-09-12 16:58:49 -05:00
rex fix backward meterpreter packet timeout logic 2014-12-29 08:15:51 -06:00
snmp Use the SNMP fix from master. 2014-10-24 13:01:06 -05:00
sqlmap Moar " -> ' 2014-07-21 18:04:36 -05:00
sshkey Fix improper use of host-endian or signed pack/unpack 2014-06-30 02:50:10 -05:00
tasks Fix rake when cucumber gem is not present 2014-09-11 22:31:57 -05:00
telephony Retab lib 2013-08-30 16:28:33 -05:00
anemone.rb
bit-struct.rb
enumerable.rb Retab lib 2013-08-30 16:28:33 -05:00
metasm.rb Manual loading shouldn't be needed 2014-02-19 13:13:41 -06:00
msfenv.rb Revert "Various merge resolutions from master <- staging" 2014-08-22 10:17:44 -05:00
postgres_msf.rb
rbmysql.rb FixRM #8396 change all lib use of regex to 8-bit pattern 2013-09-12 16:58:49 -05:00
rex.rb Fix the rex.rb header and copyright date 2014-09-08 15:32:13 -05:00
snmp.rb
sshkey.rb
telephony.rb
windows_console_color_support.rb Fix improper use of host-endian or signed pack/unpack 2014-06-30 02:50:10 -05:00