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:
commit
890f5f6515
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user