2.7. Network¶
The Network instance is accessible via windows.system.network
Note
See sample Network - socket exploration
-
class
windows.winobject.network.Network[source]¶ -
-
ipv4¶ List of TCP IPv4 socket (connection and listening)
Type: [ TCP4Connection]
-
ipv6¶ List of TCP IPv6 socket (connection and listening)
Type: [ TCP6Connection]
-
2.7.1. Connections¶
-
class
windows.winobject.network.TCP4Connection[source]¶ A TCP4 socket (connected or listening)
-
established¶ Trueif connection is established else it’s a listening socket
-
2.7.2. Firewall¶
-
class
windows.winobject.network.Firewall[source]¶ The windows firewall
-
enabled¶ A maping of the active firewall profiles
{
NET_FW_PROFILE_TYPE2_.NET_FW_PROFILE2_DOMAIN(0x1L):TrueorFalse,NET_FW_PROFILE_TYPE2_.NET_FW_PROFILE2_PRIVATE(0x2L):TrueorFalse,NET_FW_PROFILE_TYPE2_.NET_FW_PROFILE2_PUBLIC(0x4L):TrueorFalse,}
Type: dict
-
rules¶ The rules of the firewall
Type: [ FirewallRule] – A list of rule
-
value¶ current value
-
-
class
windows.winobject.network.FirewallRule[source]¶ A rule of the firewall
-
action¶ Action of the rule, values might be:
NET_FW_ACTION_.NET_FW_ACTION_BLOCK(0x0L)NET_FW_ACTION_.NET_FW_ACTION_ALLOW(0x1L)
subclass of
long
-
application_name¶ Name of the application to which apply the rule
Type: unicode
-
description¶ Description of the rule
Type: unicode
-
direction¶ Direction of the rule, values might be:
NET_FW_RULE_DIRECTION_.NET_FW_RULE_DIR_IN(0x1L)NET_FW_RULE_DIRECTION_.NET_FW_RULE_DIR_OUT(0x2L)
subclass of
long
-
enabled¶ Trueif rule is enabled
-
grouping¶ Grouping of the rule
Type: unicode
-
interface_types¶ Types of interface of the rule
Type: unicode
-
local_address¶ Local address of the rule
Type: unicode
-
local_port¶ Local port of the rule
Type: unicode
-
name¶ Name of the rule
Type: unicode
-
remote_address¶ Remote address of the rule
Type: unicode
-
remote_port¶ Remote port of the rule
Type: unicode
-
service_name¶ Name of the service to which apply the rule
Type: unicode
-
value¶ current value
-