popen() in php level 3?

Status
Not open for further replies.

Cyvus

New Member
Messages
16
Reaction score
0
Points
0
Hey, it's not a big deal if it's a no, but I was curious about the possibility to use the popen() variable in the level 3 php.

I was looking into running a custom live ventrilo status monitor and it needs to use that variable.
 

alfred

New Member
Messages
87
Reaction score
0
Points
0
It works...
It won't work if you are trying to access other servers, though. You can access it from your computer, but (i.e.) Facebook.com servers are blocked out. (it is something to do with the firewalls)
 
Last edited:

Cyvus

New Member
Messages
16
Reaction score
0
Points
0
To be honest I'm not 100% sure what it's doing (I know what the whole thing does just not what it's trying to do at the specific point it's generating and error).

This is the message I get:

PHP:
Warning:  popen() has been disabled for security reasons in /home/cyvus/public_html/ventrilo/ventrilostatus.php on line 378
and this is line 378 of the php file and a few of the following ones:

PHP:
        $pipe = popen( $cmdline, "r" );
        if ( $pipe === false )
        {
            $this->m_error = "PHP Unable to spawn shell.";
            return -10;
        }

EDIT:
This is all that's displayed from the error log in the cpanel:
PHP:
ALERT - function within blacklist called: popen() (attacker '*.*.*.*', file '/home/cyvus/public_html/ventrilo/ventrilostatus.php', line 378)
 
Last edited:

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
I've enabled it.

Do you need help with anything else?
 
Status
Not open for further replies.
Top