Skip to content

Commit 781149f

Browse files
author
Michael Messner
committed
little auto detect fix
1 parent 6a765ae commit 781149f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

modules/exploits/linux/http/dlink_hnap_rop.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,17 @@ def check
100100
break
101101
end
102102
end
103+
104+
else
105+
# no supported device found
106+
return Exploit::CheckCode::Unknown
103107
end
104108

105109
print_status("#{peer} - Selected Target: #{@mytarget.name}")
106110
print_good("#{peer} - detected a vulnerable device")
107111
return Exploit::CheckCode::Detected
108112

109-
# no auto-targetting ... the user is responsible
113+
# not auto-targetting ... the user is responsible
110114
else
111115
print_good("#{peer} - detected a device with unknown exploitability ... trying to exploit")
112116
return Exploit::CheckCode::Detected

0 commit comments

Comments
 (0)