2015-08-01 19:44:14 +00:00
|
|
|
#!/usr/bin/env ruby
|
|
|
|
|
2018-04-02 04:26:42 +00:00
|
|
|
##
|
|
|
|
# This module requires Metasploit: https://metasploit.com/download
|
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
|
|
|
##
|
|
|
|
|
2015-08-01 19:44:14 +00:00
|
|
|
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
|
|
|
|
require 'rex/parser/winscp'
|
|
|
|
|
|
|
|
exit unless ARGV.count == 1
|
|
|
|
|
|
|
|
include Rex::Parser::WinSCP
|
|
|
|
|
|
|
|
puts ARGV.first
|
|
|
|
read_and_parse_ini(ARGV.first).each do |res|
|
|
|
|
puts res.inspect
|
|
|
|
end
|