Hello all. “scanvirus” is a script application that has clamscan as its anti-virus engine. It has minimal functions to learn and it only has two dependencies (udisks2 and clamav). It makes virus scans of multiple drives/devices much easier, as well as many useful commands. It requires no graphical interface, but has some optional gfx functions. It’s command line is simple and easy to use with a configuration file. It’s a has good configurable logging system.
The KDE GUI should be a stable version. It has an easy to use configuration file. Note, it’s built for KDE, but you should be able to convert it to any other system with some web-surfing.
It’s been thoroughly tested for bugs and design flaws. However, any bugs or design flaws report them here. Follow the instructions in the script. It will auto-setup any files needed. Help files should be clear enough, but if not ask questions here. Note: Mismatch notice can be nothing or something. You forget to fix permissions before copying file into scanvirus folders, only once should be normal.
Upgrading from previous versions: The easy way, delete scanvirus and scanvirus-gui configuration files. Then do command ‘scanvirus -v’. Else, manually copy the changes and add new editions from the files below. Note, CFG files may change vars over time.
There is a scanvirus gui cfg editor, but it’s more of learning tool. It will be posted later.
scanvirus v1.02 stable
https://paste.opensuse.org/pastes/04b33cfed931
sha512sum scanvirus
156e4a0bdc8bf63dd828ad106737f8e39427a7bcfc5d449375a95e7e889ed807dbe74320523bf6176f3cc9489ff0ceefd482690c6f2bb7d9dbf8586d34156378 scanvirus
scanvirus-gui v1.00 beta (recommended)
https://paste.opensuse.org/pastes/ca3d0820c7d0
sha512sum scanvirus-gui
3a6d05c4e6c06ad5dd2305ae1f0a967a0ad5c3684cc7c353e74b802f1e559307e741cb40055b24cbd99aac308eafc3d40b3b97eb243b50fffca6f0bfb4a09761 scanvirus-gui
Scan Virus
help commands
-------------
scan linux and all mounted partitions --> no auto mount + scan home and root folder clamscan fix
p1: -a or --scanall
p2: c copy infected files to vault (optional)
p2: m move infected files to vault (optional) --> not recommended for linux - false positives
p2: u freshclam update (optional)
p2: l low system priority (optional)
p2: h high system priority (optional)
p2: n not scan home and root (optional)
p2: r recursive (optional)
p2: s suspend on end (optional)
p2: p shutdown on end (optional)
p3: w watermark (optional)
scan folder
p1: -f or --scanfolder
p2: c copy infected files to vault (optional)
p2: m move infected files to vault (optional) --> not recommended for linux - false positives
p2: u freshclam update (optional)
p2: l low system priority (optional)
p2: h high system priority (optional)
p2: r recursive (optional)
p2: s suspend on end (optional)
p2: p shutdown on end (optional)
p3: scan folder (optional)
p2: scan folder
scan linux partitions - Auto Mount and Unmount
p1: -l or --linux
p2: c copy infected files to vault (optional)
p2: m move infected files to vault (optional) --> not recommended for linux - - false positives
p2: u freshclam update (optional)
p2: l low system priority (optional)
p2: h high system priority (optional)
p2: r recursive (optional)
p2: s suspend on end (optional)
p2: p shutdown on end (optional)
p3: w watermark (optional)
scan windows partitions - Auto Mount and Unmount
p1: -m or --mswin
p2: c copy infected files to vault (optional)
p2: m move infected files to vault (optional)
p2: u freshclam update (optional)
p2: l low system priority (optional)
p2: h high system priority (optional)
p2: r recursive (optional)
p2: s suspend on end (optional)
p2: p shutdown on end (optional)
p3: w watermark (optional)
kill scanvirus - kill forground or background scan
p1: -ksv or --killscanvirus
p2: [null] print active scans
p3: cancel scan number
open virus vault - Desktop: KDE & GNOME
p1: -vf or --viewfolder
backup logs - backup scanlogs with date and time
p1: -bl or --backuplogs
p2: copy --> /folder (optional)
clean logs - remove scan canceled lines
p1: -cl or --cleanlogs
view logs
p1: -vl or --viewlogs
p2: l or m mask by linux/mswin scans (optional)
p2: c or v mask by clean or virus (optional)
p2: d mask by date (optional)
p3: year (optional)
p4: month (optional)
p5: day (optional)
view virus reports + virus files
p1: -vr or --viewvirusreports
view version file
p1: -v or --version
view configuration information
p1: -vc or --viewcfg
send folder virus vault
p1: -sv or --sendfoldervirusvault
p2: l list users (group1)
p2: u or m user or mail (group2)
p2: c compress folder (group2)
p3: set folder permissions to user number
p4: web mail adress
(web email offline)
view help file
p1: -h or --help
______________________________scanvirus configuration______________________________
date +%I:%M:%S%P
date +%Y-%m-%d
TimeFormat= +%I:%M:%S%P
DateFormat= +%Y-%m-%d
______________________________________________________________________________
/bin – Core binaries
/boot – Boot files
/dev – Device files
/etc – Configuration files
/home – User personal data
/lib – Shared libraries
/media – Mount point for removable devices
/mnt – Mount directory
/opt – Optional software
/proc – Process and kernel files
/root – The home directory of the root
/run — Application State Files
/sbin – System binaries
/selinux — SELinux Virtual File System
/srv – Service data
/sys - Sysfs is a ram-based filesystem
/tmp – Temporary files
/usr – User binaries and program data
/var – Variable data files
ExcludedLinuxScanFolders= .snapshots
___________________________________________________________________________________
LINUX scan - partition file system types
LinuxFileSystems= btrfs xfs ext2 ext3 ext4
___________________________________________________________________________________
MSWIN scan - partition file system types
MswinFileSystems= ntfs vfat
___________________________________________________________________________________
Bash Suspend Command
1= 'systemctl suspend' - openSUSE, Ubuntu, Fedora, Arch, Debian, etc
2= 'pm-suspend' - Void, Gentoo, Devuan etc - pm-utils power management suite
SuspendCommand= 1
___________________________________________________________________________________
Suspend or power-off lock screen on scan end - GNOME KDE
0= off
1= on
LockScreenCommand= 1
___________________________________________________________________________________
List users group filter
UserGroupFilter= users
___________________________________________________________________________________
Watermark= Default_Text
Scan Log Format
%o OS Type %s Virus Status
%f Scan Folder %n Scan Time
%c Command Options %t Time Stamp
%d Date Stamp %p Partition Log/Excluded Scan Folders
%w Watermark %% Print %
ScanLogFormat= %o %s %f %n %c %t %d %p
___________________________________________________________________________________
Scanlogs Cleaned Message - add record into scanlogs
0= off
1= on
ScanlogsCleanedMessage= 1
-----------------------------------------------------------------------------------
Scan Canceled Message Position
0= start
1= end
ScanCanceledMessagePosition= 0
___________________________________________________________________________________
GUI system notify popup on completed scan
1= xmessage
SystemNotifyMessage= 0
___________________________________________________________________________________
Recursive scan option configuration
0= normal function
1= inverse function
RecursiveScanInverse= 1
___________________________________________________________________________________
VirusFound Zip Send Folder Email
VirusFoundZipSendEmailFrom= emailfrom@server.com
VirusFoundZipSendEmailTo= emailto@server.com
VirusFoundZipSendEmailSubject= Virus Report
_________________________________________________________________________________