Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: scanvirus v1.01 stable release - kde scanvirus-gui v1.00 stable release

  1. #1

    Default scanvirus v1.01 stable release - kde scanvirus-gui v1.00 stable release

    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 is now out of beta and is now 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.


    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.

    Notes:
    view changes to the help menu.
    '-sv' send to folder and local user account works. The webmail is currently offline.
    '-vp' view partitions function is not working, but close to completion.
    scanvirus log will have a small change later.





    Code:
    ______________________________scanvirus configuration______________________________
    date +'%Y-%m-%d %I:%M:%S%P'
    TimeStamp= %I:%M:%S%P
    DateStamp= %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 - GNOME KDE
    LockScreenCommand= 0
    ___________________________________________________________________________________
    List users group filter
    UserGroupFilter= users
    ___________________________________________________________________________________
    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
    %%  Print %
    ScanLogFormat= %o %s %f %n %c %t %d %p
    ___________________________________________________________________________________
    Add record into scanlogs
    ScanlogsCleanedMessage= 1
    
    Message position start end 
    ScanlogsCleanedMessagePosition= 0
    ___________________________________________________________________________________
    System notify popup on completed scan
    1= xmessage
    SystemNotifyMessage= 0
    ___________________________________________________________________________________
    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"
    _________________________________________________________________________________
    Code:
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    Virus Vault Menu Configuration - Use 'scanvirus --sendfoldervirusvault l'
    limit 5 users total [user# username] [user# username] [user# username] [user# username] [user# username]
    
    GUI_UserList_Label=(      "root" "username1" "" "" "")
    GUI_UserList_User_Number=("0"    "1"         "" "" "")
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    GUI Progressbar folder maxfiles override
    
    [/ /folder /folder /folder /folder]
    [maxfiles maxfiles maxfiles maxfiles]
    
    GUI_ProgressBar_Folders=("/" "" "")
    GUI_ProgressBar_MaxFiles=("220000" "" "")
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    Custom Scans - Scan System Menu
    
    GUI_Scan_System_Menu_Name=(   "Standard Linux Main" "Partition Scan MSWIN" "CustomScan1"  "CustomScan2"  "CustomScan3"  "CustomScan4"  "CustomScan5")
    GUI_Scan_System_Menu_Command=("scanvirus -a cu"     "scanvirus -m cu"      "scanvirus -h" "scanvirus -h" "scanvirus -h" "scanvirus -h" "scanvirus -h")
    -----------------------------------------------------------------------------------------------------------------------------------------------------------

    scanvirus
    https://paste.opensuse.org/97077158

    scanvirus-gui
    https://paste.opensuse.org/27649012


    Code:
    # sha512sum scanvirus 
    78ea2b92bab37d9c121931feb23aa0994ae96f89cad8a86bf7c5b02fe7ee5b3e9e5851aa1e02564820d7f60198917138dd8202455f4f58083dab982357ab7434  scanvirus
    # sha512sum scanvirus-gui 
    084a7cb754ec99bb413a5d4f5c6471d9e06e606f9198922cba57279512b413f7788ce2058933ff7da0ec4bec68c8362bf6f5f88146cc441725732aa9120906f9  scanvirus-gui
    

    Enjoy...

  2. #2

    Default Re: scanvirus v1.01 stable release - kde scanvirus-gui v1.00 stable release

    Completed:

    'scanvirus -vp': view partitions
    'm'(mswin filter) or 'l'(linux filter)
    's' (sata filter, not usb) or 'u' (usb filter)

    scanvirus -vp mu
    view usb mswin drives

    scanvirus -vp lu
    view usb linux drives

    scanvirus -vp sl
    view sata linux drives
    usually includes linux main system '/'

    scanvirus -vp sm
    view mswin main drives, usually includes the boot 'efi system'

    I'v had do some corrections to partition information for structure. No corrections for blank labels or spaces in mount points, yet.


    Supported by the GUI.
    scan systems --> scan usb drives --> select by drive label (supports 5 drives, room for 9 total with KDE)


    Future Expanded:
    click on drives to add to usb scan.





    scanvirus
    https://paste.opensuse.org/ac2d501e

    scanvirus-gui
    https://paste.opensuse.org/71400317


    Code:
    # sha512sum scanvirus 
    2b9b2f4161cc23f7d383d3a58c8a9c87d60403a0026667baf6b5e2bc8b1c2c49ea2ef7780f1baf82e7ee0c64ab997c696983ec25c65d8ab7190afd3ad6b8c43a  scanvirus
    
    Code:
    # sha512sum scanvirus-gui 
    441c04e648c9ddb5de91a7e2de5936f37263f975e614a39c1f26eb73b3861e4878dc4420a1f4e620ecccedf57bcde6be5f97024ca9f8211d8e4f635ec93ee189  scanvirus-gui
    

  3. #3

    Default Re: scanvirus v1.01 stable release - kde scanvirus-gui v1.00 stable release

    scanvirus-gui

    Fixes recursive bug
    Expanded to 9 flash drives
    Select individual flash drives



    scanvirus
    https://paste.opensuse.org/8a92d242

    scanvirus-gui
    https://paste.opensuse.org/4033f2fc


    Code:
    #sha512sum scanvirus 
    2b9b2f4161cc23f7d383d3a58c8a9c87d60403a0026667baf6b5e2bc8b1c2c49ea2ef7780f1baf82e7ee0c64ab997c696983ec25c65d8ab7190afd3ad6b8c43a  scanvirus
    
    #sha512sum scanvirus-gui
    4df0a7ef0fe588e0a6c034e030d7f2b06d8d45972e679339c323a768a92cec97a4efa70ae6ce2a3ac9066424a5644b1ca339230f54f08997b73331cda0b961eb  scanvirus-gui
    


    I'm out of ideas for now, but I will post bug fixes as needed. So, i'm going to work my new bash project 'offline-update'.

    Any suggestions are welcome.

  4. #4

    Default Re: scanvirus v1.01 stable release - kde scanvirus-gui v1.00 stable release

    I forgot about this idea: a GUI configuration editor.

    Editing the text files is easy already, but a GUI editor will be another challenge.

    It will work for both CFG files. Also, I made the first menu for a scanvirus (not GUI) cfg editor. It loads all the cfg vars. Still working on the design for how to edit the CFG files.

  5. #5

    Default Re: scanvirus v1.01 stable release - kde scanvirus-gui v1.00 stable release

    In making a scanvirus gui cfg editor, I found a design flaw in scanvirus that limits you to custom dates and times, but not being able to use standard formats like 'date -R'. This version removes those limits. Version available for 3 months. Should be free of bugs.


    scanvirus
    https://paste.opensuse.org/b4f35254


    Overwrite the file in '/usr/bin/scanvirus'.

    You will need to update 'scanvirus.cfg' vars in the new format:

    Code:
    ______________________________scanvirus configuration______________________________
    date +'%Y-%m-%d %I:%M:%S%P'
    date +%Y-%m-%d..%I:%M:%S%P
    date -R
    date -u
    TimeFormat= +%I:%M:%S%P
    DateFormat= +%Y-%m-%d
    ______________________________________________________________________________


    FYI, I'v completed date format editor. It makes the function much easier. It displays current format and date result. Then any updates show in date result. Time format will use the same gui format. Soon, I'll present a sample app with time and date format editing. It will include a beta test of a save to file button.

  6. #6

    Default Re: scanvirus v1.01 stable release - kde scanvirus-gui v1.00 stable release

    Thanks to some more work on the GUI scanvirus cfg editor, I fixed a design flaw that I was previously unable to fix.

    ExcludedLinuxScanFolders now supports 1+ folders

    ExcludedLinuxScanFolders= .snapshots /custom1 /custom2 /custom3 [ ...]

    Keep in mind that clamscan skips some folders automatically.

    You shouldn't have spaces in linux filenames, but I can fix that using the format that clamscan uses ".snapshots|/usr/|custom1".

  7. #7

    Default Re: scanvirus v1.01 stable release - kde scanvirus-gui v1.00 stable release

    This version is ready and check again here for any future updates.

    scanvirus
    https://paste.opensuse.org/47201282

    Code:
    # sha512sum scanvirus
    a1ab5f6a08ebab50e0bdc5b8c88ef5504356942be7b953339fe9d831270525d675a7ad83187c3201a291bc2b8fa6b3f34ce93dee021935e13c45b6a70bc184c0  scanvirus
    

    'offline-update' progresses slowly. Scanvirus GUI cfg editor has 6 functions and the ability to save changes to 'scanvirus.cfg'. The file system list include all, including systems that can't be read from clamscan. They all use the same basic GUI system. I should have 'beta' in about a week (or longer).

  8. #8

    Default Re: scanvirus v1.01 stable release - kde scanvirus-gui v1.00 stable release

    This fixes a bad variable name in the cfg file for scanvirus. I've edited the default file to fix the error.

    I should be finished with the GUI CFG editor soon. Keep in mind this fact. If you add new file system types to a list, the clamscan engine may not be able to read it.

    Note, this upgraded version will used by the GUI CFG editor. The scanvirus-gui will be unaffected.

    Code:
    ScanlogsCleanedMessagePosition= 0
    Easy upgrade:
    #1: delete cfg file
    #2: overwrite /usr/bin/scanvirus (after renaming the below file to 'scanvirus')
    #2: 'scanvirus -v'

    Else, just copy any needed needed lines from the cfg file text. Then do the above #2 then #3.

    Normal scan '-r' adds recursive
    Inverse scan '-r' is not needed, on by default.

    scanvirus
    https://paste.opensuse.org/46780750

    Code:
    # sha512sum scanvirus
    4cc95f533eff4ed84796d8cb7584e61e81a4f5a16bd1bc93a0f8b8b251ea6fd8c361372e4700b05607ab675bffa261846bfe2b139b6cfe8d36a2be78dee1cc3e  scanvirus
    

    Code:
    ______________________________scanvirus configuration______________________________
    date +'%Y-%m-%d %I:%M:%S%P'
    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 - GNOME KDE
    LockScreenCommand= 0
    ___________________________________________________________________________________
    List users group filter
    UserGroupFilter= users
    ___________________________________________________________________________________
    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
    %%  Print %
    ScanLogFormat= %o %s %f %n %c %t %d %p
    ___________________________________________________________________________________
    Add record into scanlogs
    ScanlogsCleanedMessage= 1
    
    Message position start end 
    ScanlogsCleanedMessagePosition= 0
    ___________________________________________________________________________________
    System notify popup on completed scan
    1= xmessage
    SystemNotifyMessage= 0
    ___________________________________________________________________________________
    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"
    _________________________________________________________________________________

  9. #9

    Default Re: scanvirus v1.01 stable release - kde scanvirus-gui v1.00 stable release

    I corrected a few bugs and made clearer text in cfg file. It's recommended to update cfg file. ScanCanceledMessagePosition has been added, replacing the bad variable name. It's now required.

    The scanvirus GUI config editor is only missing "UserGroupFilter". Otherwise, it's easy to use and shouldn't take very long to learn.

    cfg update the easy way:
    delete cfg
    overwrite scanvirus
    'scanvirus -v'
    (use the gui to update cfg file to your perferences)

    Else, just copy from the cfg file.



    scanvirus
    https://paste.opensuse.org/5cc538b8

    sha512sum
    24c6ccfaa88aab18139692f6521c9aa7b931abddfce08ffa0df4b0f2a7f729365001a72f897a565dd4094d3df299f952f09d4140e23f63407c29ccd3c0c68e69


    'opensuse paste' has locked out of making another paste. I'll try posting it later.




    Code:
    ______________________________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= 0 
    ___________________________________________________________________________________ 
    List users group filter 
    UserGroupFilter= users 
    ___________________________________________________________________________________ 
    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 
    %%  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= username1@server.com 
    VirusFoundZipSendEmailTo= send1@server.com 
    VirusFoundZipSendEmailSubject= Virus Report 
    _________________________________________________________________________________ 
    

  10. #10

    Default Re: scanvirus v1.01 stable release - kde scanvirus-gui v1.00 stable release

    scanvirus-cfg-editor
    https://paste.opensuse.org/89079308

    The select file system may have entries that the clamscan engine can't read.

    sha512sum scanvirus-cfg-editor
    ebb6066ec1cda6629fe6346911e0db6167c5db04f5ac4659e6d7cc0eb7dcb7bdd4c353dcf3aa5227d73862f467ee5bb72305774a38da6c25bc227bae58892bc9 scanvirus-cfg-editor

    Not available in gui:
    List users group filter
    UserGroupFilter= users

    opensuse paste 3 month limit won't work. So, it's available for a month.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •