From c3c25af7f094f1c1d3d02b26faff04f2a1549041 Mon Sep 17 00:00:00 2001 From: nnposter Date: Mon, 31 Oct 2016 01:48:10 +0000 Subject: [PATCH] Consolidates fingerprints for Cisco Linksys into a single fingerprint, covering additional device models --- .../http-default-accounts-fingerprints.lua | 31 ++++++------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/nselib/data/http-default-accounts-fingerprints.lua b/nselib/data/http-default-accounts-fingerprints.lua index 353cc112f..a4ac57ac6 100644 --- a/nselib/data/http-default-accounts-fingerprints.lua +++ b/nselib/data/http-default-accounts-fingerprints.lua @@ -369,35 +369,22 @@ table.insert(fingerprints, { }) table.insert(fingerprints, { - -- Version 1.0.22 - name = "Cisco WAP200", + -- Version (see below) + name = "Cisco Linksys", category = "routers", paths = { {path = "/"} }, target_check = function (host, port, path, response) - return http_auth_realm(response) == "Linksys WAP200" + -- realm="Linksys WAP200", "Linksys WAP55AG", "Linksys E2000" + return (http_auth_realm(response) or ""):find("^Linksys %u[%u%d]+$") end, login_combos = { - {username = "admin", password = "admin"} - }, - login_check = function (host, port, path, user, pass) - return try_http_basic_login(host, port, path, user, pass, false) - end -}) - -table.insert(fingerprints, { - -- Version 1.07.01 - name = "Cisco WAP55AG", - category = "routers", - paths = { - {path = "/"} - }, - target_check = function (host, port, path, response) - return http_auth_realm(response) == "Linksys WAP55AG" - end, - login_combos = { - {username = "", password = "admin"} + -- WAP55AG, version 1.07.01 + -- E2000, version 1.0.03 (any username is valid) + {username = "", password = "admin"}, + -- WAP200, version 1.0.22 + {username = "admin", password = "admin"}, }, login_check = function (host, port, path, user, pass) return try_http_basic_login(host, port, path, user, pass, false)