Skip to content

Commit

Permalink
Merge pull request #98 from extremeshok/dev
Browse files Browse the repository at this point in the history
5.2.0
  • Loading branch information
extremeshok committed Apr 15, 2016
2 parents 9a9198c + d5b4993 commit e976430
Show file tree
Hide file tree
Showing 8 changed files with 655 additions and 421 deletions.
15 changes: 15 additions & 0 deletions .travis/ci-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ else
exit 1
fi

#check cron file generation
if bash clamav-unofficial-sigs.sh --install-cron ; then
if [ -e "/etc/cron.d/clamav-unofficial-sigs" ] ; then
echo .. OK
Expand All @@ -23,6 +24,7 @@ else
exit 1
fi

#check logrotate file generation
if bash clamav-unofficial-sigs.sh --install-logrotate ; then
if [ -e "/etc/logrotate.d/clamav-unofficial-sigs" ] ; then
echo .. OK
Expand All @@ -33,4 +35,17 @@ if bash clamav-unofficial-sigs.sh --install-logrotate ; then
else
echo .. ERROR
exit 1
fi

#check man file generation
if bash clamav-unofficial-sigs.sh --install-man ; then
if [ -e "/usr/share/man/man8/clamav-unofficial-sigs.8" ] ; then
echo .. OK
else
echo .. ERROR
exit 1
fi
else
echo .. ERROR
exit 1
fi
26 changes: 9 additions & 17 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,7 @@ Script updates can be found at: https://github.com/extremeshok/clamav-unofficial
Script provide by Bill Landry ([email protected]).

## Description
The clamav-unofficial-sigs script provides a simple way to download, test, and update third-party
signature databases provided by Sanesecurity, FOXHOLE, OITC, Scamnailer, BOFHLAND, CRDF, Porcupine,
Securiteinfo, MalwarePatrol. The package also contains cron, logrotate, and man files.

The two files needed to download, test and update third-party ClamAV database files are the script itself
(clamav-unofficial-sig.sh), and the user configuration file (clamav-unofficial-sigs.conf).

Since the user configuration section has been separated from the script itself, the script now
needs to reference the configuration file when run by using the "-c" flag when running the script.
It is also recommended that a copy of the configuration file be place in the "default" location
"/etc" so that it can be used when running the script manually without using the "-c" flag, or
when running the script with the "-d" (decode virus signature), "-g" (check gpg signature), or
"-s" (check database integrity) flags. This also provides a way to run the script with different
configuration options when run via cron versus when run manually.
The clamav-unofficial-sigs script provides a simple way to download, test, and update third-party signature databases provided by Sanesecurity, FOXHOLE, OITC, Scamnailer, BOFHLAND, CRDF, Porcupine, Securiteinfo, MalwarePatrol, Yara-Rules Project, etc. The script will also generate and install cron, logrotate, and man files.

Script updates can be found at: https://github.com/extremeshok/clamav-unofficial-sigs

Expand Down Expand Up @@ -51,11 +38,11 @@ Uncompress/Unpackage the archive:
* Set 755 permissions on /usr/local/bin/clamav-unofficial-sigs.sh
* Make the directory /etc/clamav-unofficial-sigs/
* Copy the contents of config/ into /etc/clamav-unofficial-sigs/
* Copy clamav-unofficial-sigs.8 into /usr/share/man/man8/
* Rename the your os.your-distro.conf to os.conf, where your-distro is your distribution
* Set your user config options in the configs /etc/clamav-unofficial-sigs/user.conf
* Run the script with --install-cron to install the cron file
* Run the script with --install-logrotate to install the logrotate file
* Run the script with --install-man to install the man file

Install:
* mkdir -p /usr/local/bin/
Expand All @@ -64,7 +51,6 @@ Install:
* cp -f /tmp/clamav-unofficial-sigs/clamav-unofficial-sigs.sh /usr/local/bin/clamav-unofficial-sigs.sh
* chmod +x /usr/local/bin/clamav-unofficial-sigs.sh
* cp -f /tmp/clamav-unofficial-sigs/config/*.* /etc/clamav-unofficial-sigs/
* cp -f /tmp/clamav-unofficial-sigs/clamav-unofficial-sigs.8 /usr/share/man/man8/clamav-unofficial-sigs.8

Install Systemd configs:
* cp -f /tmp/clamav-unofficial-sigs/systemd/*.* /etc/systemd/
Expand All @@ -77,12 +63,16 @@ Configure:

Install Cron configs:
* After the configs have been configured
* Run: bash clamav-unofficial-sigs.sh --install-croCron:
* Run: bash clamav-unofficial-sigs.sh --install-cron:

Install logrotate configs::
* After the configs have been configured
* Run: bash clamav-unofficial-sigs.sh --install-logrotate

Install man (help) file:
* After the configs have been configured
* Run: bash clamav-unofficial-sigs.sh --install-man:

### First Usage
* Run the script once as your superuser to set all the permissions and create the relevant directories

Expand Down Expand Up @@ -173,6 +163,8 @@ Usage: clamav-unofficial-sigs.sh [OPTION] [PATH|FILE]
--install-logrotate Install and generate the logrotate file, autodetects the
values based on your config files

--install-man Install and generate the man file, autodetects the
values based on your config files

### Script updates can be found at: https://github.com/extremeshok/clamav-unofficial-sigs

Expand Down
41 changes: 34 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Github fork of the sourceforge hosted and non maintained utility.
## Maintained and provided by https://eXtremeSHOK.com

## Description
The clamav-unofficial-sigs script provides a simple way to download, test, and update third-party signature databases provided by Sanesecurity, FOXHOLE, OITC, Scamnailer, BOFHLAND, CRDF, Porcupine, Securiteinfo, MalwarePatrol. The package also contains cron, logrotate, and man files.
The clamav-unofficial-sigs script provides a simple way to download, test, and update third-party signature databases provided by Sanesecurity, FOXHOLE, OITC, Scamnailer, BOFHLAND, CRDF, Porcupine, Securiteinfo, MalwarePatrol, Yara-Rules Project, etc. The script will also generate and install cron, logrotate, and man files.

#### Try our custom spamassasin plugin: https://github.com/extremeshok/spamassassin-extremeshok_fromreplyto

Expand All @@ -21,12 +21,12 @@ Please post them on the issue tracker : https://github.com/extremeshok/clamav-un
* Set 755 permissions on /usr/local/bin/clamav-unofficial-sigs.sh
* Make the directory /etc/clamav-unofficial-sigs/
* Copy the contents of config/ into /etc/clamav-unofficial-sigs/
* Copy clamav-unofficial-sigs.8 into /usr/share/man/man8/
* Make the directory /var/log/clamav-unofficial-sigs/
* Rename the your os.your-distro.conf to os.conf, where your-distro is your distribution
* Set your user config options in the configs /etc/clamav-unofficial-sigs/user.conf
* Run the script with --install-cron to install the cron file
* Run the script with --install-logrotate to install the logrotate file
* Run the script with --install-man to install the man file

### First Usage
* Run the script once as your superuser to set all the permissions and create the relevant directories
Expand All @@ -53,8 +53,12 @@ Please post them on the issue tracker : https://github.com/extremeshok/clamav-un

```setsebool -P antivirus_can_scan_system true```

### Yara Rule Support (as of June 2015)
Requires clamav 0.99 or above : http://yararules.com
### Yara Rule Support automatically enabled (as of April 2016)
Since usage yara rules requires clamav 0.99 or above, they will be automatically deactivated if your clamav is older than the required version

### Yara-Rules Project Support (as of June 2015)
Usage of free Yara-Rules Project: http://yararules.com
- Enabled by default

Current limitations of clamav support : http://blog.clamav.net/search/label/yara

Expand All @@ -81,7 +85,27 @@ Usage of free Linux Malware Detect clamav signatures: https://www.rfxn.com/proje
- Enabled by default, no configuration required

## Change Log
### Version 5.1.1 (updated 2016-04-13)
### Version 5.2.0 (updated 2016-04-15)
- eXtremeSHOK.com Maintenance
- Refactor some functions
- Added --install-man this will automatically generate and install the man (help) file
- Yararules and yararulesproject enabled by default
- Added clamav version detection to automatically disable yararules and yararulesproject if the current clamav version does not support them
- Database files ending with .yar/.yara/.yararules will automatically be disabled from the database if yara rules are not supported
- Script options are added to the man file
- Fixed hardcoded logrotate and cron in remove_script
- Fixed incorrectly assigned logrotate varibles in install-logrotate
- Config added info for port/package maintainers regarding: pkg_mgr and pkg_rm
- Removed pkg_mgr and pkg_rm from freebsd and openbsd os configs
- Allow overriding of all the individual workdirs, this is mainly to aid package maintainers
- Rename sanesecurity_dir to work_dir_sanesecurity, securiteinfo_dir to work_dir_securiteinfo, malwarepatrol_dir to work_dir_malwarepatrol, yararules_dir to work_dir_yararules, add_dir to work_dir_add, gpg_dir to work_dir_gpg, work_dir_configs to work_dir_work_configs
- Rename yararules_enabled to yararulesproject_enabled
- Rename all yararules to yararulesproject
- Fix to prevent disabled databases processing certian things which will not be used as they are disabled
- Set minimum config required to 62
- Bump config to 62

### Version 5.1.1
- eXtremeSHOK.com Maintenance
- Added OS X and openbsd configs
- Fixed host fallback sed issues by @MichaelKuch
Expand All @@ -107,7 +131,7 @@ Usage of free Linux Malware Detect clamav signatures: https://www.rfxn.com/proje
- Set minimum config required to 60
- Bump config to 60

### Version 5.0.6 (updated 2016-04-04)
### Version 5.0.6
- eXtremeSHOK.com Maintenance
- Updated winnow databases as per information from Tom @ OITC
- Bump config to 58
Expand Down Expand Up @@ -425,7 +449,10 @@ Usage: clamav-unofficial-sigs.sh [OPTION] [PATH|FILE]
--install-logrotate Install and generate the logrotate file, autodetects the
values based on your config files

--install-man Install and generate the man file, autodetects the
values based on your config files

### Script updates can be found at: https://github.com/extremeshok/clamav-unofficial-sigs
## Script updates can be found at:
### https://github.com/extremeshok/clamav-unofficial-sigs

Original Script can be found at: http://sourceforge.net/projects/unofficial-sigs
28 changes: 0 additions & 28 deletions clamav-unofficial-sigs.8

This file was deleted.

Loading

0 comments on commit e976430

Please sign in to comment.