mirror of
https://github.com/vysecurity/LinkedInt.git
synced 2025-12-06 08:52:29 +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)
|
rv = s.post(URL + '/checkpoint/lg/login-submit', data=postdata)
|
||||||
try:
|
try:
|
||||||
|
print(s.response)
|
||||||
cookie = requests.utils.dict_from_cookiejar(s.cookies)
|
cookie = requests.utils.dict_from_cookiejar(s.cookies)
|
||||||
cookie = cookie['li_at']
|
cookie = cookie['li_at']
|
||||||
except:
|
except:
|
||||||
|
|
@ -356,17 +357,12 @@ if __name__ == '__main__':
|
||||||
break
|
break
|
||||||
elif prefix == "auto":
|
elif prefix == "auto":
|
||||||
print("[*] Automatically using Hunter IO to determine best Prefix")
|
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)
|
r = requests.get(url)
|
||||||
content = json.loads(r.text)
|
content = json.loads(r.text)
|
||||||
if "status" in content:
|
if "status" in content:
|
||||||
print("[!] Rate limited by Hunter IO trial")
|
print("[!] Rate limited by Hunter IO Key")
|
||||||
url = "https://api.hunter.io/v2/domain-search?domain=%s&api_key=%s" % (suffix, api_key)
|
continue
|
||||||
r = requests.get(url)
|
|
||||||
content = json.loads(r.text)
|
|
||||||
if "status" in content:
|
|
||||||
print("[!] Rate limited by Hunter IO Key")
|
|
||||||
continue
|
|
||||||
prefix = content['data']['pattern']
|
prefix = content['data']['pattern']
|
||||||
print("[!] %s" % prefix)
|
print("[!] %s" % prefix)
|
||||||
if prefix:
|
if prefix:
|
||||||
|
|
@ -390,4 +386,4 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
get_search()
|
get_search()
|
||||||
|
|
||||||
print("[+] Complete")
|
print("[+] Complete")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue