diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b26772b --- /dev/null +++ b/.gitignore @@ -0,0 +1,22 @@ +# ---> Go +# If you prefer the allow list template instead of the deny list, see community template: +# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore +# +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +vendor/ + +# Go workspace file +go.work diff --git a/Domains/domains.go b/Domains/domains.go new file mode 100644 index 0000000..3a6789b --- /dev/null +++ b/Domains/domains.go @@ -0,0 +1,44 @@ +package domains + +var Names T_Domains + +type T_Domains struct { + Domains []T_Domain `json:"Domains"` +} + +type T_Domain struct { + DomainName string `json:"DomainName"` + RealServer string `json:"RealServer"` + RealPort string `json:"RealPort"` + Status string `json:"Satus"` +} + +const ( + Onboarding = "Onboarding" + NotPointedToUs = "NotPointedToUs" + Working = "Working" + Unoperational = "Unoperational" +) + +func (T_Domains) AddByDomain(domain T_Domain) { + Names.Domains = append(Names.Domains, domain) +} + +func (T_Domains) AddByParams(name string, realServer string, realPort string) { + var temp T_Domain + temp.DomainName = name + temp.RealServer = realServer + temp.RealPort = realPort + temp.Status = Onboarding + + Names.AddByDomain(temp) +} + +func (T_Domains) RemoveDomain(name string) { + for index, v := range Names.Domains { + if v.DomainName == name { + temp := append(Names.Domains[:index], Names.Domains[index+1]) + Names.Domains = temp + } + } +} diff --git a/HealthReporter/healthReporter.go b/HealthReporter/healthReporter.go new file mode 100644 index 0000000..153411b --- /dev/null +++ b/HealthReporter/healthReporter.go @@ -0,0 +1,11 @@ +package healthReporter + +type HealthReporter interface { + Join(watcher Watcher) + SetState(state string) + Notify() +} + +type Watcher interface { + Update(state string) +} diff --git a/Management/management.go b/Management/management.go new file mode 100644 index 0000000..8d52c35 --- /dev/null +++ b/Management/management.go @@ -0,0 +1,193 @@ +package management + +import ( + "encoding/json" + "errors" + "fmt" + "io/ioutil" + "log" + "os" + + "time" + + "github.com/asaskevich/govalidator" + domains "github.com/cr3a70r/shield/Domains" +) + +var Settings T_Management + +type T_Management struct { + Users []T_User `json:"Users"` + Domains domains.T_Domains `json:"Names"` + Debug bool `json:"Debug"` +} + +type T_User struct { + Email string `json:"Email"` + Password string `json:"Password"` + Cookie string `json:"Cookie"` + CreatedDate string `json:"CreatedDate"` +} + +func (T_Management) SaveConfig() { + +} + +func (T_Management) LoadConfig() { + +} + +func (T_Management) ReloadConfig() { + +} + +func (T_Management) Initialize() { + configExists, err := os.Open("config.json") + + if err != nil { + log.Println("management.initialize: new deployment: building config") + Settings.DefaultSuperAdmin() + + configNew, err := os.OpenFile("config.json", os.O_CREATE|os.O_WRONLY, 0644) + if err == nil { + configByte, err := json.MarshalIndent(Settings, "", " ") + if err != nil { + log.Fatal("management.initialize: could not Marshall Settings: ", err) + } + configNew.Write(configByte) + } else { + log.Fatal("management.initialize: could not create new config.json file: ", err) + } + + defer configNew.Close() + } else { + configByte, err := ioutil.ReadAll(configExists) + if err != nil { + log.Fatal("management.initialize: could not read config: ", err) + } + + json.Unmarshal(configByte, &Settings) + + defer configExists.Close() + } +} + +// Needs to be checked if a user already exist +func (T_Management) AddUserByTUser(user T_User) error { + if !govalidator.IsEmail(user.Email) { + return errors.New("email is not an email") + } + if user.Email == "" { + return errors.New("email cannot be empty") + } + if user.Password == "" { + return errors.New("password cannot be empty") + } + currentTime := time.Now() + user.CreatedDate = currentTime.Format("2006-January-02") + + Settings.Users = append(Settings.Users, user) + + return nil +} + +func (T_Management) AddUserByParams(email string, passwd string) error { + var temp T_User + temp.Email = email + temp.Password = passwd + err := Settings.AddUserByTUser(temp) + + return err +} + +func (T_Management) RemoveUserByEmail(email string) error { + found := false + for index, u := range Settings.Users { + if u.Email == email { + temp := append(Settings.Users[:index], Settings.Users[index+1]) + Settings.Users = temp + found = true + return nil + } + } + if !found { + return errors.New("did not find a user:" + email) + } + return nil +} + +func (T_Management) CheckPassword(email string, passwd string) (bool, error) { + found := false + for _, u := range Settings.Users { + if u.Email == email && u.Password == passwd { + return true, nil + } + } + if !found { + return false, errors.New("no combination with:" + email + " :" + passwd) + } + return false, nil +} + +func (T_Management) SaveCookie(email string, cookie string) error { + for index, _ := range Settings.Users { + if u.Email == email { + Settings.Users[index].Cookie = cookie + return nil + } + } + return nil +} + +func (T_Management) OnboardDomain(name string, realServer string, realPort string) (bool, error) { + if !govalidator.IsDNSName(name) { + return false, errors.New("given name is not a DNS name") + } + if !govalidator.IsDNSName(realServer) && !govalidator.IsIP(realServer) { + return false, errors.New("given realServer is not a valid DNS name or IP Address") + } + if !govalidator.IsPort(realPort) { + return false, errors.New("given realPort is not a valid Port number") + } + + domains.Names.AddByParams(name, realServer, realPort) + + return true, nil +} + +func (T_Management) RemoveDomain(name string) { + domains.Names.RemoveDomain(name) +} + +func (T_Management) UserFindByEmail(email string) (T_User, error) { + found := false + var temp T_User + for _, u := range Settings.Users { + if u.Email == email { + return u, nil + } + } + if !found { + return temp, errors.New("no combination with:" + email) + } + return temp, nil +} + +func (T_Management) AllUsers() []T_User { + return Settings.Users +} + +func (T_Management) DefaultSuperAdmin() { + Settings.Debug = false + Settings.AddUserByParams("defadm@daydev.org", "siconmas") +} + +func (T_Management) ToString() string { + managementString, err := json.Marshal(Settings) + + if err != nil { + log.Println("management.ToString: " + err.Error()) + } + + return string(managementString) +} diff --git a/Management/memento.go b/Management/memento.go new file mode 100644 index 0000000..9758213 --- /dev/null +++ b/Management/memento.go @@ -0,0 +1,4 @@ +package management + +// Originator is T_Management + diff --git a/Management/webserver.go b/Management/webserver.go new file mode 100644 index 0000000..9a0161e --- /dev/null +++ b/Management/webserver.go @@ -0,0 +1,151 @@ +package management + +import ( + "encoding/json" + "log" + "net/http" + "path/filepath" + "text/template" + + "github.com/asaskevich/govalidator" + "github.com/cr3a70r/shield/Utils" + "github.com/gorilla/mux" + "github.com/gorilla/securecookie" +) + +var hashKey = []byte("ckjstkldx-rlkjcmskl-rdlskjtmd") +var blockKey = []byte("opbckswle-sdnfekjtiw-dsmnwhekskd") +var secCookie = securecookie.New(hashKey, blockKey) + +func StartWebserver(addr string) { + router := mux.NewRouter() + + router.HandleFunc("/", renderIndex) + router.HandleFunc("/config", config) + router.HandleFunc("/dashboard", dashboard) + router.HandleFunc("/protection", protection) + router.HandleFunc("/config", config) + + log.Fatal(http.ListenAndServe(addr, router)) +} + +func health(writer http.ResponseWriter, req *http.Request) { + Utils.RespondJSON("Unknown state", 200, writer) +} + +func renderIndex(w http.ResponseWriter, r *http.Request) { + if r.Method == "POST" { + + r.ParseForm() + if !govalidator.IsEmail(r.FormValue("Email")) { + log.Println("webserver.auth: email not found") + } + + success, err := Settings.CheckPassword(r.FormValue("Email"), r.FormValue("Password")) + if err != nil { + log.Println("webserver.auth: unseccessful auth ") + log.Println(err) + + } else if success { + log.Println("webserver.auth: login") + log.Println(r.FormValue("Email")) + + value := map[string]string{ + "email": r.FormValue("Email"), + "password": r.FormValue("Password"), + } + encoded, err := secCookie.Encode("Shield", value) + + Settings.SaveCookie(r.FormValue("Email"), encoded) + + if err != nil { + log.Println("webserver.auth: failed to encode cookie") + } + cookie := &http.Cookie{ + Name: "Shield", + Value: encoded, + Path: "/", + } + http.SetCookie(w, cookie) + r.Header.Set("x-shield", encoded) + + http.Redirect(w, r, "/dashboard", http.StatusSeeOther) + } + } + + parsedTemplate, _ := template.ParseFiles("static/index.html") + err := parsedTemplate.Execute(w, "") + if err != nil { + log.Println("Error executing template :", err) + return + } + + defer r.Body.Close() +} + +func dashboard(w http.ResponseWriter, r *http.Request) { + fpTemplate := filepath.Join("static", "template.html") + fpPage := filepath.Join("static", "dashboard.html") + + tmpl, err := template.ParseFiles(fpPage, fpTemplate) + + if err != nil { + log.Println("webserver.dashboard: " + err.Error()) + } + + err = tmpl.ExecuteTemplate(w, "template.html", nil) + if err != nil { + log.Println("webserver.dashboard: " + err.Error()) + } +} + +func protection(w http.ResponseWriter, r *http.Request) { + fpTemplate := filepath.Join("static", "template.html") + fpPage := filepath.Join("static", "protection.html") + + tmpl, err := template.ParseFiles(fpPage, fpTemplate) + if err != nil { + log.Println("webserver.protection: " + err.Error()) + } + + err = tmpl.ExecuteTemplate(w, "template.html", nil) + if err != nil { + log.Println("webserver.protection: " + err.Error()) + } +} + +type View struct { + Data string +} + +func config(w http.ResponseWriter, r *http.Request) { + fpTemplate := filepath.Join("static", "template.html") + fpPage := filepath.Join("static", "config.html") + + tmpl, err := template.ParseFiles(fpPage, fpTemplate) + if err != nil { + log.Println("webserver.config: " + err.Error()) + } + + bt, err := json.MarshalIndent(Settings, "", " ") + vd := View{string(bt)} + + //vd := ViewData{&Settings} + + err = tmpl.ExecuteTemplate(w, "template.html", vd) + if err != nil { + log.Println("webserver.config: " + err.Error()) + } +} + +func requireAuth(h http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if cookie, err := r.Cookie("Shield"); err == nil { + value := make(map[string]string) + if err = secCookie.Decode("Shield", cookie.Value, &value); err == nil { + log.Println("webserver.requireAuth: unauthorized access denied " + r.RemoteAddr) + } + } + h.ServeHTTP(w, r) + }) +} diff --git a/Utils/Utils.go b/Utils/Utils.go new file mode 100644 index 0000000..a250baf --- /dev/null +++ b/Utils/Utils.go @@ -0,0 +1,12 @@ +package Utils + +import ( + "encoding/json" + "net/http" +) + +func RespondJSON(data interface{}, code int, writer http.ResponseWriter) { + writer.Header().Add("Content-type", "application/json") + writer.WriteHeader(code) + json.NewEncoder(writer).Encode(data) +} diff --git a/config.json b/config.json new file mode 100644 index 0000000..076da91 --- /dev/null +++ b/config.json @@ -0,0 +1,14 @@ +{ + "Users": [ + { + "Email": "defadm@daydev.org", + "Password": "siconmas", + "JWTHash": "", + "CreatedDate": "2022-July-13" + } + ], + "Names": { + "Domains": null + }, + "Debug": false +} \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..72cc11f --- /dev/null +++ b/go.mod @@ -0,0 +1,9 @@ +module github.com/cr3a70r/shield + +go 1.17 + +require ( + github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d + github.com/gorilla/mux v1.8.0 + github.com/gorilla/securecookie v1.1.1 +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..272aa9a --- /dev/null +++ b/go.sum @@ -0,0 +1,6 @@ +github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d h1:Byv0BzEl3/e6D5CLfI0j/7hiIEtvGVFPCZ7Ei2oq8iQ= +github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw= +github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= +github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= +github.com/gorilla/securecookie v1.1.1 h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ= +github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4= diff --git a/runlog.log b/runlog.log new file mode 100644 index 0000000..e28ed60 --- /dev/null +++ b/runlog.log @@ -0,0 +1,1229 @@ +2022/07/12 20:22:26 new deployment: building config +2022/07/12 20:22:26 could not create new config.json file: +2022/07/12 20:30:06 new deployment: building config +2022/07/12 20:30:06 could not create new config.json file: +2022/07/12 20:34:01 new deployment: building config +2022/07/12 20:34:01 could not create new config.json file: +2022/07/12 20:36:06 new deployment: building config +2022/07/12 20:36:06 could not create new config.json file: +2022/07/12 20:36:47 new deployment: building config +2022/07/12 20:36:47 could not create new config.json file: +2022/07/12 20:40:57 new deployment: building config +2022/07/12 20:44:35 new deployment: building config +2022/07/12 21:07:02 new deployment: building config +2022/07/13 21:48:27 renderIndex: +2022/07/13 21:48:27 http: invalid Read on closed Body +2022/07/13 21:48:54 renderIndex: +2022/07/13 21:48:54 http: invalid Read on closed Body +2022/07/13 21:50:06 renderIndex: +2022/07/13 21:50:06 http: invalid Read on closed Body +2022/07/13 21:50:16 renderIndex: +2022/07/13 21:50:16 http: invalid Read on closed Body +2022/07/13 21:50:40 renderIndex: +2022/07/13 21:50:40 http: invalid Read on closed Body +2022/07/13 21:51:55 renderIndex: +2022/07/13 21:51:55 http: invalid Read on closed Body +2022/07/13 21:52:01 http: panic serving 127.0.0.1:65500: http: invalid Read on closed Body +goroutine 19 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x12f46e0, 0xc0001d9c00}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +github.com/cr3a70r/shield/Management.renderIndex({0x13ba890, 0xc0000ea1c0}, 0xc0001b4800) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:58 +0x2c5 +net/http.HandlerFunc.ServeHTTP(0xc0001b4700, {0x13ba890, 0xc0000ea1c0}, 0xc0000e39f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002ba000, {0x13ba890, 0xc0000ea1c0}, 0xc0001b4600) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0x13b9c60}, {0x13ba890, 0xc0000ea1c0}, 0xc0001b4600) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc00029b5e0, {0x13bbc60, 0xc00028d560}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/13 21:52:05 http: panic serving 127.0.0.1:65518: http: invalid Read on closed Body +goroutine 5 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x12f46e0, 0xc0001d9c00}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +github.com/cr3a70r/shield/Management.renderIndex({0x13ba890, 0xc00011a000}, 0xc000112200) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:58 +0x2c5 +net/http.HandlerFunc.ServeHTTP(0xc000112100, {0x13ba890, 0xc00011a000}, 0xc0000699f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002ba000, {0x13ba890, 0xc00011a000}, 0xc000112000) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0x13b9c60}, {0x13ba890, 0xc00011a000}, 0xc000112000) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc00010e000, {0x13bbc60, 0xc00028d560}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/13 21:52:12 http: panic serving 127.0.0.1:49182: http: invalid Read on closed Body +goroutine 22 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x12f46e0, 0xc0001d9c00}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +github.com/cr3a70r/shield/Management.renderIndex({0x13ba890, 0xc0000ea2a0}, 0xc0001b4b00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:58 +0x2c5 +net/http.HandlerFunc.ServeHTTP(0xc0001b4a00, {0x13ba890, 0xc0000ea2a0}, 0xc0000649f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002ba000, {0x13ba890, 0xc0000ea2a0}, 0xc0001b4900) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0x13b9c60}, {0x13ba890, 0xc0000ea2a0}, 0xc0001b4900) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc00029b680, {0x13bbc60, 0xc00028d560}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/13 21:52:36 http: panic serving 127.0.0.1:49284: http: invalid Read on closed Body +goroutine 19 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x12f46e0, 0xc00025dc00}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +github.com/cr3a70r/shield/Management.renderIndex({0x13ba890, 0xc0001e21c0}, 0xc00022c800) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:56 +0x2ca +net/http.HandlerFunc.ServeHTTP(0xc00022c700, {0x13ba890, 0xc0001e21c0}, 0xc0001db9f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc000332000, {0x13ba890, 0xc0001e21c0}, 0xc00022c600) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0x13b9c60}, {0x13ba890, 0xc0001e21c0}, 0xc00022c600) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000313540, {0x13bbc60, 0xc000305560}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/13 22:42:48 webserver.auth: unseccessful auth +2022/07/13 22:43:15 webserver.auth: unseccessful auth +2022/07/13 22:43:15 no combination with:143@dr.ru :terdfgs +2022/07/13 22:44:40 webserver.auth: login +2022/07/13 22:44:40 defadm@daydev.org +2022/07/13 22:44:46 webserver.auth: login +2022/07/13 22:44:46 defadm@daydev.org +2022/07/13 22:49:21 new deployment: building config +2022/07/13 22:51:42 new deployment: building config +2022/07/13 22:52:29 new deployment: building config +2022/07/13 22:57:01 new deployment: building config +2022/07/14 13:44:32 webserver.auth: login +2022/07/14 13:44:32 defadm@daydev.org +2022/07/14 13:47:28 webserver.auth: email not found +2022/07/14 13:47:28 webserver.auth: unseccessful auth +2022/07/14 13:47:28 no combination with: : +2022/07/14 14:01:15 webserver.auth: email not found +2022/07/14 14:01:15 webserver.auth: unseccessful auth +2022/07/14 14:01:15 no combination with: : +2022/07/14 14:01:23 webserver.auth: email not found +2022/07/14 14:01:23 webserver.auth: unseccessful auth +2022/07/14 14:01:23 no combination with: : +2022/07/14 14:01:36 webserver.auth: email not found +2022/07/14 14:01:36 webserver.auth: unseccessful auth +2022/07/14 14:01:36 no combination with: : +2022/07/14 14:01:45 webserver.auth: email not found +2022/07/14 14:01:45 webserver.auth: unseccessful auth +2022/07/14 14:01:45 no combination with: : +2022/07/14 14:02:00 webserver.auth: email not found +2022/07/14 14:02:00 webserver.auth: unseccessful auth +2022/07/14 14:02:00 no combination with: : +2022/07/14 14:02:54 webserver.auth: login +2022/07/14 14:02:54 defadm@daydev.org +2022/07/14 14:03:50 webserver.auth: login +2022/07/14 14:03:50 defadm@daydev.org +2022/07/14 14:06:52 webserver.auth: login +2022/07/14 14:06:52 defadm@daydev.org +2022/07/14 14:07:11 webserver.auth: login +2022/07/14 14:07:11 defadm@daydev.org +2022/07/14 22:22:36 webserver.auth: login +2022/07/14 22:22:36 defadm@daydev.org +2022/07/14 22:22:36 webserver.auth: failed to encode cookie +2022/07/14 22:23:17 webserver.auth: login +2022/07/14 22:23:17 defadm@daydev.org +2022/07/14 22:23:17 webserver.auth: failed to encode cookie +2022/07/14 22:27:15 webserver.dashboard: open /static/dashboard.html: no such file or directory +2022/07/14 22:27:15 http: panic serving 127.0.0.1:56349: runtime error: invalid memory address or nil pointer dereference +goroutine 6 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131e640, 0x16062d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x10cb94e, {0x136afde, 0xc000316050}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e0260, 0xc00014e380}, {0x136afde, 0x9}, {0x0, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.dashboard({0x13e67f0, 0xc00014e380}, 0xc0002a4240) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:97 +0x187 +net/http.HandlerFunc.ServeHTTP(0xc000194800, {0x13e67f0, 0xc00014e380}, 0xc0000649f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00029e000, {0x13e67f0, 0xc00014e380}, 0xc000194700) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000090030}, {0x13e67f0, 0xc00014e380}, 0xc000194700) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc00027b720, {0x13e8500, 0xc00026fef0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/14 22:27:16 webserver.dashboard: open /static/dashboard.html: no such file or directory +2022/07/14 22:27:16 http: panic serving 127.0.0.1:56350: runtime error: invalid memory address or nil pointer dereference +goroutine 7 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131e640, 0x16062d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x10cb94e, {0x136afde, 0xc00001caf0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e0260, 0xc00014e460}, {0x136afde, 0x9}, {0x0, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.dashboard({0x13e67f0, 0xc00014e460}, 0xc0002a4540) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:97 +0x187 +net/http.HandlerFunc.ServeHTTP(0xc000194a00, {0x13e67f0, 0xc00014e460}, 0xc0001479f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00029e000, {0x13e67f0, 0xc00014e460}, 0xc000194600) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0002a4060}, {0x13e67f0, 0xc00014e460}, 0xc000194600) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc00027b7c0, {0x13e8500, 0xc00026fef0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/14 22:27:16 webserver.dashboard: open /static/dashboard.html: no such file or directory +2022/07/14 22:27:16 http: panic serving 127.0.0.1:56356: runtime error: invalid memory address or nil pointer dereference +goroutine 18 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131e640, 0x16062d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x10cb94e, {0x136afde, 0xc00033a000}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e0260, 0xc00039e000}, {0x136afde, 0x9}, {0x0, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.dashboard({0x13e67f0, 0xc00039e000}, 0xc000386120) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:97 +0x187 +net/http.HandlerFunc.ServeHTTP(0xc0003a6000, {0x13e67f0, 0xc00039e000}, 0xc0003489f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00029e000, {0x13e67f0, 0xc00039e000}, 0xc00034c000) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000302150}, {0x13e67f0, 0xc00039e000}, 0xc00034c000) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000340000, {0x13e8500, 0xc00026fef0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/14 22:27:16 webserver.dashboard: open /static/dashboard.html: no such file or directory +2022/07/14 22:27:16 http: panic serving 127.0.0.1:56358: runtime error: invalid memory address or nil pointer dereference +goroutine 36 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131e640, 0x16062d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x10cb94e, {0x136afde, 0xc00038e0f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e0260, 0xc00039e0e0}, {0x136afde, 0x9}, {0x0, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.dashboard({0x13e67f0, 0xc00039e0e0}, 0xc0003864b0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:97 +0x187 +net/http.HandlerFunc.ServeHTTP(0xc0003a6300, {0x13e67f0, 0xc00039e0e0}, 0xc0003489f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00029e000, {0x13e67f0, 0xc00039e0e0}, 0xc0003a6200) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000386360}, {0x13e67f0, 0xc00039e0e0}, 0xc0003a6200) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0003b8000, {0x13e8500, 0xc00026fef0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/14 22:27:16 webserver.dashboard: open /static/dashboard.html: no such file or directory +2022/07/14 22:27:16 http: panic serving 127.0.0.1:56361: runtime error: invalid memory address or nil pointer dereference +goroutine 19 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131e640, 0x16062d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x10cb94e, {0x136afde, 0xc00033a000}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e0260, 0xc00039e1c0}, {0x136afde, 0x9}, {0x0, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.dashboard({0x13e67f0, 0xc00039e1c0}, 0xc0003868a0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:97 +0x187 +net/http.HandlerFunc.ServeHTTP(0xc0003a6700, {0x13e67f0, 0xc00039e1c0}, 0xc0003489f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00029e000, {0x13e67f0, 0xc00039e1c0}, 0xc0003a6600) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000386750}, {0x13e67f0, 0xc00039e1c0}, 0xc0003a6600) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0003400a0, {0x13e8500, 0xc00026fef0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/14 22:27:17 webserver.dashboard: open /static/dashboard.html: no such file or directory +2022/07/14 22:27:17 http: panic serving 127.0.0.1:56362: runtime error: invalid memory address or nil pointer dereference +goroutine 20 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131e640, 0x16062d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x10cb94e, {0x136afde, 0xc0003d8000}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e0260, 0xc00039e2a0}, {0x136afde, 0x9}, {0x0, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.dashboard({0x13e67f0, 0xc00039e2a0}, 0xc000386ba0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:97 +0x187 +net/http.HandlerFunc.ServeHTTP(0xc0003a6900, {0x13e67f0, 0xc00039e2a0}, 0xc0003499f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00029e000, {0x13e67f0, 0xc00039e2a0}, 0xc00034c100) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000302330}, {0x13e67f0, 0xc00039e2a0}, 0xc00034c100) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000340140, {0x13e8500, 0xc00026fef0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/14 22:27:17 webserver.dashboard: open /static/dashboard.html: no such file or directory +2022/07/14 22:27:17 http: panic serving 127.0.0.1:56364: runtime error: invalid memory address or nil pointer dereference +goroutine 21 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131e640, 0x16062d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x10cb94e, {0x136afde, 0xc0003d8000}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e0260, 0xc00039e380}, {0x136afde, 0x9}, {0x0, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.dashboard({0x13e67f0, 0xc00039e380}, 0xc000386f30) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:97 +0x187 +net/http.HandlerFunc.ServeHTTP(0xc0003a6b00, {0x13e67f0, 0xc00039e380}, 0xc00034a9f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00029e000, {0x13e67f0, 0xc00039e380}, 0xc00034c200) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0003024e0}, {0x13e67f0, 0xc00039e380}, 0xc00034c200) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0003401e0, {0x13e8500, 0xc00026fef0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/14 22:27:17 webserver.dashboard: open /static/dashboard.html: no such file or directory +2022/07/14 22:27:17 http: panic serving 127.0.0.1:56366: runtime error: invalid memory address or nil pointer dereference +goroutine 50 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131e640, 0x16062d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x10cb94e, {0x136afde, 0xc00033a000}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e0260, 0xc0000ba000}, {0x136afde, 0x9}, {0x0, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.dashboard({0x13e67f0, 0xc0000ba000}, 0xc000090240) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:97 +0x187 +net/http.HandlerFunc.ServeHTTP(0xc0000a4100, {0x13e67f0, 0xc0000ba000}, 0xc0000659f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00029e000, {0x13e67f0, 0xc0000ba000}, 0xc0000a4000) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0000900f0}, {0x13e67f0, 0xc0000ba000}, 0xc0000a4000) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0000a0000, {0x13e8500, 0xc00026fef0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/14 22:27:22 webserver.dashboard: open /static/dashboard.html: no such file or directory +2022/07/14 22:27:22 http: panic serving 127.0.0.1:56389: runtime error: invalid memory address or nil pointer dereference +goroutine 45 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131e640, 0x16062d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x10cb94e, {0x136afde, 0xc00033a000}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e0260, 0xc000420000}, {0x136afde, 0x9}, {0x0, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.dashboard({0x13e67f0, 0xc000420000}, 0xc000302810) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:97 +0x187 +net/http.HandlerFunc.ServeHTTP(0xc00034c400, {0x13e67f0, 0xc000420000}, 0xc00034b9f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00029e000, {0x13e67f0, 0xc000420000}, 0xc00034c300) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000302690}, {0x13e67f0, 0xc000420000}, 0xc00034c300) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0003b80a0, {0x13e8500, 0xc00026fef0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/14 22:27:22 webserver.dashboard: open /static/dashboard.html: no such file or directory +2022/07/14 22:27:22 http: panic serving 127.0.0.1:56390: runtime error: invalid memory address or nil pointer dereference +goroutine 46 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131e640, 0x16062d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x10cb94e, {0x136afde, 0xc0000b00f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e0260, 0xc0000ba0e0}, {0x136afde, 0x9}, {0x0, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.dashboard({0x13e67f0, 0xc0000ba0e0}, 0xc0000904b0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:97 +0x187 +net/http.HandlerFunc.ServeHTTP(0xc0000a4300, {0x13e67f0, 0xc0000ba0e0}, 0xc00034a9f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00029e000, {0x13e67f0, 0xc0000ba0e0}, 0xc0003a6d00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0003872f0}, {0x13e67f0, 0xc0000ba0e0}, 0xc0003a6d00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0003b8140, {0x13e8500, 0xc00026fef0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/14 22:27:22 webserver.dashboard: open /static/dashboard.html: no such file or directory +2022/07/14 22:27:22 http: panic serving 127.0.0.1:56392: runtime error: invalid memory address or nil pointer dereference +goroutine 24 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131e640, 0x16062d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x10cb94e, {0x136afde, 0xc0000ea000}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e0260, 0xc0000ba1c0}, {0x136afde, 0x9}, {0x0, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.dashboard({0x13e67f0, 0xc0000ba1c0}, 0xc000090840) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:97 +0x187 +net/http.HandlerFunc.ServeHTTP(0xc0000a4500, {0x13e67f0, 0xc0000ba1c0}, 0xc00034b9f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00029e000, {0x13e67f0, 0xc0000ba1c0}, 0xc00034c600) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000302b10}, {0x13e67f0, 0xc0000ba1c0}, 0xc00034c600) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000340280, {0x13e8500, 0xc00026fef0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/14 22:39:13 webserver.auth: login +2022/07/14 22:39:13 defadm@daydev.org +2022/07/14 22:39:13 webserver.auth: failed to encode cookie +2022/07/21 18:51:37 webserver.auth: login +2022/07/21 18:51:37 defadm@daydev.org +2022/07/21 18:51:37 webserver.auth: failed to encode cookie +2022/07/21 20:42:07 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:42:26 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:42:26 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:42:27 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:42:32 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:42:33 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:42:33 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:43:33 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:43:34 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:43:34 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:45:16 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:45:16 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:45:16 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:45:17 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:46:13 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 20:46:13 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 21:01:43 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/21 21:59:49 webserver.config: template: no template "config" associated with template "config" +2022/07/21 21:59:51 webserver.config: template: no template "config" associated with template "config" +2022/07/21 22:00:24 webserver.config: template: config: "config" is an incomplete or empty template +2022/07/21 22:00:24 webserver.config: template: config: "config" is an incomplete or empty template +2022/07/21 22:00:25 webserver.config: template: config: "config" is an incomplete or empty template +2022/07/21 22:00:25 webserver.config: template: config: "config" is an incomplete or empty template +2022/07/21 22:06:37 webserver.config: template: no template "template.html" associated with template "config.html" +2022/07/21 22:06:37 webserver.config: template: no template "template.html" associated with template "config.html" +2022/07/21 22:06:39 webserver.config: template: no template "template.html" associated with template "config.html" +2022/07/21 22:12:53 webserver.protection: template: no template "config" associated with template "config" +2022/07/21 22:12:54 webserver.protection: template: no template "config" associated with template "config" +2022/07/21 23:59:24 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/21 23:59:24 http: panic serving 127.0.0.1:51353: runtime error: invalid memory address or nil pointer dereference +goroutine 92 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x1325680, 0x16112d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0xc00005ad80, {0x137416e, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e7f00, 0xc0003a8380}, {0x137416e, 0xd}, {0x130f1e0, 0xc00038e7e0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13ee5b0, 0xc0003a8380}, 0xc0003e4540) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x27e +net/http.HandlerFunc.ServeHTTP(0xc0003af200, {0x13ee5b0, 0xc0003a8380}, 0xc0003809f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00033a000, {0x13ee5b0, 0xc0003a8380}, 0xc0003af100) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0003e43c0}, {0x13ee5b0, 0xc0003a8380}, 0xc0003af100) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0000e2000, {0x13f02c0, 0xc0003400f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/21 23:59:26 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/21 23:59:26 http: panic serving 127.0.0.1:51354: runtime error: invalid memory address or nil pointer dereference +goroutine 93 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x1325680, 0x16112d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0xc000080000, {0x137416e, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e7f00, 0xc00012a7e0}, {0x137416e, 0xd}, {0x130f1e0, 0xc000012b70}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13ee5b0, 0xc00012a7e0}, 0xc0001418f0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x27e +net/http.HandlerFunc.ServeHTTP(0xc00011fb00, {0x13ee5b0, 0xc00012a7e0}, 0xc0000699f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00033a000, {0x13ee5b0, 0xc00012a7e0}, 0xc0000a8d00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc00009d410}, {0x13ee5b0, 0xc00012a7e0}, 0xc0000a8d00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0000e20a0, {0x13f02c0, 0xc0003400f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/21 23:59:26 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/21 23:59:26 http: panic serving 127.0.0.1:51360: runtime error: invalid memory address or nil pointer dereference +goroutine 114 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x1325680, 0x16112d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0xc00005ad80, {0x137416e, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e7f00, 0xc0003a8460}, {0x137416e, 0xd}, {0x130f1e0, 0xc00038e9d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13ee5b0, 0xc0003a8460}, 0xc0003e4de0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x27e +net/http.HandlerFunc.ServeHTTP(0xc0003af400, {0x13ee5b0, 0xc0003a8460}, 0xc0003819f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00033a000, {0x13ee5b0, 0xc0003a8460}, 0xc0000a8e00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc00009d4a0}, {0x13ee5b0, 0xc0003a8460}, 0xc0000a8e00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000410000, {0x13f02c0, 0xc0003400f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/21 23:59:26 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/21 23:59:26 http: panic serving 127.0.0.1:51362: runtime error: invalid memory address or nil pointer dereference +goroutine 68 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x1325680, 0x16112d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0xc00005a900, {0x137416e, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e7f00, 0xc0001e27e0}, {0x137416e, 0xd}, {0x130f1e0, 0xc000012bb0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13ee5b0, 0xc0001e27e0}, 0xc000366240) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x27e +net/http.HandlerFunc.ServeHTTP(0xc00022d800, {0x13ee5b0, 0xc0001e27e0}, 0xc0003849f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00033a000, {0x13ee5b0, 0xc0001e27e0}, 0xc00022d700) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0003660f0}, {0x13ee5b0, 0xc0001e27e0}, 0xc00022d700) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000313c20, {0x13f02c0, 0xc0003400f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/21 23:59:26 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/21 23:59:26 http: panic serving 127.0.0.1:51365: runtime error: invalid memory address or nil pointer dereference +goroutine 72 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x1325680, 0x16112d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0xc000080000, {0x137416e, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e7f00, 0xc00012a8c0}, {0x137416e, 0xd}, {0x130f1e0, 0xc000012da0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13ee5b0, 0xc00012a8c0}, 0xc000172150) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x27e +net/http.HandlerFunc.ServeHTTP(0xc00011fd00, {0x13ee5b0, 0xc00012a8c0}, 0xc0003849f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00033a000, {0x13ee5b0, 0xc00012a8c0}, 0xc00022da00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000366900}, {0x13ee5b0, 0xc00012a8c0}, 0xc00022da00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000313cc0, {0x13f02c0, 0xc0003400f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/21 23:59:26 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/21 23:59:26 http: panic serving 127.0.0.1:51366: runtime error: invalid memory address or nil pointer dereference +goroutine 73 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x1325680, 0x16112d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0xc00005a900, {0x137416e, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e7f00, 0xc0000ba380}, {0x137416e, 0xd}, {0x130f1e0, 0xc0000a44c0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13ee5b0, 0xc0000ba380}, 0xc00009d5f0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x27e +net/http.HandlerFunc.ServeHTTP(0xc0000a8f00, {0x13ee5b0, 0xc0000ba380}, 0xc0000649f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00033a000, {0x13ee5b0, 0xc0000ba380}, 0xc00022db00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0003669c0}, {0x13ee5b0, 0xc0000ba380}, 0xc00022db00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000313d60, {0x13f02c0, 0xc0003400f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/21 23:59:26 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/21 23:59:26 http: panic serving 127.0.0.1:51368: runtime error: invalid memory address or nil pointer dereference +goroutine 74 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x1325680, 0x16112d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0xc00005a900, {0x137416e, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e7f00, 0xc0001e28c0}, {0x137416e, 0xd}, {0x130f1e0, 0xc000012e90}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13ee5b0, 0xc0001e28c0}, 0xc000366c00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x27e +net/http.HandlerFunc.ServeHTTP(0xc00022dd00, {0x13ee5b0, 0xc0001e28c0}, 0xc0000659f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00033a000, {0x13ee5b0, 0xc0001e28c0}, 0xc00022dc00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000366a80}, {0x13ee5b0, 0xc0001e28c0}, 0xc00022dc00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000313e00, {0x13f02c0, 0xc0003400f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/21 23:59:30 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/21 23:59:30 http: panic serving 127.0.0.1:51387: runtime error: invalid memory address or nil pointer dereference +goroutine 19 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x1325680, 0x16112d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0xc00005a900, {0x137416e, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e7f00, 0xc0000ae000}, {0x137416e, 0xd}, {0x130f1e0, 0xc0000aa1f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13ee5b0, 0xc0000ae000}, 0xc00008e150) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x27e +net/http.HandlerFunc.ServeHTTP(0xc000090100, {0x13ee5b0, 0xc0000ae000}, 0xc0000699f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00033a000, {0x13ee5b0, 0xc0000ae000}, 0xc000090000) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc00010a030}, {0x13ee5b0, 0xc0000ae000}, 0xc000090000) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000313ae0, {0x13f02c0, 0xc0003400f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/21 23:59:30 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/21 23:59:30 http: panic serving 127.0.0.1:51388: runtime error: invalid memory address or nil pointer dereference +goroutine 20 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x1325680, 0x16112d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0xc000080000, {0x137416e, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e7f00, 0xc0001e2380}, {0x137416e, 0xd}, {0x130f1e0, 0xc0003332c0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13ee5b0, 0xc0001e2380}, 0xc0003403f0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x27e +net/http.HandlerFunc.ServeHTTP(0xc00022c700, {0x13ee5b0, 0xc0001e2380}, 0xc0001db9f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00033a000, {0x13ee5b0, 0xc0001e2380}, 0xc00022c600) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000340240}, {0x13ee5b0, 0xc0001e2380}, 0xc00022c600) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000313b80, {0x13f02c0, 0xc0003400f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/21 23:59:30 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/21 23:59:30 http: panic serving 127.0.0.1:51392: runtime error: invalid memory address or nil pointer dereference +goroutine 37 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x1325680, 0x16112d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0xc000080000, {0x137416e, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e7f00, 0xc0000ae0e0}, {0x137416e, 0xd}, {0x130f1e0, 0xc000382010}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13ee5b0, 0xc0000ae0e0}, 0xc00008ea80) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x27e +net/http.HandlerFunc.ServeHTTP(0xc000090400, {0x13ee5b0, 0xc0000ae0e0}, 0xc0000699f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00033a000, {0x13ee5b0, 0xc0000ae0e0}, 0xc000090300) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc00008e930}, {0x13ee5b0, 0xc0000ae0e0}, 0xc000090300) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0000f6000, {0x13f02c0, 0xc0003400f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/21 23:59:30 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/21 23:59:30 http: panic serving 127.0.0.1:51396: runtime error: invalid memory address or nil pointer dereference +goroutine 24 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x1325680, 0x16112d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0xc000080000, {0x137416e, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e7f00, 0xc0001e2460}, {0x137416e, 0xd}, {0x130f1e0, 0xc0000aa4c0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13ee5b0, 0xc0001e2460}, 0xc000340cf0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x27e +net/http.HandlerFunc.ServeHTTP(0xc00022ca00, {0x13ee5b0, 0xc0001e2460}, 0xc0000649f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00033a000, {0x13ee5b0, 0xc0001e2460}, 0xc00022c900) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000340ba0}, {0x13ee5b0, 0xc0001e2460}, 0xc00022c900) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000313c20, {0x13f02c0, 0xc0003400f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/21 23:59:36 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/21 23:59:36 http: panic serving 127.0.0.1:51416: runtime error: invalid memory address or nil pointer dereference +goroutine 50 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x1325680, 0x16112d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0xc00005ad80, {0x137416e, 0x0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e7f00, 0xc0003cc000}, {0x137416e, 0xd}, {0x130f1e0, 0xc000333400}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13ee5b0, 0xc0003cc000}, 0xc0003862a0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x27e +net/http.HandlerFunc.ServeHTTP(0xc0003ba100, {0x13ee5b0, 0xc0003cc000}, 0xc0000699f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc00033a000, {0x13ee5b0, 0xc0003cc000}, 0xc000090600) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc00008f440}, {0x13ee5b0, 0xc0003cc000}, 0xc000090600) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0003ac000, {0x13f02c0, 0xc0003400f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 12:31:53 webserver.config: template: no template "config" associated with template "config" +2022/07/22 12:31:55 webserver.config: template: no template "config" associated with template "config" +2022/07/22 13:01:16 webserver.config: template: no template "config" associated with template "config" +2022/07/22 13:01:40 webserver.config: template: no template "config" associated with template "config" +2022/07/22 13:02:18 webserver.config: template: no template "config" associated with template "config" +2022/07/22 13:02:18 webserver.config: template: no template "config" associated with template "config" +2022/07/22 18:55:02 webserver.config: template: no template "config" associated with template "config" +2022/07/22 19:12:29 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/22 19:12:30 webserver.config: template: template.html:10:23: executing "template.html" at <{{template "title"}}>: template "title" not defined +2022/07/22 20:24:57 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/22 20:24:57 http: panic serving 127.0.0.1:54814: runtime error: invalid memory address or nil pointer dereference +goroutine 19 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc000183860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc00031e000}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc000316140}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc00031e000}, 0xc000306120) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc000332000, {0x13e78f0, 0xc00031e000}, 0xc0000699f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002cc000, {0x13e78f0, 0xc00031e000}, 0xc000106000) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000102030}, {0x13e78f0, 0xc00031e000}, 0xc000106000) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0002a3b80, {0x13e9600, 0xc0002d20f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:24:58 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/22 20:24:58 http: panic serving 127.0.0.1:54815: runtime error: invalid memory address or nil pointer dereference +goroutine 20 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc000187860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc0000f2380}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc0002c3540}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc0000f2380}, 0xc0002d23f0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc0001bc700, {0x13e78f0, 0xc0000f2380}, 0xc0000eb9f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002cc000, {0x13e78f0, 0xc0000f2380}, 0xc0001bc600) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0002d2240}, {0x13e78f0, 0xc0000f2380}, 0xc0001bc600) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0002a3c20, {0x13e9600, 0xc0002d20f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:24:58 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/22 20:24:58 http: panic serving 127.0.0.1:54821: runtime error: invalid memory address or nil pointer dereference +goroutine 36 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc000187860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc00031e0e0}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc0002c35c0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc00031e0e0}, 0xc000306840) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc000332300, {0x13e78f0, 0xc00031e0e0}, 0xc0000699f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002cc000, {0x13e78f0, 0xc00031e0e0}, 0xc000332200) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0003066f0}, {0x13e78f0, 0xc00031e0e0}, 0xc000332200) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000366000, {0x13e9600, 0xc0002d20f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:24:58 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/22 20:24:58 http: panic serving 127.0.0.1:54823: runtime error: invalid memory address or nil pointer dereference +goroutine 50 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0003e5860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc0003c2000}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc0003a8180}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc0003c2000}, 0xc000394210) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc0003ac100, {0x13e78f0, 0xc0003c2000}, 0xc0003a29f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002cc000, {0x13e78f0, 0xc0003c2000}, 0xc0003ac000) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000394090}, {0x13e78f0, 0xc0003c2000}, 0xc0003ac000) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000398000, {0x13e9600, 0xc0002d20f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:24:59 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/22 20:24:59 http: panic serving 127.0.0.1:54826: runtime error: invalid memory address or nil pointer dereference +goroutine 23 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0003e5860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc0003c20e0}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc0003a8340}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc0003c20e0}, 0xc0003948d0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc0003ac400, {0x13e78f0, 0xc0003c20e0}, 0xc0003a29f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002cc000, {0x13e78f0, 0xc0003c20e0}, 0xc0003ac300) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000394780}, {0x13e78f0, 0xc0003c20e0}, 0xc0003ac300) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0002a3cc0, {0x13e9600, 0xc0002d20f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:25:04 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/22 20:25:04 http: panic serving 127.0.0.1:54827: runtime error: invalid memory address or nil pointer dereference +goroutine 24 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc000183860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc00031e1c0}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc0003163c0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc00031e1c0}, 0xc000306b70) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc000332500, {0x13e78f0, 0xc00031e1c0}, 0xc0000649f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002cc000, {0x13e78f0, 0xc00031e1c0}, 0xc0001bc900) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0002d2db0}, {0x13e78f0, 0xc00031e1c0}, 0xc0001bc900) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0002a3d60, {0x13e9600, 0xc0002d20f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:25:04 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/22 20:25:04 http: panic serving 127.0.0.1:54849: runtime error: invalid memory address or nil pointer dereference +goroutine 55 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0003e1860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc0000f2460}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc00007e140}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc0000f2460}, 0xc0002d2f00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc0001bca00, {0x13e78f0, 0xc0000f2460}, 0xc0003a29f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002cc000, {0x13e78f0, 0xc0000f2460}, 0xc0003ac600) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000394e70}, {0x13e78f0, 0xc0000f2460}, 0xc0003ac600) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0003980a0, {0x13e9600, 0xc0002d20f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:25:04 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/22 20:25:04 http: panic serving 127.0.0.1:54851: runtime error: invalid memory address or nil pointer dereference +goroutine 41 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc000183860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc00031e2a0}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc000316580}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc00031e2a0}, 0xc000307260) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc000332900, {0x13e78f0, 0xc00031e2a0}, 0xc0000649f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002cc000, {0x13e78f0, 0xc00031e2a0}, 0xc000332800) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000307110}, {0x13e78f0, 0xc00031e2a0}, 0xc000332800) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0003660a0, {0x13e9600, 0xc0002d20f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:25:34 webserver.config: template: config.html:11: unexpected <.> in operand +2022/07/22 20:25:34 http: panic serving 127.0.0.1:54973: runtime error: invalid memory address or nil pointer dereference +goroutine 27 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc000183860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc00031e380}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc00007e180}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc00031e380}, 0xc0003078f0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc000332c00, {0x13e78f0, 0xc00031e380}, 0xc0000649f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc0002cc000, {0x13e78f0, 0xc00031e380}, 0xc000332b00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0003077a0}, {0x13e78f0, 0xc00031e380}, 0xc000332b00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0002a3e00, {0x13e9600, 0xc0002d20f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:45:39 webserver.config: template: config.html:15: unexpected {{end}} +2022/07/22 20:45:39 http: panic serving 127.0.0.1:59940: runtime error: invalid memory address or nil pointer dereference +goroutine 40 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0001e7860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc0000dc0e0}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc00034e440}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc0000dc0e0}, 0xc000098c30) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc0000b0800, {0x13e78f0, 0xc0000dc0e0}, 0xc0000939f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc000332000, {0x13e78f0, 0xc0000dc0e0}, 0xc000223500) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0003542d0}, {0x13e78f0, 0xc0000dc0e0}, 0xc000223500) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0000b6140, {0x13e9600, 0xc0003380f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:45:39 webserver.config: template: config.html:15: unexpected {{end}} +2022/07/22 20:45:39 http: panic serving 127.0.0.1:59941: runtime error: invalid memory address or nil pointer dereference +goroutine 52 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0001e3860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc0001d67e0}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc00007e500}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc0001d67e0}, 0xc0003547e0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc000223700, {0x13e78f0, 0xc0001d67e0}, 0xc0000929f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc000332000, {0x13e78f0, 0xc0001d67e0}, 0xc000223600) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000354390}, {0x13e78f0, 0xc0001d67e0}, 0xc000223600) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000309d60, {0x13e9600, 0xc0003380f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:45:39 webserver.config: template: config.html:15: unexpected {{end}} +2022/07/22 20:45:39 http: panic serving 127.0.0.1:59943: runtime error: invalid memory address or nil pointer dereference +goroutine 43 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0000ed860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc0001221c0}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc00034e500}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc0001221c0}, 0xc00011ade0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc000126500, {0x13e78f0, 0xc0001221c0}, 0xc0000939f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc000332000, {0x13e78f0, 0xc0001221c0}, 0xc0000b0a00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000098de0}, {0x13e78f0, 0xc0001221c0}, 0xc0000b0a00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0000b61e0, {0x13e9600, 0xc0003380f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:45:39 webserver.config: template: config.html:15: unexpected {{end}} +2022/07/22 20:45:39 http: panic serving 127.0.0.1:59950: runtime error: invalid memory address or nil pointer dereference +goroutine 12 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0000ed860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc0001d68c0}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc00034e6c0}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc0001d68c0}, 0xc000354ba0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc000223a00, {0x13e78f0, 0xc0001d68c0}, 0xc0000929f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc000332000, {0x13e78f0, 0xc0001d68c0}, 0xc000223900) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000354a50}, {0x13e78f0, 0xc0001d68c0}, 0xc000223900) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc00014c000, {0x13e9600, 0xc0003380f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:45:40 webserver.config: template: config.html:15: unexpected {{end}} +2022/07/22 20:45:40 http: panic serving 127.0.0.1:59951: runtime error: invalid memory address or nil pointer dereference +goroutine 13 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0001e3860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc0001222a0}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc00007e780}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc0001222a0}, 0xc00011b260) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc000126800, {0x13e78f0, 0xc0001222a0}, 0xc0000939f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc000332000, {0x13e78f0, 0xc0001222a0}, 0xc000126700) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc00011b110}, {0x13e78f0, 0xc0001222a0}, 0xc000126700) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc00014c0a0, {0x13e9600, 0xc0003380f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:45:40 webserver.config: template: config.html:15: unexpected {{end}} +2022/07/22 20:45:40 http: panic serving 127.0.0.1:59958: runtime error: invalid memory address or nil pointer dereference +goroutine 57 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0000e9860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc00041e000}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc000416100}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc00041e000}, 0xc000406120) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc00042e000, {0x13e78f0, 0xc00041e000}, 0xc0000929f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc000332000, {0x13e78f0, 0xc00041e000}, 0xc000223c00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000355020}, {0x13e78f0, 0xc00041e000}, 0xc000223c00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc000309e00, {0x13e9600, 0xc0003380f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:45:40 webserver.config: template: config.html:15: unexpected {{end}} +2022/07/22 20:45:40 http: panic serving 127.0.0.1:59960: runtime error: invalid memory address or nil pointer dereference +goroutine 44 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0000f5860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc0000dc1c0}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc00009a980}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc0000dc1c0}, 0xc0000991a0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc0000b0d00, {0x13e78f0, 0xc0000dc1c0}, 0xc0000949f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc000332000, {0x13e78f0, 0xc0000dc1c0}, 0xc0000b0c00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000099050}, {0x13e78f0, 0xc0000dc1c0}, 0xc0000b0c00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0000b6280, {0x13e9600, 0xc0003380f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:45:45 webserver.config: template: config.html:15: unexpected {{end}} +2022/07/22 20:45:45 http: panic serving 127.0.0.1:59983: runtime error: invalid memory address or nil pointer dereference +goroutine 16 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0000f5860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc0000dc2a0}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc00009ab40}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc0000dc2a0}, 0xc000099710) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc0000b1000, {0x13e78f0, 0xc0000dc2a0}, 0xc0000949f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc000332000, {0x13e78f0, 0xc0000dc2a0}, 0xc0000b0f00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc0000995c0}, {0x13e78f0, 0xc0000dc2a0}, 0xc0000b0f00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc00014c140, {0x13e9600, 0xc0003380f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:46:00 webserver.config: template: config.html:15: unexpected {{end}} +2022/07/22 20:46:00 http: panic serving 127.0.0.1:59984: runtime error: invalid memory address or nil pointer dereference +goroutine 82 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0000e9860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc00041e0e0}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc000416240}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc00041e0e0}, 0xc000406660) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc00042e200, {0x13e78f0, 0xc00041e0e0}, 0xc0000939f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc000332000, {0x13e78f0, 0xc00041e0e0}, 0xc000126a00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc00011b740}, {0x13e78f0, 0xc00041e0e0}, 0xc000126a00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc00014c1e0, {0x13e9600, 0xc0003380f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:46:00 webserver.config: template: config.html:15: unexpected {{end}} +2022/07/22 20:46:00 http: panic serving 127.0.0.1:60056: runtime error: invalid memory address or nil pointer dereference +goroutine 49 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0000f5860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc0000dc380}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc00009ad00}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc0000dc380}, 0xc000099ce0) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc0000b1300, {0x13e78f0, 0xc0000dc380}, 0xc0000949f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc000332000, {0x13e78f0, 0xc0000dc380}, 0xc0000b1200) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc000099b90}, {0x13e78f0, 0xc0000dc380}, 0xc0000b1200) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc0000b6320, {0x13e9600, 0xc0003380f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 20:46:00 webserver.config: template: config.html:15: unexpected {{end}} +2022/07/22 20:46:00 http: panic serving 127.0.0.1:60058: runtime error: invalid memory address or nil pointer dereference +goroutine 83 [running]: +net/http.(*conn).serve.func1() + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9 +panic({0x131f540, 0x16082d0}) + /usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266 +text/template.(*Template).Lookup(0x0, {0x136dc2a, 0xc0000f5860}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/template.go:189 +0x37 +text/template.(*Template).ExecuteTemplate(0x0, {0x13e1340, 0xc000122380}, {0x136dc2a, 0xd}, {0x1357ec0, 0xc00009ad80}) + /usr/local/Cellar/go/1.17.2/libexec/src/text/template/exec.go:182 +0x4c +github.com/cr3a70r/shield/Management.config({0x13e78f0, 0xc000122380}, 0xc00011b950) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/Management/webserver.go:125 +0x279 +net/http.HandlerFunc.ServeHTTP(0xc000126c00, {0x13e78f0, 0xc000122380}, 0xc0000699f8) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2046 +0x2f +github.com/gorilla/mux.(*Router).ServeHTTP(0xc000332000, {0x13e78f0, 0xc000122380}, 0xc000126b00) + /Users/cr3a70r/go/src/github.com/cr3a70r/shield/vendor/github.com/gorilla/mux/mux.go:210 +0x1cf +net/http.serverHandler.ServeHTTP({0xc00011b800}, {0x13e78f0, 0xc000122380}, 0xc000126b00) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:2878 +0x43b +net/http.(*conn).serve(0xc00014c280, {0x13e9600, 0xc0003380f0}) + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1929 +0xb08 +created by net/http.(*Server).Serve + /usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:3033 +0x4e8 +2022/07/22 21:02:02 webserver.config: template: no template "code" associated with template "code" +2022/07/22 23:11:47 webserver.config: template: config.html:9:3: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.T_Management +2022/07/22 23:11:48 webserver.config: template: config.html:9:3: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.T_Management +2022/07/22 23:41:29 webserver.config: template: config.html:9:80: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.ViewData +2022/07/22 23:41:30 webserver.config: template: config.html:9:80: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.ViewData +2022/07/22 23:41:49 webserver.config: template: template.html:42:22: executing "template.html" at <.ptr>: ptr is an unexported field of struct type management.ViewData +2022/07/22 23:41:50 webserver.config: template: template.html:42:22: executing "template.html" at <.ptr>: ptr is an unexported field of struct type management.ViewData +2022/07/22 23:41:52 webserver.config: template: config.html:9:80: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.ViewData +2022/07/22 23:42:04 webserver.config: template: config.html:9:80: executing "body" at <.ptr>: ptr is an unexported field of struct type management.ViewData +2022/07/22 23:42:05 webserver.config: template: config.html:9:80: executing "body" at <.ptr>: ptr is an unexported field of struct type management.ViewData +2022/07/30 16:39:32 webserver.config: template: config.html:9:80: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.View +2022/07/30 16:39:34 webserver.config: template: config.html:9:80: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.View +2022/07/30 16:39:47 webserver.config: template: config.html:9:80: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.View +2022/07/30 16:39:48 webserver.config: template: config.html:9:80: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.View +2022/07/30 16:40:24 webserver.config: template: config.html:9:80: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.View +2022/07/30 16:40:24 webserver.config: template: config.html:9:80: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.View +2022/07/30 16:40:40 webserver.config: template: config.html:9:80: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.View +2022/07/30 16:40:41 webserver.config: template: config.html:9:80: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.View +2022/07/30 16:41:05 webserver.config: template: config.html:12:3: executing "body" at <.T_Management>: can't evaluate field T_Management in type management.View +2022/07/30 17:28:13 webserver.auth: login +2022/07/30 17:28:13 defadm@daydev.org +2022/07/30 17:28:13 webserver.auth: failed to encode cookie +2022/07/30 17:37:28 webserver.auth: login +2022/07/30 17:37:28 defadm@daydev.org +2022/07/30 17:37:28 webserver.auth: failed to encode cookie +2022/07/30 17:44:25 webserver.auth: login +2022/07/30 17:44:25 defadm@daydev.org +2022/07/30 17:44:25 webserver.auth: failed to encode cookie +2022/07/30 18:33:34 webserver.auth: login +2022/07/30 18:33:34 defadm@daydev.org +2022/07/30 18:33:34 webserver.auth: failed to encode cookie +2022/07/30 18:46:46 webserver.auth: login +2022/07/30 18:46:46 defadm@daydev.org +2022/07/30 18:46:46 webserver.auth: failed to encode cookie +2022/07/30 21:49:03 webserver.auth: login +2022/07/30 21:49:03 defadm@daydev.org +2022/07/30 21:49:03 webserver.auth: failed to encode cookie +2022/08/01 14:00:28 webserver.auth: login +2022/08/01 14:00:28 defadm@daydev.org +2022/08/01 14:00:28 webserver.auth: failed to encode cookie +2022/08/01 14:01:13 webserver.auth: login +2022/08/01 14:01:13 defadm@daydev.org +2022/08/01 14:01:13 webserver.auth: failed to encode cookie +2022/08/01 14:01:35 webserver.auth: login +2022/08/01 14:01:35 defadm@daydev.org +2022/08/01 14:01:35 webserver.auth: failed to encode cookie +2022/08/01 14:02:06 webserver.auth: login +2022/08/01 14:02:06 defadm@daydev.org +2022/08/01 14:02:06 webserver.auth: failed to encode cookie +2022/08/01 14:04:11 webserver.auth: login +2022/08/01 14:04:11 defadm@daydev.org +2022/08/01 14:15:32 webserver.auth: login +2022/08/01 14:15:32 defadm@daydev.org +2022/08/01 14:17:38 webserver.auth: login +2022/08/01 14:17:38 defadm@daydev.org diff --git a/shield b/shield new file mode 100755 index 0000000..2e1c913 Binary files /dev/null and b/shield differ diff --git a/shield.go b/shield.go new file mode 100644 index 0000000..76a1a1d --- /dev/null +++ b/shield.go @@ -0,0 +1,25 @@ +package main + +import ( + "log" + "os" + + management "github.com/cr3a70r/shield/Management" +) + +func main() { + logFile, err := os.OpenFile("runlog.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644) + if err != nil { + log.Fatal(err) + } else { + log.SetOutput(logFile) + } + + defer logFile.Close() + + management.Settings.Initialize() + + + management.StartWebserver("127.0.0.1:8080") +} + diff --git a/static/config.html b/static/config.html new file mode 100644 index 0000000..c502676 --- /dev/null +++ b/static/config.html @@ -0,0 +1,13 @@ +{{define "title"}} +Config | Shield +{{end}} + +{{define "body"}} + +
+ + +
+ + +{{end}} \ No newline at end of file diff --git a/static/dashboard.html b/static/dashboard.html new file mode 100644 index 0000000..2f97624 --- /dev/null +++ b/static/dashboard.html @@ -0,0 +1,10 @@ + +{{define "title"}} +Dashboard | Shield +{{end}} + +{{define "body"}} +

Hi

+dskflsjflksdjfls +dflsdfsdlfks +{{end}} \ No newline at end of file diff --git a/static/index.html b/static/index.html new file mode 100644 index 0000000..336eb39 --- /dev/null +++ b/static/index.html @@ -0,0 +1,85 @@ + + + + + + + + + + SignIn | Shield + + + + + + + + + + + \ No newline at end of file diff --git a/static/protection.html b/static/protection.html new file mode 100644 index 0000000..bc96572 --- /dev/null +++ b/static/protection.html @@ -0,0 +1,30 @@ + +{{define "title"}} +Protection | Shield +{{end}} + +{{define "body"}} + + + + + + + + + + + + + + + + + + + + + + +
DomainReal ServerReal PortStatusAction
Test8.8.8.880OnboardingEditDelete
+{{end}} \ No newline at end of file diff --git a/static/template.html b/static/template.html new file mode 100644 index 0000000..6114232 --- /dev/null +++ b/static/template.html @@ -0,0 +1,46 @@ + + + + + + + + + + {{ template "title"}} + + + + + + + + + {{template "body" . }} + + + + \ No newline at end of file