rapid7/metasploit-framework — pull request #627 by mubix (2012-07-20 07:16:54+00:00)
Title: adds find_next to find_files

Change 1 (Line 1833 and Line 1905): Returning 512 files resulted
in the multiple packets coming back and Rex didn't handle them so
making the number of files requested down to 20 resulted in a correctly
handled packet

Change 2 (Line 1856): FIND_NEXT comes back with nearly the same packet
except it doesn't include a SID, so I used an if statement. As a
coding choice this whole loop could be minimized and code moved
to the FIND_NEXT function, but I chose to reuse what was there.

Change 3 (Line 1900): Simply enabled the find_next method and made it
return the packet instead of parsing it.