sscan

package module
v0.0.0-...-0bf8662 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 13 Imported by: 0

README

sscan

Server scan -- find web servers on your network

Documentation

Index

Constants

View Source
const LocalSubnet = "local"

Variables

View Source
var (
	Timeout = 10 * time.Second
	Debug   bool
)

Functions

func DefaultSubnet

func DefaultSubnet() (string, error)

func Info

func Info(probe string)

Info gets info on individual IP

func Local

func Local(fn FoundIt)

func Scan

func Scan(cidr string, http, https []int, fn func(Found)) error

Scan scans the given subnet/ports and sends hits to `fn`

func ScanContext

func ScanContext(ctx context.Context, cidr string, http, https []int, fn func(Found)) error

ScanContext scans the given subnet/ports and sends hits to `fn`

func SetLogger

func SetLogger(l *log.Logger)

func Ulimit

func Ulimit() int64

Ulimit returns the ulimit of open files on the host

Types

type Finder

type Finder interface {
	AddFound(Found) error
}

type Found

type Found struct {
	IP      string
	Port    int
	App     string
	Version string
	Vendor  string
	TS      time.Time
}

type FoundIt

type FoundIt func(Found)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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