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
Description 

Author

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 <contact>
Classes: 54 packages by
Country: India India
Innovation award
Innovation award
Nominee: 15x

Winner: 3x

Example

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

require_once("phpVulnerabilityScanner.inc.php");
$phpVulnerabilityScanner = new PhpVulnerabilityScanner($dir,$toScanArray);
$phpVulnerabilityScanner->showResult();
?>


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

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