common

package
v0.0.0-...-d66a22c Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AliveHosts []string
	OS         = runtime.GOOS
	ExistHosts = make(map[string]struct{})
)
View Source
var PortString string
View Source
var PortTOP1000 = "" /* 5076-byte string literal not displayed */
View Source
var TargetString string

Functions

func ArrayCountValueTop

func ArrayCountValueTop(arrInit []string, length int, flag bool) (arrTop []string, arrLen []int)

func CheckLive

func CheckLive(hostslist []string, Ping bool) []string

func CheckMasScan

func CheckMasScan() bool

CheckMasScan 校验MasScan是否正确安装

func ExecCommandPing

func ExecCommandPing(ip string, bsenv string) bool

func Flag

func Flag()

func GC

func GC()

func GetProtocol

func GetProtocol(hostPorts []string, threads int)

func GetSubDomain

func GetSubDomain(domains []string) []string

func HostBindCheck

func HostBindCheck()

func IsContain

func IsContain(items []string, item string) bool

func ParsePort

func ParsePort(ports string) (scanPorts []int)

func PortConnect

func PortConnect(addr Addr, respondingHosts chan<- string, adjustedTimeout int, wg *sync.WaitGroup)

func PortScanSYN

func PortScanSYN(IPs []string) []string

func PortScanTCP

func PortScanTCP(IPs []string, Ports string, timeout int) []string

func ReadDirDB

func ReadDirDB()

func ReadWorkFlowDB

func ReadWorkFlowDB()

func ReadWorkFlowYaml

func ReadWorkFlowYaml(dir string) map[string]interface{}

func RemoveFirewall

func RemoveFirewall(ipPorts []string) []string

func RunIcmp1

func RunIcmp1(hostslist []string, conn *icmp.PacketConn, chanHosts chan string)

func RunIcmp2

func RunIcmp2(hostslist []string, chanHosts chan string)

func RunPing

func RunPing(hostslist []string, chanHosts chan string)

func SubFinder

func SubFinder(domain string) []string

func WrapperTCP

func WrapperTCP(network, address string, forward *net.Dialer) (net.Conn, error)

func WrapperTcpWithTimeout

func WrapperTcpWithTimeout(network, address string, timeout time.Duration) (net.Conn, error)

Types

type Addr

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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