Skip to content

fix: re-enable Virgool with message-based detection#2584

Open
mohamedsolaiman wants to merge 2 commits intosoxoj:mainfrom
mohamedsolaiman:fix/virgool-detection
Open

fix: re-enable Virgool with message-based detection#2584
mohamedsolaiman wants to merge 2 commits intosoxoj:mainfrom
mohamedsolaiman:fix/virgool-detection

Conversation

@mohamedsolaiman
Copy link
Copy Markdown

While running maigret for an OSINT investigation I noticed Virgool was disabled and returning false results. The site sits behind Cloudflare and returns HTTP 200 for every request, so the old status_code check was useless.

Switched to checkType: message with content-based detection:

  • presenseStrs: ["\"bio\""] — the bio JSON key only appears in real SSR profile payloads, not in the CF challenge HTML
  • absenceStrs: ["۴۰۴"] — Persian digits for 404 shown on not-found pages
  • Added errors mapping for the <noscript> JS-cookie wall so users get a clear UNKNOWN instead of a false positive
  • Added protection: ["cf_js_challenge"] to flag the Cloudflare protection

First tried just flipping the checkType, then realized I needed the proper detection strings. Tested mentally against both claimed/unclaimed scenarios and the JS challenge case.

Closes #2579

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant