1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-09-04 20:18:27 +02:00

make sure the session is a windows host

git-svn-id: file:///home/svn/framework3/trunk@11058 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
James Lee 2010-11-17 20:22:18 +00:00
parent d33b55474a
commit 2895dc409a

View File

@ -8,6 +8,12 @@ opts = Rex::Parser::Arguments.new(
"-p" => [ true, "The SMB port used to associated credentials."]
)
os = client.sys.config.sysinfo["OS"].downcase
unless (os =~ /win/)
print_error("Not a windows system")
raise Rex::Script::Completed
end
smb_port = 445
opts.parse(args) { |opt, idx, val|