cli

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

This file contains tools related to subdomain discovery on domains.

Index

Constants

This section is empty.

Variables

View Source
var ErrCtxTimedOut = errors.New("context deadline exceeded")

Functions

func ChkCmdInstalled

func ChkCmdInstalled(cmdName string) (bool, error)

func IsDirectory

func IsDirectory(path string) bool

func IsFile

func IsFile(path string) bool

func JoinSlice

func JoinSlice(slice []string) string

func LinesToSlice

func LinesToSlice(lines string) []string

func RemoveDuplicatesAndEmptyStrings

func RemoveDuplicatesAndEmptyStrings(slice []string) []string

func RunCachex

func RunCachex(targets []string, c *config.CachexConfig) ([]string, error)

func RunCommand

func RunCommand(
	cmdName string,
	args []string,
	timeout int,
) ([]string, error)

RunCommand runs a command and returns stdout lines with duplicates and empty lines removed.

func RunCommandWithStdinInput

func RunCommandWithStdinInput(
	cmdName string,
	args []string,
	stdinInput []string,
	timeout int,
) ([]string, error)

RunCommandWithStdinInput runs a command with StdinInput piped to stdin, and returns stdout lines with duplicates and empty lines removed.

func RunGau

func RunGau(domain string, g *config.GauConfig) ([]string, error)

gau passively fetches known URLs for the given targets from various sources

func RunHTTPX

func RunHTTPX(targets []string, cfg *config.HTTPXConfig, scanPorts bool) ([]string, error)

func RunKatana

func RunKatana(targets []string, k *config.KatanaConfig, crawlScopeUrl string) ([]string, error)

katana actively crawls the given targets via interacting with web pages

func RunNuclei

func RunNuclei(targets []string, cfg *config.NucleiConfig, scanType NucleiScanType) ([]string, error)

func RunSubfinder

func RunSubfinder(domain string, s *config.SubfinderConfig) ([]string, error)

RunSubfinder executes the subfinder tool for the given domain with specified threads

func RunUro

func RunUro(urls []string) ([]string, error)

filters URLs with uro

func WarnIfToolsMissing

func WarnIfToolsMissing() error

Types

type NucleiScanType

type NucleiScanType int
const (
	NucleiDastScanType NucleiScanType
	NucleiGenericScanType
)

func (NucleiScanType) String

func (nst NucleiScanType) String() string

Jump to

Keyboard shortcuts

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