Get Connected Networks via API

Description

Retrieves the IPv4 address and network assigned to each interface on the current system.

Overview

Retrieves the IPv4 address and network assigned to each interface on the current system.

Dependencies

  • recon

Operating Systems

  • Windows

Example Output

InterfaceName        : Ethernet1
InterfaceType        : Ethernet
InterfaceDescription : Intel(R) 82574L Gigabit Network Connection #2
Network              : 192.168.1.0/24
IP                   : 192.168.1.101
InterfaceIndex       : 5

InterfaceName        : Ethernet0
InterfaceType        : Ethernet
InterfaceDescription : Intel(R) 82574L Gigabit Network Connection
Network              : 10.0.0.0/24
IP                   : 10.0.0.15
InterfaceIndex       : 10
Scroll to Top