From 8b162f8ef7b8c6933597e1aab4d8f51dd67039bb Mon Sep 17 00:00:00 2001 From: Geeknik Labs <466878+geeknik@users.noreply.github.com> Date: Wed, 30 Dec 2020 17:09:07 +0000 Subject: [PATCH] Create old-copyright.yaml This template will alert you if the page has an old copyright date. Update line #18 as necessary or add additional negative matchers. Thanks to the PD-Team member on discord for their help. \m/ --- misc/old-copyright.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 misc/old-copyright.yaml diff --git a/misc/old-copyright.yaml b/misc/old-copyright.yaml new file mode 100644 index 0000000000..19e727d05e --- /dev/null +++ b/misc/old-copyright.yaml @@ -0,0 +1,29 @@ +id: old-copyright + +info: + name: Find pages with old copyright dates + author: geeknik + severity: info + +requests: + - method: GET + path: + - "{{BaseURL}}" + + redirects: true + max-redirects: 3 + matchers: + - type: word + words: + - '2020' + part: body + negative: true + extractors: + - type: regex + part: body + name: copyright_year + regex: + - 'Copyright [1-9]\d*' + - '© [1-9]\d*' + - '© [1-9]\d*' + - '© [1-9]\d*'