commit c001597b64ad56523bc0c72bc831c3d7ce6b8e3c Author: Győrvári Gábor Date: Mon Sep 3 21:52:19 2018 +0200 Created Whitelist (markdown) 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