loopforever.com

Blog Entries for "Ruby"

Seperator
Posted by Matt Savona on April 3, 2008
I've just posted my GraphvizSimple.rb class, which can be used to generate Graphviz graphs from Ruby with ease. It's lightweight, it works, and it's fun! Check it out on the project page here . [read more...]
Article Seperator
Posted by Matt Savona on March 30, 2008

The last few days I've been building a new feature into the network monitor to visualize topologies. Turns out that if you can build a tree out of your topology, you can render it with Graphviz pretty easily. This has actually be a ton of fun, despite the fact that the ruby-graphviz gem is slightly dated and lacking some attribute support, has a slight TempFile issue when executing via (at least my) Rails app, and hard coded support for only Graphviz dot and twopi (though it's really trivial to support circo and neato). If ... [read more...]

Article Seperator
Posted by Matt Savona on February 28, 2008

MattJust a quick update. Nmap ping sweeps are now fully integrated into my networking monitoring web app. Nmap is capable of returning a good deal of information on a range of hosts, so dropping my quick and dirty ping and port sweeps in favor of this now yields more complete results, which can later be passed directly to Metasploit.

Fun Ruby tidbit of the day: IO.popen does not block execution of the current thread, as the docs state, it runs it as a Ruby subprocess. So trying to File.read the output of your popen ... [read more...]

Article Seperator