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

Method CheckLogin

Gsensor/SecurityTrailsSensor.go:57–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55 return s.result
56}
57func (s *SecurityTrails) CheckLogin() bool {
58 s.http.New("GET", "https://151.139.240.16/app/account")
59 s.http.IgnoreSSL()
60 s.http.HttpRequest.Host = "securitytrails.com"
61 s.http.Execute()
62 defer s.http.Close()
63 ret, _ := s.http.Text()
64 return strings.Contains(ret, s.UserName)
65}
66func (s *SecurityTrails) Login(ReLogin bool) bool {
67 s.MaxPage = 100
68 s.http = Ghttp.Http{}

Callers 1

LoginMethod · 0.95

Calls 5

NewMethod · 0.80
IgnoreSSLMethod · 0.80
ExecuteMethod · 0.80
TextMethod · 0.80
CloseMethod · 0.45

Tested by

no test coverage detected