Skip to content

Commit

Permalink
new xss router
Browse files Browse the repository at this point in the history
  • Loading branch information
0c34 committed Oct 27, 2017
1 parent 24f3ef9 commit c6da312
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"govwa/util"
"govwa/util/middleware"
"govwa/vulnerability/sqli"
"govwa/vulnerability/xss"
)

const (
Expand Down Expand Up @@ -42,13 +43,15 @@ func main() {
router := httprouter.New()
user := user.New()
sqlI := sqli.New()
xss := xss.New()

router.ServeFiles("/public/*filepath", http.Dir("public/"))
router.GET("/", mw.LoggingMiddleware(mw.AuthCheck(indexHandler)))
router.GET("/index", mw.LoggingMiddleware(mw.DetectSQLMap(mw.AuthCheck(indexHandler))))

user.SetRouter(router)
sqlI.SetRouter(router)
xss.SetRouter(router)

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

0 comments on commit c6da312

Please sign in to comment.