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 +}