From df623704120f5e3183b2e07bfc8449448db55be6 Mon Sep 17 00:00:00 2001 From: Dwi Siswanto Date: Wed, 9 Sep 2020 21:26:30 +0700 Subject: [PATCH] :hammer: Add header matcher for content-type --- files/zip-backup-files.yaml | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/files/zip-backup-files.yaml b/files/zip-backup-files.yaml index b7dbf07ed8..0ffc194ceb 100644 --- a/files/zip-backup-files.yaml +++ b/files/zip-backup-files.yaml @@ -1,8 +1,8 @@ id: zip-backup-files info: - name: Compressed Web folder - author: Toufik Airane - https://github.com/@toufik.airane + name: Compressed Web File + author: Toufik Airane - https://github.com/@toufik.airane & @dwisiswant0 severity: medium requests: @@ -35,19 +35,23 @@ requests: matchers: - type: binary binary: - - "377ABCAF271C" # 7z - - "314159265359" # bz2 - - "53514c69746520666f726d6174203300" # SQLite format 3. - - "1f8b" # gz tar.gz - - "526172211A0700" # rar RAR archive version 1.50 - - "526172211A070100" # rar RAR archive version 5.0 - - "FD377A585A0000" # xz tar.xz - - "1F9D" # z tar.z - - "1FA0" # z tar.z - - "4C5A4950" # lz - - "504B0304" # zip + - "377ABCAF271C" # 7z + - "314159265359" # bz2 + - "53514c69746520666f726d6174203300" # SQLite format 3. + - "1f8b" # gz tar.gz + - "526172211A0700" # rar RAR archive version 1.50 + - "526172211A070100" # rar RAR archive version 5.0 + - "FD377A585A0000" # xz tar.xz + - "1F9D" # z tar.z + - "1FA0" # z tar.z + - "4C5A4950" # lz + - "504B0304" # zip condition: or part: body + - type: regex + regex: + - "application/[-\\w.]+" + part: header - type: status status: - 200