-
Notifications
You must be signed in to change notification settings - Fork 10
/
revealin.py
34 lines (23 loc) · 964 Bytes
/
revealin.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import sys
import trio
from lib.login import check_and_login
from lib.target import get_needed_info
from lib.search import *
from lib.utils import *
async def main():
if len(sys.argv) < 2:
exit("[-] Please give as arg the linkedin handle / profile link of the target.\nExample : python3 revealin.py thert")
link = sys.argv[1]
if "linkedin.com/in/" in link:
handle = link.strip("/").split("linkedin.com/in/")[-1].split("/")[0]
else:
handle = link
print(f"[+] Handle : {handle}\n")
as_client = await check_and_login()
target = await get_needed_info(as_client, handle)
print(f"{vars(target)}\n")
if len(target.last_name) != 2 or not target.last_name.endswith("."):
await safe_exit(as_client, f"[-] The target does not seems to have a masked name.\nName : {target.first_name} {target.last_name}")
await search_autocomplete(as_client, target)
await as_client.aclose()
trio.run(main)