A packet parsing and manipulation library for the SMB family of protocols.
See Microsoft's [MS-SMB2]
It supports authentication via NTLM using the ruby ntlm gem
This gem has not yet been released, but when it is, do this:
Add this line to your application's Gemfile:
gem 'ruby_smb'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby_smb
Updated Usage Docs coming soon
You'll want to have Wireshark and perhaps a tool like Impacket (which provides a small SMB client in one of its examples) installed to help with your work:
sudo apt-get install wireshark
sudo dpkg-reconfigure wireshark-common
sudo addgroup wireshark
sudo usermod -a -G wireshark <USERNAME>
sudo apt-get install python-setuptools
sudo easy_install pyasn1 pycrypto
- Download from GitHub (https://github.com/coresecurity/impacket)
sudo python setup.py install
cd examples && python smbclient.py <USER>:<PASS>@<WINDOWS HOST IP>
ruby_smb
is released under a 3-clause BSD license. See LICENSE.txt for full text.
- Fork it ( https://github.com/rapid7/smb2/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request