FIND_CLIENT_IP - Search ARP and DHCP records for an associated clients IP

When to use it

Use FIND_CLIENT_IP after a client has associated to a Pineapple access point (such as Open or EvilWPA) to search for the IP address in use by the client.

Syntax

  FIND_CLIENT_IP [mac] {timeout}
  

mac

MAC address of the client, in normal xx:xx:xx:xx:xx:xx form.

timeout (optional)

Number of seconds to continue looking for an IP.

Results

FIND_CLIENT_IP returns the IP as output. It exists with a return code of 0 on success and non-zero on failure.

Examples

  __ip=$(FIND_CLIENT_IP 00:DE:AD:BE:EF:01) || exit 0