add: Facebook username validation (social category)#263
Open
SylvainM98 wants to merge 1 commit intokaifcodec:mainfrom
Open
add: Facebook username validation (social category)#263SylvainM98 wants to merge 1 commit intokaifcodec:mainfrom
SylvainM98 wants to merge 1 commit intokaifcodec:mainfrom
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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
Tested with
Supersedes #46.
Test plan
user-scanner -u <existing_username> -m facebook→[✔] Founduser-scanner -u <fake_username> -m facebook→[✘] Not Founduser-scanner -u <username>(full scan) → Facebook appears in social results12345,user@name, empty) →[!] Errorwith clear message