A Ruby interface to ncrack, Network authentication cracking tool.
- Provides a Ruby interface for running the
ncrack
utility. - Provides a parser for enumerating Ncrack XML output files.
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
- ncrack >= 0.7
- command_mapper ~> 0.1
- nokogiri ~> 1.0
$ gem install ruby-ncrack
gemspec.add_dependency 'ruby-ncrack', '~> 0.1'
gem 'ruby-ncrack', '~> 0.1'
Copyright (c) 2011-2021 Hal Brodigan
See {file:LICENSE.txt} for details.