Native, naive, Ruby Port Sniffer
This project is maintained by nsardo
Native Ruby naive port sniffer
Input an IP, and a range of ports as an array, and get back which of those ports are open or closed.
gem install PortSniff
Then, in your source file:
require 'SimplePortSniff'
ps = SimplePortSniff.new( 'google.com', [79,80,81] )
puts s.sniff()
RETURNS:
port 79 is closed
port 80 is open
port 81 is closed
cd into bin/ and type: ./simplePortSniff (the file is already chmod a+x)
(requires Cucumber be installed…)
cd into the root directory of this project:
ruby-port-sniff/
then type: cucumber