Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 44

Thread: Scanvirus Stable V1.00 Release

  1. #11

    Default Re: Scanvirus Stable V1.00 Release

    The '-cl' command can clear lines with 'virus found'. Filenames with same name, 'Scan Interrupted', might cause a problem. I need to think about it more. Scans can be interrupted after a virus found line. This is serious security issue.

    Solution, I just skip 'scan interrupted' line with 'virus found'. You can still delete the line manually while having the handy clean function. I should be able to create a simple fix and post the code.

    The filename issue needs to be researched. For now, filenames don't usually have spaces before and after. The search uses spaces before and after. As far as I know, search ' scan interrupted ' should work without any security issues.

    I need to test this before I release any new beta. Always check the build #, not the version #.

  2. #12

    Default Re: Scanvirus Stable V1.00 Release

    I'm working on a fix. I found that 'scan interrupted' doesn't use the the standard output. So, it doesn't display 'virus' in the line, but it does move the folder if virus is found. So, I need to review how the control-c cancel scan works.

    I can use the standard output and add 'interrupted' to the line to remind you of an canceled scan. I can add 'virus' to the line only.

    I'll post again once the new design is completed.

  3. #13

    Default Re: Scanvirus Stable V1.00 Release

    I think I have simple design change that works. It will change the formatting of 'control-c' output. So, there is a need for an optional upgrade function. It won't be in the help menu.

    scanvirus --upgrade

    The upgrade will do various tasks, depending on the version. ----- Don't use it more than one time---- Putting in safeguards will be too much coding. Use more than twice at you own risk. First time, use '-u' at your own risk

    fixes: next --upgrade
    interrupted spelling error
    possible conversion of old 'scan interrupted' to new format
    fixes the formatting error in the scanlog: 'start/end date:' to 'start/end:' (scanvirus bug fix in next beta release)


    completed scan:

    date {formatted line}

    interrupted scan:

    date canceled {formatted line}
    date interrupted {formatted line}

    I'll may add this to the config file. For, now i'll just point out the line to change. (if you want your own word)

    Once it passes the tests, will be the beta release. Sometime next month,

  4. #14

    Default Re: Scanvirus Stable V1.00 Release

    I was able to create a simple change to 'update_scanlog' to allow it to include '$cancel_scan_string'. Adding it to the trap -- >control_c --> call update_scanlog is complex, but not impossible. I could just correct the bad formatting and leave out missing data, but this will make the output cleaner.


    Scan_Time can be '0' or I can grab the current time to get total time with some more coding.

    Scan_Logs will show all scanned folders completed as of the control-c

    MSWIN should have the same basic formatting.

    The only visible difference between completed and canceled scans should be 'canceled ' {formatted cfg file line}.

  5. #15

    Default Re: Scanvirus Stable V1.00 Release

    I have finished the final design and coding for 'scan interrupted'. There some security issues with the '-cl' function that need to be worked out.

    Start: date and time
    End: date and time
    Calc: Total Scan Time

    typical line:
    ostype virus/clean total_scan_time TIme Date {folder_list}

    canceled ostype virus/clean interrupted_scan_time tIme date {folder_list}

    Not knowing the date and time a scan was canceled could be security issue.

    Replacing interrupted_scan_time with time_date_canceled is a good security fix,

    Using CFG file to remove scan interrupted might cause security issues. But, if I just add the '-cl' clean logs functions, it might be the better solution.

    Cleaning the logs also adds a time and date logs were cleaned, another security fix.

    Bug fix: 'Start date:' --> 'Start:' and fix 'End date'.

  6. #16

    Default Re: Scanvirus Stable V1.00 Release

    The control-c code had some major design problems, because of my lack of understanding of how trap works. I'm doing a complete redesign of control-c. The output is much cleaner after using control-c in the scanlogs and after the current scan is canceled. Both linux and mswin scans will have this upgrade.

    canceled: linux clean bin 0h:0m:1s none 08:39:51pm 2021-02-11 {}
    canceled: linux clean / 0h:0m:34s none 09:17:55pm 2021-02-11 {.Trash-0;bin;boot;home;lib}
    For security reasons, the 'canceled:' variable will not be in the config file. You will be able to set this var at the beginning of the script. Later, you can set it's position as start '0' or end '1' either in the config file or in the script as another var (next to canceled_var).

    Scanning lib
    No such file or directory
    WARNING: : Can't access file
    I can't find a reason for the above bug. Instead, I'm going to try fix the 'start date:' bug and finish the upgrade to control-c.

  7. #17

    Default Re: Scanvirus Stable V1.00 Release

    I've completed the upgrades to the linux scans if you press control-c. I've run into some error in the mswin scan. It could be a system bug. So, I'm going to wait a few days for the problem to be fixed.

    #----------------------------------------------------------------cut devicename
    Mount_Point=$( lsblk -l -o name,mountpoint | grep "${Temp_MP}" | sed "s/${Temp_MP} //g" )
    sed: -e expression #1, char 23: unknown option to `s'

  8. #18

    Default Re: Scanvirus Stable V1.00 Release

    I trace the problem back to the top level read statement. ID #s clipped for security.

    #blkid | sed 's/: /:/g' | sed 's/\" /:/g'
    Could be a system bug or my code,

  9. #19

    Default Re: Scanvirus Stable V1.00 Release

    For those who are paying attention to this blog, this is a scanvirus v1.01 - beta (1 week exp)

    search and replace all 'scan interupted:' in the logs -- > 'Canceled'. (& interrupted)

    I've overhauled the control-c interrupt system. It's exits cleaner and smoother for both mswin and linux scans

    Note: -cl function is null for now. I don't recommend using it. Leave the 'Canceled' scan entries for the next release.

    If you want to change the 'Canceled' message, it's at the beginning of the scanvirus file.


    CFG controls for 'Canceled' - start and end (easy)
    Fix '-cl' function.

    New idea:

    scanvirus scan filters - usb only or internal only for both linux and mswin scans. (auto-mounting as usual).

    Note: scanvirus -l f folder

    This can be used to scan both linux and mswin systems. To get the usb address, use the 'edit' function on the folder bar.

  10. #20

    Default Re: Scanvirus Stable V1.00 Release

    I have two completed the two new functions. Security should be enough for now.

    backup logs - backup scanlogs with date and time
    p1: -bl or --backuplogs

    clean logs - remove 'Canceled' lines (except with 'virus')
    p1: -cl or --cleanlogs

    If you change this, remember to search and replace the old tag.


    CFG start and end tag addition might cause problems.

    The USB and/or SATA filter is next.

Page 2 of 5 FirstFirst 1234 ... 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