networkinterface

package
v0.0.0-...-c928003 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DescribeSecurityGroups

func DescribeSecurityGroups(svc *ec2.Client, sgIds []string) *ec2.DescribeSecurityGroupsOutput

Helper function to describe security groups

func IpInBypassList

func IpInBypassList(ip string, bypassIps []string) bool

Types

type VulnNI

type VulnNI struct {
	ResourceId       string
	PublicIp         string
	AvailabilityZone string
	VulnNISGs        []VulnNISG
}

func FilterOpenNetworkInterfaces

func FilterOpenNetworkInterfaces(vulnNIs []VulnNI, allowListIps []string) []VulnNI

func GetOpenNetworkInterfacesForRegion

func GetOpenNetworkInterfacesForRegion(region string) []VulnNI

type VulnNISG

type VulnNISG struct {
	VulnConfigs []VulnSGConfig
	GroupId     string
	GroupName   string
	OwnerId     string
	VpcId       string
}

func GetOpenNetworkInterfaces

func GetOpenNetworkInterfaces(securityGroupOutput *ec2.DescribeSecurityGroupsOutput) (bool, []VulnNISG)

type VulnSGConfig

type VulnSGConfig struct {
	Port     int32
	Cidr     string
	Protocol string
	IsV6     bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL