From 1d4b2905cbdc5f77c6ff7bc962f6dd5a31ae4bdd Mon Sep 17 00:00:00 2001 From: John Date: Wed, 22 Oct 2025 15:52:32 +0200 Subject: [PATCH] added a check to find QNAP devices once again --- plugins/qnap-nas.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/qnap-nas.rb b/plugins/qnap-nas.rb index ee5b2839b..c1023c92f 100644 --- a/plugins/qnap-nas.rb +++ b/plugins/qnap-nas.rb @@ -12,8 +12,10 @@ # v0.3 # Added aggressive model, firmware and module extraction from /cgi-bin/authLogin.cgi. # v0.4 # 2011-03-22 # Removed aggressive section # v0.5 # 2013-03-29 # Due to a renewed web interface (v3.8), all existing matches didn't see the QNAP anymore. New matches need to be determined + "John de Kroon 'Welcome to QNAP Turbo NAS' }, +# Newer versions will do a Javascript redirect that WhatWeb is not able to follow. This javascript is pretty recognizable though, +# so I created a fingerprint regex that matches on two typical parts in the script to avoid false positives. +{ :regexp => /redirect_suffix\s*=\s*"\/redirect\.html\?count="\s*\+\s*Math\.random\(\)/i }, + # favicon.ico { :url=>"/ajax_obj/images/favicon.ico", :md5=>"9afa5d60e5ef15dc75d7662e418cac72" },