From 65bf88e68f7a0e24784229a5398b6cd6f19b9608 Mon Sep 17 00:00:00 2001 From: Aarush Date: Tue, 18 Nov 2025 21:20:22 +0530 Subject: [PATCH] Fix #1147: Add SMB signature to port.yaml (#1162) * Add regex for SMB protocol in port.yaml to fix the bug #1147 Signed-off-by: Aarush289 * smb_fix done * Enable SMB regex match in port.yaml to fix the bug #1147 Signed-off-by: Aarush289 --------- Signed-off-by: Aarush289 Co-authored-by: Sam Stepanyan --- nettacker/modules/scan/port.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nettacker/modules/scan/port.yaml b/nettacker/modules/scan/port.yaml index 47f79fac..1ebe0361 100644 --- a/nettacker/modules/scan/port.yaml +++ b/nettacker/modules/scan/port.yaml @@ -1092,4 +1092,8 @@ payloads: amqp: regex: "AMQP" - reverse: false \ No newline at end of file + reverse: false + + smb: + regex: "SMB\\d+|Microsoft Windows Network|Server\\sMessage\\sBlock\\sProtocol|\\d{{1,3}}\\.\\d{{1,3}}\\.\\d{{1,3}}\\.\\d{{1,3}}.*?SMB.*?|Session\\sError|Not\\simplemented|Protocol\\sViolation|\\d+\\sbytes\\sreceived|SMB\\sConnection\\sterminated|Session\\sestablished\\susing\\sSMB\\d+|NTLMv2|Negotiate Protocol|SMB2\\sProtocol\\sNegotiation|Session\\sSetup\\sSMB|Tree\\sConnect" + reverse: false