MCPcopy Create free account
hub / github.com/EASY233/Finger / check

Method check

api/fofa.py:76–88  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 pass
75
76 def check(self):
77 try:
78 if self.email and self.key:
79 auth_url = "https://fofa.info/api/v1/info/my?email={0}&key={1}".format(self.email, self.key)
80 response = requests.get(auth_url, timeout=10, headers=self.headers)
81 if "{\"error\":false" in response.text:
82 return True
83 else:
84 return False
85 else:
86 return False
87 except:
88 return False

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected