That fixed it, I was defining my object inside the module rather than outside.

Thanks

On 09/04/2008, Sylvain SARMEJEANNE <[EMAIL PROTECTED]> wrote:
> Robin Wood a écrit :
>
> > I'm now trying to get the second example work and I'm stuck with the
>  > namespace for the callback function. I've tried everything I can, is
>  > there any example code out there for the HDM Mangled scruby?
>
>
> This seems to work:
>
>
>  #! /usr/bin/env ruby
>  require 'scruby'
>
> module Scruby
>  def callback(pcap, packet)
>    puts "yeah!"
>  end
>  end
>  scruby = ScrubyBasic.new
>  scruby.sniff(:prn=>:callback)
>
>
>
>  --
>  Sylvain SARMEJEANNE
>  _______________________________________________
>  Framework-Hackers mailing list
>  Framework-Hackers@spool.metasploit.com
>  http://spool.metasploit.com/mailman/listinfo/framework-hackers
>
_______________________________________________
Framework-Hackers mailing list
Framework-Hackers@spool.metasploit.com
http://spool.metasploit.com/mailman/listinfo/framework-hackers

Reply via email to