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: 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


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: 1108159 in United States United States
Week rank: 280 Up28 in United States United States Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x



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

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

// Send Email Alerts

// 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  
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)