INNER CODE UNIT · Python
generate_control_username
OpenOSINT/OpenOSINT · actors/username-recon/src/main.py:106
def generate_control_username() -> str:
"""
A random username, virtually guaranteed to be unregistered everywhere.
Used once per run to detect sites that report a false "claimed" result
for this run (e.g. a wildcard DNS/parked-domain response) — see
scan_username() below. Kept short (12 hex chars) so it isn't rejected by
sites with tight username-length limits that a real one wouldn't hit.
"""
return secrets.token_hex(6)
async def scan_chunk(username: str, chunk: dict) -> list[dict] | None:
"""
Scan one chunk of sites for username.
Returns None (not raises) on any failure — timeout or otherwise — so a
single bad chunk never takes down the run. Not retried: a chunk that