1
0
mirror of https://github.com/sairson/Yasso.git synced 2026-11-28 07:01:39 +08:00

增加json格式结果输出

This commit is contained in:
sairson
2022-01-10 17:47:57 +08:00
parent c793ff4145
commit 31806fc814
7 changed files with 127 additions and 30 deletions

18
test/test_json.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import "Yasso/cmd"
func main() {
_ = cmd.JsonOut{
Host: "123456",
Ports: []int{25, 12, 33, 14, 55, 80, 443},
WeakPass: []map[string]map[string]string{
{"redis": map[string]string{"admin": "123456"}},
},
HostVulcan: []map[string]string{
{"192.168.248.1": "MS17010"},
{"192.168.248.2": "smbghost"},
},
WebHosts: nil,
}
}