finder

package
v0.0.0-...-59843a2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const VERSION = "0.2.1"

Variables

This section is empty.

Functions

func AppendIfMissing

func AppendIfMissing(slice []string, key string) []string

func CheckIfArrayContainsString

func CheckIfArrayContainsString(stringArray []string, stringToCheck string) bool

func CheckIfFileExists

func CheckIfFileExists(path string, stopRunning bool) bool

func ConvertJSONLtoJSON

func ConvertJSONLtoJSON(input string) string

func ConvertStringArrayToString

func ConvertStringArrayToString(stringArray []string, separator string) string

func CreateDirectoryIfNotExists

func CreateDirectoryIfNotExists(dir string) error

func CreateOutputFromInput

func CreateOutputFromInput(input string) string

func ExistsInArray

func ExistsInArray(slice []string, key string) bool

func GetAllRecordsForKey

func GetAllRecordsForKey(document *jsonquery.Node, key string) []*jsonquery.Node

func GetAllValuesForKey

func GetAllValuesForKey(document *jsonquery.Node, key string) []string

func GetHost

func GetHost(str string) string

func GetJSONDocumentFromFile

func GetJSONDocumentFromFile(filename string) *jsonquery.Node

func GetValueForQueryBoolean

func GetValueForQueryBoolean(document *jsonquery.Node, requestedField string, queryKey string, matchCondition bool) []string

func GetValueForQueryKey

func GetValueForQueryKey(document *jsonquery.Node, requestedField string, queryKey string, query []string) []string

func GetXMLDocumentFromFile

func GetXMLDocumentFromFile(filename string) *xmlquery.Node

func IsUrl

func IsUrl(str string) bool

func NewLogger

func NewLogger() *logger

func RandStringRunes

func RandStringRunes(n int) string

func WriteToTextFileInProject

func WriteToTextFileInProject(filename string, data string)

Types

type Config

type Config struct {
	S2SPath          string `yaml:"s2s_path"`
	HttpxIpFile      string `yaml:"httpx_ips,omitempty"`
	HttpxDomainsFile string `yaml:"httpx_domains,omitempty"`
	HttpxCleanFile   string `yaml:"httpx_clean,omitempty"`
}

type Finder

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

func NewFinder

func NewFinder(options *Options) (*Finder, error)

func (*Finder) Find

func (p *Finder) Find() error

func (*Finder) FindInterestingAllCleaned

func (p *Finder) FindInterestingAllCleaned()

func (*Finder) FindInterestingDomains

func (p *Finder) FindInterestingDomains()

func (*Finder) FindInterestingIPS

func (p *Finder) FindInterestingIPS()

type Options

type Options struct {
	SettingsFile string
	Project      string
	BaseFolder   string
	Hosts        bool
	Silent       bool
	Version      bool
	NoColor      bool
	Verbose      bool
}

func ParseOptions

func ParseOptions() *Options

ParseOptions parses the command line flags provided by a user

type Project

type Project struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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