Created
April 26, 2016 13:51
-
-
Save YouSysAdmin/f89e4b35afa1f574086a8d7548246b63 to your computer and use it in GitHub Desktop.
Sploite
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/http" | |
"github.com/julienschmidt/httprouter" | |
) | |
func main() { | |
go Sploit() | |
for { | |
} | |
} | |
func Sploit() { | |
r := httprouter.New() | |
// location "/" | |
r.GET("/", func(w http.ResponseWriter, r *http.Request, _ httprouter.Params) { | |
fmt.Fprint(w, "You ATTACK PENTAGON!!!!\n") | |
}) | |
http.ListenAndServe("0.0.0.0:3000", r) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment