forked from wrysunny/KSWEB_crack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
25 lines (22 loc) · 655 Bytes
/
main.go
File metadata and controls
25 lines (22 loc) · 655 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package main
import (
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"net/http"
"strconv"
"time"
)
func main() {
r := chi.NewRouter()
r.Use(middleware.Logger)
r.Get("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("这是一个私人消息API服务器."))
})
r.Post("/service/serKey/v2/do.php", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(EncryptMsg("pass;2")))
})
r.Post("/service/24082016/checkTrial.php", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(EncryptMsg(strconv.FormatInt(time.Now().Unix(), 10) + " 4099737600")))
})
http.ListenAndServe(":3000", r)
}