Created Whitelist (markdown)

Győrvári Gábor
2018-09-03 21:52:19 +02:00
commit c001597b64

20
Whitelist.md Normal file

@@ -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