(t *testing.T)
| 8 | ) |
| 9 | |
| 10 | func 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 | |
| 24 | func TestBeian(t *testing.T) { |
| 25 | beian := Gsensor.Beian{} |
nothing calls this directly
no test coverage detected