Skip to content

Commit

Permalink
register idor router
Browse files Browse the repository at this point in the history
  • Loading branch information
0c34 committed Nov 2, 2017
1 parent 53ad494 commit 01fc0af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"govwa/util/middleware"
"govwa/vulnerability/sqli"
"govwa/vulnerability/xss"
"govwa/vulnerability/idor"
)

const (
Expand Down Expand Up @@ -38,12 +39,15 @@ func indexHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
}

func main() {

fmt.Println(banner)

mw := middleware.New()
router := httprouter.New()
user := user.New()
sqlI := sqli.New()
xss := xss.New()
idor := idor.New()

router.ServeFiles("/public/*filepath", http.Dir("public/"))
router.GET("/", mw.LoggingMiddleware(mw.AuthCheck(indexHandler)))
Expand All @@ -52,6 +56,7 @@ func main() {
user.SetRouter(router)
sqlI.SetRouter(router)
xss.SetRouter(router)
idor.SetRouter(router)

s := http.Server{
Addr : ":8082",
Expand Down

0 comments on commit 01fc0af

Please sign in to comment.