shell bypass 403

GrazzMean Shell

: /www/server/php/72/src/ext/reflection/tests/ [ drwxrwxr-x ]
Uname: Linux yisu-647059427c03a 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64
Software: nginx/1.22.1
PHP version: 7.3.31 [ PHP INFO ] PHP os: Linux
Server Ip: 103.146.158.90
Your Ip: 216.73.216.141
User: www (1000) | Group: www (1000)
Safe Mode: OFF
Disable Function:
passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv

name : ReflectionMethod_getModifiers_basic.phpt
--TEST--
ReflectionMethod::getModifiers()
--FILE--
<?php

function reflectMethodModifiers($class) {
    $classInfo = new reflectionClass($class);
    $methodArray = $classInfo->getMethods();

    foreach ($methodArray as $method) {
        echo "Modifiers for method $method->class::$method->name():\n";
        printf("0x%08x\n", $method->getModifiers());
        echo "\n\n";
    }
}

class TestClass
{
    public function foo() {
        echo "Called foo()\n";
    }

    static function stat() {
        echo "Called stat()\n";
    }

    private function priv() {
        echo "Called priv()\n";
    }

    protected function prot() {}

    public final function fin() {}

    public function __destruct() {}

    public function __call($a, $b) {}

    public function __clone() {}

    public function __get($a) {}

    public function __set($a, $b) {}

    public function __unset($a) {}

    public function __isset($a) {}

    public function __tostring() {}

    public function __sleep() {}

    public function __wakeup() {}

    public function __set_state() {}

    public function __autoload() {}
}

class DerivedClass extends TestClass {}

interface TestInterface {
	public function int();
	public function __clone();
}

abstract class AbstractClass {
	public abstract function foo();
}



reflectMethodModifiers("TestClass");
reflectMethodModifiers("DerivedClass");
reflectMethodModifiers("TestInterface");
reflectMethodModifiers("AbstractClass");

echo "Wrong number of params:\n";
$a = new ReflectionMethod('TestClass::foo');
$a->getModifiers(1);

$a = new ReflectionMethod('ReflectionMethod::getModifiers');

echo "\nReflectionMethod::getModifiers() modifiers:\n";
printf("0x%08x\n", $a->getModifiers());

?>
--EXPECTF--
Modifiers for method TestClass::foo():
0x00000100


Modifiers for method TestClass::stat():
0x00000101


Modifiers for method TestClass::priv():
0x00000400


Modifiers for method TestClass::prot():
0x00000200


Modifiers for method TestClass::fin():
0x00000104


Modifiers for method TestClass::__destruct():
0x00000100


Modifiers for method TestClass::__call():
0x00000100


Modifiers for method TestClass::__clone():
0x00000100


Modifiers for method TestClass::__get():
0x00000100


Modifiers for method TestClass::__set():
0x00000100


Modifiers for method TestClass::__unset():
0x00000100


Modifiers for method TestClass::__isset():
0x00000100


Modifiers for method TestClass::__tostring():
0x00000100


Modifiers for method TestClass::__sleep():
0x00000100


Modifiers for method TestClass::__wakeup():
0x00000100


Modifiers for method TestClass::__set_state():
0x00000100


Modifiers for method TestClass::__autoload():
0x00000100


Modifiers for method TestClass::foo():
0x00000100


Modifiers for method TestClass::stat():
0x00000101


Modifiers for method TestClass::priv():
0x00000400


Modifiers for method TestClass::prot():
0x00000200


Modifiers for method TestClass::fin():
0x00000104


Modifiers for method TestClass::__destruct():
0x00000100


Modifiers for method TestClass::__call():
0x00000100


Modifiers for method TestClass::__clone():
0x00000100


Modifiers for method TestClass::__get():
0x00000100


Modifiers for method TestClass::__set():
0x00000100


Modifiers for method TestClass::__unset():
0x00000100


Modifiers for method TestClass::__isset():
0x00000100


Modifiers for method TestClass::__tostring():
0x00000100


Modifiers for method TestClass::__sleep():
0x00000100


Modifiers for method TestClass::__wakeup():
0x00000100


Modifiers for method TestClass::__set_state():
0x00000100


Modifiers for method TestClass::__autoload():
0x00000100


Modifiers for method TestInterface::int():
0x00000102


Modifiers for method TestInterface::__clone():
0x00000102


Modifiers for method AbstractClass::foo():
0x00000102


Wrong number of params:

Warning: ReflectionMethod::getModifiers() expects exactly 0 parameters, 1 given in %s on line %d

ReflectionMethod::getModifiers() modifiers:
0x00000100
© 2026 GrazzMean
AI导航