PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Max Stemplevski   Bad PHP Code Scan   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Bad PHP Code Scan
Scan PHP code files to find malicious code
Author: By
Last change: Update of example.php
Date: 9 months ago
Size: 871 bytes
 

Contents

Class file image Download
<?php
require_once('badcodescan.php'); // include class

$ex_code_scan = new BadCodeScan; // create new object of BadCodeScan class

#Sample #1
$ex_code_scan->searchBadCode(); // search bad code by default mask and parameters ($path = '.', $mask = 'eval(base64_decode', $ext = '*.php')
$ex_code_scan->showResultTable(); // show result table (optional)


#Sample #2
$ex_code_scan = new BadCodeScan; // create new object of BadCodeScan class (optional: you can collect multiple results by other masks)
$ex_code_scan->searchBadCode( '.', 'system(', '*.txt' ); // search bad code by custom mask and parameters.
$ex_code_scan->showResultTable(); // show result table (optional)

#Sample #3
$ex_code_scan = new BadCodeScan;
$ex_code_scan->searchBadCode( '.', ',""); /\*');
$ex_code_scan->showResultTable();