• XSS.stack #1 – первый литературный журнал от юзеров форума

Статья XssBot - Модульный резидентный бот с супер-админкой. Часть вторая.

Пожалуйста, обратите внимание, что пользователь заблокирован
Напоминаю, проходит голосование: https://xss.pro/threads/39227/
Можете проголосовать за 3 понравившихся статьи.
 
Пожалуйста, обратите внимание, что пользователь заблокирован
Последний день голосования, можно проголосовать за 3 понравившихся статьи в этой теме: https://xss.pro/threads/39227/
 
Подскажите при запуске бота в консоле ошибки

oot@44345k2:/var/www/html/backend# ./main

2020/08/17 11:18:36 reg.RegBot: UNIQUE constraint failed: bots.Uid

2020/08/17 11:18:38 ping.GetCommand: sql: no rows in result set

2020/08/17 11:18:40 ping.GetCommand: sql: no rows in result set

2020/08/17 11:18:42 ping.GetCommand: sql: no rows in result set

2020/08/17 11:18:44 ping.GetCommand: sql: no rows in result set

2020/08/17 11:18:46 ping.GetCommand: sql: no rows in result set

2020/08/17 11:18:48 ping.GetCommand: sql: no rows in result set

2020/08/17 11:18:50 ping.GetCommand: sql: no rows in result set

2020/08/17 11:18:53 ping.GetCommand: sql: no rows in result set

2020/08/17 11:18:55 ping.GetCommand: sql: no rows in result set

2020/08/17 11:18:57 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:01 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:03 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:05 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:07 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:09 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:11 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:13 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:15 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:17 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:19 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:21 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:24 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:26 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:28 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:30 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:32 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:34 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:36 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:40 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:42 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:46 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:48 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:50 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:52 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:55 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:57 ping.GetCommand: sql: no rows in result set

2020/08/17 11:19:59 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:01 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:03 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:05 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:07 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:11 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:13 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:15 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:17 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:19 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:21 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:24 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:26 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:28 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:30 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:32 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:36 http: panic serving 5.167.33.132:59182: runtime error: slice bounds out of range [:32] with length 0

goroutine 210 [running]:

net/http.(*conn).serve.func1(0xc000098960)

/usr/lib/go-1.13/src/net/http/server.go:1767 +0x139

panic(0xbad820, 0xc000285840)

/usr/lib/go-1.13/src/runtime/panic.go:679 +0x1b2

_/home/XssBot-master/admin/backend/handlers/gate/obf.Decrypt(0xc00024c436, 0x0, 0x4, 0xc00024c436)

/home/XssBot-master/admin/backend/handlers/gate/obf/obf.go:64 +0x2aa

_/home/XssBot-master/admin/backend/handlers/gate/ping.SendCommand(0xc0000d0200)

/home/XssBot-master/admin/backend/handlers/gate/ping/ping.go:91 +0x6d

_/home/XssBot-master/admin/backend/handlers/gate.Handler(0xc0000d0200)

/home/XssBot-master/admin/backend/handlers/gate/gate.go:27 +0xc2

github.com/gin-gonic/gin.(*Context).Next(0xc0000d0200)

/root/go/src/github.com/gin-gonic/gin/context.go:165 +0x3b

github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00027ca00, 0xc0000d0200)

/root/go/src/github.com/gin-gonic/gin/gin.go:420 +0x611

github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00027ca00, 0xd03ce0, 0xc0000ed420, 0xc000112b00)

/root/go/src/github.com/gin-gonic/gin/gin.go:376 +0x15d

net/http.serverHandler.ServeHTTP(0xc0002ce0e0, 0xd03ce0, 0xc0000ed420, 0xc000112b00)

/usr/lib/go-1.13/src/net/http/server.go:2802 +0xa4

net/http.(*conn).serve(0xc000098960, 0xd05b20, 0xc000258000)

/usr/lib/go-1.13/src/net/http/server.go:1890 +0x875

created by net/http.(*Server).Serve

/usr/lib/go-1.13/src/net/http/server.go:2927 +0x38e

2020/08/17 11:20:36 http: panic serving 5.167.34.662:59189: runtime error: slice bounds out of range [:32] with length 0

goroutine 284 [running]:

net/http.(*conn).serve.func1(0xc0001c41e0)

/usr/lib/go-1.13/src/net/http/server.go:1767 +0x139

panic(0xbad820, 0xc0002858a0)

/usr/lib/go-1.13/src/runtime/panic.go:679 +0x1b2

_/home/XssBot-master/admin/backend/handlers/gate/obf.Decrypt(0xc00024c486, 0x0, 0x4, 0xc00024c486)

/home/XssBot-master/admin/backend/handlers/gate/obf/obf.go:64 +0x2aa

_/home/XssBot-master/admin/backend/handlers/gate/ping.SendCommand(0xc000112f00)

/home/XssBot-master/admin/backend/handlers/gate/ping/ping.go:91 +0x6d

_/home/XssBot-master/admin/backend/handlers/gate.Handler(0xc000112f00)

/home/XssBot-master/admin/backend/handlers/gate/gate.go:27 +0xc2

github.com/gin-gonic/gin.(*Context).Next(0xc000112f00)

/root/go/src/github.com/gin-gonic/gin/context.go:165 +0x3b

github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00027ca00, 0xc000112f00)

/root/go/src/github.com/gin-gonic/gin/gin.go:420 +0x611

github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00027ca00, 0xd03ce0, 0xc0000ed500, 0xc000112e00)

/root/go/src/github.com/gin-gonic/gin/gin.go:376 +0x15d

net/http.serverHandler.ServeHTTP(0xc0002ce0e0, 0xd03ce0, 0xc0000ed500, 0xc000112e00)

/usr/lib/go-1.13/src/net/http/server.go:2802 +0xa4

net/http.(*conn).serve(0xc0001c41e0, 0xd05b20, 0xc00006ac80)

/usr/lib/go-1.13/src/net/http/server.go:1890 +0x875

created by net/http.(*Server).Serve

/usr/lib/go-1.13/src/net/http/server.go:2927 +0x38e

2020/08/17 11:20:38 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:40 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:42 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:44 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:46 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:48 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:50 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:53 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:57 ping.GetCommand: sql: no rows in result set

2020/08/17 11:20:59 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:01 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:03 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:05 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:07 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:09 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:11 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:13 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:15 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:17 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:19 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:21 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:24 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:28 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:30 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:34 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:36 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:38 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:40 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:42 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:44 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:48 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:50 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:53 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:57 ping.GetCommand: sql: no rows in result set

2020/08/17 11:21:59 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:01 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:03 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:05 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:07 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:09 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:11 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:13 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:15 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:18 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:20 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:22 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:24 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:26 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:28 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:30 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:32 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:34 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:36 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:38 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:42 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:45 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:47 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:49 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:51 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:53 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:55 ping.GetCommand: sql: no rows in result set

2020/08/17 11:22:59 ping.GetCommand: sql: no rows in result set

2020/08/17 11:23:01 ping.GetCommand: sql: no rows in result set

2020/08/17 11:23:03 ping.GetCommand: sql: no rows in result set

2020/08/17 11:23:07 ping.GetCommand: sql: no rows in result set

2020/08/17 11:23:09 ping.GetCommand: sql: no rows in result set

2020/08/17 11:23:11 ping.GetCommand: sql: no rows in result set

2020/08/17 11:23:15 ping.GetCommand: sql: no rows in result set

2020/08/17 11:26:22 reg.RegBot: UNIQUE constraint failed: bots.Uid

2020/08/17 11:31:18 reg.RegBot: UNIQUE constraint failed: bots.Uid

2020/08/17 11:31:20 ping.GetCommand: sql: no rows in result set

2020/08/17 11:31:22 ping.GetCommand: sql: no rows in result set

2020/08/17 11:31:24 ping.GetCommand: sql: no rows in result set

2020/08/17 11:32:38 reg.RegBot: UNIQUE constraint failed: bots.Uid

2020/08/17 11:35:59 reg.RegBot: UNIQUE constraint failed: bots.Uid

2020/08/17 11:36:01 ping.GetCommand: sql: no rows in result set

2020/08/17 11:36:03 ping.GetCommand: sql: no rows in result set

2020/08/17 11:36:07 ping.GetCommand: sql: no rows in result set

2020/08/17 11:36:09 ping.GetCommand: sql: no rows in result set

2020/08/17 11:36:11 ping.GetCommand: sql: no rows in result set

2020/08/17 11:42:49 reg.RegBot: UNIQUE constraint failed: bots.Uid

2020/08/17 11:42:51 ping.GetCommand: sql: no rows in result set

2020/08/17 11:42:53 ping.GetCommand: sql: no rows in result set

2020/08/17 11:42:55 ping.GetCommand: sql: no rows in result set

2020/08/17 11:42:57 ping.GetCommand: sql: no rows in result set

2020/08/17 11:42:59 ping.GetCommand: sql: no rows in result set

2020/08/17 11:43:01 ping.GetCommand: sql: no rows in result set

2020/08/17 11:43:04 http: panic serving 5.167.378.172:59364: runtime error: slice bounds out of range [:32] with length 0

goroutine 597 [running]:

net/http.(*conn).serve.func1(0xc000099220)

/usr/lib/go-1.13/src/net/http/server.go:1767 +0x139

panic(0xbad820, 0xc0001b2460)

/usr/lib/go-1.13/src/runtime/panic.go:679 +0x1b2

_/home/XssBot-master/admin/backend/handlers/gate/obf.Decrypt(0xc00024c0f6, 0x0, 0x4, 0xc00024c0f6)

/home/XssBot-master/admin/backend/handlers/gate/obf/obf.go:64 +0x2aa

_/home/XssBot-master/admin/backend/handlers/gate/ping.SendCommand(0xc000112200)

/home/XssBot-master/admin/backend/handlers/gate/ping/ping.go:91 +0x6d

_/home/XssBot-master/admin/backend/handlers/gate.Handler(0xc000112200)

/home/XssBot-master/admin/backend/handlers/gate/gate.go:27 +0xc2

github.com/gin-gonic/gin.(*Context).Next(0xc000112200)

/root/go/src/github.com/gin-gonic/gin/context.go:165 +0x3b

github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00027ca00, 0xc000112200)

/root/go/src/github.com/gin-gonic/gin/gin.go:420 +0x611

github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00027ca00, 0xd03ce0, 0xc0002ce2a0, 0xc000112600)

/root/go/src/github.com/gin-gonic/gin/gin.go:376 +0x15d

net/http.serverHandler.ServeHTTP(0xc0002ce0e0, 0xd03ce0, 0xc0002ce2a0, 0xc000112600)

/usr/lib/go-1.13/src/net/http/server.go:2802 +0xa4

net/http.(*conn).serve(0xc000099220, 0xd05b20, 0xc000306000)

/usr/lib/go-1.13/src/net/http/server.go:1890 +0x875

created by net/http.(*Server).Serve

/usr/lib/go-1.13/src/net/http/server.go:2927 +0x38e

2020/08/17 11:43:04 http: panic serving 5.167.34.162:59365: runtime error: slice bounds out of range [:32] with length 0

goroutine 630 [running]:

net/http.(*conn).serve.func1(0xc000098be0)

/usr/lib/go-1.13/src/net/http/server.go:1767 +0x139

panic(0xbad820, 0xc0001b2580)

/usr/lib/go-1.13/src/runtime/panic.go:679 +0x1b2

_/home/XssBot-master/admin/backend/handlers/gate/obf.Decrypt(0xc00024c146, 0x0, 0x4, 0xc00024c146)

/home/XssBot-master/admin/backend/handlers/gate/obf/obf.go:64 +0x2aa

_/home/XssBot-master/admin/backend/handlers/gate/ping.SendCommand(0xc000112a00)

/home/XssBot-master/admin/backend/handlers/gate/ping/ping.go:91 +0x6d

_/home/XssBot-master/admin/backend/handlers/gate.Handler(0xc000112a00)

/home/XssBot-master/admin/backend/handlers/gate/gate.go:27 +0xc2

github.com/gin-gonic/gin.(*Context).Next(0xc000112a00)

/root/go/src/github.com/gin-gonic/gin/context.go:165 +0x3b

github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00027ca00, 0xc000112a00)

/root/go/src/github.com/gin-gonic/gin/gin.go:420 +0x611

github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00027ca00, 0xd03ce0, 0xc0002ce380, 0xc000112900)

/root/go/src/github.com/gin-gonic/gin/gin.go:376 +0x15d

net/http.serverHandler.ServeHTTP(0xc0002ce0e0, 0xd03ce0, 0xc0002ce380, 0xc000112900)

/usr/lib/go-1.13/src/net/http/server.go:2802 +0xa4

net/http.(*conn).serve(0xc000098be0, 0xd05b20, 0xc000358200)

/usr/lib/go-1.13/src/net/http/server.go:1890 +0x875

created by net/http.(*Server).Serve

/usr/lib/go-1.13/src/net/http/server.go:2927 +0x38e

2020/08/17 11:50:59 reg.RegBot: UNIQUE constraint failed: bots.Uid

2020/08/17 11:51:01 complete.TaskComplete: no such table: errors

2020/08/17 11:51:03 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:05 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:08 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:10 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:12 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:14 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:16 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:18 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:20 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:22 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:24 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:26 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:28 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:33 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:35 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:37 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:39 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:41 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:43 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:45 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:47 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:49 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:53 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:57 ping.GetCommand: sql: no rows in result set

2020/08/17 11:51:59 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:01 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:03 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:06 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:08 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:10 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:12 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:14 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:16 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:18 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:20 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:22 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:26 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:28 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:30 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:32 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:35 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:37 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:39 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:41 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:43 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:45 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:47 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:49 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:51 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:53 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:55 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:57 ping.GetCommand: sql: no rows in result set

2020/08/17 11:52:59 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:01 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:05 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:07 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:10 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:12 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:18 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:20 http: panic serving 5.167.75.173:59514: runtime error: slice bounds out of range [:32] with length 0

goroutine 685 [running]:

net/http.(*conn).serve.func1(0xc0000990e0)

/usr/lib/go-1.13/src/net/http/server.go:1767 +0x139

panic(0xbad820, 0xc000284320)

/usr/lib/go-1.13/src/runtime/panic.go:679 +0x1b2

_/home/XssBot-master/admin/backend/handlers/gate/obf.Decrypt(0xc000025026, 0x0, 0x4, 0xc000025026)

/home/XssBot-master/admin/backend/handlers/gate/obf/obf.go:64 +0x2aa

_/home/XssBot-master/admin/backend/handlers/gate/ping.SendCommand(0xc000112100)

/home/XssBot-master/admin/backend/handlers/gate/ping/ping.go:91 +0x6d

_/home/XssBot-master/admin/backend/handlers/gate.Handler(0xc000112100)

/home/XssBot-master/admin/backend/handlers/gate/gate.go:27 +0xc2

github.com/gin-gonic/gin.(*Context).Next(0xc000112100)

/root/go/src/github.com/gin-gonic/gin/context.go:165 +0x3b

github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00027ca00, 0xc000112100)

/root/go/src/github.com/gin-gonic/gin/gin.go:420 +0x611

github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00027ca00, 0xd03ce0, 0xc0002cfa40, 0xc0001b8f00)

/root/go/src/github.com/gin-gonic/gin/gin.go:376 +0x15d

net/http.serverHandler.ServeHTTP(0xc0002ce0e0, 0xd03ce0, 0xc0002cfa40, 0xc0001b8f00)

/usr/lib/go-1.13/src/net/http/server.go:2802 +0xa4

net/http.(*conn).serve(0xc0000990e0, 0xd05b20, 0xc000358c80)

/usr/lib/go-1.13/src/net/http/server.go:1890 +0x875

created by net/http.(*Server).Serve

/usr/lib/go-1.13/src/net/http/server.go:2927 +0x38e

2020/08/17 11:53:20 http: panic serving 5.167.32.132:59535: runtime error: slice bounds out of range [:32] with length 0

goroutine 776 [running]:

net/http.(*conn).serve.func1(0xc00027fa40)

/usr/lib/go-1.13/src/net/http/server.go:1767 +0x139

panic(0xbad820, 0xc00037a180)

/usr/lib/go-1.13/src/runtime/panic.go:679 +0x1b2

_/home/XssBot-master/admin/backend/handlers/gate/obf.Decrypt(0xc0001b66e6, 0x0, 0x4, 0xc0001b66e6)

/home/XssBot-master/admin/backend/handlers/gate/obf/obf.go:64 +0x2aa

_/home/XssBot-master/admin/backend/handlers/gate/ping.SendCommand(0xc000113000)

/home/XssBot-master/admin/backend/handlers/gate/ping/ping.go:91 +0x6d

_/home/XssBot-master/admin/backend/handlers/gate.Handler(0xc000113000)

/home/XssBot-master/admin/backend/handlers/gate/gate.go:27 +0xc2

github.com/gin-gonic/gin.(*Context).Next(0xc000113000)

/root/go/src/github.com/gin-gonic/gin/context.go:165 +0x3b

github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00027ca00, 0xc000113000)

/root/go/src/github.com/gin-gonic/gin/gin.go:420 +0x611

github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00027ca00, 0xd03ce0, 0xc0003ad340, 0xc0000d1b00)

/root/go/src/github.com/gin-gonic/gin/gin.go:376 +0x15d

net/http.serverHandler.ServeHTTP(0xc0002ce0e0, 0xd03ce0, 0xc0003ad340, 0xc0000d1b00)

/usr/lib/go-1.13/src/net/http/server.go:2802 +0xa4

net/http.(*conn).serve(0xc00027fa40, 0xd05b20, 0xc00006b5c0)

/usr/lib/go-1.13/src/net/http/server.go:1890 +0x875

created by net/http.(*Server).Serve

/usr/lib/go-1.13/src/net/http/server.go:2927 +0x38e

2020/08/17 11:53:22 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:24 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:26 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:28 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:30 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:32 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:34 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:36 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:38 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:41 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:43 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:45 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:49 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:51 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:53 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:57 ping.GetCommand: sql: no rows in result set

2020/08/17 11:53:59 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:01 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:03 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:05 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:07 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:11 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:13 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:16 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:18 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:20 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:22 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:24 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:26 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:28 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:30 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:32 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:34 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:36 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:38 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:42 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:44 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:47 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:49 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:51 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:53 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:55 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:57 ping.GetCommand: sql: no rows in result set

2020/08/17 11:54:59 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:03 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:05 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:07 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:09 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:11 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:13 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:15 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:17 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:20 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:24 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:26 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:28 http: panic serving 5.137.14.132:59536: runtime error: slice bounds out of range [:32] with length 0

goroutine 778 [running]:

net/http.(*conn).serve.func1(0xc00027fae0)

/usr/lib/go-1.13/src/net/http/server.go:1767 +0x139

panic(0xbad820, 0xc00037a940)

/usr/lib/go-1.13/src/runtime/panic.go:679 +0x1b2

_/home/XssBot-master/admin/backend/handlers/gate/obf.Decrypt(0xc0001b6d76, 0x0, 0x4, 0xc0001b6d76)

/home/XssBot-master/admin/backend/handlers/gate/obf/obf.go:64 +0x2aa

_/home/XssBot-master/admin/backend/handlers/gate/ping.SendCommand(0xc0000d1d00)

/home/XssBot-master/admin/backend/handlers/gate/ping/ping.go:91 +0x6d

_/home/XssBot-master/admin/backend/handlers/gate.Handler(0xc0000d1d00)

/home/XssBot-master/admin/backend/handlers/gate/gate.go:27 +0xc2

github.com/gin-gonic/gin.(*Context).Next(0xc0000d1d00)

/root/go/src/github.com/gin-gonic/gin/context.go:165 +0x3b

github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00027ca00, 0xc0000d1d00)

/root/go/src/github.com/gin-gonic/gin/gin.go:420 +0x611

github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00027ca00, 0xd03ce0, 0xc0003adc00, 0xc000210300)

/root/go/src/github.com/gin-gonic/gin/gin.go:376 +0x15d

net/http.serverHandler.ServeHTTP(0xc0002ce0e0, 0xd03ce0, 0xc0003adc00, 0xc000210300)

/usr/lib/go-1.13/src/net/http/server.go:2802 +0xa4

net/http.(*conn).serve(0xc00027fae0, 0xd05b20, 0xc00006b6c0)

/usr/lib/go-1.13/src/net/http/server.go:1890 +0x875

created by net/http.(*Server).Serve

/usr/lib/go-1.13/src/net/http/server.go:2927 +0x38e

2020/08/17 11:55:28 http: panic serving 5.167.34.162:59548: runtime error: slice bounds out of range [:32] with length 0

goroutine 862 [running]:

net/http.(*conn).serve.func1(0xc000222aa0)

/usr/lib/go-1.13/src/net/http/server.go:1767 +0x139

panic(0xbad820, 0xc0002848c0)

/usr/lib/go-1.13/src/runtime/panic.go:679 +0x1b2

_/home/XssBot-master/admin/backend/handlers/gate/obf.Decrypt(0xc000286456, 0x0, 0x4, 0xc000286456)

/home/XssBot-master/admin/backend/handlers/gate/obf/obf.go:64 +0x2aa

_/home/XssBot-master/admin/backend/handlers/gate/ping.SendCommand(0xc0000d0100)

/home/XssBot-master/admin/backend/handlers/gate/ping/ping.go:91 +0x6d

_/home/XssBot-master/admin/backend/handlers/gate.Handler(0xc0000d0100)

/home/XssBot-master/admin/backend/handlers/gate/gate.go:27 +0xc2

github.com/gin-gonic/gin.(*Context).Next(0xc0000d0100)

/root/go/src/github.com/gin-gonic/gin/context.go:165 +0x3b

github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00027ca00, 0xc0000d0100)

/root/go/src/github.com/gin-gonic/gin/gin.go:420 +0x611

github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00027ca00, 0xd03ce0, 0xc0002cfa40, 0xc000112700)

/root/go/src/github.com/gin-gonic/gin/gin.go:376 +0x15d

net/http.serverHandler.ServeHTTP(0xc0002ce0e0, 0xd03ce0, 0xc0002cfa40, 0xc000112700)

/usr/lib/go-1.13/src/net/http/server.go:2802 +0xa4

net/http.(*conn).serve(0xc000222aa0, 0xd05b20, 0xc000270040)

/usr/lib/go-1.13/src/net/http/server.go:1890 +0x875

created by net/http.(*Server).Serve

/usr/lib/go-1.13/src/net/http/server.go:2927 +0x38e

2020/08/17 11:55:30 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:32 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:34 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:36 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:38 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:40 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:42 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:44 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:46 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:49 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:51 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:53 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:55 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:57 ping.GetCommand: sql: no rows in result set

2020/08/17 11:55:59 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:01 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:03 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:05 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:07 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:10 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:12 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:14 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:16 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:18 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:22 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:24 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:26 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:28 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:30 ping.GetCommand: sql: no rows in result set

2020/08/17 11:56:32 ping.GetCommand: sql: no rows in result set

2020/08/17 12:00:40 reg.RegBot: UNIQUE constraint failed: bots.Uid

2020/08/17 12:19:06 reg.RegBot: UNIQUE constraint failed: bots.Uid
 
Хотя еще раз посмотрел, а в админке бот регистрируется ?

Т.к. ошибка:
Код:
 ping.GetCommand: sql: no rows in result set
Говорит, что в админке нет задания, вам нужно создать задание для бота.

А ошибка вот-эта:
Код:
reg.RegBot: UNIQUE constraint failed: bots.Uid
Говорит, что бот уже зарегистрирован в базе.

Это вроде дебажный вывод, который можно отключить, что-бы незахламлял.

Работайте с админкой, вроде должно работать.)
 
Хотя еще раз посмотрел, а в админке бот регистрируется ?

Т.к. ошибка:
Код:
 ping.GetCommand: sql: no rows in result set
Говорит, что в админке нет задания, вам нужно создать задание для бота.

А ошибка вот-эта:
Код:
reg.RegBot: UNIQUE constraint failed: bots.Uid
Говорит, что бот уже зарегистрирован в базе.

Это вроде дебажный вывод, который можно отключить, что-бы незахламлял.

Работайте с админкой, вроде должно работать.)
Бот появляется даю задание бот уходить в оффлайн и ошибки в консоле.
 
Бот появляется даю задание бот уходить в оффлайн и ошибки в консоле.
Судя по ошибкам вы не дали задание в админке.

Нужно создать задание и запустить его, там в админке потом должны отобразится число загрузок задания и ошибки, если они есть.
 


Напишите ответ...
  • Вставить:
Прикрепить файлы
Верх