Skip to content

Commit

Permalink
[Change] removed redundant shebang from included files
Browse files Browse the repository at this point in the history
[Change] modified shebang to use env bash for portability
  • Loading branch information
rfxn committed Sep 27, 2015
1 parent 0bfd8af commit 190f56e
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ v1.5 | Sep 19 2015:
[Change] previously LMD only linked clamav signatures into clamav data paths on install, this is now done after each signature update
[Change] maldet.sh init script exites code 1 on status check when maldet monitor mode is not found running
[Change] monitor mode now invokes every 15 seconds, legacy installations will preserve 30 second cycle timing
[Change] modified shebang to use env bash for portability
[Fix] when clamdscan was running as a non-root user, would generate lstat errors for all file find results leading
to potential false positive hits/quarantines
[Fix] the permissions of the $tmpdir path can cause clamd when running as a non-root user to fail on startup due
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.RELEASE
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ v1.5 | Sep 19 2015
[Change] previously LMD only linked clamav signatures into clamav data paths on install, this is now done after each signature update
[Change] maldet.sh init script exites code 1 on status check when maldet monitor mode is not found running
[Change] monitor mode now invokes every 15 seconds, legacy installations will preserve 30 second cycle timing
[Change] modified shebang to use env bash for portability
[Fix] when clamdscan was running as a non-root user, would generate lstat errors for all file find results leading
to potential false positive hits/quarantines
[Fix] the permissions of the $tmpdir path can cause clamd when running as a non-root user to fail on startup due
Expand Down
2 changes: 1 addition & 1 deletion cron.daily
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:$PATH
export LMDCRON=1
. /usr/local/maldetect/conf.maldet
Expand Down
2 changes: 1 addition & 1 deletion files/VERSION.hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5fc16db8b9539a86706287c627a223a777fb21a5ca4c98bbf4ca91b90f5fa3e5
5fc16db8b9539a86706287c627a223a7d0ec383d45ec520ce06f97e7b24a8cbc
2 changes: 1 addition & 1 deletion files/clean/base64.inject.unclassed
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# $1 file path, $2 signature name, $3 file owner, $4 file mode, $5 file size (b), $6 file md5sum
if [ -f "$1" ]; then
sed -i -e 's/<?.*eval(base64_decode(.*?>//' -e 's/<?php.*eval(base64_decode(.*?>//' -e 's/eval(base64_decode([^;]*;//' "$1"
Expand Down
2 changes: 1 addition & 1 deletion files/clean/gzbase64.inject.unclassed
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# $1 file path, $2 signature name, $3 file owner, $4 file mode, $5 file size (b), $6 file md5sum
if [ -f "$1" ]; then
sed -i -e 's/<?.*eval(gzinflate(base64_decode(.*?>//' -e 's/<?php.*eval(gzinflate(base64_decode(.*?>//' -e 's/eval(gzinflate(base64_decode(.*);//' "$1"
Expand Down
2 changes: 1 addition & 1 deletion files/clean/js.inject.VisitorTracker
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# $1 file path, $2 signature name, $3 file owner, $4 file mode, $5 file size (b), $6 file md5sum
if [ -f "$1" ]; then
sed -i -e '/var visitortrackerin = setInterval(function(){/,/}\/\*visitorTracker\*\//d' -e '/\/\*visitorTracker\*\//d' "$1"
Expand Down
2 changes: 1 addition & 1 deletion files/clean/php.brute.bf1lic
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
# $1 file path, $2 signature name, $3 file owner, $4 file mode, $5 file size (b), $6 file md5sum
if [ -f "$1" ]; then
sed -i -e 's/^<?php if(!isset($GLOBALS\[\"\\x.*; ?>//' "$1"
Expand Down
2 changes: 1 addition & 1 deletion files/hookscan.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
file="$1"
isclamd=`pidof clamd 2> /dev/null`
clamdloc=`which clamdscan 2> /dev/null`
Expand Down
2 changes: 1 addition & 1 deletion files/internals/tlog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# track log 0.5
###
Expand Down
2 changes: 1 addition & 1 deletion files/maldet
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
##
# Linux Malware Detect v1.5
Expand Down
2 changes: 1 addition & 1 deletion files/service/maldet.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
# maldet Linux Malware Detect monitoring
#
Expand Down
2 changes: 1 addition & 1 deletion files/uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
echo "This will completely remove Linux Malware Detect from your server including all quarantine data!"
echo -n "Would you like to proceeed? "
read -p "[y/n] " -n 1 Z
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
#
##
# Linux Malware Detect v1.5
Expand Down

0 comments on commit 190f56e

Please sign in to comment.