!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/plugins/tests/   drwxrwxr-x
Free 83.25 GB of 96.73 GB (86.06%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     strip_includes.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
 *
 * Remove all include (), require (), include_once () and require_once ()
 * statements.
 */

#include "pass_manager/Plugin_pass.h"
#include "pass_manager/Pass_manager.h"
#include "AST_transform.h"
#include "process_ir/General.h"

using namespace AST;

class Strip_includes : public Transform
{
public:
    void pre_eval_expr (Eval_expr* in, List<Statement*>* out)
    {
        Wildcard<STRING>* token_filename = new Wildcard<STRING>;
        Wildcard<METHOD_NAME>* method_name = new Wildcard<METHOD_NAME>;

        // the filename is the only parameter of the include statement

        // TODO this code is much duplicated
        if (in->expr->match (new Method_invocation(
                NULL,
                method_name,
                new List<Actual_parameter*>(
                    new Actual_parameter(false, token_filename)
                    )
                ))
                and (*(method_name->value->value) == "include"
                    or *(method_name->value->value) == "include_once"
                    or *(method_name->value->value) == "require"
                    or *(method_name->value->value) == "require_once"))
        {
            // empty
        }
        else
        {
            out->push_back (in);
        }
    }
};

extern "C" void load (Pass_manager* pm, Plugin_pass* pass)
{
    // TODO after incl2 goes back in, put this back to incl2.
    pm->add_after_named_pass (pass, s("incl1"));
}

extern "C" void run_ast (PHP_script* in, Pass_manager* pm, String* option)
{
    in->transform_children (new Strip_includes ());

}

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