Login   Register  
PHP Classes
elePHPant
Icontem

Bad PHP Code Scan: Scan PHP code files to find malicious code

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files Example   Screenshots Screenshots   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2014-07-16 (3 months ago) RSS 2.0 feedNot enough user ratingsTotal: 208 This week: 2All time: 7,204 This week: 990Up
Version License PHP version Categories  
bad-code-scan 1.0GNU General Public Lice...5.3PHP 5, Files and Folders, Security
Description Author  

This class can scan PHP code files to find malicious code.

It can traverse a given directory recursively to find files with a given file name extension that defaults to .php .

The class can scan the found files to determine if they contain code using eval and base64_decode function calls, which is a sign that the code may be hidding malicious code.

The class return an array with all potentially infected files, or list them in a HTML table.

Picture of Max Stemplevski
Name: Max Stemplevski <contact>
Classes: 1 package by
Country: Belarus Belarus
Age: 26
All time rank: 360510 in Belarus Belarus
Week rank: 854 Up3 in Belarus Belarus Up

Screenshots  
  • results
  Files folder image Files  
File Role Description
Files folder imagetest_folder (2 files, 1 directory)
Plain text file badcodescan.php Class Class source
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file README.md Data Auxiliary data

  Files folder image Files  /  test_folder  
File Role Description
Files folder imagetest_subfolder (2 files)
  Accessible without login Plain text file infected.html Data Auxiliary data
  Accessible without login Plain text file infected.php Test Unit test script

  Files folder image Files  /  test_folder  /  test_subfolder  
File Role Description
  Accessible without login Plain text file infected.php Test Unit test script
  Accessible without login Plain text file infected.txt Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 87%Total:208All time:7,204
 This week:2This week:990Up
 User Comments (1)  
 
Will not be as useful than a simple grep/sort line.
3 months ago (Ludovic Bellière)
27%StarStar