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
StarStar 21%Total: 2,470 All time: 1,567 This week: 191Up
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 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: 12 Down1 in India India Equal
Innovation award
Innovation award
Nominee: 15x

Winner: 4x

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,470
This week:0
All time:1,567
This week:191Up
User Ratings User Comments (2)
 All time
Utility:25%StarStar
Consistency:50%StarStarStar
Documentation:-
Examples:41%StarStarStar
Tests:-
Videos:-
Overall:21%StarStar
Rank:4309
 
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