Jump to content
Fi8sVrs

Pecker Scanner

Recommended Posts

  • Active Members
Posted

Pecker Scanner

A scanner named pecker, written in php,It can check dangerous functions with lexical analysis.

Use:

Config:

    $config = array(

'scandir' => dirname(__FILE__),

'extend' => array('php','inc','php5'),

'function' => array('exec','system','create_function','passthru','shell_exec','proc_open','popen','curl_exec','parse_ini_file','show_source','include','preg_replace'),

);

Main:

    $scaner = new Pecker_Scanner();

$scaner->setPath($config['scandir']); // set directory to scan

$scaner->setExtend($config['extend']);

$scaner->setFunction($config['function']);

$scaner->run();

$result = $scaner->getReport();

Result:

Array

(

[Pecker\test\1.php] => Array

(

[parser] => 1

[message] =>

[function] => Array

(

[eval] => Array

(

[0] => Array

(

[line] => 23

 => (       //get it

gzinflate ( $str ($str1)))

)

[1] => Array

(

[line] => 35

[code] => ('$str = time();')

)

)

[exec] => Array

(

[0] => Array

(

[line] => 25

[code] => ('dir')

)

[1] => Array

(

[line] => 36

[code] => ('dir')

)

)

)

)

[Pecker\test\111.php] => Array

(

[parser] => 1

[message] =>

[function] => Array

(

)

)

[Pecker\test\3.php] => Array

(

[parser] => 1

[message] =>

[function] => Array

(

)

)

)

Download ZIP

[b]Info[/b]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...