mirror of
https://github.com/scr34m/php-malware-scanner.git
synced 2026-06-16 12:30:35 +00:00
Created Whitelist (markdown)
20
Whitelist.md
Normal file
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
|
||||
Reference in New Issue
Block a user