diff --git a/ghunt/modules/email.py b/ghunt/modules/email.py index d4273e3..5976edb 100644 --- a/ghunt/modules/email.py +++ b/ghunt/modules/email.py @@ -70,7 +70,10 @@ async def hunt(as_client: httpx.AsyncClient, email_address: str, json_file: Path # await ia.detect_face(vision_api, as_client, target.coverPhotos[container].url) print() - print(f"Last profile edit : {target.sourceIds[container].lastUpdated.strftime('%Y/%m/%d %H:%M:%S (UTC)')}\n") + if target.sourceIds[container].lastUpdated: + print(f"Last profile edit : {target.sourceIds[container].lastUpdated.strftime('%Y/%m/%d %H:%M:%S (UTC)')}\n") + else: + gb.rc.print(f"Last profile edit : [italic]Not found.[/italic]\n") if container in target.emails: print(f"Email : {target.emails[container].value}") @@ -164,4 +167,4 @@ async def hunt(as_client: httpx.AsyncClient, email_address: str, json_file: Path f.write(json.dumps(json_results, cls=GHuntEncoder, indent=4)) gb.rc.print(f"\n[+] JSON output wrote to {json_file} !", style="italic") - await as_client.aclose() \ No newline at end of file + await as_client.aclose()