Custom 404 Page Finder

Script to find directories & files for a website wich has custom 404 code's (and returns 200 OK instead of 404 Not Found).
It simple use a pattern matching (of the custom'ed 404 page) to remove those directories and files that do not exist.
Requires a directory/file list.