mirror of
https://github.com/vysecurity/LinkedInt.git
synced 2025-12-06 17:02:19 +01:00
Fix Hunter
This commit is contained in:
parent
9f4b08e3e4
commit
894b7da4cc
1 changed files with 5 additions and 9 deletions
14
LinkedInt.py
14
LinkedInt.py
|
|
@ -56,6 +56,7 @@ def login():
|
|||
}
|
||||
rv = s.post(URL + '/checkpoint/lg/login-submit', data=postdata)
|
||||
try:
|
||||
print(s.response)
|
||||
cookie = requests.utils.dict_from_cookiejar(s.cookies)
|
||||
cookie = cookie['li_at']
|
||||
except:
|
||||
|
|
@ -356,17 +357,12 @@ if __name__ == '__main__':
|
|||
break
|
||||
elif prefix == "auto":
|
||||
print("[*] Automatically using Hunter IO to determine best Prefix")
|
||||
url = "https://hunter.io/trial/v2/domain-search?offset=0&domain=%s&format=json" % suffix
|
||||
url = "https://api.hunter.io/v2/domain-search?domain=%s&api_key=%s" % (suffix, api_key)
|
||||
r = requests.get(url)
|
||||
content = json.loads(r.text)
|
||||
if "status" in content:
|
||||
print("[!] Rate limited by Hunter IO trial")
|
||||
url = "https://api.hunter.io/v2/domain-search?domain=%s&api_key=%s" % (suffix, api_key)
|
||||
r = requests.get(url)
|
||||
content = json.loads(r.text)
|
||||
if "status" in content:
|
||||
print("[!] Rate limited by Hunter IO Key")
|
||||
continue
|
||||
print("[!] Rate limited by Hunter IO Key")
|
||||
continue
|
||||
prefix = content['data']['pattern']
|
||||
print("[!] %s" % prefix)
|
||||
if prefix:
|
||||
|
|
@ -390,4 +386,4 @@ if __name__ == '__main__':
|
|||
|
||||
get_search()
|
||||
|
||||
print("[+] Complete")
|
||||
print("[+] Complete")
|
||||
|
|
|
|||
Loading…
Reference in a new issue