Coder Social home page Coder Social logo

phpmussel / core Goto Github PK

View Code? Open in Web Editor NEW
8.0 7.0 9.0 1.84 MB

phpMussel core (dedicated Composer version).

License: GNU General Public License v2.0

PHP 99.49% HTML 0.51%
php security protection antivirus anti-virus websites anti-malware uploads gnugpl clamav

core's Introduction

v1: PHP >= 5.4 < 8.4 v2: PHP >= 7.2 < 8.4 v3: PHP >= 7.2 License: GPL v2 PRs Welcome

What is phpMussel?

An ideal solution for shared hosting environments, where it's often not possible to utilise or install conventional anti-virus protection solutions, phpMussel is a PHP script designed to detect trojans, viruses, malware and other threats within files uploaded to your system wherever the script is hooked, based on the signatures of ClamAV and others.


Features:

  • Licensed as GNU General Public License version 2.0 (GPLv2).
  • Easy to install, easy to customise, easy to use.
  • Works for any system with PHP+PCRE installed, regardless of OS (PHP+PCRE required).
  • Fully configurable based on your needs.
  • Ideal solution for shared hosting services.
  • Ideal solution for forum systems in need of file upload protection.
  • Does NOT require shell access.
  • Does NOT require administrative privileges.
  • CLI mode available.
  • Good, strong, stable support base.

Documentation:

See also:


Last Updated: 1 July 2024 (2024.07.01).

core's People

Contributors

ahmedrezk59 avatar jedso avatar maikuolan avatar v10mthibault avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

core's Issues

Undefined variable $In in Scanner.php

Server information.

phpMussel version used (if known, please also include the exact commit hash).

v3.2 from composer

Signatures version (if known).

Manual installed using SigTool

PHP SAPI used

cgi-fcgi

PHP version installed

7.3.27

Operating system used

macOS 11.3.1


Issue

I'm seeing the following error in the phpMussel error_log:

[2021-05-28T13:23:19+02:00] Error at /Users/.../app/vendor/phpmussel/core/src/Scanner.php:L648 (error code 8): "Undefined variable: In".

As far as I can see the variable $In should have been $in in line 648:

($AtInstanceLookupKey = sprintf('%s:%d:%s', $InSha256, strlen($In), $OriginalFilenameClean)) &&

It is also present in the current master:

($AtInstanceLookupKey = sprintf('%s:%d:%s', $InSha256, strlen($In), $OriginalFilenameClean)) &&

Expected behavior

No error, get length of read data

Actual behavior

Undefined variable error, no length.

Steps to reproduce the behavior

  • Initialize Scanner from Core, with error_log configured
  • Scan file (I tested txt, jpg, and mov files)

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.