From e680b58af5edad1fe3ed92ad75f6e8abd2992cbd Mon Sep 17 00:00:00 2001 From: CyberRoute Date: Sun, 19 Nov 2023 20:57:48 +0100 Subject: [PATCH] removing stuff that is not used and models.go --- pkg/models/models.go | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 pkg/models/models.go diff --git a/pkg/models/models.go b/pkg/models/models.go new file mode 100644 index 0000000..e490667 --- /dev/null +++ b/pkg/models/models.go @@ -0,0 +1,47 @@ +package models + +import ( + "html/template" + + "github.com/CyberRoute/bruter/pkg/shodan" +) + +// Homargs holds data to be sent to the home page +type HomeArgs struct { + Ipv4 string + Ipv6 string + Host shodan.Response + Headers map[string]interface{} + Mx map[string]uint16 + Ftp string + Ssh string + Mysql string + Smtp string + Pop string + Irc string +} + +// Template data holds data sent from handlers to templates +type TemplateData struct { + StringMap map[string]string + IntMap map[string]int + FloatMap map[string]float32 + Data map[string]interface{} + HeadersMap map[string]interface{} + FtpBannerGrabberMap map[string]interface{} + SSLInfo []map[string]interface{} + WhoisInfo template.HTML +} + +// Urls holds data to be sent to the consumer api endpoint +type Url struct { + Id int `json:"id"` + Path string `json:"path"` + Status float64 `json:"status"` + Progress float32 `json:"progress"` + Data string `json:"data"` +} + +type AllUrls struct { + Urls []*Url +}