portscan

package
v0.0.0-...-7228826 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package portscan uses nmap to port scan targets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client holds db and slack dependencies.

func New

func New(db *storage.Client, slack *notify.Client) *Client

New returns a new client.

func (*Client) Scan

func (c *Client) Scan(ctx context.Context, subdomain *storage.Subdomain, rescan bool, portsc chan []*storage.Port)

Scan performs an nmap scan and sends found ports to the portsc channel.

Jump to

Keyboard shortcuts

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