carpetbomb

package
v0.0.0-...-180fc89 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2013 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DnsTimeout = 3e9
)

Variables

View Source
var DefaultWordlist = [...]string{}/* 1009 elements not displayed */

Borrowed from dnsmap, thanks neighbour!

View Source
var PublicDnsServers = [...]string{
	"8.8.8.8:53", "8.8.4.4:53",
	"208.67.222.222:53", "208.67.220.220:53",
	"209.244.0.3:53", "209.244.0.4:53",
	"156.154.70.1:53", "156.154.71.1:53",
	"4.2.2.1:53", "4.2.2.2:53",
	"74.122.198.48:53", "72.14.183.109:53",
	"69.164.196.21:53", "208.115.243.38:53",
}

Functions

func ConvertMaskToRegex

func ConvertMaskToRegex(mask string) (*regexp.Regexp, error)

Converts a mask string with * into a regex

func GetRandomPublicDnsServer

func GetRandomPublicDnsServer() string

Types

type Request

type Request struct {
	Hostname  string
	DnsServer string

	// Results
	Error       error
	IPAddresses []net.IP
}

func CreateRequest

func CreateRequest(hostname string, dnsServer string) *Request

func (*Request) Resolve

func (r *Request) Resolve()

type Session

type Session struct {
	// Properties
	Domain                string
	Concurrency           int
	Wordlist              []string
	IgnoredAddresses      []string
	IgnoredAddressesRegex []*regexp.Regexp
	OutputPath            string
	// contains filtered or unexported fields
}

func CreateSession

func CreateSession(domain string, concurrency int, wordlist []string, ignoreAddresses []string, outputPath string) (*Session, error)

func (*Session) CheckIPAddressIgnored

func (s *Session) CheckIPAddressIgnored(address net.IP) bool

func (*Session) Start

func (s *Session) Start()

func (*Session) WorkerLoop

func (s *Session) WorkerLoop()

Jump to

Keyboard shortcuts

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