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 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 269 This week: 1All time: 6,997 This week: 1,096Up
Version License PHP version Categories  
bad-code-scan 1.0GNU General Publi...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: 3 packages by
Country: Belarus Belarus
Age: 27
All time rank: 326010 in Belarus Belarus
Week rank: 23 Up1 in Belarus Belarus Up
Innovation award
Innovation award
Nominee: 1x

Details provided by the author  

badcode_search

BadCodeScan class for searching bad commands in files on your server.

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:269All time:6,997
 This week:1This week:1,096Up
 User Comments (1)  
 
Will not be as useful than a simple grep/sort line.
1 year ago (Ludovic Bellière)
27%StarStar