mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-03-24 18:16:24 +01:00
Land #558, PHP Meterpreter v8.x Support - ensure already closed channels are not reclosed
This commit is contained in:
commit
3b2ffd5138
@ -979,7 +979,9 @@ function close_process($proc) {
|
||||
# real harm in that, so go ahead and just always make sure they get
|
||||
# closed.
|
||||
foreach ($proc['pipes'] as $f) {
|
||||
if (is_resource($f)) {
|
||||
@fclose($f);
|
||||
}
|
||||
}
|
||||
if (is_callable('proc_get_status')) {
|
||||
$status = proc_get_status($proc['handle']);
|
||||
@ -1412,7 +1414,3 @@ function channel_create_stdapi_net_udp_client($req, &$pkt) {
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user