common

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 36 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 EmbedAPIConfigData string
View Source
var EmbedDirDBData string
View Source
var EmbedFingerData string
View Source
var EmbedNucleiPocs embed.FS
View Source
var EmbedSubdomainDict string
View Source
var EmbedWorkFlowData string
View Source
var PortScan bool
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 DNSCallback

func DNSCallback(subdomain string)

func ExecCommandPing

func ExecCommandPing(ip string, bsenv string) bool

func Flag

func Flag()

func GC

func GC()

func GetFdLimit

func GetFdLimit() int

func GetProtocol

func GetProtocol(hostPorts []string, threads int, timeout int)

func GetSubDomain

func GetSubDomain(domains []string) []string

func HostBindCheck

func HostBindCheck()

func IsContain

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

func IsLinux

func IsLinux() 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 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 ToInt

func ToInt(s string) int

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