This commit is contained in:
wasd
2018-09-25 14:13:45 +08:00
commit 3b4d8613fa
14 changed files with 2171 additions and 0 deletions

28
core/core.go Normal file
View File

@@ -0,0 +1,28 @@
package core
type Core struct{
//版本信息
Version string
}
var cxt Core
func New() Core {
cxt.Version = "0.1"
return cxt
}
func (c *Core) Run() {
//插件
plug := NewPlug()
//解析参数
cmd := NewCmd(plug)
cmd.Run()
//开启抓包
NewDispatch(plug, cmd).Capture()
}