Sha256: 0c9413529ba0b6d3ac33f1aa510e9f14a45567e023e6f662e7075eab95592825
Contents?: true
Size: 816 Bytes
Versions: 4
Compression:
Stored size: 816 Bytes
Contents
# encoding: utf-8 require 'rubygems' begin require 'bundler/setup' rescue LoadError => e warn e.message warn "Run `gem install bundler` to install Bundler" exit -1 end require 'rake' require 'rake/clean' CLEAN.include('spec/*.xml') require 'rubygems/tasks' Gem::Tasks.new require 'rspec/core/rake_task' RSpec::Core::RakeTask.new task :spec => 'spec/fixtures/scan.xml' task :test => :spec task :default => :spec require 'yard' YARD::Rake::YardocTask.new task :doc => :yard file 'spec/fixtures/scan.xml' do |t| puts ">>> Scanning scanme.nmap.org ..." sh "sudo nmap -v -sS -sU -A -O --script ssh2-enum-algos,ssh-hostkey -oX #{t.name} scanme.nmap.org" end file 'spec/fixtures/down_host_scan.xml' do |t| puts ">>> Scanning 225.0.0.1 ..." sh "sudo nmap -v -sS -oX #{t.name} 225.0.0.1" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
ruby-nmap-1.0.3 | Rakefile |
ruby-nmap-1.0.2 | Rakefile |
ruby-nmap-1.0.1 | Rakefile |
ruby-nmap-1.0.0 | Rakefile |