X Tutup
Skip to content

add: Facebook username validation (social category)#263

Open
SylvainM98 wants to merge 1 commit intokaifcodec:mainfrom
SylvainM98:add/facebook-username-module
Open

add: Facebook username validation (social category)#263
SylvainM98 wants to merge 1 commit intokaifcodec:mainfrom
SylvainM98:add/facebook-username-module

Conversation

@SylvainM98
Copy link
Contributor

Summary

  • Adds Facebook username validator using the account recovery lookup endpoint
  • Includes client-side pre-validation (Facebook username format rules)
  • Does not trigger any notification to the target (silent module)

The previous approach (PR #46) checked facebook.com/{username} HTTP status codes, but Facebook now returns HTTP 400 for all profile URL requests regardless of whether the username exists. This implementation uses the same recovery endpoint as the existing email scanner module, adapted for synchronous username lookups.

Pre-validation checks

  • Length: 1–50 characters
  • Characters: letters, numbers, periods only
  • No numeric-only usernames
  • No leading/trailing periods

Tested with

  • Known existing usernames → Found
  • Non-existent usernames → Not Found
  • Various edge cases (empty, special chars, numeric, too long) → Proper error messages

Supersedes #46.

Test plan

  • user-scanner -u <existing_username> -m facebook[✔] Found
  • user-scanner -u <fake_username> -m facebook[✘] Not Found
  • user-scanner -u <username> (full scan) → Facebook appears in social results
  • Invalid usernames (12345, user@name, empty) → [!] Error with clear message

Uses the account recovery endpoint to check if a Facebook username
exists without triggering any notification to the target.

Includes client-side pre-validation of Facebook username format
(allowed characters, length, no numeric-only, no leading/trailing
periods) to avoid unnecessary requests.
@kaifcodec kaifcodec added the user module addition PRs or issues related to new user_scan module additions label Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

user module addition PRs or issues related to new user_scan module additions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup