Skip to content

Commit 62bcc95

Browse files
authored
Update model check
1 parent 7556768 commit 62bcc95

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/exploits/linux/http/netgear_dnslookup_cmd_exec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def check
6666
marker_two = "\""
6767
model = data[/#{marker_one}(.*?)#{marker_two}/m, 1]
6868
vprint_status("Router is a NETGEAR router (#{model})")
69-
if model == 'DGN2200v1' || model == 'DGN2200v2' || model == 'DGN2200v3' || model == 'DGN2200v4'
69+
model_numbers = ['DGN2200v1', 'DGN2200v2', 'DGN2200v3', 'DGN2200v4']
70+
if model_numbers.include?(model)
7071
print_good("Router may be vulnerable (NETGEAR #{model})")
7172
return CheckCode::Detected
7273
else

0 commit comments

Comments
 (0)