!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: nginx/1.23.4. PHP/5.6.40-65+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux foro-restaurado-2 5.15.0-1040-oracle #46-Ubuntu SMP Fri Jul 14 21:47:21 UTC 2023
aarch64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/home/scripts/pba/phc-read-only/src/ast_to_hir/   drwxrwxr-x
Free 83.2 GB of 96.73 GB (86.02%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Split_unset_isset.cpp (1.41 KB)      -rw-rw-r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
 * phc -- the open source PHP compiler
 * See doc/license/README.license for licensing information
 *
 * Move isset and unset into individual calls.
 */

#include "Split_unset_isset.h"

using namespace AST;

/*
 * Convert
 *        unset($x, $y, $z);
 * into
 *        unset($x);
 *        unset($y);
 *     unset($z);
 */
void Split_unset_isset::pre_eval_expr(Eval_expr * in, Statement_list* out)
{
    Expr* unset = new Method_invocation(
        NULL,     // NULL target
        new METHOD_NAME(new String("unset")),
        NULL    // Arbitrary list of parameters
        );

    if(in->expr->match(unset))
    {
        Method_invocation* inv = dyc<Method_invocation>(in->expr);

        foreach(Actual_parameter* ap, *inv->actual_parameters)
        {
            assert(!ap->is_ref);
            out->push_back(new Eval_expr(new Method_invocation("unset", ap->expr)));
        }
    }
    else
    {
        out->push_back(in);
    }
}

/*
 * convert
 *         isset($x, $y, $z)
 * into
 *         isset($x) && isset($y) && isset($z)
 */
Expr* Split_unset_isset::pre_method_invocation(Method_invocation* in)
{
    if(in->method_name->match(new METHOD_NAME("isset")))
    {
        Expr_list* terms = new Expr_list;

        foreach(Actual_parameter* ap, *in->actual_parameters)
        {
            assert(!ap->is_ref);
            terms->push_back(new Method_invocation("isset", ap->expr));
        }

        Expr_list::const_iterator j = terms->begin();
        Expr* result = *j++;
        for( ; j != terms->end(); j++)
        {
            result = new Bin_op(result, *j, "&&");    
        }

        return result;
    }
    else
    {
        return in;
    }
}


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by HackingTool | HackingTool | Generation time: 0.0044 ]--