对大批量消息监控 发现违禁词 进行屏蔽
要点:
- 消息多,每个消息体也大
- 违禁词 也多
+--------------------+ | |
| Finding a new job. | | |
+--------------------+ |
/** | |
*@program: data-exfiltration | |
*@description: https://github.com/dollarkillerx | |
*@author: dollarkiller [dollarkiller@dollarkiller.com] | |
*@create: 2020-03-21 09:29 | |
*/ | |
package main | |
import ( | |
"fmt" |
grpc-gateway 是grpc的扩展工具 我安装玩protoc cli 参考grpc-gateway 的文档
build:
protoc -I/usr/local/include -I./proto \
-I$$GOPATH/src -I$$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
-I$$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway \
--go_out=plugins=grpc:../pb \
proto/*.proto
package main
import (
"fmt"
"time"
)
func StartCac() {
t1 := time.Now() // get current time
package test
import (
"fmt"
"net"
"testing"
)
func Cidr(cidr string) ([]string, error) {