From 65c5e8a61b6a66d75f026e4a012640de89285650 Mon Sep 17 00:00:00 2001 From: Vikas Gupta Date: Tue, 6 Feb 2024 20:07:47 +0530 Subject: [PATCH] Update dns-rebinding.yaml Regex not incorrect --- dns/dns-rebinding.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dns/dns-rebinding.yaml b/dns/dns-rebinding.yaml index 391ecc3164..0be6db5a62 100644 --- a/dns/dns-rebinding.yaml +++ b/dns/dns-rebinding.yaml @@ -27,7 +27,7 @@ dns: - type: regex part: answer regex: - - 'IN.*A.*(127\.0\.0\.1|\b10\.\d{1,3}\.\d{1,3}\.\d{1,3}\b|172\.(1[6-9]|2\d|3[0-1])\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3})$' + - 'IN.*A.(\s)*(127\.0\.0\.1|10\.\d{1,3}\.\d{1,3}\.\d{1,3}|172\.(1[6-9]|2\d|3[0-1])\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3})(127\.0\.0\.1|\b10\.\d{1,3}\.\d{1,3}\.\d{1,3}\b|172\.(1[6-9]|2\d|3[0-1])\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3})$' extractors: - type: regex @@ -35,7 +35,7 @@ dns: name: IPv4 group: 1 regex: - - 'IN.*A.*(127\.0\.0\.1|\b10\.\d{1,3}\.\d{1,3}\.\d{1,3}\b|172\.(1[6-9]|2\d|3[0-1])\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3})' + - 'IN.*A.(\s)*(127\.0\.0\.1|10\.\d{1,3}\.\d{1,3}\.\d{1,3}|172\.(1[6-9]|2\d|3[0-1])\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3})(127\.0\.0\.1|\b10\.\d{1,3}\.\d{1,3}\.\d{1,3}\b|172\.(1[6-9]|2\d|3[0-1])\.\d{1,3}\.\d{1,3}|192\.168\.\d{1,3}\.\d{1,3})' - name: "{{FQDN}}" type: AAAA @@ -66,4 +66,4 @@ dns: group: 1 regex: - "IN.+A.+(fd([0-9a-fA-F]{2}):([0-9a-fA-F]{1,4}:){0,5}([0-9a-fA-F]{1,4}:){1,2}[0-9a-fA-F]{1,4})$" -# digest: 490a0046304402200086722c300abf7992729d43c342b754b0f805ca77bb380c079e86ba2fc18891022048ef9c5c5f5d13f31c25d484d6c038c6184dc6d1e4373f5eae32843ffbb89fc7:922c64590222798bb761d5b6d8e72950 \ No newline at end of file +# digest: 490a0046304402200086722c300abf7992729d43c342b754b0f805ca77bb380c079e86ba2fc18891022048ef9c5c5f5d13f31c25d484d6c038c6184dc6d1e4373f5eae32843ffbb89fc7:922c64590222798bb761d5b6d8e72950