I started automating the release of the librex gem and I thought it might be useful if I did a quick post on how to use the library.
So for starters librex is a repackaging of a core library from Metasploit. At my last job, I needed a way to interact with Windows shares and other rpc functionality from ruby. Rex was the only implementation of SMB in ruby that I could find. With permission from HDM I created a gem and published it on rubygems.
This is a quick example of how to interact with a Windows Share/computer using SMB via the Rex library.
If there are any requests I will do more examples for the different stuff Rex can do for you. For now back to the debugger =)