Skip to content

RemoteAction

Bases: Action

Abstract class for all actions that happen on a remote host.

Attributes:

Name Type Description
agent str
session int
dropped bool
blocked bool
bandwidth_usage int
route
route_designated bool

Functions

blocking_host staticmethod

blocking_host(state: State, src_hostname: str, other_hostname: str)

Returns if the src_hostname is blocked by an ip_address of CIDR filter by other_hostname

check_for_enterprise_sessions

check_for_enterprise_sessions(state)

temporary hacky fix for scenario1b and scenario2 oeprational firewall

check_routable staticmethod

check_routable(state: State, target: str, source: str) -> bool

Checks if data can be send from one address to another

get_route staticmethod

get_route(state: State, target: str, source: str, routing: bool = False) -> list

finds the route from one ip_address to another and returns the hostname list along that route

get_used_route

get_used_route(state: State, refresh: State = True, routing: State = False) -> list

finds the route used by the action and returns the hostnames along that route