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

Function TestShodan

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

Source from the content-addressed store, hash-verified

72 log.Println(r)
73}
74func 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}
82func TestBuff(t *testing.T) {
83 bf := Gsensor.Bufferover{}
84 bf.SetType("subdomain")

Callers

nothing calls this directly

Calls 3

SetDomainMethod · 0.95
SetTypeMethod · 0.95
GetResultMethod · 0.95

Tested by

no test coverage detected