Stupid typing error
parent
314026ed0e
commit
9d5ab5a66f
|
@ -212,7 +212,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
streams['stdout'].each_line do |line|
|
||||
next unless line.start_with? "Version"
|
||||
major_version = line.match(/\d(?=\.)/)[0]
|
||||
if major_version == 1
|
||||
if major_version == "1"
|
||||
print_error "The target is running an older version of powershell"
|
||||
return false
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue