Skip to content

Instantly share code, notes, and snippets.

View anvanvan's full-sized avatar

An Van anvanvan

View GitHub Profile
@anvanvan
anvanvan / newfiles
Last active October 20, 2018 19:41 — forked from renekreijveld/jnewfiles
Bash script to detect suspicious new and changed files last 3 hours. Skips cache directories.
#!/bin/sh
# newfiles
# Detects new and changed php and html files last xxx minutes
# (C) 2014 Rene Kreijveld, enail [at] renekreijveld [dot] nl
# Update 31-12-2013: only send email when changes are found
# Update 04-02-2014: check for new files last three hours
# Update 05-05-2014: check for new html files also
# Update 07-05-2014: filter out ju_chached and DirectAdmin stats folders in html files