PHP Classes

PHP Malware Scanner: Scan folders and detect potentially infected files

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 695 All time: 4,712 This week: 146Up
Version Licenses PHP version Categories
malscanner 1.4Artistic License, B...5.0PHP 5, Files and Folders, Security
Description 

Author

This class can scan folders and detect potentially infected files.

It can traverse a given folder and checks files to determine if they contain PHP code with calls to functions that are often used in malicious scripts like eval and base64_decode.

The class can display or notify by email a system administrator with the list of potentially malicious code.

Picture of Nick Daniels
  Performance   Level  
Name: Nick Daniels <contact>
Classes: 13 packages by
Country: United States United States
Age: 34
All time rank: 1107160 in United States United States
Week rank: 227 Up23 in United States United States Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

Example

<?php

define
('TO_EMAIL', 'user@provider.tld');

// Set directory.
$scan = new MalScanner('.');

// Send Email Alerts
$scan->sendAlerts();

// Show Current Alerts
echo $scan->showAlerts();


  Files folder image Files (2)  
File Role Description
Accessible without login Plain text file example.php Example Example File
Plain text file MalScanner.class.php Class Class File

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:695
This week:0
All time:4,712
This week:146Up
User Comments (1)
search is not specific enough to be useful.
8 years ago (Helge Peters)
42%StarStarStar