GithubHelp home page GithubHelp logo

zelon88 / scancore Goto Github PK

View Code? Open in Web Editor NEW
12.0 2.0 1.0 384 KB

A high performance, self-updating, single thread command-line virus scanner written in PHP.

Home Page: https://www.HonestRepair.net

License: GNU General Public License v3.0

PHP 99.63% HTML 0.37%
virus scanner antivirus command-line php av-engine security antivirus-engine file-scanner malware-scanner

scancore's Introduction

APPLICATION INFORMATION ...

Copyright on 3/29/2024 by Justin Grimes, www.github.com/zelon88. ScanCore is a portable, single thread, self-updating, cross platform, command line virus scanner written in PHP that detects infections based on data match, MD5 hash, SHA1 hash, or SHA256 hash.

Features include:

  • High speed, single thread virus scanner that you use in your command line or terminal.
  • Updates application code automatically.
  • Updates virus definitions automatically.
  • Small memory footprint with the ability to set a custom memory limit.
  • Written in PHP, so it works from Apache or the command line.
  • Cross platform. Works in Windows or Linux.
  • Fully portable. If you have PHP installed & in your PATH you're good to go.
  • Virus definitions in plain text that you can actually understand.
  • Fully open source, including definitions.
  • Highly configurable. Great for scripting, devops, or automation.

This scanner can detect files based on the following criteria:

  1. MD5 Hash
  2. SHA1 Hash
  3. SHA256 Hash
  4. Raw Data Match

LICENSE INFORMATION ...

This project is protected by the GNU GPLv3 Open-Source license.


DEPENDENCY REQUIREMENTS ...

This application requires Windows or Linux with PHP 8.0 (or later).


VALID SWITCHES / ARGUMENTS / USAGE ...

Quick Start Example:

 C:\Path-To-PHP-Binary.exe C:\Path-To-ScanCore.php C:\Path-To-Scan\ -m [integer] -c [integer] -v -d
 C:\PHP\PHP.exe C:\scanCore\scanCore.php C:\Windows\Temp -memorylimit 4000000000 -chunksize 1000000000 -verbose -debug
 C:\PHP\PHP.exe C:\scanCore\scanCore.php C:\Windows\Temp -m 4000000000 -c 1000000000 -v -d
 C:\PHP\PHP.exe C:\scanCore\scanCore.php C:\Windows\Temp -nr -m 1000000000 -c 200000000 -v -d 

Start by opening a command-prompt.

  1. Type the absolute path to a portable PHP 8.0+ binary, or use the php command if it's in your PATH.
  2. Now type the absolute path to the ScanCore PHP file as the only argument for the PHP binary.
  3. Everything after the path to ScanCore will be passed to ScanCore as an argument.
  4. The first Argument must be a valid absolute path to the file or folder being scanned.
  5. Optional arguments can be specified after the scan path. Separate them with spaces.

Reqiured Arguments Include:

 File or folder to scan:                 /path/to/scan

Optional Arguments Include:

 Show version information:               -version
                                         -ver

 Show help information:                  -help
                                         -h
                                      
 Force recursion:                        -recursion
                                         -r

 Force no recursion:                     -norecursion
                                         -nr

 Specify memory limit (in bytes):        -memorylimit ####
                                         -m ####

 Specify chunk size (in bytes);          -chunksize ####
                                         -c ####

 Enable "debug" mode (more logging):     -debug
                                         -d

 Enable "verbose" mode (more console):   -verbose
                                         -v

 Force a specific report file:           -reportfile /path/to/file
                                         -rf path/to/file
                                         
 Force a specific configuration file:    -configfile /path/to/file
                                         -cf path/to/file
                                         
 Force a specific definitions file:      -defsfile /path/to/file
                                         -df path/to/file

 Force maximum log size (in bytes):      -maxlogsize ###
                                         -ml ###

 Perform definition update:              -updatedefinitions
                                         -ud
                                         
 Perform application update:             -updateapplication
                                         -ua

USAGE TIPS ...

  • If the target is a file larger than the [memorylimit] argument it will be chopped into [chunksize] and each chunk will be scanned separately.
  • If the target is a folder you must also specify [recursion] or [no-recursion] via command line arguments.
  • If you use the verbose and debug arguments to scan an entire hard drive be prepared for logfiles that are several GB in size with scans that can take days to complete.

MORE INFORMATION ...

Currently virus definitions are maintained at The ScanCore_Definitions Github Repository. Definition updates can be performed using command line switches. The repository of definitions is organized into different categories. Each portable scanner can subscribe or unsubscruibe to specific definition categories, allowing administrators to build custom definitions tailored to specific servers, roles, or applications.

This scanner was designed for high performance single threaded use. It can be used with the Windows or Linux command-line, or with custom applications such as thread handlers which create & destroy multiple script instances at different targets simultaniously. The whole idea of a fast single-threaded scanner is that you can run several dozen (or hundred) scans at the same time on multiple small targets rather than running one large scan.


<3 Open-Source

scancore's People

Contributors

zelon88 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

brainhub24

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.