!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.21 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:     AST_lower_expr.cpp (3.61 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
 *
 * Generic superclass for transformations that replace expressions
 * by multiple statements
 */

#include "AST_lower_expr.h"
#include "process_ir/fresh.h"
#include "process_ir/General.h"

using namespace AST;

void Lower_expr::children_php_script(PHP_script* in)
{
    pieces = new Statement_list;
    Transform::children_php_script(in);
}

/*
 * For each statement that contains an expression, we push back the
 * pieces created for each part of the expression.
 */

void Lower_expr::post_eval_expr (Eval_expr* in, Statement_list* out)
{
    push_back_pieces(in, out);
}

void Lower_expr::post_global (Global* in, Statement_list* out)
{
    push_back_pieces(in, out);
}

void Lower_expr::post_return (Return* in, Statement_list* out)
{
    push_back_pieces(in, out);
}

void Lower_expr::post_continue (Continue* in, Statement_list* out)
{
    push_back_pieces(in, out);
}

void Lower_expr::post_break (Break* in, Statement_list* out)
{
    push_back_pieces(in, out);
}

void Lower_expr::post_throw (Throw* in, Statement_list* out)
{
    push_back_pieces(in, out);
}

/*
 * For each control-flow statement that contains an expression, we
 * push back the pieces created for each part of the expression, but
 * before the statement, since it can contain sub-statements.
 */

/* Avoid putting the pieces from the expression into the body */
void Lower_expr::children_if (If* in)
{
    in->expr = transform_expr(in->expr);

    backup_pieces();
    in->iftrue = transform_statement_list(in->iftrue);
    in->iffalse = transform_statement_list(in->iffalse);
    restore_pieces();
}

void Lower_expr::post_if (If* in, Statement_list* out)
{
    push_back_pieces(in, out);
}

void Lower_expr::children_while (While* in)
{
    in->expr = transform_expr(in->expr);

    backup_pieces();
    in->statements = transform_statement_list(in->statements);
    restore_pieces();
}

void Lower_expr::post_while (While* in, Statement_list* out)
{
    push_back_pieces(in, out);
}

// No need to mess with the key and val, as they are written to,
// not read from. Early_lower_control_flow deals with them.
void Lower_expr::children_foreach (Foreach* in)
{
    in->expr = transform_expr(in->expr);

    backup_pieces();
    in->statements = transform_statement_list(in->statements);
    restore_pieces();
}

void Lower_expr::post_foreach (Foreach* in, Statement_list* out)
{
    push_back_pieces(in, out);
}

/*
 * Pushing back, storing and restoring pieces
 */

void Lower_expr::push_back_pieces(Statement* in, Statement_list* out)
{
    out->push_back_all(pieces);
    out->push_back(in);

    // Move comment to the first piece (if any)
    if(!pieces->empty())
    {
        pieces->front()->attrs->set("phc.comments", in->get_comments());
        in->attrs->set("phc.comments", new String_list);
    }

    pieces->clear();
}

void Lower_expr::backup_pieces()
{
    pieces_backup.push(pieces);
    pieces = new Statement_list;
}

void Lower_expr::restore_pieces()
{
    pieces = pieces_backup.top();
    pieces_backup.pop();
}

/*
 * A common pattern is captured by "eval", which takes an argument
 * an expression e, generates a new temporary T, and pushes back the
 * statement
 *  
 *   T = e;
 *
 * the value returned is the expression "T". 
 *
 * If the node is marked "phc.lower_expr.no_temp", eval simply
 * returns in.
 */

Expr* Lower_expr::eval(Expr* in)
{
    if(in->attrs->is_true("phc.ast_lower_expr.no_temp"))
    {
        return in;
    }
    else
    {
        Variable* temp = fresh_var("TLE"); 
        eval(in, temp);
        return temp;
    }
}

// Variation on eval that takes in the name of the temp
void Lower_expr::eval(Expr* in, Variable* temp)
{
    pieces->push_back(new Eval_expr(new Assignment(temp->clone (), false, in->clone ())));
}

:: 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 ]--