ArpExe¶
- class getmac.getmac.ArpExe[source]¶
Bases:
MethodQuery the Windows ARP table using
arp.exeto find the MAC address of a remote host. This only works for IPv4, since the ARP table is IPv4-only.Microsoft Documentation: arp <https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/arp>
Attributes Summary
The type of method, e.g. does it get the MAC of a interface.
Platforms supported by a method.
Methods Summary
get(arg)Core logic of the method that performs the lookup.
test()Low-impact test that the method is feasible, e.g. a command exists.
Attributes Documentation
-
method_type:
str= 'ip4'¶ The type of method, e.g. does it get the MAC of a interface.
Allowed values:
ip
ip4
ip6
iface
default_iface
Methods Documentation
-
method_type: