1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-03-24 18:16:24 +01:00

Land , PHP Meterpreter v8.x Support - ensure already closed channels are not reclosed

This commit is contained in:
adfoster-r7 2022-04-05 16:49:24 +01:00 committed by GitHub
commit 3b2ffd5138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}
}