PHP Classes

PHP Vulnerability Scanner: Scan script files for malicious code

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (5)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 2,469 All time: 1,566 This week: 159Up
Version License PHP version Categories
phpvulnerabilityscan 1Free For Educatio...5PHP 5, Files and Folders, Security


This class can be used to scan script files to find eventually malicious code.

It can traverse a given directory recursively and checks script files to see if they may contain code that may be eventually malicious.

Currently it finds script files that are using functions often used in infected scripts, such as base64_encode and base64_decode.

Picture of Er. Rochak Chauhan
  Performance   Level  
Name: Er. Rochak Chauhan is available for providing paid consulting. Contact Er. Rochak Chauhan .
Classes: 54 packages by
Country: India India
Age: 45
All time rank: 21 in India India
Week rank: 17 Down1 in India India Equal
Innovation award
Innovation award
Nominee: 15x

Winner: 4x


="../Facebook Clones"; // Where to scan recurcivly
$toScanArray=array("base64_encode", "base64_decode", "unescape"); // What to find inside a file (possible virus / Malicious code)

$phpVulnerabilityScanner = new PhpVulnerabilityScanner($dir,$toScanArray);

  Files folder image Files  
File Role Description
Accessible without login Plain text file example.php Example Example Script
Plain text file Class Class File

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:1,566
This week:159Up
User Comments (2)
Very useful script.
10 years ago (Scott Hemsley)
base64_decode and base64_encode functions are one of the most...
13 years ago (Artur Graniszewski)