1
mirror of https://github.com/rapid7/metasploit-payloads synced 2025-01-08 14:36:22 +01:00

Land #480, Fix #479, fix python meterpreter resolve command

This commit is contained in:
Tim W 2021-03-30 13:31:27 +01:00
commit c05ec518d5
No known key found for this signature in database
GPG Key ID: 217FBA50ABBAABEF

View File

@ -953,7 +953,7 @@ def netlink_request(req_type, req_data):
def resolve_host(hostname, family):
address_info = getaddrinfo(hostname, family=family, socktype=socket.SOCK_DGRAM, proto=socket.IPPROTO_UDP)
address = address_info['sockaddr'][0]
address = address_info[0]['sockaddr'][0]
return {'family': family, 'address': address, 'packed_address': inet_pton(family, address)}
def tlv_pack_local_addrinfo(sock):