Skip to content

Commit

Permalink
[Fix] human-readable path not displaying on -a|--scan-all default pat…
Browse files Browse the repository at this point in the history
…h scan (/home); #407

[Change] default scoped scan adjusted from /var/www/html to /var/www to make sure we scope all www content; #404
[Fix] compare md5 on ignore_sigs between monitor mode cycles and only regenerate signatures on file changes; #397
  • Loading branch information
rfxn committed Oct 15, 2022
1 parent 30c0fad commit 636eb0b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG
@@ -1,3 +1,15 @@
v1.6.5 | Oct xx 2022:
[Fix] monitor mode white space detection; issue #354
[Change] event_log/clamscan_log now record year in timestamp; issue #352
[Change] -p|--purge will now trim the inotify_log; issue #350
[New] -D|--dump-report to dump reports to stdout; pr #362
[Fix] monitor mode will now fail to start if 'ed' is not installed; issue #350
inotify_log requires in-place inode pruning to prevent exponential growth
[Fix] inotify kernel support on debian11 checking only System.map; pr #398
[Fix] human-readable path not displaying on -a|--scan-all default path scan (/home); #407
[Change] default scoped scan adjusted from /var/www/html to /var/www to make sure we scope all www content; #404
[Fix] compare md5 on ignore_sigs between monitor mode cycles and only regenerate signatures on file changes; #397

v1.6.4 | Mar 18 2019:
[New] add quarantine_on_error variable to control quarantine behavior when scanner engines such as ClamAV encounter an error
[New] add support for slack alerts; pr #240 mostafahussein
Expand Down
5 changes: 4 additions & 1 deletion CHANGELOG.RELEASE
@@ -1,11 +1,14 @@
v1.6.5 | ?? ?? 2020:
v1.6.5 | Oct xx 2022:
[Fix] monitor mode white space detection; issue #354
[Change] event_log/clamscan_log now record year in timestamp; issue #352
[Change] -p|--purge will now trim the inotify_log; issue #350
[New] -D|--dump-report to dump reports to stdout; pr #362
[Fix] monitor mode will now fail to start if 'ed' is not installed; issue #350
inotify_log requires in-place inode pruning to prevent exponential growth
[Fix] inotify kernel support on debian11 checking only System.map; pr #398
[Fix] human-readable path not displaying on -a|--scan-all default path scan (/home); #407
[Change] default scoped scan adjusted from /var/www/html to /var/www to make sure we scope all www content; #404
[Fix] compare md5 on ignore_sigs between monitor mode cycles and only regenerate signatures on file changes; #397

v1.6.4 | Mar 18 2019:
[New] add quarantine_on_error variable to control quarantine behavior when scanner engines such as ClamAV encounter an error
Expand Down
2 changes: 1 addition & 1 deletion cron.daily
Expand Up @@ -99,7 +99,7 @@ elif [ "$cron_daily_scan" == "1" ]; then
$inspath/maldet -b -r ${conf_hosting_path:-/var/www/sites}/?/?/subdomains/?/html/ $scan_days >> /dev/null 2>&1
else
# cpanel, interworx and other standard home/user/public_html setups
$inspath/maldet -b -r /home?/?/public_html/,/var/www/html/,/usr/local/apache/htdocs/ $scan_days >> /dev/null 2>&1
$inspath/maldet -b -r /home?/?/public_html/,/var/www/,/usr/local/apache/htdocs/ $scan_days >> /dev/null 2>&1
fi
fi

Expand Down
14 changes: 12 additions & 2 deletions files/internals/functions
Expand Up @@ -1575,8 +1575,18 @@ monitor_cycle() {
fi
sleep $inotify_sleep
inotify_cycle_runtime=$[inotify_sleep+inotify_cycle_runtime]
sigignore 1
gensigs

if [ -f "$ignore_sigs" ]; then
ignore_sigs_current_md5=`md5sum $ignore_sigs | awk '{print$1}'`
if [ ! "$ignore_sigs_current_md5" == "$ignore_sigs_last_md5" ]; then
sigignore 1
gensigs
ignore_sigs_current_md5=`md5sum $ignore_sigs | awk '{print$1}'`
eout "{mon} regenerated signature files on ignore_sigs file change detected" 1
fi
ignore_sigs_last_md5="$ignore_sigs_current_md5"
fi

if [ "$scan_clamscan" == "1" ]; then
monitor_mode=1
clamselector
Expand Down
1 change: 1 addition & 0 deletions files/maldet
Expand Up @@ -220,6 +220,7 @@ else
hrspath="$1"
if [ "$spath" == "" ]; then
spath=/home
hrspath="$spath"
fi
if [ "$set_background" == "1" ]; then
eout "{scan} launching scan of $spath to background, see $maldet_log for progress" 1
Expand Down

0 comments on commit 636eb0b

Please sign in to comment.