depseeker

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultUserAgent = "Depseeker - Open-source project (github.com/projectpandora/depseeker)"

DefaultUserAgent default user agent

Variables

View Source
var BlacklistPackageName = []string{
	"version",
	"font-weight",
	"revision",
	"height",
	"z-index",
	"max-width",
	"ver",
	"site",
	"value",
	"latitude",
	"longitude",
	"weight",
	"height",
	"width",
	"ip",
	"id",
	"vtp_value",
	"namespace",
	"padding-top",
	"padding-bottom",
	"margin-top",
	"margin-bottom",
	"border-top-width",
	"border-bottom-width",
	"maximum-scale",
	"v",
	"website_id",
	"vtp_id",
}

BlacklistPackageName blacklist

View Source
var DefaultOptions = Options{
	Threads:   25,
	Timeout:   30 * time.Second,
	CdnCheck:  true,
	UserAgent: DefaultUserAgent,
}

DefaultOptions contains the default options

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Name      string
	Version   string
	IsPrivate bool
}

Dependency dependencies

type Depseeker

type Depseeker struct {
	// contains filtered or unexported fields
}

Depseeker represent an instance of the library client

func New

func New(options *Options) (*Depseeker, error)

New depseeker instance

func (Depseeker) Run

func (d Depseeker) Run(ctx context.Context, url string) ([]Dependency, error)

Run crawl a website and check if there any exposed package

type Options

type Options struct {
	UserAgent string
	HTTPProxy string
	Threads   int
	CdnCheck  bool
	// Timeout is the maximum time to wait for the request
	Timeout       time.Duration
	CustomHeaders map[string]string
}

Options contains configuration options for the client

Jump to

Keyboard shortcuts

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