Versions in this module Expand all Collapse all v1 v1.0.0 Dec 3, 2025 Changes in this version + const DefaultOutputDirectory + const DefaultResumeFile + const Version + var PDCPApiKey = "" + var TeamIDEnv = env.GetEnvOrDefault("PDCP_TEAM_ID", "") + func AuthWithPDCP() + func DoHealthCheck(options *Options, flagSet *goflags.FlagSet) string + func GetUpdateCallback() func() + func MustDisableSandbox() bool + type AsnResponse struct + AsCountry string + AsName string + AsNumber string + AsRange []string + func (o AsnResponse) String() string + type Browser struct + func NewBrowser(proxy string, useLocal bool, optionalArgs map[string]string) (*Browser, error) + func (b *Browser) Close() + func (b *Browser) ScreenshotWithBody(url string, timeout time.Duration, idle time.Duration, headers []string, ...) ([]byte, string, error) + type Concurrency struct + Threads int + type FilterOperator struct + func (f FilterOperator) Parse(flagValue string) (string, time.Duration, error) + type OnResultCallback func(Result) + type Options struct + Allow customlist.CustomList + Asn bool + AssetFileUpload string + AssetID string + AssetName string + AssetUpload bool + Base64ResponseInStdout bool + CDNCheckClient *cdncheck.Client + CSPProbe bool + CSVOutput bool + CSVOutputEncoding string + ChainInStdout bool + ContentLength bool + CustomHeaders customheader.CustomHeaders + CustomPorts customport.CustomPorts + Debug bool + DebugRequests bool + DebugResponse bool + Delay time.Duration + Deny customlist.CustomList + DisableStdin bool + DisableStdout bool + DisableUpdateCheck bool + Exclude goflags.StringSlice + ExtractFqdn bool + ExtractTitle bool + Favicon bool + FilterOutDuplicates bool + FollowHostRedirects bool + FollowRedirects bool + HTTP2Probe bool + HTTPProxy string + Hashes string + HeadlessOptionalArguments goflags.StringSlice + HealthCheck bool + HostMaxErrors int + HttpApiEndpoint string + InputFile string + InputRawRequest string + InputTargetHost goflags.StringSlice + JSONOutput bool + Jarm bool + LeaveDefaultPorts bool + ListDSLVariable bool + Location bool + MaxRedirects int + MaxResponseBodySizeToRead int + MaxResponseBodySizeToSave int + Memprofile string + Methods string + Networkpolicy *networkpolicy.NetworkPolicy + NoColor bool + NoDecode bool + NoFallback bool + NoFallbackScheme bool + NoHeadlessBody bool + NoScreenshotBytes bool + NoScreenshotFullPage bool + OmitBody bool + OnClose func() + OnResult OnResultCallback + Output string + OutputAll bool + OutputCDN string + OutputCName bool + OutputContentType bool + OutputExtractPresets goflags.StringSlice + OutputExtractRegexs goflags.StringSlice + OutputFilterCdn goflags.StringSlice + OutputFilterCondition string + OutputFilterContentLength string + OutputFilterErrorPage bool + OutputFilterErrorPagePath string + OutputFilterFavicon goflags.StringSlice + OutputFilterLinesCount string + OutputFilterRegex goflags.StringSlice + OutputFilterResponseTime string + OutputFilterStatusCode string + OutputFilterString goflags.StringSlice + OutputFilterWordsCount string + OutputIP bool + OutputLinesCount bool + OutputMatchCdn goflags.StringSlice + OutputMatchCondition string + OutputMatchContentLength string + OutputMatchFavicon goflags.StringSlice + OutputMatchLinesCount string + OutputMatchRegex goflags.StringSlice + OutputMatchResponseTime string + OutputMatchStatusCode string + OutputMatchString goflags.StringSlice + OutputMatchWordsCount string + OutputMethod bool + OutputResponseTime bool + OutputServerHeader bool + OutputWebSocket bool + OutputWordsCount bool + PdcpAuth string + PdcpAuthCredFile string + Pipeline bool + Probe bool + ProbeAllIPS bool + Protocol string + Proxy string + RandomAgent bool + RateLimit int + RateLimitMinute int + RequestBody string + RequestURI string + RequestURIs string + Resolvers goflags.StringSlice + RespectHSTS bool + ResponseBodyPreviewSize int + ResponseHeadersInStdout bool + ResponseInStdout bool + Resume bool + Retries int + Screenshot bool + ScreenshotIdle time.Duration + ScreenshotTimeout time.Duration + ShowStatistics bool + Silent bool + SkipDedupe bool + Smuggling bool + SniName string + SocksProxy string + StatsInterval int + StatusCode bool + StoreChain bool + StoreResponse bool + StoreResponseDir string + StoreVisionReconClusters bool + Stream bool + StripFilter string + TLSGrab bool + TLSProbe bool + TeamID string + TechDetect bool + Threads int + Timeout int + TlsImpersonate bool + Trace bool + Unsafe bool + UseInstalledChrome bool + VHost bool + VHostInput bool + Verbose bool + Version bool + Wappalyzer *wappalyzer.Wappalyze + ZTLS bool + func ParseOptions() *Options + func (options *Options) ParseHeadlessOptionalArguments() map[string]string + func (options *Options) ShouldLoadResume() bool + func (options *Options) ShouldSaveResume() bool + func (options *Options) ValidateOptions() error + type Result struct + A []string + AAAA []string + ASN *AsnResponse + BodyPreview string + CDN bool + CDNName string + CDNType string + CNAMEs []string + CSPData *httpx.CSPData + Chain []httpx.ChainItem + ChainStatusCodes []int + ContentLength int + ContentType string + Domains []string + Err error + Error string + ExtractRegex []string + Extracts map[string][]string + Failed bool + FavIconMD5 string + FavIconMMH3 string + FaviconData []byte + FaviconPath string + FaviconURL string + FinalURL string + Fqdns []string + HTTP2 bool + Hashes map[string]interface{} + HeadlessBody string + Host string + Input string + JarmHash string + KnowledgeBase map[string]interface{} + Lines int + Location string + Method string + Path string + Pipeline bool + Port string + Raw string + RawHeaders string + Request string + RequestRaw []byte + Resolvers []string + Response *httpx.Response + ResponseBody string + ResponseHeaders map[string]interface{} + ResponseTime string + SNI string + Scheme string + ScreenshotBytes []byte + ScreenshotPath string + ScreenshotPathRel string + StatusCode int + StoredResponsePath string + TLSData *clients.Response + Technologies []string + TechnologyDetails map[string]wappalyzer.AppInfo + Timestamp time.Time + Title string + Trace *retryablehttp.TraceInfo + URL string + VHost bool + WebServer string + WebSocket bool + Words int + func (r Result) CSVHeader() string + func (r Result) CSVRow(scanopts *ScanOptions) string + func (r Result) JSON(scanopts *ScanOptions) string + type ResumeCfg struct + Index int + ResumeFrom string + type Runner struct + HostErrorsCache gcache.Cache[string, int] + func New(options *Options) (*Runner, error) + func (r *Runner) Close() + func (r *Runner) GetScanOpts() ScanOptions + func (r *Runner) HTTPX() *httpx.HTTPX + func (r *Runner) HandleFaviconHash(hp *httpx.HTTPX, req *retryablehttp.Request, currentResp []byte, ...) (string, string, string, []byte, string, error) + func (r *Runner) Process(t string, wg *syncutil.AdaptiveWaitGroup, protocol string, ...) + func (r *Runner) RunEnumeration() + func (r *Runner) SaveResumeConfig() error + type ScanOptions struct + Base64ResponseInStdout bool + CSPProbe bool + ChainInStdout bool + DisableStdin bool + ExcludeCDN bool + Favicon bool + HTTP2Probe bool + Hashes string + HostMaxErrors int + LeaveDefaultPorts bool + MaxResponseBodySizeToRead int + MaxResponseBodySizeToSave int + Methods []string + NoFallback bool + NoFallbackScheme bool + NoHeadlessBody bool + NoScreenshotBytes bool + NoScreenshotFullPage bool + OmitBody bool + OutputCDN string + OutputCName bool + OutputContentLength bool + OutputContentType bool + OutputExtractRegex string + OutputIP bool + OutputLinesCount bool + OutputLocation bool + OutputMethod bool + OutputResponseTime bool + OutputServerHeader bool + OutputStatusCode bool + OutputTitle bool + OutputWebSocket bool + OutputWithNoColor bool + OutputWordsCount bool + Pipeline bool + PreferHTTPS bool + ProbeAllIPS bool + RequestBody string + RequestURI string + ResponseHeadersInStdout bool + ResponseInStdout bool + Screenshot bool + ScreenshotIdle time.Duration + ScreenshotTimeout time.Duration + StoreChain bool + StoreResponse bool + StoreResponseDirectory string + StoreVisionReconClusters bool + TLSProbe bool + TechDetect bool + Unsafe bool + UseInstalledChrome bool + VHost bool + VHostInput bool + func (s *ScanOptions) Clone() *ScanOptions + func (s *ScanOptions) IsScreenshotFullPage() bool + type Server struct + func NewServer(addr string, config *Options) *Server + func (s *Server) Start() error + func (s *Server) Stop() error + type Trace struct + ConnectDone time.Time + ConnectStart time.Time + DNSDone time.Time + DNSStart time.Time + GetConn time.Time + Got100Continue time.Time + GotConn time.Time + GotFirstResponseByte time.Time + PutIdleConn time.Time + TLSHandshakeDone time.Time + TLSHandshakeStart time.Time + Wait100Continue time.Time + WroteHeaderField time.Time + WroteHeaders time.Time + WroteRequest time.Time