Skip to content

Whitelist

Győrvári Gábor edited this page Sep 3, 2018 · 1 revision

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
Clone this wiki locally