diff --git a/scripts/meterpreter/hashdump.rb b/scripts/meterpreter/hashdump.rb index 920630c2e5..07830815b9 100644 --- a/scripts/meterpreter/hashdump.rb +++ b/scripts/meterpreter/hashdump.rb @@ -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|