tech

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package tech is responsible for performing a technology discovery via wappalyzergo

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintAppInfoTable

func PrintAppInfoTable(appInfo map[string]AppInfo)

PrintAppInfoTable prints the AppInfo in a table format with colorized output and fixed-width columns this is a helper function for getting tidy results into the console, but the actual output we'd have in production would be json

Types

type AppInfo

type AppInfo struct {
	Description string   `json:"description"`
	Website     string   `json:"website"`
	CPE         string   `json:"cpe"`
	Icon        string   `json:"icon"`
	Categories  []string `json:"categories"`
}

AppInfo is a struct that holds information about an application

type Tech

type Tech struct {
	TechClient *wappalyzer.Wappalyze
	HTTPClient *httpsling.Requester
	AppInfo    map[string]AppInfo
}

Tech is a struct that holds the Wappalyzer client and HTTP client

func NewTech

func NewTech(target string) (*Tech, error)

NewTech creates a new tech and http client

func (*Tech) GetTech

func (t *Tech) GetTech() (map[string]AppInfo, error)

GetTech fetches the technology information from the target URL

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳