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

Function TestSecTrail

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

Source from the content-addressed store, hash-verified

31}
32
33func TestSecTrail(t *testing.T) {
34 log.SetFlags(log.Lshortfile | log.LstdFlags)
35
36 ss := Gsensor.SecurityTrails{}
37 //可以不登录,只能查询第一页
38 ss.SetAccount("xxxxx@gmail.com")
39 ss.SetPassword("xxxxxxx")
40 ss.Login(true)
41 ss.MaxPage = 10 // 自定义最大翻页,登录后默认100页
42 ss.SetDomain("360.cn")
43 ss.SetType("subdomain")
44 //ss.SetType("ahistory")
45
46 //ss.SetDomain("172.67.168.89")
47 //ss.SetType("sameserver")
48 r := ss.GetResult()
49 log.Println(len(r))
50 log.Println(r)
51
52}
53func TestSecTrailApi(t *testing.T) {
54 log.SetFlags(log.Lshortfile | log.LstdFlags)
55

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected