(t *testing.T)
| 31 | } |
| 32 | |
| 33 | func 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 | } |
| 53 | func TestSecTrailApi(t *testing.T) { |
| 54 | log.SetFlags(log.Lshortfile | log.LstdFlags) |
| 55 |
nothing calls this directly
no test coverage detected