utils

package
v0.0.44 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package utils provides utility functions used across the networkscan application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBuiltInWordlists added in v0.0.44

func GetBuiltInWordlists(service, size string) ([]string, []string, error)

GetBuiltInWordlists loads built-in username and password wordlists based on service type and size. It returns slices of usernames and passwords from the appropriate wordlist files.

func GetEntriesFromTXTFiles added in v0.0.35

func GetEntriesFromTXTFiles(paths []string) ([]string, error)

GetEntriesFromTXTFiles reads and combines entries from multiple text files. It takes a list of file paths, reads each file line by line, and returns a combined list of all entries. Each line in the input files becomes a separate entry. Returns an error if any file cannot be opened or read.

Types

type WordlistFiles added in v0.0.44

type WordlistFiles struct {
	UsernameFile string
	PasswordFile string
}

WordlistFiles maps service types and sizes to their corresponding username and password file paths

Jump to

Keyboard shortcuts

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