Versions in this module Expand all Collapse all v1 v1.7.2 Apr 2, 2024 v1.7.1 Apr 1, 2024 Changes in this version + const Author + const DEBUG + const ERROR + const FATAL + const Host + const IMPORTANT + const INFO + const Name + const SessionEnd + const SessionStart + const TCPPort + const URL + const URLResponsive + const Version + const WARN + const Website + var LargePortList = []int + var LogColors = map[int]*color.Color + var MediumPortList = []int + var SmallPortList = []int + var XLargePortList = []int + func Asset(name string) ([]byte, error) + func AssetDir(name string) ([]string, error) + func AssetInfo(name string) (os.FileInfo, error) + func AssetNames() []string + func GetPageStructure(body io.Reader) ([]string, error) + func GetSimilarity(a, b []string) float64 + func HostAndPortToURL(host string, port int, protocol string) string + func MustAsset(name string) []byte + func RestoreAsset(dir, name string) error + func RestoreAssets(dir, name string) error + type Header struct + DecreasesSecurity bool + IncreasesSecurity bool + Name string + Value string + func (h *Header) SetSecurityFlags() + type Logger struct + func (l *Logger) Debug(format string, args ...interface{}) + func (l *Logger) Error(format string, args ...interface{}) + func (l *Logger) Fatal(format string, args ...interface{}) + func (l *Logger) Important(format string, args ...interface{}) + func (l *Logger) Info(format string, args ...interface{}) + func (l *Logger) Log(level int, format string, args ...interface{}) + func (l *Logger) SetDebug(d bool) + func (l *Logger) SetSilent(s bool) + func (l *Logger) Warn(format string, args ...interface{}) + type Note struct + Text string + Type string + type Options struct + ChromePath *string + Debug *bool + HTTPTimeout *int + Nmap *bool + OutDir *string + Ports *string + Proxy *string + Resolution *string + SaveBody *bool + ScanTimeout *int + ScreenshotTimeout *int + SessionPath *string + Silent *bool + TemplatePath *string + Threads *int + Version *bool + func ParseOptions() (Options, error) + type Page struct + Addrs []string + BodyPath string + HasScreenshot bool + Headers []Header + HeadersPath string + Hostname string + Notes []Note + PageStructure []string + PageTitle string + ScreenshotPath string + Status string + Tags []Tag + URL string + UUID string + func NewPage(pageURL string) (*Page, error) + func (p *Page) AddHeader(name string, value string) + func (p *Page) AddNote(text string, noteType string) + func (p *Page) AddTag(text string, tagType string, link string) + func (p *Page) BaseFilename() string + func (p *Page) IsIPHost() bool + func (p *Page) ParsedURL() *url.URL + type Report struct + Session *Session + Template string + func NewReport(s *Session, templ string) *Report + func (r *Report) Render(dest io.Writer) error + type Session struct + EventBus EventBus.Bus + Options Options + Out *Logger + PageSimilarityClusters map[string][]string + Pages map[string]*Page + Ports []int + Stats *Stats + Version string + WaitGroup sizedwaitgroup.SizedWaitGroup + func NewSession() (*Session, error) + func (s *Session) AddPage(url string) (*Page, error) + func (s *Session) Asset(name string) ([]byte, error) + func (s *Session) BaseFilenameFromURL(stru string) string + func (s *Session) End() + func (s *Session) GetFilePath(p string) string + func (s *Session) GetPage(url string) *Page + func (s *Session) GetPageByUUID(id string) *Page + func (s *Session) ReadFile(p string) ([]byte, error) + func (s *Session) SaveToFile(filename string) error + func (s *Session) Start() + func (s *Session) ToJSON() string + type Stats struct + FinishedAt time.Time + PortClosed uint32 + PortOpen uint32 + RequestFailed uint32 + RequestSuccessful uint32 + ResponseCode2xx uint32 + ResponseCode3xx uint32 + ResponseCode4xx uint32 + ResponseCode5xx uint32 + ScreenshotFailed uint32 + ScreenshotSuccessful uint32 + StartedAt time.Time + func (s *Stats) Duration() time.Duration + func (s *Stats) IncrementPortClosed() + func (s *Stats) IncrementPortOpen() + func (s *Stats) IncrementRequestFailed() + func (s *Stats) IncrementRequestSuccessful() + func (s *Stats) IncrementResponseCode2xx() + func (s *Stats) IncrementResponseCode3xx() + func (s *Stats) IncrementResponseCode4xx() + func (s *Stats) IncrementResponseCode5xx() + func (s *Stats) IncrementScreenshotFailed() + func (s *Stats) IncrementScreenshotSuccessful() + type Tag struct + Hash string + Link string + Text string + Type string + func (t Tag) HasLink() bool