Skip to content

PHP class to monitor the dangerous called functions

Notifications You must be signed in to change notification settings

HitmanAlharbi/PHPantom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

PHPantom

  • PHPantom is a PHP class to monitor the dangerous functions in the code

  • It prints the code line of the called function

  • It checks if the line has an input or not (Not accurate 100%)

  • PHPantom is based on "Xdebug extension", so you need to install first ..

image

How to install Xdebug extension for PHP?

  • If your system is linux, please follow these steps :
  1. sudo apt-get install php-xdebug

  2. find / -name "xdebug.so"

  3. sudo nano /etc/php/8.0/mods-available/xdebug.ini

  4. Update zend_extension=/your/full/path/xdebug.so

How to use PHPantom class

  • Add the PHPantom.php file in the same folder of the target application

  • Then write the call code in the top of the index or main file

include("PHPantom.php");
$phpantom = new PHPantom();
  • Visit the main page to see the result on the bottom of the page

  • If you want to pass custom functions, write it like this

include("PHPantom.php");
$phpantom = new PHPantom(["system", "exec", "eval"]);

Youtube video tutorial [Arabic]

Twitter

About

PHP class to monitor the dangerous called functions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages