Skip to content

Commit 9d5ab5a

Browse files
David MaloneyDavid Maloney
authored andcommitted
Stupid typing error
1 parent 314026e commit 9d5ab5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/windows/winrm/winrm_script_exec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def powershell2?
212212
streams['stdout'].each_line do |line|
213213
next unless line.start_with? "Version"
214214
major_version = line.match(/\d(?=\.)/)[0]
215-
if major_version == 1
215+
if major_version == "1"
216216
print_error "The target is running an older version of powershell"
217217
return false
218218
end

0 commit comments

Comments
 (0)