MCPcopy Create free account
hub / github.com/code-scan/Goal / TestFofa

Function TestFofa

tests/sensor_test.go:10–22  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestFofa(t *testing.T) {
11 ff := Gsensor.Fofa{}
12 // api的邮箱与api的key
13 ff.SetAccount("@qq.com")
14 ff.SetPassword("s")
15 ff.SetType("sameserver")
16 ff.SetType("subdomain")
17 //ff.SetType("ports")
18
19 ff.SetDomain("freebuf.com")
20 r := ff.GetResult()
21 log.Println(r)
22}
23
24func TestBeian(t *testing.T) {
25 beian := Gsensor.Beian{}

Callers

nothing calls this directly

Calls 5

SetAccountMethod · 0.95
SetPasswordMethod · 0.95
SetTypeMethod · 0.95
SetDomainMethod · 0.95
GetResultMethod · 0.95

Tested by

no test coverage detected