!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.24 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:     inconsistent_st_attr.cpp (1.57 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
 *
 * Check that each variable is consistenly either in the symbol table, or not.
 */

#include "process_ir/General.h"
#include "pass_manager/Plugin_pass.h"
#include "MIR_visitor.h"

using namespace MIR;
using namespace std;

bool success = true;

class Inconstent_st_attr : public Visitor
{
private:
    Map<string, bool> var_map;
    bool check; // only check with methods


public:
    Inconstent_st_attr () : check(false) {}

    // Only check within methods
    void children_method (Method* in)
    {
        var_map.clear (); // This is per-method only
        check = true;
        visit_statement_list (in->statements);
        check = false;
    }

    void pre_variable_name (VARIABLE_NAME* in)
    {
        if (!check)
            return;

        if (var_map.find(*in->value) != var_map.end()) // already exists
        {
            if (var_map[*in->value] != in->attrs->is_true ("phc.codegen.st_entry_not_required"))
            {
                success = false;
                cout << "Failure" << endl;

                cdebug << "Variable: ";
                debug (in);
                cdebug << " expected " << var_map[*in->value] << " st entry, but got " << in->attrs->is_true ("phc.codegen.st_entry_not_required") << endl;
                xadebug (in);
            }
        }
        else
            var_map [*in->value] = in->attrs->is_true ("phc.codegen.st_entry_not_required");
    }
};

extern "C" void run_mir (MIR::PHP_script* in, Pass_manager*, String* option)
{
    in->visit (new Inconstent_st_attr);
}

extern "C" void load (Pass_manager* pm, Plugin_pass* pass)
{
    pm->add_after_each_mir_pass (pass);
}

extern "C" void unload ()
{
    if (success)
        cout << "Success" << endl;
}

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