ipscan

package
v1.8.40 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	OSDB = map[int]string{

		64:  "Linux",
		128: "Windows",
		256: "Unknown",
	}
)

Functions

func CheckOS

func CheckOS(ip string) (os string, err error)

func IPRange added in v1.8.2

func IPRange(c *net.IPNet) string

IPRange 把 192.168.x.x/xx 转换成 192.168.x.x-192.168.x.x

func ParseIP added in v1.8.2

func ParseIP(ip string) ([]string, error)

ParseIP 参考 fscan

Types

type Ip added in v1.8.39

type Ip struct {
	Ip      string
	Ports   string
	Country string
	Area    string
	OS      string
}

type Options

type Options struct {
	Hosts     []string
	PortRange string
	Rate      int
	Threads   int
	Proxy     string
	MaxPort   int
	Process   bool
	QQwry     *qqwry.QQwry
	NmapProbe *portfinger.NmapProbe
}

type Runner

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

func NewRunner

func NewRunner(options *Options) (*Runner, error)

func (*Runner) GetAddr added in v1.8.24

func (r *Runner) GetAddr(ip string) (country, area string, err error)

func (*Runner) Run

func (r *Runner) Run() (results []*portfinger.Result)

type Service added in v1.8.39

type Service struct {
	Address  string
	Protocol string
	Version  string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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