dsl

package
v0.0.0-...-26fac7b Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(dest string, src string) (err error)

func CleanWorkspace

func CleanWorkspace(workspace string, whitelist []string) bool

func CopyDir

func CopyDir(src string, dest string) (err error)

func CopyFile

func CopyFile(src string, dest string) (err error)

func ExpandCIDR

func ExpandCIDR(cidr, outputPath string) error

ExpandCIDR expands a CIDR range into individual host IPs and writes them to outputPath.

func ExtractDomain

func ExtractDomain(inputPath, outputPath string) error

ExtractDomain reads hostnames from inputPath, extracts the registered domain (eTLD+1) from each using the Public Suffix List, deduplicates, and writes to outputPath. Example: "217.232.156.77.rev.sfr.net" → "sfr.net"

func ExtractNmapIP

func ExtractNmapIP(src, dest string)

func LookupPTR

func LookupPTR(ip, outputPath string) error

LookupPTR performs a reverse DNS lookup on an IP and writes hostnames to outputPath.

func ResolveDNS

func ResolveDNS(hostname, outputPath string) error

ResolveDNS resolves a hostname to its IP addresses and writes them to outputPath.

Types

This section is empty.

Jump to

Keyboard shortcuts

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