AI powered OSINT engine to discover and map 840+ social media identities across the web
Python aiartificial-intelligencedebainhackhackerhackinghackingtoolsinformationinformation-gatheringlinuxlinux-desktoposintpythonpython-scriptpython3social-mediasocialmediahackingtermuxtermux-tool
added read mode
Aaron Thomas9a7254871cf6
diff --git a/aliens_eye.py b/aliens_eye.pyindex 5bdcbb7..d336d47 100644--- a/aliens_eye.py+++ b/aliens_eye.py@@ -9,10 +9,12 @@ from argparse import ArgumentParserr, g, y, b, p, w = "\033[31m", "\033[32m", "\033[33m", "\033[36m", "\033[35m", "\033[37m"-parser = ArgumentParser()parser.add_argument("username", nargs='*', help='- pass the username, example: $aliens_eye aaron123')+parser.add_argument("-r", "--read", help="- pass the JSON file path to read", type=str)+args = parser.parse_args()+banner = f"""{y}"{b}New Multithreadingfeature speeds up@@ -22,7 +24,7 @@ banner = f"""{y}.-~ {g} ({r}oo{g}) {p} ({r}oo{p}) {y}~-.(_____{g}//~~\\\\{p}//~~\\\\{y}______) {p}☆{y}_.-~` `~-._- /{p}O{b}={g}O{r}={y}O{w}={p}O{b}={g}O{r}={y}O{w}={p}O{b}={g}O{r}={y}O{w}={p}O{b}={g}O{r}={y}O{w}={p}O{b}={g}O{r}={y}O{w}={p}O{b}={g}O{r}={y}O{y}\\ {w}✴+ /{p}O{b}={g}O{r}={y}O{w}={p}O{b}={g}O{r}={y}O{w}={p}O{b}={g}O{r}={y}O{w}={p}O{b}={g}O{r}={y}O{w}={p}O{b}={g}O{r}={y}O{y}\\ {w}✴{y} \\___________________________________/\\x {w}x{y} x {w}x{y} x {w}x{y} x/ {b}✫{y}. {w}*{y} \\{w}x{y}_{w}x{y}_{w}x{y}_{w}x{y}_{w}x{y}_{w}x{y}/@@ -69,7 +71,7 @@ def scanner(u, social):code = req.status_codecontent = req.text.lower()except requests.exceptions.RequestException:- continue+ code=500print(f"{g}#" + f"{b}-" * 124 + f"{g}#")if code == 200 and any(keyword in content for keyword in keywords):user1 = f"{r}Not Found"@@ -78,16 +80,43 @@ def scanner(u, social):user2 = "Not Found" if "Not" in user1 else "Found"save_json[i] = {"code": code, "user": user2, "url": j.format(u)}media = f"{g}# {y}{i[:15]}{' ' * (15 - len(i[:15]))}"- code = f"{g}| {y}{code}{' ' * (5 - len(str(code)))}"+ code = f"{g}| {y}{code}{' ' * (8 - len(str(code)))}"url = f"{g}|{y} {j.format(u)}{' ' * (70 - len(j.format(u)))}"- user1 ="| "+user1+" "+ user1 ="| "+user1+" "print(media + user1 + code + url)+def reader(filej):+ if os.path.isfile(filej):+ with open(filej, 'r') as file:+ data = json.load(file)+ print(f"{g}#" * 126)++ print(f"{g}# {r}SOCIAL MEDIA {g}| {r}USER {g} | {r}STATUS CODE{g} | {r} URL {g} {' ' * 20}")+ for i,j in data.items():+ print(f"{g}#" + f"{b}-" * 124 + f"{g}#")+ user = j["user"]+ code=j["code"]+ url=j["url"]+ media = f"{g}# {y}{i[:15]}{' ' * (15 - len(i[:15]))}"+ code = f"{g}| {y}{code}{' ' * (8 - len(str(code)))}"+ url = f"{g}|{y} {url}{' ' * (70 - len(url))}"+ user1 ="| "+user+" "*(12-len(user))+ print(media + user1 + code + url)+ print(f"{g}#" * 126)++ else:+ print(f"{r}The file {filej} does not exist.{w}")+ returndef main(usernames):os.system("clear")print(banner)print(f"{r}NOTE: The data may not be completely accurate!\n")print(f"{r}NOTE: For educational purpose only!\n")+ if args.read:+ reader(args.read)+ print(f"{b}Thank you\n")+ return+if not usernames:usernames = input(f"{y}Enter the username{r}:{g}").split()try:@@ -98,7 +127,7 @@ def main(usernames):for username in usernames:print(f"\n{y}Fetching details of {username}:\n")print(f"{g}#" * 126)- print(f"{g}# {r}SOCIAL MEDIA {g}| {r}USER {g} | {r}STATUS CODE{g} | {r} URL {g} {' ' * 20}")+ print(f"{g}# {r}SOCIAL MEDIA {g}| {r}USER {g} | {r}STATUS CODE{g} | {r} URL {g} {' ' * 20}")threads = []for start, end in [(i, i + 57) for i in range(0, len(social), 57)]:thread = threading.Thread(target=scanner, args=(username, dict(itertools.islice(social.items(), start, end))))@@ -113,4 +142,4 @@ def main(usernames):print(f"\n{r}Visit {g}https://en.wikipedia.org/wiki/List_of_HTTP_status_codes{r} to know more about status codes!\n")print(f"{b}Thank you\n")if __name__ == "__main__":- main(args.username)\ No newline at end of file+ main(args.username)