Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions whatsapp-osint.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import re
import base64
import sys
import requests
import json
import time
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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")
Expand Down