From c001597b64ad56523bc0c72bc831c3d7ce6b8e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gy=C5=91rv=C3=A1ri=20G=C3=A1bor?= Date: Mon, 3 Sep 2018 21:52:19 +0200 Subject: [PATCH] Created Whitelist (markdown) --- Whitelist.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Whitelist.md diff --git a/Whitelist.md b/Whitelist.md new file mode 100644 index 0000000..60d0775 --- /dev/null +++ b/Whitelist.md @@ -0,0 +1,20 @@ +# Whitelist generation + +## Batch whitelist generation from a CMS release. + +Download release + + $ curl -O https://modx.s3.amazonaws.com/releases/2.6.5/modx-2.6.5-pl.zip + +Check downloaded release hash + + $ shasum modx-2.6.5-pl.zip + 6253c3af23a60f1be75f943beda237da06d0aba4 modx-2.6.5-pl.zip + +Extract the archive + + $ unzip modx-2.6.5-pl.zip + +Generate whitelist (note on osx `md5 -r` gives the same output as `md5sum` on linux) + + $ find ./modx-2.6.5-pl -name \*.php -type f -print0 |xargs -0 md5 > whitelist.txt \ No newline at end of file