Metasploit mailing list archives
Re: LocalJumpError problems
From: Robin Wood <dninja () gmail com>
Date: Tue, 16 Feb 2010 09:26:46 +0000
If I try to break I get this error: [-] Auxiliary failed: LocalJumpError break from proc-closure When I found I couldn't return my next try was to set a variable do a break then check the variable outside and return if necessary. I'll have a look at your code and see how you are doing it Robin On 16 February 2010 01:33, HD Moore <hdm () metasploit com> wrote:
On 2/12/2010 5:13 PM, Robin Wood wrote:Hi I've spent the last hour struggling to get the following code working in ruby 1.9I want to break out when I get a timeout but I keep getting errors, they are are all around this style [-] Auxiliary failed: LocalJumpError unexpected return [-] Auxiliary failed: LocalJumpError break from proc-closureIt should be possible to just "break" from inside of the each_packet loop. Since this is a yielded packet from a background thread, normal returns don't work as you would expect them to. I added an example of the break method to aux/test/capture/ -HD _______________________________________________ https://mail.metasploit.com/mailman/listinfo/framework
_______________________________________________ https://mail.metasploit.com/mailman/listinfo/framework
Current thread:
- LocalJumpError problems Robin Wood (Feb 12)
- Re: LocalJumpError problems HD Moore (Feb 15)
- Re: LocalJumpError problems Robin Wood (Feb 16)
- Re: LocalJumpError problems HD Moore (Feb 15)
- Re: LocalJumpError problems HD Moore (Feb 15)