Skip to content

Commit ce5896d

Browse files
authored
Update platform.rb
Removed unnecessary word from pattern
1 parent 94da99e commit ce5896d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/metasploit/framework/ssh/platform.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def self.get_platform_info(ssh_socket, timeout: 10)
5252
info = info.map { |item| item.strip }
5353
info = info.join(', ').to_s
5454
# Windows
55-
elsif info =~ /command not found|is not recognized as an internal or external command|is not recognized as the name of a cmdlet, function, script file, or operable program./
55+
elsif info =~ /command not found|is not recognized as an internal or external command|is not recognized as the name of a cmdlet, function, script file, or operable/
5656
info = ssh_socket.exec!("systeminfo\n").to_s
5757
/OS Name:\s+(?<os_name>.+)$/ =~ info
5858
/OS Version:\s+(?<os_num>.+)$/ =~ info

0 commit comments

Comments
 (0)