PHP Classes

PHP Malware Scanner: Scan folders and detect potentially infected files

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 693 All time: 4,712 This week: 191Up
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: 1108160 in United States United States
Week rank: 91 Up11 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  
File Role Description
Accessible without login Plain text file example.php Example Example File
Plain text file MalScanner.class.php Class Class File

 Version Control Unique User Downloads Download Rankings  
 0%
Total:693
This week:0
All time:4,712
This week:191Up
User Comments (1)
search is not specific enough to be useful.
8 years ago (Helge Peters)
42%StarStarStar