Just a quick snippet that I used today to find all files/folders with specific permissions in a directory before moving a site from a development server to a production environment…
ls -Rl | grep -i 'rwxrwxrwx'
Note: The example above looks for all files and directories with maxed out (eg: 0777) permissions 😉