Skip to content

Commit 2a56c3f

Browse files
committed
remove redundant \d in check regex
1 parent 7024d4e commit 2a56c3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/linux/misc/cisco_ios_xe_rce.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def check
146146
# (as the above call to run_cli_command succeeded), however maybe this firmware version uses a different format
147147
# for the version information so our regex wont work.
148148
# Note: Version numbers can have letters in them, e.g. 17.11.99SW or 16.12.1z2
149-
if res =~ /(Cisco IOS XE Software, Version [\d\S]+\.[\d\S]+\.[\d\S]+)/
149+
if res =~ /(Cisco IOS XE Software, Version \S+\.\S+\.\S+)/
150150
version = Regexp.last_match(1)
151151
end
152152

0 commit comments

Comments
 (0)