0.0
No commit activity in last 3 years
No release in over 3 years
A Ruby interface to Ncrack, Network authentication cracking tool.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 2.0

Runtime

 Project Readme

ruby-ncrack

CI Gem Version

Description

A Ruby interface to ncrack, Network authentication cracking tool.

Features

  • Provides a Ruby interface for running the ncrack utility.
  • Provides a parser for enumerating Ncrack XML output files.

Examples

Running ncrack from Ruby:

require 'ncrack/command'

Ncrack::Command.run(targets: %w[10.0.0.130:21 192.168.1.2:22], output_xml: 'ncrack.xml')

Parsing ncrack XML files:

require 'ncrack/xml'

Ncrack::XML.open('ncrack.xml') do |xml|
  xml.each_service do |service|
    puts "#{service.address} #{service.port.number}/#{service.port.name}:"

    service.each_credentials.each do |credentials|
      puts "  #{credentials}"
    end
  end
end
127.0.0.1 4567/http:
  admin:swordfish
  bob:hunter

Requirements

Install

$ gem install ruby-ncrack

gemspec

gemspec.add_dependency 'ruby-ncrack', '~> 0.1'

Gemfile

gem 'ruby-ncrack', '~> 0.1'

Copyright

Copyright (c) 2011-2021 Hal Brodigan

See {file:LICENSE.txt} for details.