Hey all,
I’ve updated my ruby, and header files are where they should be
(thanks to all who replied).
But now my problem is that of libraries. I have installed pcap and
ruby-libnet (at least I hope it installed) by typing:
ruby extconf.rb
make
Then, to complete my set, I installed rubyforger using the same
method as described above. The directions say that i require it by
typing
require ‘rubyforger.rb’
in the top of my code. However, Ruby cannot find it unless I’m in the
same directory as the rubyforger libraries. Huh?
Pcap problem: Whenever I require pcap, i get a warning saying:
/usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.9.0/pcap.bundle:
warning: do not use Fixnums as Symbols
/usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.9.0/pcap.bundle:
warning: do not use Fixnums as Symbols
/usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.9.0/pcap.bundle:
warning: do not use Fixnums as Symbols
Did i just download a bad bundle?
Ok, now part 2
Can anyone recommend a good library that allows for packet creation
and editing? With instructions on how to install it (please)?
Thanks
---------------------------------------------------------------|
~Ari
“I don’t suffer from insanity. I enjoy every minute of it” --1337est
man alive
Hey all,
I’ve updated my ruby, and header files are where they should be
(thanks to all who replied).
But now my problem is that of libraries. I have installed pcap and
ruby-libnet (at least I hope it installed) by typing:
ruby extconf.rb
make
method as described above. The directions say that i require it by
typing
require ‘rubyforger.rb’
in the top of my code. However, Ruby cannot find it unless I’m in the
same directory as the rubyforger libraries. Huh?
Drop the .rb, that will ususally get it to load, otherwise, put the
library in RUBYLIB/site_ruby
Ok. I did that, but it still didn’t work. After looking back to the
readme, is see that I need to “Use the init function in order to set
up the correct interface.” So, uh… What does that mean, exactly?
---------------------------------------------------------------|
~Ari
“I don’t suffer from insanity. I enjoy every minute of it” --1337est
man alive
method as described above. The directions say that i require it by
typing
require ‘rubyforger.rb’
in the top of my code. However, Ruby cannot find it unless I’m in the
same directory as the rubyforger libraries. Huh?
Drop the .rb, that will ususally get it to load, otherwise, put the
library in RUBYLIB/site_ruby
Ok, I think I answered my own question. The init function is a built
in function which allows you to send the packets.
Unfortunately, though, I cannot get it to load, though.
--------------------------------------------|
If you’re not living on the edge,
then you’re just wasting space.