Documentation ¶
Overview ¶
Package hquack contains analysis scripts for quack and hyperquack protocols
Package hquack contains analysis scripts for quack and hyperquack protocols ¶
Package hquack contains analysis scripts for quack and hyperquack protocols ¶
Package hquack contains analysis scripts for quack and hyperquack protocols
Index ¶
- func Analyze(data []map[string]interface{}, analysisType string) map[string]map[string]map[string]int
- func AnalyzeHquack(inputFile string, outputFile string, technique string)
- func AssetsHTTPRequest(url string) string
- func ProcessLine() *goflow.Graph
- func Prompt() string
- func ReadFingerprints(url string) (map[string]*regexp.Regexp, error)
- func WriteToCSV(dataMap map[string]map[string]map[string]int, target string, filename string)
- type Analysis
- type Anomaly
- type Filter
- type MetaData
- type Parse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Analyze ¶
func Analyze(data []map[string]interface{}, analysisType string) map[string]map[string]map[string]int
Analyze processes data based on the type of analysis specified Input - The data ([]map[string]interface{}), the analysisType (Specified by the user prompt) Returns - The stats about the data (map[string]map[string]map[string]int)
func AnalyzeHquack ¶
AnalyzeHquack is the main function that handles io and set up of the network
func AssetsHTTPRequest ¶
AssetsHTTPRequest performs a HTTP request for a Censored Planet asset and returns the body of the response
func ProcessLine ¶
ProcessLine constructs the directed cyclic graph that handles data flow between different components.
func ReadFingerprints ¶
ReadFingerprints reads blockpage and false positive fingerprints into memory from a URL
func WriteToCSV ¶
WriteToCSV writes a map of analyzed data to a CSV file. Input - The data to write (map[string]map[string]map[string]int), the analysis type ("Vantage Point", "Domain", "Error Type"), Output csv filename Returns - None WriteToCSV expects the data to be in a certain nested map format.
Types ¶
type Analysis ¶
type Analysis struct { InAnalysisData <-chan map[string]interface{} InAnalysisType <-chan string OutAnalysisData chan<- map[string]interface{} }
Analysis is the component that stores the input and output for different types of analysis
type Anomaly ¶
type Anomaly struct { InAnomalyData <-chan map[string]interface{} OutAnomalyData chan<- map[string]interface{} InBlockpageData <-chan map[string]*regexp.Regexp InFalsePositiveData <-chan map[string]*regexp.Regexp InTechnique <-chan string }
Anomaly is the component that holds the type of anomaly, and whether the anomaly is confirmed or not
type Filter ¶
type Filter struct { InFilterData <-chan map[string]interface{} OutFilterData chan<- map[string]interface{} }
Filter is the component for filtering failed measurements