(t *testing.T)
| 72 | log.Println(r) |
| 73 | } |
| 74 | func TestShodan(t *testing.T) { |
| 75 | sd := Gsensor.Shodan{} |
| 76 | // shodan用的chrome插件的api,只能用来获取端口 |
| 77 | sd.SetDomain("172.67.168.89") |
| 78 | sd.SetType("ports") |
| 79 | rr := sd.GetResult() |
| 80 | log.Println(rr) |
| 81 | } |
| 82 | func TestBuff(t *testing.T) { |
| 83 | bf := Gsensor.Bufferover{} |
| 84 | bf.SetType("subdomain") |