diff --git a/whatsapp-osint.py b/whatsapp-osint.py index f8ef188..9081b03 100644 --- a/whatsapp-osint.py +++ b/whatsapp-osint.py @@ -1,6 +1,7 @@ import os import re import base64 +import sys import requests import json import time @@ -51,6 +52,15 @@ def sanitize_phone(raw: str) -> str: def is_valid_phone(p: str) -> bool: return p.isdigit() and 8 <= len(p) <= 15 +def has_authorization_ack() -> bool: + if "--i-am-authorized" in sys.argv[1:]: + return True + + print(Fore.YELLOW + "\nāš ļø Authorized use required." + Style.RESET_ALL) + print("Confirm you are authorized to investigate this number and will use this tool lawfully.") + ack = input("Type 'I AM AUTHORIZED' to continue: ").strip() + return ack == "I AM AUTHORIZED" + def show_menu(): print(Fore.CYAN + "šŸ” Select the type of query:" + Style.RESET_ALL) print() @@ -328,6 +338,10 @@ def main(): print("āŒ Invalid format. Example: 51916574069") return + if not has_authorization_ack(): + print("āŒ Authorization acknowledgement not provided. Aborting.") + return + print(f"\nšŸ” {Fore.GREEN}Processing request...{Style.RESET_ALL}") print(f"šŸ“± Number: {phone}") print(f"šŸŽÆ Query: {ENDPOINTS[choice]['name']}\n")