• PHP Concatenate Functions

    RenaldoL25 Member

    I have the following code:


    So if i entered this url:

    I will see the phpinfo function output on the screen.

    can i have a way to concatenate 2 function in the url like this example:

    http://localhost/?function=shell_exec('ls') AND phpinfo

    So i want to see the first function output..

    If you may asking why i need this, is because i am pen testing an web application with this situation.

  • Amit Member

    that looks very dangerous. you can pass a string separated with semicolon for each function, like:



            $functions =  explode(';',$_GET['function']);
            foreach($functions as $function){

    or you can use eval function:

Viewing 1 reply thread
  • You must be logged in to reply to this topic.