https://github.com/duckthom/simple-av-scanner
Simple AV scanner (wrapper for ClamAV)
https://github.com/duckthom/simple-av-scanner
Last synced: 5 months ago
JSON representation
Simple AV scanner (wrapper for ClamAV)
- Host: GitHub
- URL: https://github.com/duckthom/simple-av-scanner
- Owner: DuckThom
- License: mit
- Created: 2019-12-20T14:28:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-01-06T15:12:41.000Z (over 6 years ago)
- Last Synced: 2024-12-29T16:46:02.042Z (over 1 year ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-av-scanner
Simple AV scanner (wrapper for ClamAV)
## Requirements
- Clam AV
- Python3
- Python module: clamd
- Python module: progressbar2
## Setup
1. In `/etc/clamav/clamd.conf` uncomment/edit the following line: `LocalSocket /run/clamav/clamd.ctl`
2. Run `sudo systemctl enable --now clamav-daemon` (or your system equivalent)
3. Run `python3 av-scanner.py`
## Usage
### Options
- `SCAN_DIR` > Absolute path of the directory you wish to scan (Default: $HOME)
- `QUARANTINE_DIR` > Directory where quarantined items should be moved to. (**Note** Must be writable for the current user) (Default: /var/lib/clamav/quarantine)
- `DB_FILE` > The location of the database file which keeps track of the scanner/changed files. (Default: /var/lib/av-scanner/file-cache.db)
### Syntax example
Simple:
```
python3 av-scanner.py
```
With all options:
```
SCAN_DIR=/var/www/uploads QUARANTINE_DIR=/var/av/quarantine DB_FILE=/var/run/av.db python3 av-scanner.py
```