Class FirewallCollector
Collects metadata from the local firewall.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AttackSurfaceAnalyzer.Collectors
Assembly: AsaLib.dll
Syntax
public class FirewallCollector : BaseCollector, IPlatformRunnable
Constructors
| Improve this Doc View SourceFirewallCollector(CollectCommandOptions, Action<CollectObject>)
Declaration
public FirewallCollector(CollectCommandOptions opts = null, Action<CollectObject> changeHandler = null)
Parameters
| Type | Name | Description |
|---|---|---|
| CollectCommandOptions | opts | |
| System.Action<CollectObject> | changeHandler |
Methods
| Improve this Doc View SourceCanRunOnPlatform()
Declaration
public override bool CanRunOnPlatform()
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
| Improve this Doc View SourceExecuteInternal()
Declaration
public override void ExecuteInternal()
Overrides
| Improve this Doc View SourceExecuteLinux()
Dumps from iptables.
Declaration
public void ExecuteLinux()
ExecuteMacOs()
Talks to socketfilterfw
Declaration
public void ExecuteMacOs()
ExecuteWindows()
Uses a library to access the Windows Firewall.
Declaration
public void ExecuteWindows()