[framework-hackers] getting sniffing callbacks working from scruby
Robin Wood
dninja at gmail.com
Wed Apr 9 16:33:26 CDT 2008
That fixed it, I was defining my object inside the module rather than outside.
Thanks
On 09/04/2008, Sylvain SARMEJEANNE <sylvain.sarmejeanne.ml at gmail.com> 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 at spool.metasploit.com
> http://spool.metasploit.com/mailman/listinfo/framework-hackers
>
More information about the Framework-Hackers
mailing list