Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

SimplePortSniff

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

SimplePortSniff

  • 1.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Gem Version

SimplePortSniff

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.

To use as a gem

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

To work with the source files:

To Run:

cd into bin/ and type: ./simplePortSniff (the file is already chmod a+x)

To Run Cucumber Tests:

(requires Cucumber be installed...)

cd into the root directory of this project:
ruby-port-sniff/

then type:  cucumber

FAQs

Package last updated on 25 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc