1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-14 17:37:27 +01:00

Land #28, support pre-5.0 versions of php

This commit is contained in:
Brent Cook 2015-09-16 14:54:22 -05:00
commit 890f5f6515
No known key found for this signature in database
GPG Key ID: 1FFAA0B24B708F96

View File

@ -462,7 +462,12 @@ function get_hdd_label() {
function core_machine_id($req, &$pkt) {
my_print("doing core_machine_id");
$machine_id = gethostname();
if (is_callable('gethostname')) {
# introduced in 5.3
$machine_id = gethostname();
} else {
$machine_id = php_uname('n');
}
$serial = "";
if (is_windows()) {